mooho-base-admin-plus 2.0.50 → 2.0.52

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.
@@ -29027,7 +29027,7 @@ const _sfc_main$Z = {
29027
29027
  paramOpen() {
29028
29028
  this.params = [];
29029
29029
  this.paramOpened = true;
29030
- if (this.data.param != null && this.data.param != "") {
29030
+ if (this.data.param != null && this.data.param !== "") {
29031
29031
  let obj = JSON.parse(this.data.param);
29032
29032
  for (let key in obj) {
29033
29033
  this.params.push({
@@ -30911,7 +30911,7 @@ const _sfc_main$T = {
30911
30911
  paramOpen() {
30912
30912
  this.params = [];
30913
30913
  this.paramOpened = true;
30914
- if (this.data.param != null && this.data.param != "") {
30914
+ if (this.data.param != null && this.data.param !== "") {
30915
30915
  let obj = JSON.parse(this.data.param);
30916
30916
  for (let key in obj) {
30917
30917
  let type = "\u53D8\u91CF";
@@ -35441,7 +35441,10 @@ const _sfc_main$C = {
35441
35441
  type: String
35442
35442
  },
35443
35443
  param: {
35444
- type: Object
35444
+ type: Object,
35445
+ default: () => {
35446
+ return {};
35447
+ }
35445
35448
  },
35446
35449
  readonly: {
35447
35450
  type: Boolean,
@@ -37042,7 +37045,6 @@ const _sfc_main$w = {
37042
37045
  }
37043
37046
  } else if (column.controlType === "DialogSelect" || column.controlType === "MultiDialogSelect") {
37044
37047
  if (param == null) {
37045
- column.dataSource = [];
37046
37048
  this.setData(this.data, column.code, null);
37047
37049
  column.triggers.forEach((item) => {
37048
37050
  item.needClear = true;
@@ -37920,7 +37922,7 @@ const _sfc_main$v = {
37920
37922
  paramOpen() {
37921
37923
  this.params = [];
37922
37924
  this.paramOpened = true;
37923
- if (this.data.param != null && this.data.param != "") {
37925
+ if (this.data.param != null && this.data.param !== "") {
37924
37926
  let obj = JSON.parse(this.data.param);
37925
37927
  for (let key in obj) {
37926
37928
  let type = "\u53D8\u91CF";
@@ -39612,7 +39614,7 @@ const _sfc_main$u = {
39612
39614
  },
39613
39615
  toData() {
39614
39616
  let array = [];
39615
- if (this.sort != "" && this.sort != null) {
39617
+ if (this.sort !== "" && this.sort != null) {
39616
39618
  let json = JSON.parse(this.sort);
39617
39619
  for (let key in json) {
39618
39620
  array.push({
@@ -39624,7 +39626,7 @@ const _sfc_main$u = {
39624
39626
  this.dataSorting = array;
39625
39627
  },
39626
39628
  async saveSortingForm() {
39627
- if (this.data.code != "" && this.data.code != null && this.data.rule != null && this.data.rule != "") {
39629
+ if (this.data.code !== "" && this.data.code != null && this.data.rule != null && this.data.rule !== "") {
39628
39630
  let checkSort = false;
39629
39631
  this.dataSorting.forEach((item) => {
39630
39632
  if (item.column == this.data.code) {
@@ -39965,7 +39967,7 @@ const _sfc_main$t = {
39965
39967
  },
39966
39968
  toData() {
39967
39969
  let filterArr = [];
39968
- if (this.filter != "" && this.filter != null) {
39970
+ if (this.filter !== "" && this.filter != null) {
39969
39971
  let json = JSON.parse(this.filter);
39970
39972
  for (let key in json) {
39971
39973
  let operatorArr = [];
@@ -41306,7 +41308,7 @@ const _sfc_main$r = {
41306
41308
  parseArrayFilterData(model2, column) {
41307
41309
  let data2 = [];
41308
41310
  let value = this.parseFilterData(model2, column);
41309
- if (value != null && value != "") {
41311
+ if (value != null && value !== "") {
41310
41312
  data2 = value.split(",");
41311
41313
  }
41312
41314
  return data2;
@@ -51616,6 +51618,9 @@ const _sfc_main$n = {
51616
51618
  },
51617
51619
  edit(row, index2) {
51618
51620
  this.$refs.columnEdit.open(row, index2, this.$refs.form.columns, (data2) => {
51621
+ if (lodash$1.exports.get(this.$refs.form.data, data2.code) == null) {
51622
+ lodash$1.exports.set(this.$refs.form.data, data2.code, null);
51623
+ }
51619
51624
  let columns = this.$refs.form.columns;
51620
51625
  columns.splice(index2, 1, data2);
51621
51626
  });
@@ -127390,9 +127395,7 @@ const install = function(app) {
127390
127395
  app.use(router$1);
127391
127396
  app.use(store);
127392
127397
  app.use(i18n$1);
127393
- app.use(ViewUIPlus, {
127394
- i18n: i18n$1
127395
- });
127398
+ app.use(ViewUIPlus);
127396
127399
  app.mixin(mixinApp);
127397
127400
  Object.keys(components).forEach((key) => {
127398
127401
  app.component(key, components[key]);