局部修改

  onSubmitModify(that, params) {
        let dataT = params;
        let rootMetaT = that.rootMeta;
        let filterT = that.filter;
        that.$store.dispatch("dataLoading", true);
        that.$bsAjax
            .doMofify(rootMetaT.mkey, rootMetaT.field + "_detail", filterT, dataT)
            .then((tempRes) => {
                that.$store.dispatch("dataLoading", false);
                if (tempRes && tempRes.data && tempRes.data.success === true) {
                    that.$msgBox.success(tempRes.data.message);
                    //重新更新数据
                    if (params["isEnabled"]) {
                        that.used.data[params.rowIndex]["isEnabled"].value = params["isEnabled"];
                    }
                    that.used.data = JSON.parse(JSON.stringify(that.used.data));
                }
            });
    },
文档更新时间: 2022-09-04 18:41   作者:admin