|
@@ -244,6 +244,16 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="任务来源" v-if="eventStatusButton=='ld'">
|
|
|
+ <el-select v-model="sendTaskSource" placeholder="请选择任务来源!" clearable>
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.task_source"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="联动标题" v-if="eventStatusButton=='ld'">
|
|
|
<el-input v-model="sendTaskTitle" placeholder="请输入联动标题"/>
|
|
|
</el-form-item>
|
|
@@ -253,21 +263,24 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="联动部门" v-if="eventStatusButton=='ld'">
|
|
|
- <el-checkbox v-model="deptExpand" @change="handleCheckedTreeExpand($event, 'dept')">展开/折叠</el-checkbox>
|
|
|
- <!-- <el-checkbox v-model="deptNodeAll" @change="handleCheckedTreeNodeAll($event, 'dept')">全选/全不选</el-checkbox>-->
|
|
|
- <!-- <el-checkbox v-model="deptCheckStrictly" @change="handleCheckedTreeConnect($event, 'dept')">父子联动</el-checkbox>-->
|
|
|
+ <el-input
|
|
|
+ placeholder="输入关键字进行过滤"
|
|
|
+ v-model="filterText">
|
|
|
+ </el-input>
|
|
|
<el-tree
|
|
|
class="tree-border"
|
|
|
style="height: 20vh; overflow-y:scroll"
|
|
|
:data="deptOptionsLiandong"
|
|
|
show-checkbox
|
|
|
- default-expand-all
|
|
|
ref="LiandongDept"
|
|
|
node-key="id"
|
|
|
- :check-strictly="!deptCheckStrictly"
|
|
|
+ :check-strictly="true"
|
|
|
+ :filter-node-method="filterNode"
|
|
|
+ :accordion="true"
|
|
|
empty-text="加载中,请稍候"
|
|
|
:props="defaultProps"
|
|
|
></el-tree>
|
|
|
+ <!-- default-expand-all-->
|
|
|
</el-form-item>
|
|
|
<el-form-item label="关联预案" v-if="eventStatusButton=='qs'">
|
|
|
<el-select v-model="sendGuanLianYuAn" placeholder="请选择关联预案!" clearable>
|
|
@@ -826,6 +839,12 @@ import {
|
|
|
} from '@/api/system/dept'
|
|
|
|
|
|
export default {
|
|
|
+ dicts: ['task_source'],
|
|
|
+ watch: {
|
|
|
+ filterText(val) {
|
|
|
+ this.$refs.LiandongDept.filter(val);
|
|
|
+ }
|
|
|
+ },
|
|
|
components: {
|
|
|
vheader,
|
|
|
vBottomMenu,
|
|
@@ -834,6 +853,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ filterText:'',//树搜索
|
|
|
/** *****************事件流程***************************/
|
|
|
deptNameitem: '签收部门',
|
|
|
sendDeptId: null,//签收部门/发起部门
|
|
@@ -841,6 +861,7 @@ export default {
|
|
|
sendEventType: null,//事件类型
|
|
|
sendHuoZaiBanJing: null,//火灾报告
|
|
|
sendGuanLianYuAn: null,//关联预案
|
|
|
+ sendTaskSource:null,//任务来源
|
|
|
sendTaskTitle: null,//联动标题
|
|
|
sendTaskContent: null,//联动内容
|
|
|
sendLianDongDept: [],//联动部门
|
|
@@ -850,9 +871,6 @@ export default {
|
|
|
deptOptionsLiandong: [],//联动部门
|
|
|
eventStatusButton: null,//流程按钮标识
|
|
|
eventConfirmTitle: null,//弹窗标题 ---签收 误报 重复
|
|
|
- deptExpand: true,//展开/折叠
|
|
|
- deptNodeAll: false,//全选/全不选
|
|
|
- deptCheckStrictly: false,//父子联动
|
|
|
defaultProps: {
|
|
|
children: 'children',
|
|
|
label: 'label'
|
|
@@ -1145,6 +1163,7 @@ export default {
|
|
|
this.longitude = null
|
|
|
this.latitude = null
|
|
|
this.sendTaskTitle = null
|
|
|
+ this.sendTaskSource = null
|
|
|
this.sendTaskContent = null
|
|
|
this.sendLianDongDept = []
|
|
|
this.eventTypeList = []//事件类型列表
|
|
@@ -1162,6 +1181,7 @@ export default {
|
|
|
this.sendHuoZaiBanJing = null
|
|
|
this.sendGuanLianYuAn = null
|
|
|
this.sendTaskTitle = null
|
|
|
+ this.sendTaskSource = null
|
|
|
this.sendTaskContent = null
|
|
|
this.sendLianDongDept = []
|
|
|
this.eventTypeList = []//事件类型列表
|
|
@@ -1343,6 +1363,26 @@ export default {
|
|
|
this.sendLianDongDept.push({'taskDeptId': array[i].id, 'taskDeptName': array[i].label})
|
|
|
}
|
|
|
}
|
|
|
+ if(this.sendTaskSource==""||this.sendTaskSource==null){
|
|
|
+ this.$message.error(`请选择任务来源!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.sendTaskContent==""||this.sendTaskContent==null){
|
|
|
+ this.$message.error(`请输入任务内容!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.sendTaskTitle==""||this.sendTaskTitle==null){
|
|
|
+ this.$message.error(`请输入任务标题!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.sendLianDongDept==""||this.sendLianDongDept==null){
|
|
|
+ this.$message.error(`请选择任务联动部门!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(this.sendDeptId==""||this.sendDeptId==null||this.sendDeptName==""||this.sendDeptName==null){
|
|
|
+ this.$message.error(`请选择任务发起部门!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
let param = {
|
|
|
sendDeptId: this.sendDeptId,
|
|
|
sendDept: this.sendDeptName,
|
|
@@ -1350,6 +1390,7 @@ export default {
|
|
|
longitude: this.longitude,
|
|
|
latitude: this.latitude,
|
|
|
taskTitle: this.sendTaskTitle,
|
|
|
+ taskSource: this.sendTaskSource,
|
|
|
taskContent: this.sendTaskContent,
|
|
|
taskDept: this.sendLianDongDept
|
|
|
}
|
|
@@ -1357,14 +1398,12 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success(`联动发起成功!`)
|
|
|
this.refreshEventDialog(this.eventCode)
|
|
|
- this.sendLianDongDept=[]
|
|
|
+ this.cancelEventConfirm_send()
|
|
|
this.showEventConfirm = false
|
|
|
}
|
|
|
})
|
|
|
|
|
|
} else if (eventStatus == 'gd') {
|
|
|
- console.log(this.table1)
|
|
|
- console.log(this.table2)
|
|
|
//事件处理流程--归档
|
|
|
let param = {
|
|
|
eventCode: this.eventCode,
|
|
@@ -1396,6 +1435,12 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
+ if(eventStatus == 'qs'||eventStatus == 'wb'||eventStatus == 'cf'){
|
|
|
+ if(this.sendDeptId==""||this.sendDeptId==null||this.sendDeptName==""||this.sendDeptName==null){
|
|
|
+ this.$message.error(`请选择部门!`)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
//事件处理流程
|
|
|
let param = {
|
|
|
eventCode: this.eventCode,
|
|
@@ -1421,42 +1466,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- // 树权限(展开/折叠)
|
|
|
- handleCheckedTreeExpand(value, type) {
|
|
|
- if (type == 'menu') {
|
|
|
- let treeList = this.menuOptions
|
|
|
- for (let i = 0; i < treeList.length; i++) {
|
|
|
- this.$refs.menu.store.nodesMap[treeList[i].id].expanded = value
|
|
|
- }
|
|
|
- } else if (type == 'menuVisu') {
|
|
|
- let treeList = this.menuVisuOptions
|
|
|
- for (let i = 0; i < treeList.length; i++) {
|
|
|
- this.$refs.menuVisu.store.nodesMap[treeList[i].id].expanded = value
|
|
|
- }
|
|
|
- } else if (type == 'dept') {
|
|
|
- let treeList = this.deptOptions
|
|
|
- for (let i = 0; i < treeList.length; i++) {
|
|
|
- this.$refs.LiandongDept.store.nodesMap[treeList[i].id].expanded = value
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- // 树权限(全选/全不选)
|
|
|
- handleCheckedTreeNodeAll(value, type) {
|
|
|
- if (type == 'menu') {
|
|
|
- this.$refs.menu.setCheckedNodes(value ? this.menuOptions : [])
|
|
|
- } else if (type == 'menuVisu') {
|
|
|
- this.$refs.menuVisu.setCheckedNodes(value ? this.menuVisuOptions : [])
|
|
|
- } else if (type == 'dept') {
|
|
|
- this.$refs.LiandongDept.setCheckedNodes(value ? this.deptOptions : [])
|
|
|
- }
|
|
|
- },
|
|
|
- // 树权限(父子联动)
|
|
|
- handleCheckedTreeConnect(value, type) {
|
|
|
- if (type == 'menu') {
|
|
|
- this.menuCheckStrictly = value ? true : false
|
|
|
- } else if (type == 'dept') {
|
|
|
- this.deptCheckStrictly = value ? true : false
|
|
|
- }
|
|
|
+ filterNode(value, data) {
|
|
|
+ //树搜索
|
|
|
+ if (!value) return true;
|
|
|
+ return data.label.indexOf(value) !== -1;
|
|
|
},
|
|
|
sendEventLog() {
|
|
|
//日志发送
|