ocpview-plus 1.2.3 → 1.2.4

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.
package/README.md CHANGED
@@ -50,3 +50,9 @@ tree vue3 升级
50
50
 
51
51
  ### 1.2.2 更新说明
52
52
  datebox format 修复
53
+
54
+ ### 1.2.3 更新说明
55
+ 修复treebox回显
56
+
57
+ ### 1.2.4 更新说明
58
+ 附件按钮只读控制
@@ -453,7 +453,7 @@ common.initEview = function(ViewUI2) {
453
453
  common.initAnchor(ViewUI2.Anchor);
454
454
  };
455
455
  const name = "ocpview-plus";
456
- const version$2 = "1.2.2";
456
+ const version$2 = "1.2.4";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -39094,7 +39094,6 @@ const _sfc_main$K = {
39094
39094
  }
39095
39095
  this.setDictData();
39096
39096
  this.importReset = false;
39097
- console.log("---------- base \u6267\u884C\u5B8C\u6BD5");
39098
39097
  this.$nextTick(() => {
39099
39098
  this.importReset = true;
39100
39099
  });
@@ -39244,116 +39243,6 @@ const _sfc_main$K = {
39244
39243
  Object.assign(items[index], tmp);
39245
39244
  }
39246
39245
  },
39247
- loadDynamicConfig() {
39248
- try {
39249
- const postData = {
39250
- modulecode: this.globalConfig.modulecode,
39251
- moduleid: this.globalConfig.modulecode
39252
- };
39253
- this.asyncPost(
39254
- this.uiconfig.resources,
39255
- "uiconfigs.getPageConfig",
39256
- postData,
39257
- (data) => {
39258
- if (!data || !this.uiconfig) {
39259
- console.log("1 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
39260
- return;
39261
- }
39262
- this.mergeDynamicConfig(
39263
- this.uiconfig,
39264
- data
39265
- );
39266
- },
39267
- function(data) {
39268
- console.error(data);
39269
- },
39270
- function(data) {
39271
- console.error(data);
39272
- }
39273
- );
39274
- } catch (e10) {
39275
- console.error("\u52A8\u6001\u914D\u7F6E\u52A0\u8F7D\u5931\u8D25", e10);
39276
- }
39277
- },
39278
- mergeDynamicConfig(localConfig, serverConfig) {
39279
- if (!localConfig || !serverConfig) {
39280
- console.log("1 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
39281
- return;
39282
- }
39283
- if (localConfig.billQueryConfig.gridConfig.items && serverConfig.billQueryConfig.gridConfig.items) {
39284
- this.mergeFlatItems(
39285
- localConfig.billQueryConfig.gridConfig.items,
39286
- serverConfig.billQueryConfig.gridConfig.items
39287
- );
39288
- }
39289
- if (localConfig.detailConfig && serverConfig.detailConfig) {
39290
- this.mergeDetailConfig(
39291
- localConfig.detailConfig,
39292
- serverConfig.detailConfig
39293
- );
39294
- }
39295
- },
39296
- mergeDetailConfig(localDetail, serverDetail) {
39297
- if (localDetail.formsConfig.items && serverDetail.formsConfig.items) {
39298
- this.mergeContainerItems(
39299
- localDetail.formsConfig.items,
39300
- serverDetail.formsConfig.items
39301
- );
39302
- }
39303
- if (localDetail.billDetailConfig.items && serverDetail.billDetailConfig.items) {
39304
- this.mergeContainerItems(
39305
- localDetail.billDetailConfig.items,
39306
- serverDetail.billDetailConfig.items
39307
- );
39308
- }
39309
- },
39310
- mergeContainerItems(localContainers, serverContainers) {
39311
- const containerMap = this.buildItemMap(localContainers);
39312
- serverContainers.forEach((serverContainer) => {
39313
- const localContainer = containerMap.get(serverContainer.name);
39314
- if (!localContainer) {
39315
- console.log("2 \u6CA1\u6709\u914D\u7F6Elocalcontainer");
39316
- return;
39317
- }
39318
- Object.assign(localContainer, serverContainer);
39319
- if (Array.isArray(localContainer.items) && Array.isArray(serverContainer.items)) {
39320
- this.mergeFlatItems(
39321
- localContainer.items,
39322
- serverContainer.items
39323
- );
39324
- }
39325
- });
39326
- },
39327
- mergeFlatItems(localItems, serverItems) {
39328
- const fieldMap = this.buildItemMap(localItems);
39329
- serverItems.forEach((serverItem) => {
39330
- const localItem = fieldMap.get(serverItem.name);
39331
- console.log(serverItem.name, localItem);
39332
- if (localItem) {
39333
- console.log("\u5408\u5E76\u524D", localItem);
39334
- Object.assign(localItem, serverItem);
39335
- console.log("merge\u540E", JSON.stringify(this.uiconfig));
39336
- this.uiconfig = Object.assign({}, this.uiconfig);
39337
- }
39338
- });
39339
- },
39340
- buildItemMap(items, map2 = /* @__PURE__ */ new Map()) {
39341
- if (!Array.isArray(items))
39342
- return map2;
39343
- items.forEach((item) => {
39344
- if (!item) {
39345
- console.log("3 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
39346
- return;
39347
- }
39348
- if (item.name) {
39349
- map2.set(item.name, item);
39350
- }
39351
- if (Array.isArray(item.items)) {
39352
- this.buildItemMap(item.items, map2);
39353
- }
39354
- });
39355
- return map2;
39356
- },
39357
39246
  _isFun(pro) {
39358
39247
  let index = this.eventObject.findIndex((el2) => el2 === pro);
39359
39248
  if (index > -1) {
@@ -39412,6 +39301,7 @@ const _sfc_main$K = {
39412
39301
  return;
39413
39302
  }
39414
39303
  this.$refs.detailappendix.setData(obj.billno, obj.billmoduleid, obj.idkey);
39304
+ this.$refs.detailappendix.setReadOnly(e10.readOnly);
39415
39305
  this.$nextTick(() => {
39416
39306
  if (e10.readOnly) {
39417
39307
  let data2 = this.$refs.detailappendix.getData();
@@ -49219,7 +49109,6 @@ const _sfc_main$r = {
49219
49109
  }
49220
49110
  this.billApprovalConfig.resources = this.myConfig.resources;
49221
49111
  this.billApprovalConfig.classPrefix = this.myConfig.classPrefix;
49222
- console.log("------------- listdetail\u6267\u884C\u5B8C\u6BD5");
49223
49112
  },
49224
49113
  methods: {
49225
49114
  setLogName() {