From 5f80b4b2765b5b0f6d8a7106f1f84b58c158db0e Mon Sep 17 00:00:00 2001 From: ky_gyt Date: Fri, 16 Apr 2021 09:42:14 +0000 Subject: [PATCH] --- .../src/pages/system/role/index.vue | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Api/Ewide.Core/Ewide.Core.Web.Src/src/pages/system/role/index.vue b/Api/Ewide.Core/Ewide.Core.Web.Src/src/pages/system/role/index.vue index efe37c7..033d35e 100644 --- a/Api/Ewide.Core/Ewide.Core.Web.Src/src/pages/system/role/index.vue +++ b/Api/Ewide.Core/Ewide.Core.Web.Src/src/pages/system/role/index.vue @@ -122,7 +122,7 @@ export default { }; }, created() { - this.onLoadCodes(); + // this.onLoadCodes(); }, methods: { /** @@ -159,18 +159,18 @@ export default { /** * 加载字典数据时的必要方法 */ - onLoadCodes() { - this.$api - .$queue([ - this.$api.sysDictTypeDropDownWait({ code: "yes_or_no" }), - this.$api.sysDictTypeDropDownWait({ code: "common_status" }), - ]) - .then(([yesOrNo, commonStatus]) => { - this.codes.find((p) => p.code === "yes_or_no").values = yesOrNo.data; - this.codes.find((p) => p.code === "common_status").values = - commonStatus.data; - }); - }, + // onLoadCodes() { + // this.$api + // .$queue([ + // this.$api.sysDictTypeDropDownWait({ code: "yes_or_no" }), + // this.$api.sysDictTypeDropDownWait({ code: "common_status" }), + // ]) + // .then(([yesOrNo, commonStatus]) => { + // this.codes.find((p) => p.code === "yes_or_no").values = yesOrNo.data; + // this.codes.find((p) => p.code === "common_status").values = + // commonStatus.data; + // }); + // }, bindCodeValue(code, name) { const c = this.codes .find((p) => p.code == name)