diff --git a/src/store/getters.js b/src/store/getters.js index 86179852..31855449 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -9,5 +9,6 @@ const getters = { nickName: state => state.user.nickName, baseRoutingUrl: state => state.user.baseRoutingUrl, + businessLevel: state => state.user.businessLevel, } export default getters diff --git a/src/store/modules/user.js b/src/store/modules/user.js index dad6e37a..f6c5c36b 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -15,6 +15,7 @@ const user = { nickName: '', baseRoutingUrl: '', + businessLevel: '', }, mutations: { @@ -51,6 +52,9 @@ const user = { SET_baseRoutingUrl: (state, baseRoutingUrl) => { state.baseRoutingUrl = baseRoutingUrl }, + SET_businessLevel: (state, businessLevel) => { + state.businessLevel = businessLevel + }, }, actions: { @@ -128,6 +132,8 @@ const user = { commit('SET_DEPTNAME', user.deptName) commit('SET_AVATAR', avatar) commit('SET_NICKNAME', user.nickName); + commit('SET_businessLevel', user.businessLevel); + //commit('SET_businessLevel', 'TEST'); getSystemAttachmentUrl().then((resp) => { commit('SET_baseRoutingUrl', resp.msg); diff --git a/src/views/onlineHome/homestead/arbitration/arbitrationDetail.vue b/src/views/onlineHome/homestead/arbitration/arbitrationDetail.vue index 00ef04b1..6ebbc3bd 100644 --- a/src/views/onlineHome/homestead/arbitration/arbitrationDetail.vue +++ b/src/views/onlineHome/homestead/arbitration/arbitrationDetail.vue @@ -15,8 +15,8 @@
-
-

纠纷调请

+
+ @@ -175,6 +166,10 @@ export default { currentUserRole: null, userHouseApplyProposer: [], menuVisible: false, + menuActions: [ + {name: '调解/冲裁员', route: {name:'arbitrationHandlerList', query: {}}}, + {name: '处理过程', route: {name:'arbitrationProcessList', query: {}}}, + ] }; }, created() { @@ -184,8 +179,12 @@ export default { this.getDetail(); this.getUserHouseApplyProposer(); }, + computed: { + allowCUD: function () { + return this.$store.getters.businessLevel == '2' + }, + }, methods: { - // 初始化当前数据, 有ID则查询, 否则新增 getDetail(){ this.reset(); if(this.id) @@ -434,17 +433,9 @@ export default { openMenu() { this.menuVisible = true; }, - openArbitrationProcessPage() - { - this.$router.push({name:'arbitrationProcessList', query: { - arbitrationId: this.arbitrationData.id, - }}); - }, - openArbitrationHandlerPage() - { - this.$router.push({name:'arbitrationHandlerList', query: { - arbitrationId: this.arbitrationData.id, - }}); + onActionSelect(a, index) { + a.route.query.arbitrationId = this.arbitrationData.id; + this.$router.push(a.route); }, }, watch: { diff --git a/src/views/onlineHome/homestead/arbitration/arbitrationHandlerDetail.vue b/src/views/onlineHome/homestead/arbitration/arbitrationHandlerDetail.vue index ad184a9a..02367c66 100644 --- a/src/views/onlineHome/homestead/arbitration/arbitrationHandlerDetail.vue +++ b/src/views/onlineHome/homestead/arbitration/arbitrationHandlerDetail.vue @@ -12,13 +12,13 @@
-
-

纠纷处理员

+
+ @@ -40,7 +40,7 @@
- + @@ -99,6 +99,11 @@ export default { this.initOptions(); this.getDetail(); }, + computed: { + allowCUD: function () { + return this.$store.getters.businessLevel == '2' + }, + }, methods: { // 初始化当前数据, 有ID则查询, 否则新增 getDetail(){ diff --git a/src/views/onlineHome/homestead/arbitration/arbitrationHandlerList.vue b/src/views/onlineHome/homestead/arbitration/arbitrationHandlerList.vue index c7c0fee2..235fb616 100644 --- a/src/views/onlineHome/homestead/arbitration/arbitrationHandlerList.vue +++ b/src/views/onlineHome/homestead/arbitration/arbitrationHandlerList.vue @@ -8,7 +8,7 @@ @click-left="$router.back()" > @@ -40,10 +40,10 @@ @@ -90,6 +90,11 @@ export default { this.initOptions(); this.getList(); }, + computed: { + allowCUD: function () { + return this.$store.getters.businessLevel == '2' + }, + }, methods: { getList(target) { let type = typeof (target); diff --git a/src/views/onlineHome/homestead/arbitration/arbitrationList.vue b/src/views/onlineHome/homestead/arbitration/arbitrationList.vue index 5473b60f..56a47bf7 100644 --- a/src/views/onlineHome/homestead/arbitration/arbitrationList.vue +++ b/src/views/onlineHome/homestead/arbitration/arbitrationList.vue @@ -8,7 +8,7 @@ @click-left="$router.back()" > @@ -45,13 +45,13 @@ @@ -96,6 +96,11 @@ export default { this.initOptions(); this.getList(); }, + computed: { + allowCUD: function () { + return this.$store.getters.businessLevel == '2' + }, + }, methods: { getList(target) { let type = typeof (target); diff --git a/src/views/onlineHome/homestead/arbitration/arbitrationProcessDetail.vue b/src/views/onlineHome/homestead/arbitration/arbitrationProcessDetail.vue index 6dc3a42c..e52b118f 100644 --- a/src/views/onlineHome/homestead/arbitration/arbitrationProcessDetail.vue +++ b/src/views/onlineHome/homestead/arbitration/arbitrationProcessDetail.vue @@ -12,13 +12,13 @@
-
-

纠纷处理过程

+
+ @@ -85,6 +85,11 @@ export default { this.jglxDictionaries = res.data; }); }, + computed: { + allowCUD: function () { + return this.$store.getters.businessLevel == '2' + }, + }, methods: { goAdd(){ window.location = 'supervisionAdd'; diff --git a/src/views/onlineHome/homestead/supervision/supervisionModify.vue b/src/views/onlineHome/homestead/supervision/supervisionModify.vue index d843ebe0..be24f46f 100644 --- a/src/views/onlineHome/homestead/supervision/supervisionModify.vue +++ b/src/views/onlineHome/homestead/supervision/supervisionModify.vue @@ -144,7 +144,7 @@ />
-
+
@@ -190,6 +190,11 @@ this.getTaskGet(); }, + computed: { + allowCUD: function () { + return this.$store.getters.businessLevel == '2' + }, + }, methods: { getTaskGet(){ getSupervision(this.$route.query.id).then(response => { diff --git a/src/views/onlineHome/homestead/task/taskList.vue b/src/views/onlineHome/homestead/task/taskList.vue index c47e8c4b..5219b3bf 100644 --- a/src/views/onlineHome/homestead/task/taskList.vue +++ b/src/views/onlineHome/homestead/task/taskList.vue @@ -11,7 +11,7 @@

任务发布

- + - + - +
@@ -83,6 +83,11 @@ export default { this.taskSubjectStatusStatus = res.data; }); }, + computed: { + allowCUD: function () { + return this.$store.getters.businessLevel == '2' + }, + }, methods: { goAdd(){ window.location = 'taskLssueAdd'; diff --git a/src/views/onlineHome/homestead/task/taskLssueAdd.vue b/src/views/onlineHome/homestead/task/taskLssueAdd.vue index 863a99e3..4eeaeb15 100644 --- a/src/views/onlineHome/homestead/task/taskLssueAdd.vue +++ b/src/views/onlineHome/homestead/task/taskLssueAdd.vue @@ -24,7 +24,7 @@ -
+
@@ -57,6 +57,11 @@ export default { }, created() { + }, + computed: { + allowCUD: function () { + return this.$store.getters.businessLevel == '2' + }, }, methods: { goAdd(){ diff --git a/src/views/onlineHome/homestead/task/taskLssueModify.vue b/src/views/onlineHome/homestead/task/taskLssueModify.vue index cf536969..0a44e4e7 100644 --- a/src/views/onlineHome/homestead/task/taskLssueModify.vue +++ b/src/views/onlineHome/homestead/task/taskLssueModify.vue @@ -24,7 +24,7 @@ -
+
@@ -60,6 +60,11 @@ export default { this.getTaskGet(); this.queryParams.id = this.$route.query.id; }, + computed: { + allowCUD: function () { + return this.$store.getters.businessLevel == '2' + }, + }, methods: { getTaskGet(){ getTaskGet(this.$route.query.id).then(response => { diff --git a/src/views/onlineHome/homestead/task/taskRelease.vue b/src/views/onlineHome/homestead/task/taskRelease.vue index 68651d7b..70d67afd 100644 --- a/src/views/onlineHome/homestead/task/taskRelease.vue +++ b/src/views/onlineHome/homestead/task/taskRelease.vue @@ -18,7 +18,7 @@ :show-checkbox="true" :default-expand-all="true" > -
+
@@ -50,6 +50,11 @@ export default { this.getTree() this.queryParams.id = this.$route.query.id; }, + computed: { + allowCUD: function () { + return this.$store.getters.businessLevel == '2' + }, + }, methods: { getTree(){ getTree().then(response => {