This commit is contained in:
@@ -122,7 +122,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.onLoadCodes();
|
// this.onLoadCodes();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
@@ -159,18 +159,18 @@ export default {
|
|||||||
/**
|
/**
|
||||||
* 加载字典数据时的必要方法
|
* 加载字典数据时的必要方法
|
||||||
*/
|
*/
|
||||||
onLoadCodes() {
|
// onLoadCodes() {
|
||||||
this.$api
|
// this.$api
|
||||||
.$queue([
|
// .$queue([
|
||||||
this.$api.sysDictTypeDropDownWait({ code: "yes_or_no" }),
|
// this.$api.sysDictTypeDropDownWait({ code: "yes_or_no" }),
|
||||||
this.$api.sysDictTypeDropDownWait({ code: "common_status" }),
|
// this.$api.sysDictTypeDropDownWait({ code: "common_status" }),
|
||||||
])
|
// ])
|
||||||
.then(([yesOrNo, commonStatus]) => {
|
// .then(([yesOrNo, commonStatus]) => {
|
||||||
this.codes.find((p) => p.code === "yes_or_no").values = yesOrNo.data;
|
// this.codes.find((p) => p.code === "yes_or_no").values = yesOrNo.data;
|
||||||
this.codes.find((p) => p.code === "common_status").values =
|
// this.codes.find((p) => p.code === "common_status").values =
|
||||||
commonStatus.data;
|
// commonStatus.data;
|
||||||
});
|
// });
|
||||||
},
|
// },
|
||||||
bindCodeValue(code, name) {
|
bindCodeValue(code, name) {
|
||||||
const c = this.codes
|
const c = this.codes
|
||||||
.find((p) => p.code == name)
|
.find((p) => p.code == name)
|
||||||
|
|||||||
Reference in New Issue
Block a user