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