3b3e5ee5 by 任超

style:字典

1 parent f7e30b59
...@@ -15,7 +15,6 @@ const mutations = { ...@@ -15,7 +15,6 @@ const mutations = {
15 } 15 }
16 16
17 const actions = { 17 const actions = {
18 // 添加全部字典
19 generateDic ({ commit }) { 18 generateDic ({ commit }) {
20 return new Promise(async (resolve) => { 19 return new Promise(async (resolve) => {
21 let { result: res } = await getAllDict() 20 let { result: res } = await getAllDict()
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
17 <el-col :span="12" class="btnCol"> 17 <el-col :span="12" class="btnCol">
18 <el-form-item> 18 <el-form-item>
19 <el-button type="primary" @click="fetchData">查询</el-button> 19 <el-button type="primary" @click="fetchData">查询</el-button>
20 <el-button @click="moreQueryClick()">高级查询</el-button> 20 <el-button icon="el-icon-refresh" @click="handleRefresh">刷新缓存</el-button>
21 </el-form-item> 21 </el-form-item>
22 </el-col> 22 </el-col>
23 </el-row> 23 </el-row>
...@@ -78,7 +78,9 @@ export default { ...@@ -78,7 +78,9 @@ export default {
78 this.tableData.total = total 78 this.tableData.total = total
79 }) 79 })
80 }, 80 },
81 moreQueryClick () { }, 81 handleRefresh () {
82 this.$store.dispatch('dict/generateDic')
83 },
82 editClick (row, val) { 84 editClick (row, val) {
83 this.details.rowData = row 85 this.details.rowData = row
84 this.details.isenable = val 86 this.details.isenable = val
......