update 目前所有页面使用1.2的种子

This commit is contained in:
2021-05-10 16:22:26 +08:00
parent eecc20e4e3
commit 9eba92a2fb
12 changed files with 509 additions and 520 deletions

View File

@@ -114,18 +114,20 @@ export default {
],
/* 字典编码储存格式 */
// codes: {
// code1: [],
// code2: [],
// },
codes: {
code1: [],
code2: [],
},
};
},
created() {
/** 按需加载字典编码 */
//this.onLoadCodes();
this.onLoadCodes();
/** 根据权限添加操作列 */
const flag = this.$auth(/* ... */);
const flag = this.$auth({
sysConfig: [['edit'], ['delete']],
});
if (flag) {
this.columns.push({
title: '操作',
@@ -180,19 +182,7 @@ export default {
* 加载字典数据
* 如果不需要获取相应的字典数据,此方法内容可空
*/
//onLoadCodes() {
// this.$api
// .$queue([
// this.$api.sysDictTypeDropDownAwait({ code: 'code1' }),
// this.$api.sysDictTypeDropDownAwait({ code: 'code2' }),
// /* ... */
// ])
// .then(([code1, code2]) => {
// this.codes.code1 = code1.data;
// this.codes.code2 = code2.data;
// /* ... */
// });
// },
onLoadCodes() {},
/**
* 必要方法