diff --git a/Web/public/doc-code/seed/query.vue b/Web/public/doc-code/seed/query.vue index c88a70c..6d561bc 100644 --- a/Web/public/doc-code/seed/query.vue +++ b/Web/public/doc-code/seed/query.vue @@ -128,8 +128,8 @@ export default { onLoadCodes() { this.$api .$queue([ - this.$api.sysDictTypeDropDownWait({ code: 'code1' }), - this.$api.sysDictTypeDropDownWait({ code: 'code2' }), + this.$api.sysDictTypeDropDownAwait({ code: 'code1' }), + this.$api.sysDictTypeDropDownAwait({ code: 'code2' }), ]) .then(([code1, code2]) => { this.codes.code1 = code1.data; diff --git a/Web/src/common/api/index.js b/Web/src/common/api/index.js index 069ad1e..907d351 100644 --- a/Web/src/common/api/index.js +++ b/Web/src/common/api/index.js @@ -94,7 +94,7 @@ for (let key in urls) { } } - api[`${key}Wait`] = function (params = {}) { + api[`${key}Await`] = function (params = {}) { if (method === 'post') { return initInstance(options).post(url, params) } else { @@ -106,7 +106,7 @@ for (let key in urls) { api[key] = function (params = {}) { return new Promise((reslove, reject) => { - api[`${key}Wait`](params) + api[`${key}Await`](params) .then((res) => { const { data } = res if (errerCodes.indexOf(data.code) >= 0) { diff --git a/Web/src/pages/system/_seed/index.vue b/Web/src/pages/system/_seed/index.vue index a3d8c57..9d2d8bc 100644 --- a/Web/src/pages/system/_seed/index.vue +++ b/Web/src/pages/system/_seed/index.vue @@ -128,8 +128,8 @@ export default { onLoadCodes() { this.$api .$queue([ - this.$api.sysDictTypeDropDownWait({ code: 'code1' }), - this.$api.sysDictTypeDropDownWait({ code: 'code2' }), + this.$api.sysDictTypeDropDownAwait({ code: 'code1' }), + this.$api.sysDictTypeDropDownAwait({ code: 'code2' }), ]) .then(([code1, code2]) => { this.codes.code1 = code1.data; diff --git a/Web/src/pages/system/app/index.vue b/Web/src/pages/system/app/index.vue index 6b41d4b..a969211 100644 --- a/Web/src/pages/system/app/index.vue +++ b/Web/src/pages/system/app/index.vue @@ -166,8 +166,8 @@ export default { onLoadCodes() { this.$api .$queue([ - this.$api.sysDictTypeDropDownWait({ code: 'yes_or_no' }), - this.$api.sysDictTypeDropDownWait({ code: 'common_status' }), + this.$api.sysDictTypeDropDownAwait({ code: 'yes_or_no' }), + this.$api.sysDictTypeDropDownAwait({ code: 'common_status' }), ]) .then(([yesOrNo, commonStatus]) => { this.codes.find((p) => p.code === 'yes_or_no').values = yesOrNo.data; diff --git a/Web/src/pages/system/dict/index.vue b/Web/src/pages/system/dict/index.vue index 4b66429..eedcb5d 100644 --- a/Web/src/pages/system/dict/index.vue +++ b/Web/src/pages/system/dict/index.vue @@ -170,7 +170,7 @@ export default { * 如果不需要获取相应的字典数据,此方法内容可空 */ onLoadCodes() { - this.$api.$queue([this.$api.sysDictTypeDropDownWait({ code: 'common_status' })]).then(([commonStatus]) => { + this.$api.$queue([this.$api.sysDictTypeDropDownAwait({ code: 'common_status' })]).then(([commonStatus]) => { this.codes.commonStatus = commonStatus.data; }); }, diff --git a/Web/src/pages/system/log/oplog/index.vue b/Web/src/pages/system/log/oplog/index.vue index 38ffa4f..4c3d81f 100644 --- a/Web/src/pages/system/log/oplog/index.vue +++ b/Web/src/pages/system/log/oplog/index.vue @@ -173,7 +173,7 @@ export default { * 加载字典数据时的必要方法 */ onLoadCodes() { - this.$api.$queue([this.$api.sysDictTypeDropDownWait({ code: 'op_type' })]).then(([commonStatus]) => { + this.$api.$queue([this.$api.sysDictTypeDropDownAwait({ code: 'op_type' })]).then(([commonStatus]) => { this.codes.opTypeDict = commonStatus.data; }); }, diff --git a/Web/src/pages/system/log/vislog/index.vue b/Web/src/pages/system/log/vislog/index.vue index a6b1f3c..9e4690d 100644 --- a/Web/src/pages/system/log/vislog/index.vue +++ b/Web/src/pages/system/log/vislog/index.vue @@ -165,7 +165,7 @@ export default { * 加载字典数据时的必要方法 */ onLoadCodes() { - this.$api.$queue([this.$api.sysDictTypeDropDownWait({ code: 'vis_type' })]).then(([commonStatus]) => { + this.$api.$queue([this.$api.sysDictTypeDropDownAwait({ code: 'vis_type' })]).then(([commonStatus]) => { this.codes.visTypeDict = commonStatus.data; }); }, diff --git a/Web/src/pages/system/menu/form.vue b/Web/src/pages/system/menu/form.vue index 22b79e5..f805047 100644 --- a/Web/src/pages/system/menu/form.vue +++ b/Web/src/pages/system/menu/form.vue @@ -260,9 +260,9 @@ export default { onLoadCodes() { return this.$api .$queue([ - this.$api.sysDictTypeDropDownWait({ code: 'menu_type' }), - this.$api.sysDictTypeDropDownWait({ code: 'menu_weight' }), - this.$api.sysDictTypeDropDownWait({ code: 'open_type' }), + this.$api.sysDictTypeDropDownAwait({ code: 'menu_type' }), + this.$api.sysDictTypeDropDownAwait({ code: 'menu_weight' }), + this.$api.sysDictTypeDropDownAwait({ code: 'open_type' }), ]) .then(([menuType, menuWerght, openType]) => { return { diff --git a/Web/src/pages/system/menu/index.vue b/Web/src/pages/system/menu/index.vue index a6cb903..ee64e1a 100644 --- a/Web/src/pages/system/menu/index.vue +++ b/Web/src/pages/system/menu/index.vue @@ -156,9 +156,9 @@ export default { onLoadCodes() { this.$api .$queue([ - this.$api.sysDictTypeDropDownWait({ code: 'menu_type' }), - this.$api.sysDictTypeDropDownWait({ code: 'menu_weight' }), - this.$api.sysDictTypeDropDownWait({ code: 'open_type' }), + this.$api.sysDictTypeDropDownAwait({ code: 'menu_type' }), + this.$api.sysDictTypeDropDownAwait({ code: 'menu_weight' }), + this.$api.sysDictTypeDropDownAwait({ code: 'open_type' }), ]) .then(([menuType, menuWerght, openType]) => { this.codes.find((p) => p.code === 'menu_type').values = menuType.data; diff --git a/Web/src/pages/system/role/orgForm.vue b/Web/src/pages/system/role/orgForm.vue index 0a847c8..08480ec 100644 --- a/Web/src/pages/system/role/orgForm.vue +++ b/Web/src/pages/system/role/orgForm.vue @@ -88,7 +88,7 @@ export default { */ onLoadCodes() { return this.$api - .$queue([this.$api.sysDictTypeDropDownWait({ code: 'data_scope_type' })]) + .$queue([this.$api.sysDictTypeDropDownAwait({ code: 'data_scope_type' })]) .then(([dataScopeType]) => { this.dataScopeTypeData = dataScopeType.data; }); diff --git a/Web/src/pages/system/user/index.vue b/Web/src/pages/system/user/index.vue index 127e7e9..fa6519d 100644 --- a/Web/src/pages/system/user/index.vue +++ b/Web/src/pages/system/user/index.vue @@ -218,8 +218,8 @@ export default { onLoadCodes() { this.$api .$queue([ - this.$api.sysDictTypeDropDownWait({ code: 'sex' }), - this.$api.sysDictTypeDropDownWait({ code: 'common_status' }), + this.$api.sysDictTypeDropDownAwait({ code: 'sex' }), + this.$api.sysDictTypeDropDownAwait({ code: 'common_status' }), ]) .then(([sex, commonStatus]) => { this.codes.find((p) => p.code === 'sex').values = sex.data;