Commit ca4f3fc4 authored by renjintao's avatar renjintao

task record

parent 3ac2c634
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</div> </div>
</FormItem> </FormItem>
<FormItem style="float:right"> <FormItem style="float:right">
<Button type="primary" @click="add">新增</Button> <Button type="primary" @click="add">新增记录</Button>
</FormItem> </FormItem>
</Form> </Form>
</div> </div>
......
...@@ -133,7 +133,7 @@ export default { ...@@ -133,7 +133,7 @@ export default {
oprate: 'detail' oprate: 'detail'
}, },
on: { on: {
click: () => this.addRecord(params.row.id) click: () => this.viewRecord(params.row.id)
} }
}, params.row.title) }, params.row.title)
} }
...@@ -256,11 +256,11 @@ export default { ...@@ -256,11 +256,11 @@ export default {
attrs: { attrs: {
icon: "md-add", icon: "md-add",
type: "icon", type: "icon",
title: params.row.status != 3 ? "新增备注" : "无法操作", title: params.row.status != 3 ? "新增记录" : "无法操作",
color: params.row.status != 3 ? "#19be6b" : "#ccc", color: params.row.status != 3 ? "#19be6b" : "#ccc",
}, },
on: { on: {
click: () => params.row.status != 0 ? this.updatestatus(params.row.id, 3) : null click: () => params.row.status != 0 ? this.addRecord(params.row.id) : null
} }
}), }),
h('op', { h('op', {
...@@ -399,11 +399,18 @@ export default { ...@@ -399,11 +399,18 @@ export default {
onSelect(val) { onSelect(val) {
this.$refs.grid.reload(this.easySearch) this.$refs.grid.reload(this.easySearch)
}, },
viewRecord(id) {
this.curId = id;
this.title = "查看记录";
this.fullScreen = true;
this.detail = () => import('./detail')
this.modal = true;
},
addRecord(id) { addRecord(id) {
this.curId = id; this.curId = id;
this.title = "新增记录"; this.title = "新增记录";
this.fullScreen = true; this.fullScreen = true;
this.detail = () => import('./detail') this.detail = () => import('../record/add')
this.modal = true; this.modal = true;
}, },
l(key) { l(key) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment