Commit 7a073de4 by zhangxw

修改

1 parent d802de6d
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
</template> </template>
<script> <script>
import { mapActions, mapState } from "vuex" import { mapActions, mapState, mapMutations } from "vuex"
import { Util, deepClone } from "@/common/util" import { Util, deepClone } from "@/common/util"
import inputRange from './components/inputRange' import inputRange from './components/inputRange'
import editDialog from "./components/editDialog" import editDialog from "./components/editDialog"
...@@ -306,10 +306,19 @@ export default { ...@@ -306,10 +306,19 @@ export default {
inputRange, inputRange,
editDialog editDialog
}, },
watch: {
updateRefesh(val) {
if (val == true) {
this.$refs.personalTable.refreshTable()
this.setUpdateRefesh('false')
}
},
},
computed: { computed: {
...mapState({ ...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList, dowloadList: (state) => state.d2admin.user.dowloadList,
updateList: (state) => state.d2admin.user.updateList updateList: (state) => state.d2admin.user.updateList,
updateRefesh: (state) => state.d2admin.user.updateRefesh
}) })
}, },
mounted() { mounted() {
...@@ -323,7 +332,7 @@ export default { ...@@ -323,7 +332,7 @@ export default {
close: "d2admin/page/close" close: "d2admin/page/close"
}), }),
...mapActions("d2admin/user", ["actionSetDownloadList"]), ...mapActions("d2admin/user", ["actionSetDownloadList"]),
...mapMutations('d2admin/user', ['setUpdateRefesh']),
async getBaseData() { async getBaseData() {
this.getOptionsList() this.getOptionsList()
this.getSelectingList() this.getSelectingList()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!