From 11d1d1b2b8eff6eb50e8c16a16dd711a4eba79ea Mon Sep 17 00:00:00 2001
From: wanggongfeng <1305282856@qq.com>
Date: Fri, 15 May 2020 17:20:25 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E8=AE=AE=E9=A2=98=E7=AE=A1=E7=90=86=E3=80=91=E3=80=90=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E6=93=8D=E4=BD=9C=E4=BA=BA=E9=83=A8=E9=97=A8=E4=B8=8B?=
=?UTF-8?q?=E6=8B=89=E9=80=89=E9=A1=B9=E3=80=91-=E7=8E=8B=E5=85=AC?=
=?UTF-8?q?=E5=B3=B0-2020-05-15?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../events/issue-process-detail-view.vue | 34 +++++++++++-
.../events/issue-review-detail-view.vue | 36 ++++++++++++-
.../modules/events/item-deal-detail-view.vue | 54 +++++++++++++++++--
3 files changed, 118 insertions(+), 6 deletions(-)
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)