b2176b3b by 任超

style:监管

1 parent c3cc67e4
1 <template> 1 <template>
2 <!-- 编辑 --> 2 <!-- 编辑 -->
3 <el-dialog top="0" :close-on-click-modal="false" custom-class="editDialogBox" :visible.sync="dialogVisible" 3 <el-dialog :close-on-click-modal="false" custom-class="dialogBox editDialogBox" :visible.sync="dialogVisible"
4 width="75%"> 4 width="75%">
5 <div slot="title" class="dialog_title" ref="dialogTitle"> 5 <div slot="title" class="dialog_title" ref="dialogTitle">
6 <b>{{ title }}</b> 6 <b>{{ title }}</b>
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
92 <el-button type="primary" plain @click="submitForm" v-if="!Edit" :loading="saveloding" 92 <el-button type="primary" plain @click="submitForm" v-if="!Edit" :loading="saveloding"
93 :disabled="JSON.stringify(this.$store.state.business.rules) === '{}'">确定 93 :disabled="JSON.stringify(this.$store.state.business.rules) === '{}'">确定
94 </el-button> 94 </el-button>
95 <el-button type="primary" plain @click="closeDialog()">关闭</el-button> 95 <el-button @click="closeDialog()">关闭</el-button>
96 </div> 96 </div>
97 </div> 97 </div>
98 </el-dialog> 98 </el-dialog>
...@@ -222,6 +222,9 @@ export default { ...@@ -222,6 +222,9 @@ export default {
222 } 222 }
223 </script> 223 </script>
224 <style scoped lang="scss"> 224 <style scoped lang="scss">
225 @import "~@/styles/mixin.scss";
226 @import "~@/styles/dialogBox.scss";
227
225 .editForm { 228 .editForm {
226 /deep/.el-textarea__inner { 229 /deep/.el-textarea__inner {
227 border: none !important; 230 border: none !important;
......
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
17 </div> 17 </div>
18 <el-dropdown-menu slot="dropdown"> 18 <el-dropdown-menu slot="dropdown">
19 <el-dropdown-item command="a">个人中心</el-dropdown-item> 19 <el-dropdown-item command="a">个人中心</el-dropdown-item>
20 <el-dropdown-item command="b">退出</el-dropdown-item>
20 </el-dropdown-menu> 21 </el-dropdown-menu>
21 </el-dropdown> 22 </el-dropdown>
22 <svg-icon class="shutdown" icon-class='shutdown' />
23 </div> 23 </div>
24 </div> 24 </div>
25 </div> 25 </div>
...@@ -44,13 +44,10 @@ export default { ...@@ -44,13 +44,10 @@ export default {
44 themeChange (val) { 44 themeChange (val) {
45 this.$store.dispatch('app/updateTheme', val) 45 this.$store.dispatch('app/updateTheme', val)
46 }, 46 },
47 searchMessageCenter () {
48 this.$router.push({ name: 'messagecenter' })
49 },
50 handleCommand (command) { 47 handleCommand (command) {
51 if (command == 'a') { 48 if (command == 'a') {
52 //个人中心 49 } else {
53 this.$router.push({ name: 'personal' }) 50
54 } 51 }
55 } 52 }
56 } 53 }
......
...@@ -7,6 +7,10 @@ const getters = { ...@@ -7,6 +7,10 @@ const getters = {
7 avatar: state => state.user.avatar, 7 avatar: state => state.user.avatar,
8 name: state => state.user.name, 8 name: state => state.user.name,
9 permission_routes: state => state.permission.routes, 9 permission_routes: state => state.permission.routes,
10 addRoutes: state => state.permission.addRoutes 10 addRoutes: state => state.permission.addRoutes,
11 // business
12 rules: state => state.business.rules,
13 Edit: state => state.business.Edit,
14 businessInfo: state => state.dictionaries.businessInfo
11 } 15 }
12 export default getters 16 export default getters
......
1 const state = {
2 rules: {},
3 initRules: {},
4 subRules: {},
5 Edit: false
6 }
7
8 const mutations = {
9 SET_RULES: (state, data) => {
10 state.rules = data
11 },
12 SET_INITRULES: (state, data) => {
13 state.initRules = data
14 },
15 SET_SUBRULES: (state, data) => {
16 state.subRules = data
17 },
18 SET_EDIT: (state) => {
19 state.Edit = true
20 },
21 SET_REPORTEDIT: (state) => {
22 state.Edit = false
23 }
24 }
25
26 const actions = {
27 setRules ({ commit }, data) {
28 commit('SET_RULES', data)
29 },
30 setInitRules ({ commit }, data) {
31 commit('SET_INITRULES', data)
32 },
33 setSubRules({ commit }, data) {
34 commit('SET_SUBRULES', data)
35 },
36 setEdit({ commit }) {
37 commit('SET_EDIT')
38 },
39 setReportLogEdit({ commit }) {
40 commit('SET_REPORTEDIT')
41 }
42 }
43
44 export default {
45 namespaced: true,
46 state,
47 mutations,
48 actions
49 }
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
75 </lb-table> 75 </lb-table>
76 </div> 76 </div>
77 <!-- 编辑 --> 77 <!-- 编辑 -->
78 <edit-dialog v-model="isEdit" /> 78 <dataDetails ref="editLog" :bsmSjsb="bsmSjsb" :diaData="diaData" />
79 </div> 79 </div>
80 </template> 80 </template>
81 81
...@@ -85,16 +85,18 @@ ...@@ -85,16 +85,18 @@
85 import data from "./data" 85 import data from "./data"
86 // 引入table混入方法 86 // 引入table混入方法
87 import tableMixin from '@/mixins/tableMixin.js' 87 import tableMixin from '@/mixins/tableMixin.js'
88 // 引入弹框组件 88 // 引入详情组件
89 import editDialog from './components/detailDialog.vue' 89 import dataDetails from '@/components/dataDetails/edit-dialog'
90 export default { 90 export default {
91 name: "jsbwcx", 91 name: "jsbwcx",
92 mixins: [tableMixin], 92 mixins: [tableMixin],
93 components: { 93 components: {
94 editDialog, 94 dataDetails
95 }, 95 },
96 data () { 96 data () {
97 return { 97 return {
98 diaData: {},
99 bsmSjsb: '',
98 // 开始结束日期限制 100 // 开始结束日期限制
99 pickerOptionsStart: { 101 pickerOptionsStart: {
100 disabledDate: (time) => { 102 disabledDate: (time) => {
...@@ -115,7 +117,6 @@ export default { ...@@ -115,7 +117,6 @@ export default {
115 } 117 }
116 } 118 }
117 }, 119 },
118 isEdit: false,
119 // 表格数据 120 // 表格数据
120 form: { 121 form: {
121 pcode: '', // 行政区 122 pcode: '', // 行政区
...@@ -225,7 +226,7 @@ export default { ...@@ -225,7 +226,7 @@ export default {
225 }, 226 },
226 // 详情 227 // 详情
227 handleEdit (row) { 228 handleEdit (row) {
228 this.isEdit = true 229 this.$refs.editLog.isShow()
229 } 230 }
230 } 231 }
231 } 232 }
......
...@@ -65,7 +65,9 @@ ...@@ -65,7 +65,9 @@
65 </lb-table> 65 </lb-table>
66 </div> 66 </div>
67 <!-- 引入详情组件 --> 67 <!-- 引入详情组件 -->
68 <detailDialog v-model="isShow" /> 68 <!-- <detailDialog v-model="isShow" /> -->
69 <!-- 编辑 -->
70 <dataDetails ref="editLog" :bsmSjsb="bsmSjsb" :diaData="diaData" />
69 </div> 71 </div>
70 </template> 72 </template>
71 73
...@@ -76,16 +78,18 @@ import data from "./data" ...@@ -76,16 +78,18 @@ import data from "./data"
76 // 引入表格混入方法 78 // 引入表格混入方法
77 import tableMixin from '@/mixins/tableMixin.js' 79 import tableMixin from '@/mixins/tableMixin.js'
78 // 引入详情弹框 80 // 引入详情弹框
79 import detailDialog from './components/detailDialog' 81 import dataDetails from '@/components/dataDetails/edit-dialog'
80 export default { 82 export default {
81 name: "sbbwcx", 83 name: "sbbwcx",
82 mixins: [tableMixin], 84 mixins: [tableMixin],
83 // 注册组件 85 // 注册组件
84 components: { 86 components: {
85 detailDialog 87 dataDetails
86 }, 88 },
87 data () { 89 data () {
88 return { 90 return {
91 bsmSjsb: '',
92 diaData: {},
89 isShow: false, 93 isShow: false,
90 // 开始结束日期限制 94 // 开始结束日期限制
91 pickerOptionsStart: { 95 pickerOptionsStart: {
...@@ -206,7 +210,8 @@ export default { ...@@ -206,7 +210,8 @@ export default {
206 handleEscalation () { }, 210 handleEscalation () { },
207 // 详情 211 // 详情
208 handleDetail (row) { 212 handleDetail (row) {
209 this.isShow = true 213 // this.isShow = true
214 this.$refs.editLog.isShow()
210 } 215 }
211 } 216 }
212 } 217 }
......