Commit ca4f3fc4 authored by renjintao's avatar renjintao

task record

parent 3ac2c634
......@@ -40,7 +40,7 @@
</div>
</FormItem>
<FormItem style="float:right">
<Button type="primary" @click="add">新增</Button>
<Button type="primary" @click="add">新增记录</Button>
</FormItem>
</Form>
</div>
......
......@@ -133,7 +133,7 @@ export default {
oprate: 'detail'
},
on: {
click: () => this.addRecord(params.row.id)
click: () => this.viewRecord(params.row.id)
}
}, params.row.title)
}
......@@ -256,11 +256,11 @@ export default {
attrs: {
icon: "md-add",
type: "icon",
title: params.row.status != 3 ? "新增备注" : "无法操作",
title: params.row.status != 3 ? "新增记录" : "无法操作",
color: params.row.status != 3 ? "#19be6b" : "#ccc",
},
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', {
......@@ -399,11 +399,18 @@ export default {
onSelect(val) {
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) {
this.curId = id;
this.title = "新增记录";
this.fullScreen = true;
this.detail = () => import('./detail')
this.detail = () => import('../record/add')
this.modal = true;
},
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