|
|
@ -108,10 +108,20 @@ |
|
|
|
style="width: 720px;" |
|
|
|
:model="dataForm" |
|
|
|
:rules="dataRule"> |
|
|
|
<el-form-item label="操作人部门" prop="handlerDeptIdRule"> |
|
|
|
<el-cascader |
|
|
|
ref="name" |
|
|
|
v-model="dataForm.handlerDeptIdRule" |
|
|
|
:options="options" |
|
|
|
:props="{ multiple: false, checkStrictly: true }" |
|
|
|
@change="changeHandle" |
|
|
|
> |
|
|
|
</el-cascader> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="处理:" |
|
|
|
prop="handleCategory"> |
|
|
|
<el-select v-model="postDataForm.handleCategory" |
|
|
|
placeholder="请选择"> |
|
|
|
placeholder="请选择" @visible-change="visibleChange"> |
|
|
|
<el-option v-for="handleResultDTO in dataForm.handleResultDTOS" |
|
|
|
:key="handleResultDTO.processResult" |
|
|
|
:label="handleResultDTO.processName" |
|
|
@ -252,7 +262,8 @@ export default { |
|
|
|
outHandleAdvice: '', |
|
|
|
handleCategory: '', |
|
|
|
issueLatitude: '', |
|
|
|
issueLongitude: '' |
|
|
|
issueLongitude: '', |
|
|
|
handlerDeptIdRule: '' |
|
|
|
}, |
|
|
|
isAble: false, |
|
|
|
previewImgList: [], |
|
|
@ -271,11 +282,13 @@ export default { |
|
|
|
}, |
|
|
|
deptResultDTOSVisible: false, |
|
|
|
evaluateDeptDTOSVisible: false, |
|
|
|
timeLineList: [] |
|
|
|
timeLineList: [], |
|
|
|
options: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted () { |
|
|
|
this.dataForm.id = this.$route.query.id |
|
|
|
this.getOptions() |
|
|
|
this.init() |
|
|
|
}, |
|
|
|
filters: { |
|
|
@ -342,6 +355,9 @@ export default { |
|
|
|
], |
|
|
|
evaluateDeptDTOS: [ |
|
|
|
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } |
|
|
|
], |
|
|
|
handlerDeptIdRule: [ |
|
|
|
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
@ -379,6 +395,38 @@ export default { |
|
|
|
backToItemDeal () { |
|
|
|
this.$parent.selectComponent = 'ItemDeal' |
|
|
|
}, |
|
|
|
getOptions () { |
|
|
|
this.$http |
|
|
|
.get(`/sys/user/deptOptions/getDeptAuthByUser`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.options = res.data.options |
|
|
|
}) |
|
|
|
.catch(() => {}) |
|
|
|
}, |
|
|
|
visibleChange (val) { |
|
|
|
if (this.dataForm.handleResultDTOS.length === 0 && this.dataForm.handlerDeptIdRule === '' && val === true) { |
|
|
|
return this.$message.error('请先选择操作人部门!') |
|
|
|
} |
|
|
|
}, |
|
|
|
changeHandle (value, selectedData) { |
|
|
|
this.postDataForm.handlerDept = this.$refs['name'].getCheckedNodes()[0].label |
|
|
|
this.postDataForm.handlerDeptId = this.$refs['name'].getCheckedNodes()[0].value |
|
|
|
this.getHandleResultDTOS() |
|
|
|
}, |
|
|
|
// 获取处理项 |
|
|
|
getHandleResultDTOS () { |
|
|
|
this.$http.post(`/events/item/getHandleResultDTOS`, { itemId: this.dataForm.id, deptId: this.postDataForm.handlerDeptId }).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.dataForm.handleResultDTOS = res.data.handleResultDTOS |
|
|
|
this.dataForm.deptResultDTOS = res.data.deptResultDTOS |
|
|
|
this.dataForm.evaluateDeptDTOS = res.data.evaluateDeptDTOS |
|
|
|
}).catch(() => { }) |
|
|
|
}, |
|
|
|
initBmap (latitude, longitude) { |
|
|
|
this.map = new BMap.Map('map') |
|
|
|
const point = new BMap.Point(longitude, latitude) |
|
|
|