cloud-web-corejs 1.0.54-dev.343 → 1.0.54-dev.345

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.
Files changed (24) hide show
  1. package/package.json +1 -1
  2. package/src/components/VabUpload/mixins.js +1 -1490
  3. package/src/components/VabUpload/view.vue +138 -55
  4. package/src/components/wf/content.vue +772 -411
  5. package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -0
  6. package/src/components/wf/wf.js +2117 -1
  7. package/src/components/wf/wfFlowEleScriptDialog.vue +92 -0
  8. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +725 -0
  9. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +62 -0
  10. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
  11. package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -19
  12. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +59 -0
  13. package/src/components/xform/lang/zh-CN.js +1 -0
  14. package/src/views/bd/setting/bd_company_env/edit.vue +100 -70
  15. package/src/views/bd/setting/config_manage/list.vue +16 -1
  16. package/src/views/bd/setting/logic_param/edit.vue +146 -0
  17. package/src/views/bd/setting/logic_param/edit1.vue +106 -0
  18. package/src/views/bd/setting/logic_param/edit2.vue +122 -0
  19. package/src/views/bd/setting/logic_param/list.vue +74 -0
  20. package/src/views/bd/setting/logic_param/list1.vue +12 -0
  21. package/src/views/bd/setting/logic_param/list2.vue +12 -0
  22. package/src/views/bd/setting/logic_param/mixins/edit.js +93 -0
  23. package/src/views/bd/setting/logic_param/mixins/list.js +358 -0
  24. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -300
@@ -0,0 +1,131 @@
1
+ let modules = {};
2
+
3
+ modules = {
4
+ props: ['visiable', 'multi', 'rows', 'param', 'current_prefix', 'wfInfo'],
5
+ data() {
6
+ return {
7
+ vxeOption: {},
8
+ script:null,
9
+ showDialog: true,
10
+ currentRow:null,
11
+ showScriptDialog:false,
12
+ scriptTypeMap:{
13
+ 'pre': '前置事件',
14
+ 'post': '后置事件',
15
+ 'candidate': '候选人事件',
16
+ 'start': '开始事件',
17
+ 'end': '结束事件',
18
+ 'interrupt': '中断事件',
19
+ 'conditions': '条件事件',
20
+ 'countersignSubmit': '会签提交事件'
21
+ },
22
+ scritpDialogTitle: null
23
+
24
+
25
+ }
26
+ },
27
+ mounted() {
28
+ this.initTableM1()
29
+ },
30
+ methods: {
31
+ searchEvent() {
32
+ this.$refs['table-m1'].commitProxy('reload');
33
+ },
34
+ closeDialog(){
35
+ this.$emit("update:visiable", false);
36
+ },
37
+ initTableM1() {
38
+ let that = this;
39
+ let scriptTypeMap = this.scriptTypeMap
40
+ let tableOption = {
41
+ vue: that,
42
+ tableRef: 'table-m1',
43
+ tableName: 'setCandidateDialog_dialog-m1',
44
+ path: this.current_prefix + '/wf_flow_ele_script/list',
45
+ param: () => {
46
+ return {
47
+ modelId: this.wfInfo.modelId,
48
+ procDefId: this.wfInfo.procDefId,
49
+ }
50
+ },
51
+ config: {
52
+ /*checkboxConfig: {
53
+ checkStrictly: true,
54
+ showHeader: this.selectMulti,
55
+ },*/
56
+ pagerConfig:{
57
+ autoHidden: true
58
+ },
59
+ proxyConfig: {
60
+ props: {
61
+ result: "objx", // 配置响应结果列表字段
62
+ total: "objx.length", // 配置响应结果总页数字段
63
+ },
64
+ },
65
+ },
66
+ columns: [
67
+ {type: 'checkbox', width: 50, resizable: false, fixed: 'left'},
68
+ {title: this.$t2('节点名称', 'components.wf.nodeName'), field: 'eleName', width: 250, fixed: 'left'},
69
+ {
70
+ field: 'scriptType',
71
+ title: this.$t1('脚本类型'),
72
+ width: 150,
73
+ slots: {
74
+ default: ({row})=>{
75
+ return scriptTypeMap[row.scriptType]
76
+ }
77
+ }
78
+ },
79
+ {title: this.$t1('更新时间'), field: 'modifyDate', width: 150},
80
+ {
81
+ width: 150,
82
+ fixed: 'right',
83
+ title: '',
84
+ sortable: false,
85
+ slots: {
86
+ default: 'operate'
87
+ }
88
+ }
89
+ ]
90
+ };
91
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
92
+ that.vxeOption = opts;
93
+ });
94
+ },
95
+ openScriptDialog(row){
96
+ let scriptTypeMap = this.scriptTypeMap
97
+ this.scritpDialogTitle = row.eleName + "(" + scriptTypeMap[row.scriptType] + ")"
98
+ this.script = row.script
99
+ this.currentRow = row
100
+ this.showScriptDialog = true
101
+ },
102
+ saveScript() {
103
+ this.$baseConfirm(this.$t1('您确定要保存脚本吗?')).then(() => {
104
+ var url = this.current_prefix + '/wf_flow_ele_script/updateScript';
105
+ this.$http({
106
+ url: url,
107
+ method: `post`,
108
+ data: {
109
+ ...this.currentRow,
110
+ script: this.script
111
+ },
112
+ isLoading: true,
113
+ success: res => {
114
+ this.$message({
115
+ message: res.content,
116
+ type: 'success'
117
+ });
118
+ this.showScriptDialog = false;
119
+ this.searchEvent();
120
+ }
121
+ });
122
+ });
123
+
124
+ },
125
+
126
+ }
127
+
128
+
129
+ };
130
+
131
+ export default modules