mooho-base-admin-plus 0.1.69 → 0.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -46944,7 +46944,6 @@ const _sfc_main$n = {
|
|
|
46944
46944
|
columnWidth: "Column6",
|
|
46945
46945
|
opened: false,
|
|
46946
46946
|
dataView: {},
|
|
46947
|
-
columns: [],
|
|
46948
46947
|
componentGroups: []
|
|
46949
46948
|
};
|
|
46950
46949
|
},
|
|
@@ -46964,8 +46963,7 @@ const _sfc_main$n = {
|
|
|
46964
46963
|
}),
|
|
46965
46964
|
async open(dataView2, columns) {
|
|
46966
46965
|
this.dataView = dataView2;
|
|
46967
|
-
this.
|
|
46968
|
-
this.$refs.form.init(this.dataView, this.columns);
|
|
46966
|
+
this.$refs.form.init(this.dataView, this.copy(columns));
|
|
46969
46967
|
this.opened = true;
|
|
46970
46968
|
const res2 = await enumApi.query("ControlType");
|
|
46971
46969
|
this.componentGroups = [
|
|
@@ -47015,7 +47013,7 @@ const _sfc_main$n = {
|
|
|
47015
47013
|
this.opened = false;
|
|
47016
47014
|
},
|
|
47017
47015
|
edit(row, index2) {
|
|
47018
|
-
this.$refs.columnEdit.open(row, index2, this.columns, (data2) => {
|
|
47016
|
+
this.$refs.columnEdit.open(row, index2, this.$refs.form.columns, (data2) => {
|
|
47019
47017
|
let columns = this.$refs.form.columns;
|
|
47020
47018
|
columns.splice(index2, 1, data2);
|
|
47021
47019
|
});
|
|
@@ -47027,21 +47025,21 @@ const _sfc_main$n = {
|
|
|
47027
47025
|
});
|
|
47028
47026
|
},
|
|
47029
47027
|
openColumnSelect() {
|
|
47030
|
-
this.$refs.columnSelect.open(this.dataView, this.columns, (checked) => {
|
|
47031
|
-
let columns = this.columns.filter((column) => {
|
|
47028
|
+
this.$refs.columnSelect.open(this.dataView, this.$refs.form.columns, (checked) => {
|
|
47029
|
+
let columns = this.$refs.form.columns.filter((column) => {
|
|
47032
47030
|
return checked.some((item) => {
|
|
47033
47031
|
return column.code === item.code;
|
|
47034
47032
|
}) || column.isVirtual;
|
|
47035
47033
|
});
|
|
47036
|
-
this.columns.splice(0, this.columns.length);
|
|
47034
|
+
this.$refs.form.columns.splice(0, this.$refs.form.columns.length);
|
|
47037
47035
|
columns.forEach((item) => {
|
|
47038
|
-
this.columns.push(item);
|
|
47036
|
+
this.$refs.form.columns.push(item);
|
|
47039
47037
|
});
|
|
47040
47038
|
checked.forEach((item) => {
|
|
47041
|
-
if (!this.columns.some((column) => {
|
|
47039
|
+
if (!this.$refs.form.columns.some((column) => {
|
|
47042
47040
|
return column.code === item.code;
|
|
47043
47041
|
})) {
|
|
47044
|
-
this.columns.push({
|
|
47042
|
+
this.$refs.form.columns.push({
|
|
47045
47043
|
code: item.code,
|
|
47046
47044
|
name: item.name,
|
|
47047
47045
|
dataType: item.dataType,
|
|
@@ -47065,7 +47063,7 @@ const _sfc_main$n = {
|
|
|
47065
47063
|
this.confirm("\u672C\u6B21\u64CD\u4F5C\u5C06\u4FEE\u6539\u5168\u5C40\u8BBE\u7F6E\uFF0C\u786E\u8BA4\u8981\u4FDD\u5B58\u5417\uFF1F", async () => {
|
|
47066
47064
|
await this.saveDataView({
|
|
47067
47065
|
code: this.dataView.code,
|
|
47068
|
-
columns: this.columns
|
|
47066
|
+
columns: this.$refs.form.columns
|
|
47069
47067
|
});
|
|
47070
47068
|
this.$emit("on-change", this.dataView.code);
|
|
47071
47069
|
this.success("\u4FDD\u5B58\u6210\u529F\uFF01", () => {
|
|
@@ -47078,7 +47076,7 @@ const _sfc_main$n = {
|
|
|
47078
47076
|
this.confirm("\u786E\u5B9A\u8981\u4FDD\u5B58\u8BBE\u7F6E\u5417\uFF1F", async () => {
|
|
47079
47077
|
await this.saveDataView({
|
|
47080
47078
|
code: this.dataView.code,
|
|
47081
|
-
columns: this.columns
|
|
47079
|
+
columns: this.$refs.form.columns
|
|
47082
47080
|
});
|
|
47083
47081
|
this.success("\u4FDD\u5B58\u6210\u529F\uFF01", () => {
|
|
47084
47082
|
this.close();
|
|
@@ -47094,11 +47092,10 @@ const _sfc_main$n = {
|
|
|
47094
47092
|
},
|
|
47095
47093
|
clone(item) {
|
|
47096
47094
|
let data2 = this.copy(item);
|
|
47097
|
-
this.columns.push(data2);
|
|
47098
47095
|
return data2;
|
|
47099
47096
|
},
|
|
47100
47097
|
dblclick(item) {
|
|
47101
|
-
this.columns.push(this.copy(item));
|
|
47098
|
+
this.$refs.form.columns.push(this.copy(item));
|
|
47102
47099
|
},
|
|
47103
47100
|
setting() {
|
|
47104
47101
|
this.$refs.setting.open(this.copy(this.dataView));
|
|
@@ -47116,7 +47113,7 @@ const _sfc_main$n = {
|
|
|
47116
47113
|
listMode() {
|
|
47117
47114
|
this.$emit("list-mode", {
|
|
47118
47115
|
dataView: this.dataView,
|
|
47119
|
-
columns: this.columns
|
|
47116
|
+
columns: this.$refs.form.columns
|
|
47120
47117
|
});
|
|
47121
47118
|
},
|
|
47122
47119
|
getDefaultControlType(dataType) {
|
|
@@ -47394,7 +47391,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
47394
47391
|
}, 512)) : createCommentVNode("", true)
|
|
47395
47392
|
]);
|
|
47396
47393
|
}
|
|
47397
|
-
var FormSettingLayout = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
47394
|
+
var FormSettingLayout = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-b0df0ab6"]]);
|
|
47398
47395
|
const _sfc_main$m = {
|
|
47399
47396
|
mixins: [mixinPage],
|
|
47400
47397
|
components: { formSetting: FormSetting, formSettingLayout: FormSettingLayout },
|