|
@ -13,7 +13,9 @@ |
|
|
<ButtonGradient |
|
|
<ButtonGradient |
|
|
v-if=" |
|
|
v-if=" |
|
|
detailData.eventState != 2 && |
|
|
detailData.eventState != 2 && |
|
|
(detailData.eventType == 2 || detailData.eventType == 6) |
|
|
(detailData.eventType == 1 || |
|
|
|
|
|
detailData.eventType == 2 || |
|
|
|
|
|
detailData.eventType == 6) |
|
|
" |
|
|
" |
|
|
class="title-button" |
|
|
class="title-button" |
|
|
@click="handleNoWrecker" |
|
|
@click="handleNoWrecker" |
|
@ -22,7 +24,10 @@ |
|
|
无需清障 |
|
|
无需清障 |
|
|
</ButtonGradient> |
|
|
</ButtonGradient> |
|
|
<ButtonGradient |
|
|
<ButtonGradient |
|
|
v-if="detailData.eventState != 2 && detailData.eventType == 4" |
|
|
v-if=" |
|
|
|
|
|
detailData.eventState != 2 && |
|
|
|
|
|
(detailData.eventType == 1 || detailData.eventType == 4) |
|
|
|
|
|
" |
|
|
class="title-button" |
|
|
class="title-button" |
|
|
@click="handleClick" |
|
|
@click="handleClick" |
|
|
> |
|
|
> |
|
@ -99,7 +104,7 @@ |
|
|
:on-error="handleUploadError" |
|
|
:on-error="handleUploadError" |
|
|
accept=".jpg,.jpeg,.png,.mp4" |
|
|
accept=".jpg,.jpeg,.png,.mp4" |
|
|
> |
|
|
> |
|
|
<el-button class="input">点击上传</el-button> |
|
|
<el-button class="input">{{ imageName }}</el-button> |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
<ElSelect |
|
|
<ElSelect |
|
|
:disabled="detailData.eventState == 2" |
|
|
:disabled="detailData.eventState == 2" |
|
@ -185,6 +190,8 @@ export default { |
|
|
isFullHeight: false, |
|
|
isFullHeight: false, |
|
|
options: [], |
|
|
options: [], |
|
|
processId: "", |
|
|
processId: "", |
|
|
|
|
|
processName: "", |
|
|
|
|
|
processType: "", |
|
|
context: "", |
|
|
context: "", |
|
|
text: "", |
|
|
text: "", |
|
|
phrasesOptions: [], |
|
|
phrasesOptions: [], |
|
@ -195,14 +202,22 @@ export default { |
|
|
fileList: [], |
|
|
fileList: [], |
|
|
fileType: ["bmp", "gif", "jpg", "jpeg", "png", "mp4", "avi", "xmvb"], |
|
|
fileType: ["bmp", "gif", "jpg", "jpeg", "png", "mp4", "avi", "xmvb"], |
|
|
imageUrl: "", |
|
|
imageUrl: "", |
|
|
|
|
|
imageName: "点击上传", |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
processId(newVlaue, oldValue) { |
|
|
processId(newVlaue, oldValue) { |
|
|
this.options.forEach((element) => { |
|
|
this.options.forEach((element) => { |
|
|
if (newVlaue == element.nodeNode) { |
|
|
if (newVlaue == element.nodeNode) { |
|
|
if (element.commonPhrases) { |
|
|
if (element.commonPhrases != "undefined") { |
|
|
this.phrasesOptions = element.commonPhrase.split(","); |
|
|
console.log("element", element, element.commonPhrases); |
|
|
|
|
|
this.phrasesOptions = |
|
|
|
|
|
element?.commonPhrases.length > 0 |
|
|
|
|
|
? element?.commonPhrases.split(",") |
|
|
|
|
|
: []; |
|
|
|
|
|
console.log("this.phrasesOptions", this.phrasesOptions); |
|
|
|
|
|
this.processName = element.processNode; |
|
|
|
|
|
this.processType = 1; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
@ -215,7 +230,9 @@ export default { |
|
|
async "provideData.detail"(newValue, oldValue) { |
|
|
async "provideData.detail"(newValue, oldValue) { |
|
|
this.provideDetail = newValue; |
|
|
this.provideDetail = newValue; |
|
|
this.eventId = newValue.id; |
|
|
this.eventId = newValue.id; |
|
|
|
|
|
this.getProcess(); |
|
|
await this.disposalRecords(this.eventId); |
|
|
await this.disposalRecords(this.eventId); |
|
|
|
|
|
|
|
|
// console.log("建亭侯", this.provideDetail); |
|
|
// console.log("建亭侯", this.provideDetail); |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
@ -267,6 +284,9 @@ export default { |
|
|
name: item.operatorName, |
|
|
name: item.operatorName, |
|
|
desc: item.context, |
|
|
desc: item.context, |
|
|
source: item.source, |
|
|
source: item.source, |
|
|
|
|
|
processId: item.processId, |
|
|
|
|
|
processName: item.processName, |
|
|
|
|
|
type: item.type, |
|
|
// posts: '淄博发展公司管理员' |
|
|
// posts: '淄博发展公司管理员' |
|
|
}; |
|
|
}; |
|
|
}); |
|
|
}); |
|
@ -276,7 +296,8 @@ export default { |
|
|
// 上传成功 |
|
|
// 上传成功 |
|
|
handleUploadSuccess(res, file) { |
|
|
handleUploadSuccess(res, file) { |
|
|
this.$message.success("上传成功"); |
|
|
this.$message.success("上传成功"); |
|
|
this.imageUrl = res.url; |
|
|
this.imageName = res.originalFilename; |
|
|
|
|
|
this.imageUrl = res.fileName; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 上传失败 |
|
|
// 上传失败 |
|
@ -290,19 +311,36 @@ export default { |
|
|
// 处置过程发送 |
|
|
// 处置过程发送 |
|
|
onSubmit() { |
|
|
onSubmit() { |
|
|
if (this.context || this.imageUrl) { |
|
|
if (this.context || this.imageUrl) { |
|
|
|
|
|
let content = ""; |
|
|
|
|
|
if (this.testRadio == "input") { |
|
|
|
|
|
content = this.context; |
|
|
|
|
|
} else { |
|
|
|
|
|
content = this.imageUrl; |
|
|
|
|
|
} |
|
|
let type = this.containsArrayElement(this.imageUrl, this.fileType); |
|
|
let type = this.containsArrayElement(this.imageUrl, this.fileType); |
|
|
let data = { |
|
|
let data = { |
|
|
eventId: this.eventId, |
|
|
eventId: this.eventId, |
|
|
processId: this.processId, |
|
|
processId: this.processId, |
|
|
context: this.context, |
|
|
processName: this.processName, |
|
|
file: this.imageUrl, |
|
|
context: content, |
|
|
type: type.join(","), |
|
|
// file: this.imageUrl, |
|
|
|
|
|
type: type ? type.join(",") : "text", |
|
|
source: 1, |
|
|
source: 1, |
|
|
|
|
|
processType: this.processType, |
|
|
}; |
|
|
}; |
|
|
postProcess(data).then((result) => { |
|
|
postProcess(data).then((result) => { |
|
|
if (result.code != 200) return []; |
|
|
if (result.code != 200) return []; |
|
|
this.getProcess(); |
|
|
this.getProcess(); |
|
|
this.disposalRecords(this.eventId); |
|
|
this.disposalRecords(this.eventId); |
|
|
|
|
|
this.processId = ""; |
|
|
|
|
|
this.processName = ""; |
|
|
|
|
|
this.testRadio = "input"; |
|
|
|
|
|
this.context = ""; |
|
|
|
|
|
this.imageUrl = ""; |
|
|
|
|
|
this.imageName = "点击上传"; |
|
|
|
|
|
this.fileType = []; |
|
|
|
|
|
this.text = ""; |
|
|
|
|
|
this.$message.success("发送成功"); |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
this.$message.warning("调度指令不能为空"); |
|
|
this.$message.warning("调度指令不能为空"); |
|
|