b2176b3b by 任超

style:监管

1 parent c3cc67e4
<template>
<!-- 编辑 -->
<el-dialog top="0" :close-on-click-modal="false" custom-class="editDialogBox" :visible.sync="dialogVisible"
<el-dialog :close-on-click-modal="false" custom-class="dialogBox editDialogBox" :visible.sync="dialogVisible"
width="75%">
<div slot="title" class="dialog_title" ref="dialogTitle">
<b>{{ title }}</b>
......@@ -92,7 +92,7 @@
<el-button type="primary" plain @click="submitForm" v-if="!Edit" :loading="saveloding"
:disabled="JSON.stringify(this.$store.state.business.rules) === '{}'">确定
</el-button>
<el-button type="primary" plain @click="closeDialog()">关闭</el-button>
<el-button @click="closeDialog()">关闭</el-button>
</div>
</div>
</el-dialog>
......@@ -222,6 +222,9 @@ export default {
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/dialogBox.scss";
.editForm {
/deep/.el-textarea__inner {
border: none !important;
......
......@@ -17,9 +17,9 @@
</div>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="a">个人中心</el-dropdown-item>
<el-dropdown-item command="b">退出</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<svg-icon class="shutdown" icon-class='shutdown' />
</div>
</div>
</div>
......@@ -44,13 +44,10 @@ export default {
themeChange (val) {
this.$store.dispatch('app/updateTheme', val)
},
searchMessageCenter () {
this.$router.push({ name: 'messagecenter' })
},
handleCommand (command) {
if (command == 'a') {
//个人中心
this.$router.push({ name: 'personal' })
} else {
}
}
}
......
......@@ -7,6 +7,10 @@ const getters = {
avatar: state => state.user.avatar,
name: state => state.user.name,
permission_routes: state => state.permission.routes,
addRoutes: state => state.permission.addRoutes
addRoutes: state => state.permission.addRoutes,
// business
rules: state => state.business.rules,
Edit: state => state.business.Edit,
businessInfo: state => state.dictionaries.businessInfo
}
export default getters
......
const state = {
rules: {},
initRules: {},
subRules: {},
Edit: false
}
const mutations = {
SET_RULES: (state, data) => {
state.rules = data
},
SET_INITRULES: (state, data) => {
state.initRules = data
},
SET_SUBRULES: (state, data) => {
state.subRules = data
},
SET_EDIT: (state) => {
state.Edit = true
},
SET_REPORTEDIT: (state) => {
state.Edit = false
}
}
const actions = {
setRules ({ commit }, data) {
commit('SET_RULES', data)
},
setInitRules ({ commit }, data) {
commit('SET_INITRULES', data)
},
setSubRules({ commit }, data) {
commit('SET_SUBRULES', data)
},
setEdit({ commit }) {
commit('SET_EDIT')
},
setReportLogEdit({ commit }) {
commit('SET_REPORTEDIT')
}
}
export default {
namespaced: true,
state,
mutations,
actions
}
......@@ -75,7 +75,7 @@
</lb-table>
</div>
<!-- 编辑 -->
<edit-dialog v-model="isEdit" />
<dataDetails ref="editLog" :bsmSjsb="bsmSjsb" :diaData="diaData" />
</div>
</template>
......@@ -85,16 +85,18 @@
import data from "./data"
// 引入table混入方法
import tableMixin from '@/mixins/tableMixin.js'
// 引入弹框组件
import editDialog from './components/detailDialog.vue'
// 引入详情组件
import dataDetails from '@/components/dataDetails/edit-dialog'
export default {
name: "jsbwcx",
mixins: [tableMixin],
components: {
editDialog,
dataDetails
},
data () {
return {
diaData: {},
bsmSjsb: '',
// 开始结束日期限制
pickerOptionsStart: {
disabledDate: (time) => {
......@@ -115,7 +117,6 @@ export default {
}
}
},
isEdit: false,
// 表格数据
form: {
pcode: '', // 行政区
......@@ -225,7 +226,7 @@ export default {
},
// 详情
handleEdit (row) {
this.isEdit = true
this.$refs.editLog.isShow()
}
}
}
......
......@@ -65,7 +65,9 @@
</lb-table>
</div>
<!-- 引入详情组件 -->
<detailDialog v-model="isShow" />
<!-- <detailDialog v-model="isShow" /> -->
<!-- 编辑 -->
<dataDetails ref="editLog" :bsmSjsb="bsmSjsb" :diaData="diaData" />
</div>
</template>
......@@ -76,16 +78,18 @@ import data from "./data"
// 引入表格混入方法
import tableMixin from '@/mixins/tableMixin.js'
// 引入详情弹框
import detailDialog from './components/detailDialog'
import dataDetails from '@/components/dataDetails/edit-dialog'
export default {
name: "sbbwcx",
mixins: [tableMixin],
// 注册组件
components: {
detailDialog
dataDetails
},
data () {
return {
bsmSjsb: '',
diaData: {},
isShow: false,
// 开始结束日期限制
pickerOptionsStart: {
......@@ -206,7 +210,8 @@ export default {
handleEscalation () { },
// 详情
handleDetail (row) {
this.isShow = true
// this.isShow = true
this.$refs.editLog.isShow()
}
}
}
......