diff --git a/src/views/modules/events/issue-process-detail-view.vue b/src/views/modules/events/issue-process-detail-view.vue
index 1e57669a..71dfb672 100644
--- a/src/views/modules/events/issue-process-detail-view.vue
+++ b/src/views/modules/events/issue-process-detail-view.vue
@@ -96,6 +96,17 @@
style="width: 720px;"
:model="dataForm"
:rules="dataRule">
+
+
+
+
{
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ this.options = res.data.options
+ })
+ .catch(() => {})
+ },
+ changeHandle (value, selectedData) {
+ this.dataForm.handlerDept = this.$refs['name'].getCheckedNodes()[0].label
+ this.dataForm.handlerDeptId = this.$refs['name'].getCheckedNodes()[0].value
+ },
initBmap (latitude, longitude) {
this.map = new BMap.Map('map')
const point = new BMap.Point(longitude, latitude)
diff --git a/src/views/modules/events/issue-review-detail-view.vue b/src/views/modules/events/issue-review-detail-view.vue
index ff6f4e83..a71b1592 100644
--- a/src/views/modules/events/issue-review-detail-view.vue
+++ b/src/views/modules/events/issue-review-detail-view.vue
@@ -40,6 +40,17 @@
处理操作
+
+
+
+
审核通过
驳回
@@ -78,6 +89,7 @@ export default {
nickName: '',
categoryId: '',
advice: '',
+ handlerDeptIdRule: '',
eventState: '4'
},
isAble: false,
@@ -85,11 +97,13 @@ export default {
previewImgList: [],
categoryVisible: true,
urls: [],
- categoryOptions: []
+ categoryOptions: [],
+ options: []
}
},
mounted () {
this.dataForm.id = this.$route.query.id
+ this.getOptions()
this.init()
},
computed: {
@@ -103,6 +117,9 @@ export default {
],
advice: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
+ ],
+ handlerDeptIdRule: [
+ { required: true, message: this.$t('validate.required'), trigger: 'blur' }
]
}
}
@@ -128,6 +145,21 @@ export default {
}
})
},
+ 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(() => {})
+ },
+ changeHandle (value, selectedData) {
+ this.dataForm.handlerDept = this.$refs['name'].getCheckedNodes()[0].label
+ this.dataForm.handlerDeptId = this.$refs['name'].getCheckedNodes()[0].value
+ },
getCategoryList () {
return this.$http.get('/events/category/list').then(({ data: res }) => {
if (res.code !== 0) {
@@ -176,7 +208,7 @@ export default {
// 表单提交
dataFormSubmitHandle: debounce(function () {
this.dataForm.categoryId = this.categoryIds[this.categoryIds.length - 1]
- console.log(this.dataForm.categoryId)
+ console.log(this.dataForm)
this.$refs['dataForm'].validate((valid) => {
if (!valid) {
return false
diff --git a/src/views/modules/events/item-deal-detail-view.vue b/src/views/modules/events/item-deal-detail-view.vue
index 63eb2b45..8e112949 100644
--- a/src/views/modules/events/item-deal-detail-view.vue
+++ b/src/views/modules/events/item-deal-detail-view.vue
@@ -108,10 +108,20 @@
style="width: 720px;"
:model="dataForm"
:rules="dataRule">
+
+
+
+
+ placeholder="请选择" @visible-change="visibleChange">
{
+ 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)