Commit 7acc358b authored by renjintao's avatar renjintao

task

parent 59b43946
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Row> <Row>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('userId')" prop="userId"> <FormItem :label="l('userId')" prop="userId">
<InputNumber v-model="entity.userId"></InputNumber> <UserSelect ref="userSelected" v-model="entity.userId" />
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
......
...@@ -35,7 +35,8 @@ ...@@ -35,7 +35,8 @@
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('userId')" prop="userId"> <Input v-model="entity.userId"> </Input> <FormItem :label="l('userId')" prop="userId">
<UserSelect ref="userSelected" v-model="entity.userId" /></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="24"> <Col :span="24">
...@@ -121,7 +122,13 @@ export default { ...@@ -121,7 +122,13 @@ export default {
required: true, required: true,
message: '必填', message: '必填',
trigger: 'blur' trigger: 'blur'
}] }],
userId: [{
required: true,
message: "请选择人员",
trigger: "change",
type: "number"
}],
} }
} }
}, },
......
...@@ -38,7 +38,8 @@ ...@@ -38,7 +38,8 @@
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('userId')" prop="userId"> <Input v-model="entity.userId"> </Input> <FormItem :label="l('userId')" prop="userId">
<UserSelect ref="userSelected" v-model="entity.userId" /></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -96,7 +97,13 @@ export default { ...@@ -96,7 +97,13 @@ export default {
required: true, required: true,
message: '必填', message: '必填',
trigger: 'blur' trigger: 'blur'
}] }],
userId: [{
required: true,
message: "请选择人员",
trigger: "change",
type: "number"
}],
} }
} }
}, },
......
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
{ {
title: '操作', title: '操作',
key: 'action', key: 'action',
width: 140, width: 200,
align: 'center', align: 'center',
render: (h, params) => { render: (h, params) => {
return h('div', { return h('div', {
...@@ -271,6 +271,17 @@ export default { ...@@ -271,6 +271,17 @@ export default {
click: () => this.edit(params.row.id) click: () => this.edit(params.row.id)
} }
}), }),
h('op', {
attrs: {
icon: "ios-close",
type: "icon",
title: "完成",
color: "#19be6b",
},
on: {
click: () => this.edit(params.row.id)
}
}),
h('op', { h('op', {
attrs: { attrs: {
icon: "ios-create-outline", icon: "ios-create-outline",
......
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