Commit b2e88cbe by 前端

修改任务克隆

1 parent 8dfc18ee
...@@ -137,6 +137,9 @@ export default { ...@@ -137,6 +137,9 @@ export default {
type: { type: {
type: Boolean, type: Boolean,
}, },
cloneType: {
type: Boolean,
},
errorType: { errorType: {
type: Boolean, type: Boolean,
}, },
...@@ -197,6 +200,8 @@ export default { ...@@ -197,6 +200,8 @@ export default {
console.log(this.type, this.errorType, this.robotNo, this.selectRobot) console.log(this.type, this.errorType, this.robotNo, this.selectRobot)
if (this.type && this.robotNo && this.selectRobot) if (this.type && this.robotNo && this.selectRobot)
this.getlistDepartmentTree(this.robotNo) this.getlistDepartmentTree(this.robotNo)
if (this.cloneType && this.robotNo && this.selectRobot)
this.getlistDepartmentTree(this.robotNo)
if (this.errorType && this.robotNo) this.getlistDepartmentTree(this.robotNo) if (this.errorType && this.robotNo) this.getlistDepartmentTree(this.robotNo)
}, },
methods: { methods: {
......
...@@ -337,6 +337,7 @@ ...@@ -337,6 +337,7 @@
'missionList' + (itm.taskid || itm.id) + 'robot' 'missionList' + (itm.taskid || itm.id) + 'robot'
" "
:type="isEditor" :type="isEditor"
:cloneType="isClone"
:errorType="isSubmit" :errorType="isSubmit"
:robotNo="itm.robotMerchantNo" :robotNo="itm.robotMerchantNo"
:selectRobot="itm.enterMicroRobot" :selectRobot="itm.enterMicroRobot"
...@@ -1370,8 +1371,11 @@ export default { ...@@ -1370,8 +1371,11 @@ export default {
this.getEditTaskList() this.getEditTaskList()
this.$nextTick(() => { this.$nextTick(() => {
this.creatEdtior() this.creatEdtior()
this.cloneList = this.taskList // this.cloneList = this.taskList
}) })
this.cloneList = this.taskList
console.log(this.taskList, '==')
console.log(this.cloneList, '==')
return this.taskList return this.taskList
}, },
// 任务日期变化重新创建富文本 // 任务日期变化重新创建富文本
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!