cloud-web-corejs 1.0.263 → 1.0.265

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.263",
4
+ "version": "1.0.265",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -58,7 +58,7 @@
58
58
  type="primary"
59
59
  class="button-sty"
60
60
  @click="openAddIncreaseSign"
61
- v-show="wfInfo.toAddIncreaseSign"
61
+ v-show="increaseSignEnabled && wfInfo.toAddIncreaseSign"
62
62
  icon="el-icon-plus"
63
63
  >{{ $t2("加签", "components.wf.addIncreaseSign") }}
64
64
  </el-button>
@@ -66,7 +66,7 @@
66
66
  type="primary"
67
67
  class="button-sty"
68
68
  @click="openDeleteTaskUserDialog"
69
- v-show="wfInfo.toDeleteIncreaseSign"
69
+ v-show="increaseSignEnabled && wfInfo.toDeleteIncreaseSign"
70
70
  icon="el-icon-delete"
71
71
  >{{ $t2("减签", "components.wf.deleteIncreaseSign") }}
72
72
  </el-button>
@@ -387,6 +387,8 @@ wfContentMixin = {
387
387
 
388
388
  addOpinionEnabled: false,
389
389
  modifyCurrentCandidateEnabled: false,
390
+ //加签、减签,默认开启
391
+ increaseSignEnabled: true,
390
392
 
391
393
  //修改脚本
392
394
  showWfFlowEleScriptDialog: false
@@ -442,6 +444,19 @@ wfContentMixin = {
442
444
  },
443
445
  });
444
446
  },
447
+
448
+ initWfParam17(){
449
+ //初始化加签、减签权限,未配置时默认开启
450
+ let that = getTarget(this);
451
+ return that.$http({
452
+ url: USER_PREFIX + "/wf_diy_attribute/getValue",
453
+ method: `post`,
454
+ data: {attributeKey: "param17"},
455
+ success: (res) => {
456
+ this.increaseSignEnabled = res?.objx !== false;
457
+ },
458
+ });
459
+ },
445
460
  getViewParam(key){
446
461
  let that = this.viewTarget;
447
462
  let value = that[key] || that.$attrs[key];
@@ -554,6 +569,9 @@ wfContentMixin = {
554
569
  //初始化修改当前候选人权限
555
570
  this.initWfParam14();
556
571
 
572
+ //初始化加签、减签权限
573
+ this.initWfParam17();
574
+
557
575
  }
558
576
  });
559
577
  },
@@ -6,7 +6,11 @@
6
6
  <a href="javascript:void(0);" class="a-link nums" v-if="designState">
7
7
  <i class="iconfont icon-fujian3"/>
8
8
  </a>
9
- <base-attachment :option.sync="option" v-else></base-attachment>
9
+ <!-- 关掉缩略图懒加载:附件列/字段常挂在初始隐藏的容器里(非首页签、默认折叠面板),
10
+ el-image 的 lazy 只在 mounted 时判一次可视区,隐藏态判失败后仅靠滚动容器的 scroll
11
+ 事件重试,页签切回来不产生 scroll,缩略图会永久停在空白占位。此处是 25px 缩略图,
12
+ 懒加载收益可忽略。参见 wf.js 里同样传 imageLazy:false 的表格列。 -->
13
+ <base-attachment :option.sync="option" :image-lazy="false" v-else></base-attachment>
10
14
  </form-item-wrapper>
11
15
  </template>
12
16
 
@@ -197,25 +197,25 @@ export const insertCustomCssToHead = function (cssCode, formId = "") {
197
197
  head.appendChild(newStyle);
198
198
  };
199
199
 
200
- export const insertGlobalFunctionsToHtml = function (
201
- functionsCode,
202
- formId = ""
203
- ) {
204
- if (!functionsCode || typeof functionsCode !== "string") {
205
- return;
206
- }
207
- let sourceName = !!formId
208
- ? "v_form_global_functions" + "-" + formId
209
- : "v_form_global_functions";
210
- try {
211
- // (0, eval) 是间接调用形式,不可简写为 eval(...):直接 eval 会继承当前模块作用域,
212
- // 函数声明将落在模块内而非真实 window 上。sourceURL 让 devtools 里可定位、可下断点。
213
- (0, eval)(functionsCode + "\n//# sourceURL=" + sourceName + ".js");
214
- } catch (e) {
215
- // 原先 <script> 注入时语法/运行时错误只进 window.onerror、不影响表单渲染,
216
- // 这里必须同样吞掉:否则会中断 initFormObject 整条表单初始化链路
217
- console.error("[xform] 表单全局函数执行失败:" + sourceName, e);
218
- }
200
+ export const insertGlobalFunctionsToHtml = function (
201
+ functionsCode,
202
+ formId = ""
203
+ ) {
204
+ if (!functionsCode || typeof functionsCode !== "string") {
205
+ return;
206
+ }
207
+ let sourceName = !!formId
208
+ ? "v_form_global_functions" + "-" + formId
209
+ : "v_form_global_functions";
210
+ try {
211
+ // (0, eval) 是间接调用形式,不可简写为 eval(...):直接 eval 会继承当前模块作用域,
212
+ // 函数声明将落在模块内而非真实 window 上。sourceURL 让 devtools 里可定位、可下断点。
213
+ (0, eval)(functionsCode + "\n//# sourceURL=" + sourceName + ".js");
214
+ } catch (e) {
215
+ // 原先 <script> 注入时语法/运行时错误只进 window.onerror、不影响表单渲染,
216
+ // 这里必须同样吞掉:否则会中断 initFormObject 整条表单初始化链路
217
+ console.error("[xform] 表单全局函数执行失败:" + sourceName, e);
218
+ }
219
219
  };
220
220
 
221
221
  export const optionExists = function (optionsObj, optionName) {