cloud-web-corejs-haier 1.0.5 → 1.0.7

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 (141) hide show
  1. package/package.json +7 -4
  2. package/src/App.vue +30 -34
  3. package/src/api/user.js +8 -0
  4. package/src/components/Tinymce/index.vue +112 -71
  5. package/src/components/VabUpload/image-viewer.vue +2 -2
  6. package/src/components/VabUpload/index.js +1 -1
  7. package/src/components/VabUpload/mixins.js +1 -1
  8. package/src/components/VabUpload/privateProfileDialogMixins.js +1 -1063
  9. package/src/components/VabUpload/view.vue +6 -2
  10. package/src/components/base-textarea/index.vue +104 -0
  11. package/src/components/baseAlert/mixins.js +1 -1
  12. package/src/components/baseAttachment/mixins.js +2 -1
  13. package/src/components/baseInputExport/index.vue +19 -12
  14. package/src/components/baseInputExport/mixins.js +1 -1
  15. package/src/components/baseTabs/mixins.js +1 -1
  16. package/src/components/code-editor/index.vue +102 -63
  17. package/src/components/confirmDialog/index.vue +24 -17
  18. package/src/components/confirmDialog/mixins.js +1 -1
  19. package/src/components/errorMsg/index.vue +42 -34
  20. package/src/components/errorMsg/mixins.js +1 -1
  21. package/src/components/excelExport/index.js +1 -2
  22. package/src/components/excelExport/mixins.js +1 -1
  23. package/src/components/fileLibrary/fileObjAuthDialog.vue +179 -89
  24. package/src/components/fileLibrary/filterDialog.vue +45 -21
  25. package/src/components/fileLibrary/index.vue +579 -238
  26. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +4 -1
  27. package/src/components/fileLibrary/mixins/indexMixins.js +3 -0
  28. package/src/components/scriptDescription/button.vue +12 -4
  29. package/src/components/scriptTest/mixins.js +1 -1
  30. package/src/components/table/index.js +12 -12
  31. package/src/components/tempStorage/index.vue +1 -1
  32. package/src/components/vb-tabs/x-tabs.vue +0 -1
  33. package/src/components/wf/content.vue +32 -36
  34. package/src/components/wf/mixins/setCandidateDialog2.js +1 -1
  35. package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -3
  36. package/src/components/wf/setCandidateDialog2.vue +76 -66
  37. package/src/components/wf/wf.js +2176 -1
  38. package/src/components/wf/wfFlowEleScriptDialog.vue +5 -1
  39. package/src/components/wf/wfStartDialog.vue +6 -10
  40. package/src/components/wf/wfUtil.js +279 -1
  41. package/src/components/xform/form-designer/designer.js +1 -1
  42. package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +16 -1
  43. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
  44. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +17 -4
  45. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
  46. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +247 -187
  47. package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +2 -0
  48. package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
  49. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +10 -0
  50. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +65 -4
  51. package/src/components/xform/form-designer/setting-panel/form-setting.vue +132 -118
  52. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +1 -1
  53. package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +137 -0
  54. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +124 -50
  55. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
  56. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +5 -1
  57. package/src/components/xform/form-render/index.vue +8 -0
  58. package/src/components/xform/form-render/indexMixin copy.js +3462 -0
  59. package/src/components/xform/form-render/indexMixin.js +3496 -1
  60. package/src/components/xform/mixins/defaultHandle.js +1 -1
  61. package/src/components/xform/utils/format.js +14 -4
  62. package/src/components/xform/utils/formula-util.js +0 -4
  63. package/src/components/xform/utils/util.js +1 -1
  64. package/src/index.js +215 -190
  65. package/src/lang/index.js +56 -51
  66. package/src/lang/locale/en/login.js +20 -0
  67. package/src/lang/locale/zh/login.js +20 -0
  68. package/src/layout/components/Sidebar/default.vue +1423 -1266
  69. package/src/layout/components/TagsView/index.vue +37 -11
  70. package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
  71. package/src/layout/components/extractedCode/viewDialog.vue +1 -0
  72. package/src/layout/defaultLayout.vue +1 -1
  73. package/src/layout/index.vue +3 -5
  74. package/src/mixins/table/index.js +151 -0
  75. package/src/permission.js +1 -18
  76. package/src/router/modules/customer.js +3 -8
  77. package/src/store/getters.js +24 -23
  78. package/src/store/modules/user.js +1 -30
  79. package/src/utils/vab.js +1 -1
  80. package/src/views/bd/setting/config_manage/list.vue +36 -19
  81. package/src/views/bd/setting/form_script/edit.vue +9 -0
  82. package/src/views/bd/setting/form_script/edit1.vue +29 -3
  83. package/src/views/bd/setting/form_script/form_list.vue +99 -37
  84. package/src/views/bd/setting/form_script/list1.vue +181 -118
  85. package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
  86. package/src/views/bd/setting/form_script/mixins/edit.js +199 -1
  87. package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
  88. package/src/views/bd/setting/form_script/mixins/list.js +236 -1
  89. package/src/views/bd/setting/form_script/mixins/list1.js +410 -1
  90. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
  91. package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
  92. package/src/views/bd/setting/form_template/edit.vue +13 -0
  93. package/src/views/bd/setting/form_template/list.vue +326 -214
  94. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +279 -1
  95. package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
  96. package/src/views/bd/setting/form_template/mixins/list.js +667 -3
  97. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
  98. package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
  99. package/src/views/bd/setting/logic_param/mixins/edit.js +1 -91
  100. package/src/views/bd/setting/logic_param/mixins/list.js +2 -362
  101. package/src/views/bd/setting/menu_kind/list.vue +172 -87
  102. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
  103. package/src/views/bd/setting/table_model/edit.vue +345 -304
  104. package/src/views/bd/setting/table_model/list.vue +190 -128
  105. package/src/views/bd/setting/table_model/mixins/edit.js +1191 -1
  106. package/src/views/bd/setting/table_model/mixins/list.js +428 -2
  107. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
  108. package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
  109. package/src/views/user/access_log/list.vue +418 -349
  110. package/src/views/user/area/dialog.vue +223 -116
  111. package/src/views/user/area/list.vue +318 -0
  112. package/src/views/user/common_attribute/list.vue +4 -1
  113. package/src/views/user/extend_datasource/dialog.vue +3 -0
  114. package/src/views/user/extend_datasource/edit.vue +2 -1
  115. package/src/views/user/extend_datasource/list.vue +3 -0
  116. package/src/views/user/form/vform/designer.vue +2 -1
  117. package/src/views/user/home/bears/index.vue +1032 -0
  118. package/src/views/user/home/default.vue +6 -5
  119. package/src/views/user/home/taili/index.vue +1034 -0
  120. package/src/views/user/ledger_library/list.vue +10 -12
  121. package/src/views/user/login/default.vue +165 -36
  122. package/src/views/user/login/index.vue +4 -6
  123. package/src/views/user/login/indexMixin.js +184 -8
  124. package/src/views/user/menu/list.vue +24 -1
  125. package/src/views/user/notify_message/dialog.vue +2 -6
  126. package/src/views/user/outLink/index.vue +57 -18
  127. package/src/views/user/role/authConfig.vue +89 -0
  128. package/src/views/user/role/dialog.vue +70 -48
  129. package/src/views/user/role/edit.vue +114 -4
  130. package/src/views/user/user/form_dialog.vue +158 -0
  131. package/src/views/user/user/list.vue +652 -582
  132. package/src/views/user/user/modifyPasswordDialog.vue +64 -53
  133. package/src/views/user/wf/wfReport/index.vue +137 -28
  134. package/src/views/user/wf/wf_obj_config/itemEdit.vue +15 -116
  135. package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +414 -0
  136. package/src/views/user/wf/wf_obj_config/list.vue +84 -78
  137. package/src/views/user/wf/wf_transfer_setting/edit.vue +52 -0
  138. package/src/views/user/wf/wf_transfer_setting/list.vue +10 -0
  139. package/src/components/xform/form-render/container-item/data-table-mixin2.js +0 -2169
  140. package/src/views/bd/setting/table_model/mixins/edit copy.js +0 -903
  141. package/src/views/user/login/index2.vue +0 -131
@@ -22,22 +22,22 @@
22
22
  <tr>
23
23
  <th>
24
24
  <em class="f-red">*</em>
25
- {{ $t1('流程模版名称') }}
25
+ {{ $t1('流程名称') }}
26
26
  </th>
27
27
  <td>
28
- <el-form-item prop="modelName" :rules="[{ required: true, trigger: 'blur' }]">
29
- <el-input autocomplete="off" v-model="wfObjConfigItem.modelName" clearable/>
28
+ <el-form-item prop="flowName" :rules="[{ required: true, trigger: 'blur' }]">
29
+ <el-input autocomplete="off" v-model="wfObjConfigItem.flowName" clearable/>
30
30
  </el-form-item>
31
31
  </td>
32
32
  <th>
33
33
  <em class="f-red">*</em>
34
- {{ $t1('流程模版KEY') }}
34
+ {{ $t1('流程编码') }}
35
35
  </th>
36
36
  <td>
37
- <el-form-item prop="modelKey" :rules="[{ required: true, trigger: 'blur' }]" v-if="!dataId">
38
- <el-input autocomplete="off" v-model="wfObjConfigItem.modelKey" clearable/>
37
+ <el-form-item prop="flowCode" :rules="[{ required: true, trigger: 'blur' }]" v-if="!dataId">
38
+ <el-input autocomplete="off" v-model="wfObjConfigItem.flowCode" clearable/>
39
39
  </el-form-item>
40
- <template v-else>{{ wfObjConfigItem.modelKey }}</template>
40
+ <template v-else>{{ wfObjConfigItem.flowCode }}</template>
41
41
  </td>
42
42
  <th>
43
43
  <em class="f-red">*</em>
@@ -47,56 +47,15 @@
47
47
  {{ wfObjConfigItem.objTypeCode }}
48
48
  </td>
49
49
  </tr>
50
- <tr>
51
- <th>
52
- {{ $t1('跳过相邻任务') }}
53
- </th>
54
- <td>
55
- <el-form-item prop="skipAdjacentTask" :rules="[{ required: false, trigger: 'blur' }]">
56
- <el-radio-group v-model="wfObjConfigItem.skipAdjacentTask">
57
- <el-radio :label="true">{{ $t1('是') }}</el-radio>
58
- <el-radio :label="false">{{ $t1('否') }}</el-radio>
59
- </el-radio-group>
60
- </el-form-item>
61
- </td>
62
- <th>
63
- {{ $t1('驳回后提交模式') }}
64
- </th>
65
- <td colspan="5">
66
- <el-form-item prop="toRejectNode" :rules="[{ required: false, trigger: 'blur' }]">
67
- <el-radio-group v-model="wfObjConfigItem.toRejectNode" @change="changeToRejectNode">
68
- <el-radio :label="true">{{ $t1('由提交人确定节点提交') }}</el-radio>
69
- <el-radio :label="false">{{ $t1('直接提交到驳回节点') }}</el-radio>
70
- </el-radio-group>
71
- <el-radio :label="1" v-model="wfObjConfigItem.toNextNode" @change="changeToNextNode"
72
- style="margin-left: 30px;">{{ $t1('顺延下一步提交') }}
73
- </el-radio>
74
- </el-form-item>
75
- </td>
76
- </tr>
77
- <tr>
78
- <th>
79
- {{ $t1('流程启动处理') }}
80
- </th>
81
- <td colspan="5">
82
- <el-form-item prop="startMode" :rules="[{ required: false, trigger: 'blur' }]">
83
- <el-radio-group v-model="wfObjConfigItem.startMode">
84
- <el-radio :label="1">{{ $t1('节点无候选人,提示异常') }}</el-radio>
85
- <el-radio :label="2">{{ $t1('节点无候选人,提示警告') }}</el-radio>
86
- <el-radio :label="3">{{ $t1('节点无候选人,无提示') }}</el-radio>
87
- </el-radio-group>
88
- </el-form-item>
89
- </td>
90
- </tr>
91
- <tr>
92
- <th>
93
- {{ $t1('跨任务跳过') }}
50
+ <tr>
51
+ <th>
52
+ {{ $t1('设计器模型') }}
94
53
  </th>
95
54
  <td>
96
- <el-form-item prop="skipSameUserTask" :rules="[{ required: false, trigger: 'blur' }]">
97
- <el-radio-group v-model="wfObjConfigItem.skipSameUserTask">
98
- <el-radio :label="true">{{ $t1('') }}</el-radio>
99
- <el-radio :label="false">{{ $t1('') }}</el-radio>
55
+ <el-form-item prop="modelValue" :rules="[{ required: false, trigger: 'blur' }]">
56
+ <el-radio-group v-model="wfObjConfigItem.modelValue" :disabled="isEdit">
57
+ <el-radio label="CLASSICS">{{ $t1('经典模型') }}</el-radio>
58
+ <el-radio label="MIMIC">{{ $t1('仿钉钉模型') }}</el-radio>
100
59
  </el-radio-group>
101
60
  </el-form-item>
102
61
  </td>
@@ -120,60 +79,6 @@
120
79
  </el-form-item>
121
80
  </td>
122
81
  </tr>
123
- <tr>
124
- <th>
125
- {{ $t1('是否允许流程启动更改候选人') }}
126
- </th>
127
- <td>
128
- <el-form-item prop="startNoSetCandidate" :rules="[{ required: false, trigger: 'blur' }]">
129
- <el-radio-group v-model="wfObjConfigItem.startNoSetCandidate">
130
- <el-radio :label="false">{{ $t1('是') }}</el-radio>
131
- <el-radio :label="true">{{ $t1('否') }}</el-radio>
132
- </el-radio-group>
133
- </el-form-item>
134
- </td>
135
- </tr>
136
- <tr>
137
- <th>
138
- {{ $t1('任务action脚本') }}<br/>
139
- <scriptDescriptionButton path="static/readme/Wf.txt"></scriptDescriptionButton>
140
- <scriptTestButton :script.sync="wfObjConfigItem.script"></scriptTestButton>
141
- </th>
142
- <td colspan="7">
143
- <el-form-item prop="script" :rules="[{ required: false, trigger: 'blur' }]">
144
- <code-editor mode="java" :readonly="!1" v-model="wfObjConfigItem.script"
145
- v-if="showCodeEditor"></code-editor>
146
- </el-form-item>
147
- </td>
148
- </tr>
149
- <tr>
150
- <th class="no"></th>
151
- <td colspan="7">
152
- <span class="fl tips">{{ $t1('注:流程任务执行过程中,每一次的action动作都会执行此脚本。') }}</span>
153
- </td>
154
- </tr>
155
- <tr>
156
- <th>
157
- {{ $t1('模板筛选脚本') }}<br/>
158
- <scriptDescriptionButton path="static/readme/Wf.txt"></scriptDescriptionButton>
159
- <scriptTestButton :script.sync="wfObjConfigItem.script"></scriptTestButton>
160
- </th>
161
- <td colspan="7">
162
- <el-form-item prop="filterScript" :rules="[{ required: false, trigger: 'blur' }]">
163
- <code-editor mode="java" :readonly="!1" v-model="wfObjConfigItem.filterScript"
164
- v-if="showCodeEditor"></code-editor>
165
- </el-form-item>
166
- </td>
167
- </tr>
168
- <tr>
169
- <th class="no"></th>
170
- <td colspan="7">
171
- <span
172
- class="fl tips">{{
173
- $t1('注:流程启动时,执行筛选脚本,返回true或者不配置筛选脚本表示选用当前模板,返回false表示不选用当前模板。')
174
- }}</span>
175
- </td>
176
- </tr>
177
82
  <tr>
178
83
  <th>{{ $t1('创建人') }}</th>
179
84
  <td>{{ wfObjConfigItem.createBy }}</td>
@@ -210,15 +115,9 @@ export default {
210
115
  isEdit: false,
211
116
  dataId: '',
212
117
  wfObjConfigItem: {
213
- skipFirstTask: true,
214
- skipAdjacentTask: false,
215
- toRejectNode: false,
216
- startMode: 3,
217
- skipSameUserTask: false,
218
- toNextNode: null,
118
+ modelValue: "CLASSICS",
219
119
  enabled: true,
220
120
  orders: undefined,
221
- startNoSetCandidate: false
222
121
  },
223
122
  showWfObjConfigDialog: false,
224
123
  configServiceId: null,
@@ -0,0 +1,414 @@
1
+ <template>
2
+ <el-dialog
3
+ :append-to-body="true"
4
+ :modal-append-to-body="false"
5
+ :close-on-click-modal="false"
6
+ :visible.sync="showDialog"
7
+ :modal="false"
8
+ custom-class="dialog-style list-dialog dialog-checkbox pd_0"
9
+ width="1300px"
10
+ @close="closeDialog"
11
+ v-el-drag-dialog
12
+ v-el-dialog-center
13
+ >
14
+ <template #title>
15
+ <span class="el-dialog__title"
16
+ >流程设置<span style="margin-left: 10px; margin-right: 10px">—</span
17
+ ><b class="f-red" style="font-size: 12px"
18
+ >{{ pRow.objTypeName }}:{{ row.flowName }}({{ row.flowCode }})</b
19
+ ></span
20
+ >
21
+ </template>
22
+ <div class="cont" style="height:450px;padding-bottom: 5px;">
23
+ <vxe-grid
24
+ ref="table-m1"
25
+ v-bind="vxeOption"
26
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
27
+ @custom="$vxeTableUtil.customHandle"
28
+ >
29
+ </vxe-grid>
30
+ </div>
31
+ <!-- <span slot="footer" class="dialog-footer">
32
+ <el-button type="primary" plain class="button-sty" @click="closeDialog">
33
+ <i class="el-icon-close el-icon"></i>
34
+ {{ $t1('取 消') }}
35
+ </el-button>
36
+ <el-button type="primary" class="button-sty" @click="closeDialog">
37
+ <i class="el-icon-check el-icon"></i>
38
+ {{ $t1('确 定') }}
39
+ </el-button>
40
+ </span> -->
41
+ <el-dialog
42
+ :title="scritpDialogTitle"
43
+ :append-to-body="true"
44
+ :modal-append-to-body="true"
45
+ :close-on-click-modal="false"
46
+ v-if="showScriptDialog"
47
+ :visible.sync="showScriptDialog"
48
+ :modal="false"
49
+ custom-class="dialog-style tips-dialog tips-1 "
50
+ width="800px"
51
+ v-el-drag-dialog
52
+ v-el-dialog-center
53
+ >
54
+ <template #title>
55
+ <span class="el-dialog__title"
56
+ >通用脚本设置<span style="margin-left: 10px; margin-right: 10px">—</span
57
+ ><b class="f-red" style="font-size: 12px"
58
+ >{{ pRow.objTypeName }}:{{ currentRow.flowName }}({{ currentRow.flowCode }}) - {{currentRow.version}}</b
59
+ ></span
60
+ >
61
+ </template>
62
+ <div class="cont" style="height: 700px">
63
+ <code-editor
64
+ mode="java"
65
+ :readonly="!1"
66
+ v-model="script"
67
+ height="414px;"
68
+ ></code-editor>
69
+ </div>
70
+ <span slot="footer" class="dialog-footer">
71
+ <el-button
72
+ type="primary"
73
+ plain
74
+ class="button-sty"
75
+ @click="showScriptDialog = false"
76
+ >
77
+ <i class="el-icon-close el-icon"></i>
78
+ {{ $t1("取 消") }}
79
+ </el-button>
80
+ <el-button type="primary" @click="saveScript" class="button-sty">
81
+ <i class="el-icon-check el-icon"></i>
82
+ {{ $t1("确 定") }}
83
+ </el-button>
84
+ </span>
85
+ </el-dialog>
86
+ </el-dialog>
87
+ </template>
88
+
89
+ <script>
90
+ import { Row } from 'element-ui';
91
+
92
+ export default {
93
+ name: 'wfObjConfigDialog11',
94
+ props: ['visiable', 'pRow', 'row'],
95
+ created() {
96
+ },
97
+ mounted() {
98
+ this.initTableM1();
99
+ },
100
+ data() {
101
+ var that = this;
102
+ return {
103
+ showDialog: true,
104
+ falseValue: false,
105
+ selectMulti: true,
106
+ formData: {},
107
+ vxeOption: {},
108
+
109
+
110
+ script:"",
111
+ currentRow:null,
112
+ operateRow:null,
113
+ showScriptDialog:false,
114
+ scriptTypeMap:{
115
+ 'pre': '前置事件',
116
+ 'post': '后置事件',
117
+ 'candidate': '候选人事件',
118
+ 'start': '开始事件',
119
+ 'end': '结束事件',
120
+ 'interrupt': '中断事件',
121
+ 'conditions': '条件事件',
122
+ 'countersignSubmit': '会签提交事件'
123
+ },
124
+ scritpDialogTitle: null
125
+ };
126
+ },
127
+ methods: {
128
+ searchEvent() {
129
+ this.$refs['table-m1'].commitProxy('reload');
130
+ },
131
+ initTableM1() {
132
+ let that = this;
133
+ let modelValueMap = {
134
+ CLASSICS: "经典模型",
135
+ MIMIC: "仿钉钉模型",
136
+ }
137
+ let tableOption = {
138
+ vue: that,
139
+ tableRef: 'table-m1',
140
+ tableName: 'user-wf-itemOperateDialog',
141
+ path: '/' + this.pRow.serviceId + '/wf_obj_config_item/getDefinitions',
142
+ param: () => {
143
+ return {
144
+ stringOne:this.row.flowCode
145
+ };
146
+ },
147
+ columns: [
148
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
149
+ {
150
+ title: this.$t1('流程名称'),
151
+ field: 'flowName',
152
+ width: 150,
153
+ fixed: 'left'
154
+ },
155
+ {
156
+ title: this.$t1('流程编码'),
157
+ field: 'flowCode',
158
+ width: 150
159
+ },
160
+ {
161
+ title: this.$t1('流程版本'),
162
+ field: 'version',
163
+ width: 120
164
+ },
165
+ {
166
+ field: 'isPublish',
167
+ title: this.$t1('是否发布'),
168
+ width: 120,
169
+ slots: {
170
+ default: ({row}) => {
171
+ if (row.isPublish === 1) {
172
+ return [<div class="txt-status">{this.$t1('已发布')}</div>];
173
+ } else if(row.isPublish === 0){
174
+ return [<div class="txt-status s-3">{this.$t1('未发布')}</div>];
175
+ } else if(row.isPublish === 9){
176
+ return [<div class="txt-status s-2">{this.$t1('已失效')}</div>];
177
+ }
178
+ }
179
+ }
180
+ },
181
+ {
182
+ title: this.$t1('设计器模型'),
183
+ field: 'modelValue',
184
+ width: 150,
185
+ slots: {
186
+ default: ({row}) => {
187
+ return modelValueMap[row.modelValue]
188
+ }
189
+ }
190
+ },
191
+ {
192
+ field: 'createDate',
193
+ title: this.$t1('创建时间'),
194
+ width: 150
195
+ },
196
+ {
197
+ field: 'modifyDate',
198
+ title: this.$t1('修改时间'),
199
+ width: 150
200
+ },
201
+ {
202
+ width: 230,
203
+ fixed: 'right',
204
+ sortable: false,
205
+ title: '',
206
+ slots: {
207
+ default: ({row}) => {
208
+ return [
209
+ <a
210
+ href="javascript:void(0);"
211
+ class="a-link"
212
+ onclick={() => {
213
+ this.copy(row);
214
+ }}
215
+ >
216
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('复制')} placement="top"
217
+ popper-class="tooltip-skin">
218
+ <i class="el-icon-copy-document"/>
219
+ </el-tooltip>
220
+ </a>,
221
+ <a
222
+ href="javascript:void(0);"
223
+ onClick={() => {
224
+ this.openWfDesignDialog(row);
225
+ }}
226
+ class="a-link"
227
+ >
228
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('流程设计')} placement="top"
229
+ popper-class="tooltip-skin">
230
+ <i class="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
231
+ </el-tooltip>
232
+ </a>,
233
+ <a
234
+ href="javascript:void(0);"
235
+ class="a-link"
236
+ onclick={() => {
237
+ this.wfPublish(row);
238
+ }}
239
+ >
240
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('发布')} placement="top"
241
+ popper-class="tooltip-skin">
242
+ <i class="el-icon-upload2"/>
243
+ </el-tooltip>
244
+ </a>,
245
+ <a
246
+ href="javascript:void(0);"
247
+ class="a-link"
248
+ onclick={() => {
249
+ this.wfUnPublish(row);
250
+ }}
251
+ >
252
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('取消发布')} placement="top"
253
+ popper-class="tooltip-skin">
254
+ <i class="el-icon-download"/>
255
+ </el-tooltip>
256
+ </a>,
257
+ <a
258
+ href="javascript:void(0);"
259
+ class="a-link"
260
+ onclick={() => {
261
+ this.openScriptDialog(row);
262
+ }}
263
+ >
264
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('通用脚本设置')} placement="top"
265
+ popper-class="tooltip-skin">
266
+ <i class="el-icon-edit"/>
267
+ </el-tooltip>
268
+ </a>
269
+ ];
270
+ }
271
+ }
272
+ }
273
+ ],
274
+ config: {
275
+ proxyConfig: {
276
+ props: {
277
+ result: 'objx', // 配置响应结果列表字段
278
+ total: 'objx.length' // 配置响应结果总页数字段
279
+ }
280
+ },
281
+ }
282
+ };
283
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
284
+ that.vxeOption = opts;
285
+ });
286
+ },
287
+ wfPublish(row){
288
+ this.$baseConfirm(this.$t1('您确定要发布吗?')).then(() => {
289
+ this.$http({
290
+ url: '/' + this.pRow.serviceId + '/wf_obj_config_item/publish',
291
+ method: `post`,
292
+ data: {
293
+ id:row.id
294
+ },
295
+ isLoading: true,
296
+ success: res => {
297
+ this.$message({
298
+ message: res.content,
299
+ type: 'success',
300
+ duration: 2000
301
+ });
302
+ this.searchEvent();
303
+ }
304
+ });
305
+ });
306
+ },
307
+ wfUnPublish(row){
308
+ this.$baseConfirm(this.$t1('您确定要取消发布吗?')).then(() => {
309
+ this.$http({
310
+ url: '/' + this.pRow.serviceId + '/wf_obj_config_item/unPublish',
311
+ method: `post`,
312
+ data: {
313
+ id:row.id
314
+ },
315
+ isLoading: true,
316
+ success: res => {
317
+ this.$message({
318
+ message: res.content,
319
+ type: 'success',
320
+ duration: 2000
321
+ });
322
+ this.searchEvent();
323
+ }
324
+ });
325
+ });
326
+ },
327
+ copy(row){
328
+ this.$baseConfirm(this.$t1('您确定要复制吗?')).then(() => {
329
+ this.$http({
330
+ url: '/' + this.pRow.serviceId + '/wf_obj_config_item/copyDef',
331
+ method: `post`,
332
+ data: {
333
+ id:row.id
334
+ },
335
+ isLoading: true,
336
+ success: res => {
337
+ this.$message({
338
+ message: res.content,
339
+ type: 'success',
340
+ duration: 2000
341
+ });
342
+ this.searchEvent();
343
+ }
344
+ });
345
+ });
346
+ },
347
+ openWfDesignDialog(row) {
348
+ this.$emit('openWfDesignDialog',row.id, this.pRow.serviceId);
349
+ },
350
+ closeDialog(){
351
+ this.showDialog = false;
352
+ this.$emit('update:visiable',false);
353
+ this.$emit('close');
354
+ },
355
+ openScriptDialog(row){
356
+ var url = '/' + this.pRow.serviceId + '/wf_def_script/getCommon';
357
+ this.$http({
358
+ url: url,
359
+ method: `post`,
360
+ data: {
361
+ id: row.id
362
+ },
363
+ isLoading: true,
364
+ success: res => {
365
+ this.currentRow = row
366
+ this.operateRow = res.objx || {
367
+ definitionId: row.id,
368
+ scriptType: "common",
369
+ script: null
370
+ }
371
+ let scriptTypeMap = this.scriptTypeMap
372
+ this.scritpDialogTitle = row.nodeName + "(" + scriptTypeMap[row.scriptType] + ")"
373
+ this.script = this.operateRow.script
374
+ this.showScriptDialog = true
375
+ }
376
+ })
377
+ },
378
+ saveScript() {
379
+ this.$baseConfirm(this.$t1('您确定要保存脚本吗?')).then(() => {
380
+ var url = '/' + this.pRow.serviceId + '/wf_def_script/save';
381
+ this.$http({
382
+ url: url,
383
+ method: `post`,
384
+ data: {
385
+ ...this.operateRow,
386
+ script: this.script
387
+ },
388
+ isLoading: true,
389
+ success: res => {
390
+ this.$message({
391
+ message: res.content,
392
+ type: 'success'
393
+ });
394
+ this.showScriptDialog = false;
395
+ this.searchEvent();
396
+ }
397
+ });
398
+ });
399
+
400
+ },
401
+ }
402
+ };
403
+ </script>
404
+ <style scoped>
405
+ ::v-deep .vxe-grid--pager-wrapper{
406
+ display: none;
407
+ }
408
+ .txt-status.s-2{
409
+ background-color: rgb(244, 244, 245);color: rgb(144, 147, 153);
410
+ }
411
+ .txt-status.s-2:before{
412
+ background-color: rgb(144, 147, 153);
413
+ }
414
+ </style>