cloud-web-corejs 1.0.263 → 1.0.264
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
|
@@ -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>
|
package/src/components/wf/wf.js
CHANGED
|
@@ -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
|
},
|
|
@@ -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) {
|