/* eslint-disable no-unused-vars */
/* eslint-disable no-undef */
export default {
options: {
},
init(that) {
},
loadDataComm(that) {
//过滤条件
let filterT = {
// pageSize: 4
};
filterT = {
...filterT,
...that.filter
};
let metaT = that.rootMeta;
if (that.firstLoad === true) {
that.used.descriptionEmpty = null; // window.$appConfig.empty.init;
}
that.loading = true;
that.$bsAjax.getPage(metaT.mkey, metaT.field, filterT).then((res) => {
that.used.firstLoad = false;
that.used.descriptionEmpty = window.$appConfig.empty.nodata;
//debugger;
if (!res.data || !res.data.data || res.data.success !== true) {
that.used.loading = false;
return;
}
that["tag"] = [];
that.used.data = res.data.data;
let obj = {};
that.used.paging = res.data.paging;
that.used.firstLoad = false;
that.used.loading = false;
}).catch(() => {
that.used.firstLoad = false;
that.used.loading = false;
});
},
}
文档更新时间: 2021-09-28 21:28 作者:admin