|
@ -31,7 +31,7 @@ |
|
|
<TimeLine2 :data="timeLine2List" style="flex: 1" /> |
|
|
<TimeLine2 :data="timeLine2List" style="flex: 1" /> |
|
|
<div v-if="!timeLine2List.length" class="no-data">暂无数据</div> |
|
|
<div v-if="!timeLine2List.length" class="no-data">暂无数据</div> |
|
|
<div class="bottom"> |
|
|
<div class="bottom"> |
|
|
<ElSelect v-model="processId" placeholder="请选择关键点"> |
|
|
<ElSelect v-model="processId" clearable placeholder="请选择关键点"> |
|
|
<ElOption |
|
|
<ElOption |
|
|
v-for="item in options" |
|
|
v-for="item in options" |
|
|
:key="item.nodeNode" |
|
|
:key="item.nodeNode" |
|
@ -67,6 +67,15 @@ |
|
|
> |
|
|
> |
|
|
<el-button class="input">点击上传</el-button> |
|
|
<el-button class="input">点击上传</el-button> |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
|
|
|
<ElSelect v-model="context" clearable placeholder="请选择常用语"> |
|
|
|
|
|
<ElOption |
|
|
|
|
|
v-for="item in phrasesOptions" |
|
|
|
|
|
:key="item" |
|
|
|
|
|
:label="item" |
|
|
|
|
|
:value="item" |
|
|
|
|
|
> |
|
|
|
|
|
</ElOption> |
|
|
|
|
|
</ElSelect> |
|
|
<ButtonGradient class="title-button special-button" @click="onSubmit"> |
|
|
<ButtonGradient class="title-button special-button" @click="onSubmit"> |
|
|
发送 |
|
|
发送 |
|
|
</ButtonGradient> |
|
|
</ButtonGradient> |
|
@ -98,14 +107,14 @@ import { |
|
|
postNoSkipClear, |
|
|
postNoSkipClear, |
|
|
} from "@/api/commandDispatch"; |
|
|
} from "@/api/commandDispatch"; |
|
|
|
|
|
|
|
|
import { provideMixin } from "./../../mixin"; |
|
|
// import { provideMixin } from "./../../mixin"; |
|
|
import { timeLine2List } from "./data"; |
|
|
import { timeLine2List } from "./data"; |
|
|
import request from "@/utils/request"; |
|
|
import request from "@/utils/request"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "DisposalProcess", |
|
|
name: "DisposalProcess", |
|
|
inject: ["adpScale"], |
|
|
inject: ["adpScale"], |
|
|
mixins: [provideMixin], |
|
|
// mixins: [provideMixin], |
|
|
components: { |
|
|
components: { |
|
|
Card, |
|
|
Card, |
|
|
ButtonGradient, |
|
|
ButtonGradient, |
|
@ -127,6 +136,7 @@ export default { |
|
|
options: [], |
|
|
options: [], |
|
|
processId: "", |
|
|
processId: "", |
|
|
context: "", |
|
|
context: "", |
|
|
|
|
|
phrasesOptions: [], |
|
|
headers: { |
|
|
headers: { |
|
|
Authorization: "Bearer " + getToken(), |
|
|
Authorization: "Bearer " + getToken(), |
|
|
}, |
|
|
}, |
|
@ -136,6 +146,17 @@ export default { |
|
|
imageUrl: "", |
|
|
imageUrl: "", |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
watch: { |
|
|
|
|
|
processId(newVlaue, oldValue) { |
|
|
|
|
|
this.options.forEach((element) => { |
|
|
|
|
|
if (newVlaue == element.nodeNode) { |
|
|
|
|
|
if (element.commonPhrases) { |
|
|
|
|
|
this.phrasesOptions = element.commonPhrase.split(","); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
filterDistance(distance) { |
|
|
filterDistance(distance) { |
|
|
return (1 / this.adpScale.scaleX) * distance; |
|
|
return (1 / this.adpScale.scaleX) * distance; |
|
@ -158,15 +179,15 @@ export default { |
|
|
isActive: item.status == 1 ? true : false, |
|
|
isActive: item.status == 1 ? true : false, |
|
|
}; |
|
|
}; |
|
|
}); |
|
|
}); |
|
|
this.options = result.data.filter((item) => { |
|
|
|
|
|
item.status == 0; |
|
|
let index = result.data.findLastIndex((item) => item.status == 1); |
|
|
return item; |
|
|
|
|
|
}); |
|
|
this.options = result.data.slice(index + 1); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//处置过程记录 |
|
|
//处置过程记录 |
|
|
async detailChange(id) { |
|
|
async disposalRecords(id) { |
|
|
let processIdMap = {}; |
|
|
let processIdMap = {}; |
|
|
getProcessList(id).then((result) => { |
|
|
getProcessList(id).then((result) => { |
|
|
console.log("处置过程记录", result); |
|
|
console.log("处置过程记录", result); |
|
@ -182,6 +203,7 @@ export default { |
|
|
: null, |
|
|
: null, |
|
|
name: item.operator, |
|
|
name: item.operator, |
|
|
desc: item.context, |
|
|
desc: item.context, |
|
|
|
|
|
source: item.source, |
|
|
// posts: '淄博发展公司管理员' |
|
|
// posts: '淄博发展公司管理员' |
|
|
}; |
|
|
}; |
|
|
}); |
|
|
}); |
|
@ -217,7 +239,7 @@ export default { |
|
|
postProcess(data).then((result) => { |
|
|
postProcess(data).then((result) => { |
|
|
if (result.code != 200) return []; |
|
|
if (result.code != 200) return []; |
|
|
this.getProcess(); |
|
|
this.getProcess(); |
|
|
// this.detailChange(this.eventId); |
|
|
this.disposalRecords(this.eventId); |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
this.$message.warning("调度指令不能为空"); |
|
|
this.$message.warning("调度指令不能为空"); |
|
@ -252,7 +274,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
async mounted() { |
|
|
async mounted() { |
|
|
this.getProcess(); |
|
|
this.getProcess(); |
|
|
// await this.detailChange(this.eventId); |
|
|
await this.disposalRecords(this.eventId); |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
@ -279,7 +301,7 @@ export default { |
|
|
|
|
|
|
|
|
.bottom { |
|
|
.bottom { |
|
|
display: grid; |
|
|
display: grid; |
|
|
grid-template-columns: 0.5fr auto 1fr 90px; |
|
|
grid-template-columns: 0.5fr auto 1fr 130px 90px; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
gap: 6px; |
|
|
gap: 6px; |
|
|
} |
|
|
} |
|
|