@@ -164,6 +193,9 @@ import {updateRepair} from "@/api/repair/tickets/Tickets";
export default {
name: "UpdateRepair",
+ props:{
+ userRole: String
+ },
data() {
return {
dialogVisible: false,
@@ -176,11 +208,20 @@ export default {
id: null,
nowRepairId: null,
nowRepairName: null,
- }
+ image: null,
+ remark: null
+ },
}
},
methods: {
async open(row) {
+ this.formData = {
+ id: null,
+ nowRepairId: null,
+ nowRepairName: null,
+ image: null,
+ remark: null
+ }
this.dialogVisible = true
if (row) {
try {
@@ -204,6 +245,12 @@ export default {
this.$modal.msgError("没有指派员工")
return
}
+ if (this.formData.image){
+ const data = this.formData.image.split(",")
+ this.formData.image = data.map(item => {
+ return item.replace(process.env.VUE_APP_FILE_API, "")
+ }).join(",")
+ }
this.initFormData()
await updateRepair(this.formData)
this.$modal.msgSuccess("指派成功")