|
@@ -219,11 +219,13 @@ export default {
|
|
|
overHidden: true,
|
|
|
filterable: true,
|
|
|
type: 'select',
|
|
|
+ remote:true,
|
|
|
props: {
|
|
|
label: 'cname',
|
|
|
- value: 'cname'
|
|
|
+ value: 'cname',
|
|
|
+ res: 'data.records'
|
|
|
},
|
|
|
- dicUrl: "/api/blade-sales-part/corpsDesc/listAll?corpType=GYS,KH",
|
|
|
+ dicUrl: '/api/blade-sales-part/corpsDesc/page?current=1&size=20&corpType=GYS,KH&cname={{key}}',
|
|
|
// props: {
|
|
|
// label: "account",
|
|
|
// value: "id",
|
|
@@ -372,7 +374,7 @@ export default {
|
|
|
};
|
|
|
this.detailsOpen = true;
|
|
|
}
|
|
|
- this.corpsDescListAllfun()
|
|
|
+ // this.corpsDescListAllfun()
|
|
|
},
|
|
|
activated() {
|
|
|
// if (this.$route.query.id) {
|
|
@@ -426,11 +428,11 @@ export default {
|
|
|
this.onLoad(this.page, params)
|
|
|
},
|
|
|
// 获取业务对象
|
|
|
- corpsDescListAllfun() {
|
|
|
- corpsDescListAll({ corpType: 'GYS,KH' }).then(res => {
|
|
|
- this.findObject(this.option.column, "customerName").dicData = res.data.data
|
|
|
- })
|
|
|
- },
|
|
|
+ // corpsDescListAllfun() {
|
|
|
+ // corpsDescListAll({ corpType: 'GYS,KH' }).then(res => {
|
|
|
+ // this.findObject(this.option.column, "customerName").dicData = res.data.data
|
|
|
+ // })
|
|
|
+ // },
|
|
|
onLoad(page, params = {}) {
|
|
|
let storageId = this.search.storageName;
|
|
|
let searchWithoutStorageName = { ...this.search };
|
|
@@ -468,6 +470,7 @@ export default {
|
|
|
this.page.total = res.data.data.total
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.crud.doLayout()
|
|
|
+ this.$refs.crud.dicInit()
|
|
|
})
|
|
|
this.loading = false
|
|
|
}).finally(() => {
|