|
@ -354,14 +354,15 @@ export default { |
|
|
type: String, |
|
|
type: String, |
|
|
default: "", |
|
|
default: "", |
|
|
}, |
|
|
}, |
|
|
|
|
|
addType: { |
|
|
|
|
|
type: String, |
|
|
|
|
|
default: "look", |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
addType: "look", |
|
|
|
|
|
|
|
|
|
|
|
btnLoading: false, |
|
|
btnLoading: false, |
|
|
disabled: true, |
|
|
|
|
|
pageLoading: false, |
|
|
pageLoading: false, |
|
|
|
|
|
|
|
|
form: { |
|
|
form: { |
|
@ -431,6 +432,9 @@ export default { |
|
|
|
|
|
|
|
|
computed: { |
|
|
computed: { |
|
|
...mapGetters(["clientHeight", "iframeHeight"]), |
|
|
...mapGetters(["clientHeight", "iframeHeight"]), |
|
|
|
|
|
disabled() { |
|
|
|
|
|
return this.addType != "edit"; |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
watch: { |
|
|
watch: { |
|
@ -516,8 +520,6 @@ export default { |
|
|
this.addType = addType; |
|
|
this.addType = addType; |
|
|
const { form: row } = this; |
|
|
const { form: row } = this; |
|
|
|
|
|
|
|
|
this.disabled = addType != "edit"; |
|
|
|
|
|
|
|
|
|
|
|
if (addType == "look") { |
|
|
if (addType == "look") { |
|
|
this.finishServiceTime = |
|
|
this.finishServiceTime = |
|
|
(row.serviceStartTime && [ |
|
|
(row.serviceStartTime && [ |
|
@ -566,6 +568,7 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
this.handlerClose(); |
|
|
this.handlerClose(); |
|
|
this.getInfo(); |
|
|
this.getInfo(); |
|
|
|
|
|
this.$emit("success"); |
|
|
return this.$message.success("指派成功"); |
|
|
return this.$message.success("指派成功"); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -594,6 +597,7 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
this.handlerClose(); |
|
|
this.handlerClose(); |
|
|
this.getInfo(); |
|
|
this.getInfo(); |
|
|
|
|
|
this.$emit("success"); |
|
|
return this.$message.success("操作成功"); |
|
|
return this.$message.success("操作成功"); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -629,6 +633,7 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
this.handlerClose(); |
|
|
this.handlerClose(); |
|
|
this.getInfo(); |
|
|
this.getInfo(); |
|
|
|
|
|
this.$emit("success"); |
|
|
return this.$message.success("修改成功"); |
|
|
return this.$message.success("修改成功"); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -666,6 +671,8 @@ export default { |
|
|
} else { |
|
|
} else { |
|
|
this.$message.success("取消成功"); |
|
|
this.$message.success("取消成功"); |
|
|
this.getInfo(); |
|
|
this.getInfo(); |
|
|
|
|
|
this.handlerClose(); |
|
|
|
|
|
this.$emit("success"); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.catch((err) => { |
|
|
.catch((err) => { |
|
|