列表


    options: {
        rootMeta: {
            mkey: "bt-policy",
            field: "manager",
        },
        filter: {
            _menuId: "bt-t-deve-bt-202e6",
            _nodejs: "common-data",
        },
    },

      doctor: {
        data: [],
        value: null,
        name: null,
        loading: false,
        firstLoad:false,
        descriptionEmpty: "数据加载中"
      },
 /* eslint-disable no-unused-vars */
/* eslint-disable no-undef */
export default {
    init(that) {
      this.loadDataDoctor(that);
    },
    loadDataDoctor(that) {
        //过滤条件
        let filterT = {
            pageSize: 2
        };
        filterT = {
            ...filterT,
            ...that.filter
        };
        let metaT =  {
            mkey: "insurance-resource",
            field: "doctor",
          };

        if (that.doctor.firstLoad === true) {
            that.doctor.descriptionEmpty = null; // window.$appConfig.empty.init;
        }
        that.loading = true;
        that.doctor.loading = true;
        that.$bsAjax.getList(metaT.mkey, metaT.field, filterT).then((res) => {
            that.doctor.firstLoad = false;
            that.doctor.descriptionEmpty = window.$appConfig.empty.nodata;
            //debugger;
            if (!res.data || !res.data.data || res.data.success !== true) {
                that.loading = false;
                that.doctor.loading = false;
                return;
            }
            that.doctor.data = res.data.data;

            that.doctor.firstLoad = false;
            that.loading = false;
            that.doctor.loading = false;
        });
    },
}
文档更新时间: 2022-09-04 18:40   作者:admin