优化
This commit is contained in:
parent
bc156b212c
commit
d08b65a75e
@ -123,6 +123,8 @@
|
||||
<el-form-item prop="name"
|
||||
label='任务名称'>
|
||||
<el-input clearable
|
||||
type="textarea"
|
||||
:rows="2"
|
||||
size="small"
|
||||
placeholder="请输入任务名称"
|
||||
v-model="formTask.name"></el-input>
|
||||
@ -168,6 +170,7 @@
|
||||
<el-form-item prop="target"
|
||||
label='指标名称'>
|
||||
<el-input clearable
|
||||
|
||||
size="small"
|
||||
v-model="formIndicators.target"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
<div style="overflow:hidden;box-sizing: border-box;" :style="{height:(!dialogFormVisible?0:274 )+ 'px'}" :class="{boderAndRadius:dialogFormVisible}" class=" drawer-content-left-content">
|
||||
<div style="padding:20px;">
|
||||
<el-form :model="form"
|
||||
ref="form"
|
||||
:rules="formRules">
|
||||
<el-form-item prop="name"
|
||||
label='任务名称'>
|
||||
@ -442,6 +443,8 @@ export default {
|
||||
this.pinglunList = res.data.list
|
||||
},
|
||||
async handleEditTask (type) {
|
||||
this.$refs.form.validate(async v => {
|
||||
if (v) {
|
||||
const params = Object.assign({}, this.form)
|
||||
if (type === 2 || type === 3) params.processRate = this.form.processRate / 100
|
||||
if (type === 3) params.detailId = this.taskInfo.detailId
|
||||
@ -459,6 +462,8 @@ export default {
|
||||
message: res.msg,
|
||||
type: 'success'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
handleGetProgress (arr = []) {
|
||||
const result = this.handleFilter(arr).reduce((result, item) => {
|
||||
@ -534,6 +539,7 @@ export default {
|
||||
i.editProcess = false
|
||||
i.showTask = false
|
||||
})
|
||||
this.$refs.form.resetFields()
|
||||
this.dialogFormVisible = true
|
||||
},
|
||||
handleClose () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user