|
|
@ -1,8 +1,8 @@ |
|
|
|
<!-- |
|
|
|
* @Author: yanLu xgktv007@163.com |
|
|
|
* @Date: 2023-09-05 10:21:34 |
|
|
|
* @LastEditors: yanLu xgktv007@163.com |
|
|
|
* @LastEditTime: 2023-09-05 10:21:34 |
|
|
|
* @LastEditors: mk 2403457699@qq.com |
|
|
|
* @LastEditTime: 2023-09-18 17:16:40 |
|
|
|
* @Description: 事件转办表单 |
|
|
|
* |
|
|
|
--> |
|
|
@ -91,7 +91,10 @@ export default { |
|
|
|
timeLimit: [ |
|
|
|
{ required: true, message: "办结时限不能为空", trigger: "blur" }, |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
selCateObj:{ |
|
|
|
id:"" |
|
|
|
}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
components: {}, |
|
|
@ -123,9 +126,10 @@ export default { |
|
|
|
this.getCategoryList(); |
|
|
|
if (this.eventId) { |
|
|
|
this.eventDetailCopy = JSON.parse(JSON.stringify(this.eventDetailData)); |
|
|
|
console.log(this.eventDetailCopy); |
|
|
|
// 这一步接收到eventDetailCopy在这里回填 |
|
|
|
if (this.eventDetailCopy.parentCategoryId && this.eventDetailCopy.categoryId) { |
|
|
|
this.selCateObj = this.eventDetailCopy.selCateObj |
|
|
|
this.selCateObj.id = this.eventDetailCopy.categoryId |
|
|
|
this.formData.categoryId = this.eventDetailCopy.categoryId |
|
|
|
this.selCategoryArray.push(this.eventDetailCopy.parentCategoryId, this.eventDetailCopy.categoryId) |
|
|
|
} |
|
|
@ -177,6 +181,7 @@ export default { |
|
|
|
if (this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0]) { |
|
|
|
this.selCateObj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|
|
|
this.formData.categoryId = this.selCateObj.id |
|
|
|
console.log(this.formData.categoryId,'this.formData.categoryId'); |
|
|
|
} else { |
|
|
|
this.selCateObj = {} |
|
|
|
} |
|
|
@ -201,6 +206,7 @@ export default { |
|
|
|
if (!valid) { |
|
|
|
app.util.validateRule(messageObj); |
|
|
|
} else { |
|
|
|
console.log(this.selCateObj); |
|
|
|
if (!this.selCateObj || !this.selCateObj.id) { |
|
|
|
this.$message.error("请选择事件分类"); |
|
|
|
return false; |
|
|
|