From c7db35652fbab52a2697923761ce930d06c8dafc Mon Sep 17 00:00:00 2001
From: wanggongfeng <1305282856@qq.com>
Date: Fri, 6 Mar 2020 20:23:13 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E7=AE=A1=E7=90=86=E6=A0=91?=
=?UTF-8?q?=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/organize/deptofficer.vue | 7 +--
src/views/modules/organize/metasysdept.vue | 53 ++-----------------
.../modules/organize/sysdeptmanagement.vue | 2 +-
3 files changed, 6 insertions(+), 56 deletions(-)
diff --git a/src/views/modules/organize/deptofficer.vue b/src/views/modules/organize/deptofficer.vue
index e5f94cbb..87a47dbc 100644
--- a/src/views/modules/organize/deptofficer.vue
+++ b/src/views/modules/organize/deptofficer.vue
@@ -99,13 +99,10 @@ export default {
dataForm: {
id: ''
},
- deptofficerAddVisible: false,
- pidList: []
+ deptofficerAddVisible: false
}
},
mounted () {
- this.pidList = JSON.parse(this.$route.query.pidList)
- console.log(this.$route.query.deptId)
this.dataForm.deptId = this.$route.query.deptId
this.getDataList()
},
@@ -124,7 +121,7 @@ export default {
backToDeptList () {
this.$emit('refreshDataList')
this.$parent.selectComponent = 'Metasysdept'
- this.$router.push({ path: '/organize-organizedeptroute', query: { pidList: JSON.stringify(this.pidList) } })
+ this.$router.push({ path: '/organize-organizedeptroute' })
},
deptofficerAddHandle (deptId) {
this.deptofficerAddVisible = true
diff --git a/src/views/modules/organize/metasysdept.vue b/src/views/modules/organize/metasysdept.vue
index e3bacb02..5dc608df 100644
--- a/src/views/modules/organize/metasysdept.vue
+++ b/src/views/modules/organize/metasysdept.vue
@@ -26,27 +26,17 @@
{{scope.$index+1}}
-
+
{{ $t('update') }}
{{ $t('delete') }}
- 查看
管理
-
-
@@ -62,8 +52,7 @@ export default {
data () {
return {
mixinViewModuleOptions: {
- getDataListURL: '/cloudAnalysis/metasysdept/page',
- getDataListIsPage: true,
+ getDataListURL: '/cloudAnalysis/metasysdept/list',
deleteURL: '/cloudAnalysis/metasysdept',
deleteIsBatch: true
},
@@ -76,16 +65,8 @@ export default {
}
},
mounted () {
- if (this.$route.query.pidList !== null && this.$route.query.pidList !== undefined) {
- this.pidList = JSON.parse(this.$route.query.pidList)
- this.dataForm.pid = this.pidList[this.pidList.length - 1]
- } else {
- this.dataForm.pid = 0
- }
this.getDataList()
},
- created: function () {
- },
components: {
TableTreeColumn,
AddOrUpdate
@@ -93,35 +74,7 @@ export default {
methods: {
manageHandle (deptId, pid) {
this.$parent.selectComponent = 'Deptofficer'
- this.$router.push({ path: '/organize-organizedeptroute', query: { pidList: JSON.stringify(this.pidList), deptId: deptId } })
- },
- lookHandle (id, pid) {
- this.page = 1
- this.pidList.push(id)
- this.$parent.selectComponent = 'Metasysdept'
- this.$router.push({ path: '/organize-organizedeptroute', query: { pidList: JSON.stringify(this.pidList) } })
- if (this.$route.query.pidList !== null && this.$route.query.pidList !== undefined) {
- this.pidList = JSON.parse(this.$route.query.pidList)
- this.dataForm.pid = this.pidList[this.pidList.length - 1]
- } else {
- this.dataForm.pid = 0
- }
- this.getDataList()
- },
- backToDeptList () {
- this.page = 1
- var m = this.pidList.splice(this.pidList.length - 1, 1)
- m.pop()
- this.$emit('refreshDataList')
- this.$parent.selectComponent = 'Metasysdept'
- this.$router.push({ path: '/organize-organizedeptroute', query: { pidList: JSON.stringify(this.pidList) } })
- if (this.$route.query.pidList !== null && this.$route.query.pidList !== undefined) {
- this.pidList = JSON.parse(this.$route.query.pidList)
- this.dataForm.pid = this.pidList[this.pidList.length - 1]
- } else {
- this.dataForm.pid = 0
- }
- this.getDataList()
+ this.$router.push({ path: '/organize-organizedeptroute', query: { deptId: deptId } })
}
}
}
diff --git a/src/views/modules/organize/sysdeptmanagement.vue b/src/views/modules/organize/sysdeptmanagement.vue
index 2fcbeff6..63a567f4 100644
--- a/src/views/modules/organize/sysdeptmanagement.vue
+++ b/src/views/modules/organize/sysdeptmanagement.vue
@@ -48,7 +48,7 @@ export default {
TableTreeColumn,
AddOrUpdate
},
- methods : {
+ methods: {
active_text (value, row) {
this.$http.put(`/cloudAnalysis/metaSysdeptManager`, row).then(({ data: res }) => {
if (res.code !== 0) {