feat:下拉增加默认参数

This commit is contained in:
zhangyu
2020-12-25 10:39:53 +08:00
parent 3f4b1af39b
commit 5dd5b388c1
5 changed files with 18 additions and 10 deletions

View File

@@ -468,7 +468,7 @@
},
getDcData() {
return new Promise(resolve => {
this.$get('idc').then(response => {
this.$get('idc?pageSize=-1').then(response => {
if (response.code === 200) {
this.dcData = response.data.list;
}
@@ -504,6 +504,9 @@
this.$get('sys/dict/all?type=assetType&pageSize=-1').then(response => {
if (response.code === 200) {
this.assetTypeData = response.data;
if(this.editAsset.model&&!this.editAsset.model.type.code){
this.editAsset.model.type.code=response.data[0].value;
}
}
resolve(this.assetTypeData);
});