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,122 @@
1
+ <template>
2
+ <div class="detail-wrap">
3
+ <el-form ref="editForm" :model="logicParam">
4
+ <div class="d-header clearfix">
5
+ <div class="fl">
6
+ <i class="el-icon-info" />
7
+ {{ dataId ? $t1("查看上传文件服务") : $t1("新增上传文件服务") }}
8
+ </div>
9
+ <div class="fr">
10
+ <el-button
11
+ type="primary"
12
+ plain
13
+ class="button-sty"
14
+ @click="$baseReload()"
15
+ icon="el-icon-refresh-right"
16
+ >
17
+ {{ $t1("重置") }}
18
+ </el-button>
19
+ <el-button
20
+ type="primary"
21
+ class="button-sty"
22
+ icon="el-icon-check"
23
+ @click="saveData"
24
+ >{{ $t1("保存") }}
25
+ </el-button>
26
+ </div>
27
+ </div>
28
+ <div class="d-cont">
29
+ <div class="d-item">
30
+ <div class="title first">
31
+ <b>{{ $t1("基本信息") }}</b>
32
+ </div>
33
+ <table class="table-detail">
34
+ <tbody>
35
+ <tr>
36
+ <th>
37
+ <em class="f-red">*</em>
38
+ {{ $t1("参数编码") }}
39
+ </th>
40
+ <td colspan="5">
41
+ <el-form-item
42
+ prop="paramCode"
43
+ :rules="[{ required: true, trigger: 'blur' }]"
44
+ >
45
+ <el-input
46
+ type="text"
47
+ autocomplete="off"
48
+ v-model="logicParam.paramCode"
49
+ clearable
50
+ />
51
+ </el-form-item>
52
+ </td>
53
+ </tr>
54
+ <tr>
55
+ <th>
56
+ {{ $t1("参数值") }}
57
+ </th>
58
+ <td colspan="7">
59
+ <el-form-item
60
+ prop="paramValue"
61
+ :rules="[{ required: false, trigger: 'blur' }]"
62
+ >
63
+ <code-editor
64
+ mode="json"
65
+ :readonly="!1"
66
+ v-model="logicParam.paramValue"
67
+ v-if="showCodeEditor"
68
+ ></code-editor>
69
+ </el-form-item>
70
+ </td>
71
+ </tr>
72
+ <tr>
73
+ <th>{{ $t1("参数备注") }}</th>
74
+ <td colspan="7">
75
+ <el-input
76
+ type="textarea"
77
+ :rows="2"
78
+ :placeholder="$t1('请输入内容')"
79
+ size="small"
80
+ v-model="logicParam.remark"
81
+ clearable
82
+ ></el-input>
83
+ </td>
84
+ </tr>
85
+ <tr>
86
+ <th>{{ $t1("是否启用") }}</th>
87
+ <td>
88
+ <el-form-item
89
+ prop="enabled"
90
+ :rules="[{ required: false, trigger: 'blur' }]"
91
+ >
92
+ <el-radio-group v-model="logicParam.enabled">
93
+ <el-radio :label="true">{{ $t1("启用") }}</el-radio>
94
+ <el-radio :label="false">{{ $t1("禁用") }}</el-radio>
95
+ </el-radio-group>
96
+ </el-form-item>
97
+ </td>
98
+ </tr>
99
+ <tr>
100
+ <th>{{ $t1("创建人") }}</th>
101
+ <td>{{ logicParam.createBy }}</td>
102
+ <th>{{ $t1("创建时间") }}</th>
103
+ <td>{{ logicParam.createDate }}</td>
104
+ <th>{{ $t1("更新人") }}</th>
105
+ <td>{{ logicParam.modifyBy }}</td>
106
+ <th>{{ $t1("更新时间") }}</th>
107
+ <td>{{ logicParam.modifyDate }}</td>
108
+ </tr>
109
+ </tbody>
110
+ </table>
111
+ </div>
112
+ </div>
113
+ </el-form>
114
+ </div>
115
+ </template>
116
+
117
+ <script>
118
+ import editMixin from "./mixins/edit.js";
119
+ export default {
120
+ mixins: [editMixin],
121
+ };
122
+ </script>
@@ -0,0 +1,74 @@
1
+ <template>
2
+ <div id="containt">
3
+ <el-tabs v-model="activeName" class="tab-box">
4
+ <el-tab-pane :label="$t1('常规')" name="first">
5
+ <component
6
+ v-if="showEdit"
7
+ :is="editViewName"
8
+ visible-key="showEdit"
9
+ :_dataId.sync="dataId"
10
+ :copyId.sync="copyId"
11
+ :parent-target="_self"
12
+ @reload="$reloadHandle"
13
+ :paramType="paramType"
14
+ ></component>
15
+ </el-tab-pane>
16
+ <el-tab-pane :label="$t1('列表')" name="second">
17
+ <div class="grid-height">
18
+ <vxe-grid
19
+ ref="table-m1"
20
+ v-bind="vxeOption"
21
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
22
+ @custom="$vxeTableUtil.customHandle"
23
+ >
24
+ <template #form>
25
+ <tableForm
26
+ :formData.sync="formData"
27
+ @searchEvent="searchEvent"
28
+ @resetEvent="resetEvent"
29
+ >
30
+ <template #buttonLeft>
31
+ <vxe-button
32
+ status="primary"
33
+ class="button-sty"
34
+ icon="el-icon-plus"
35
+ @click="openEditDialog"
36
+ >
37
+ {{ $t1("新增") }}
38
+ </vxe-button>
39
+ </template>
40
+ <template #buttonRight>
41
+ <vxe-button
42
+ icon="el-icon-brush"
43
+ class="button-sty"
44
+ @click="resetEvent"
45
+ type="text"
46
+ status="primary"
47
+ plain
48
+ >{{ $t1("重置") }}
49
+ </vxe-button>
50
+ <vxe-button
51
+ status="warning"
52
+ icon="el-icon-search"
53
+ class="button-sty"
54
+ @click="searchEvent"
55
+ >
56
+ {{ $t1("搜索") }}
57
+ </vxe-button>
58
+ </template>
59
+ </tableForm>
60
+ </template>
61
+ </vxe-grid>
62
+ </div>
63
+ </el-tab-pane>
64
+ </el-tabs>
65
+ </div>
66
+ </template>
67
+
68
+ <script>
69
+ import listMixin from "./mixins/list";
70
+ export default {
71
+ name: "logic_param:list",
72
+ mixins: [listMixin],
73
+ };
74
+ </script>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <listView :paramType="1"></listView>
3
+ </template>
4
+
5
+ <script>
6
+ import listView from "./list.vue";
7
+
8
+ export default {
9
+ name: "logic_param:list1",
10
+ components: { listView },
11
+ };
12
+ </script>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <listView :paramType="2"></listView>
3
+ </template>
4
+
5
+ <script>
6
+ import listView from "./list.vue";
7
+
8
+ export default {
9
+ name: "logic_param:list2",
10
+ components: { listView },
11
+ };
12
+ </script>
@@ -0,0 +1,93 @@
1
+ let modules = {}
2
+ modules = {
3
+ name: "logic_paramEdit",
4
+ props: {
5
+ _dataId: [String, Number],
6
+ paramType: {
7
+ type: Number,
8
+ default: 0,
9
+ },
10
+ },
11
+ components: {},
12
+ data() {
13
+ return {
14
+ isEdit: false,
15
+ tabIndex: "first",
16
+ dataId: "",
17
+ logicParam: {
18
+ enabled: true,
19
+ paramValue: null,
20
+ paramType: this.paramType,
21
+ },
22
+ showCodeEditor: false,
23
+ paramTypeMap: {
24
+ 0: "逻辑参数",
25
+ 1: "操作日志编码",
26
+ 2: "上传文件服务",
27
+ },
28
+ };
29
+ },
30
+ created() {
31
+ if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
32
+ },
33
+ mounted() {
34
+ this.getData();
35
+ },
36
+ methods: {
37
+ getData() {
38
+ if (this.dataId && !isNaN(this.dataId)) {
39
+ this.isEdit = true;
40
+ this.$commonHttp({
41
+ url: USER_PREFIX + `/logic_param/get`,
42
+ method: `post`,
43
+ data: {
44
+ id: this.dataId,
45
+ },
46
+ isLoading: true,
47
+ modalStrictly: true,
48
+ success: (res) => {
49
+ this.logicParam = res.objx || {};
50
+ this.showCodeEditor = true;
51
+ },
52
+ });
53
+ } else {
54
+ this.showCodeEditor = true;
55
+ }
56
+ },
57
+ saveData() {
58
+ this.$refs.editForm.$baseValidate((valid) => {
59
+ if (valid) {
60
+ this.$baseConfirm(this.$t1("您确定要保存吗?")).then(() => {
61
+ var url =
62
+ USER_PREFIX + (this.isEdit ? `/logic_param/update` : `/logic_param/save`);
63
+ this.$http({
64
+ url: url,
65
+ method: `post`,
66
+ data: this.logicParam,
67
+ isLoading: true,
68
+ success: (res) => {
69
+ this.$message({
70
+ message: res.content,
71
+ type: "success",
72
+ duration: 500,
73
+ onClose: (t) => {
74
+ if (this.isEdit) {
75
+ this.$baseReload();
76
+ } else {
77
+ this.$baseReload({
78
+ updateParam: {
79
+ _dataId: res.objx
80
+ },
81
+ });
82
+ }
83
+ },
84
+ });
85
+ },
86
+ });
87
+ });
88
+ }
89
+ });
90
+ },
91
+ },
92
+ };
93
+ export default modules
@@ -0,0 +1,358 @@
1
+ import editView from "../edit.vue";
2
+ import editView1 from "../edit1.vue";
3
+ import editView2 from "../edit2.vue";
4
+ import tableForm from "@base/components/table/tableForm.vue";
5
+ import { getJsxBtnList, getJsxStatus } from "@base/views/bd/setting/utils/index";
6
+
7
+ let modules = {};
8
+
9
+ modules = {
10
+ props: {
11
+ paramType: {
12
+ type: Number,
13
+ default: 0,
14
+ },
15
+ },
16
+ components: { tableForm, editView, editView1, editView2 },
17
+ data() {
18
+ return {
19
+ activeName: "second",
20
+ dataId: 0,
21
+ showEdit: false,
22
+ vxeOption: {},
23
+ formData: {},
24
+ editViewName:"editView",
25
+ };
26
+ },
27
+ created() {
28
+ this.initEditViewName();
29
+ },
30
+ mounted() {
31
+ this.initTableList();
32
+ },
33
+ methods: {
34
+ initEditViewName(){
35
+ let paramTypeStr = this.paramType ? this.paramType : "";
36
+ this.editViewName = `editView${paramTypeStr}`;
37
+
38
+ },
39
+ searchEvent() {
40
+ this.$refs["table-m1"].commitProxy("reload");
41
+ },
42
+ resetEvent() {
43
+ this.formData = {};
44
+ this.advancedFormData = {};
45
+ this.$refs["table-m1"].commitProxy("reload");
46
+ },
47
+ openEditDialog(id) {
48
+ this.copyId = 0;
49
+ this.dataId = !id || typeof id == "object" ? 0 : id;
50
+ this.activeName = "first";
51
+ this.$openEditView("showEdit");
52
+ },
53
+ getColumnInfo0() {
54
+ //逻辑参数
55
+ let columns = [
56
+ {
57
+ title: this.$t1("参数编码"),
58
+ field: "paramCode",
59
+ width: 150,
60
+ fixed: "left",
61
+ },
62
+ {
63
+ title: this.$t1("参数值"),
64
+ field: "paramValue",
65
+ width: 150,
66
+ },
67
+ {
68
+ title: this.$t1("参数备注"),
69
+ field: "remark",
70
+ width: 150,
71
+ },
72
+ {
73
+ title: this.$t1("组织编码"),
74
+ field: "paramCompanyCode",
75
+ width: 150,
76
+ },
77
+ {
78
+ title: this.$t1("是否启用"),
79
+ field: "enabled",
80
+ width: 150,
81
+ slots: {
82
+ default: ({ row }) => {
83
+ if (row.enabled) {
84
+ return getJsxStatus(null, this.$t1("启用"));
85
+ } else {
86
+ return getJsxStatus("s-3", this.$t1("禁用"));
87
+ }
88
+ },
89
+ },
90
+ },
91
+ ];
92
+
93
+ let searchColumns = [
94
+ {
95
+ title: this.$t1("参数编码"),
96
+ field: "paramCode",
97
+ type: "input",
98
+ common: true,
99
+ },
100
+ {
101
+ title: this.$t1("参数值"),
102
+ field: "paramValue",
103
+ type: "input",
104
+ common: true,
105
+ },
106
+ {
107
+ title: this.$t1("参数备注"),
108
+ field: "remark",
109
+ type: "input",
110
+ common: true,
111
+ },
112
+ {
113
+ title: this.$t1("组织编码"),
114
+ field: "paramCompanyCode",
115
+ type: "input",
116
+ common: true,
117
+ },
118
+ {
119
+ title: this.$t1("是否启用"),
120
+ field: "enabled",
121
+ type: "select",
122
+ itemOption: [
123
+ {
124
+ label: this.$t1("启用"),
125
+ value: true,
126
+ },
127
+ {
128
+ label: this.$t1("禁用"),
129
+ value: false,
130
+ },
131
+ ],
132
+ common: true,
133
+ },
134
+ ];
135
+
136
+ return { columns, searchColumns };
137
+ },
138
+ getColumnInfo1() {
139
+ //操作日志编码
140
+ let columns = [
141
+ {
142
+ title: this.$t1("参数值"),
143
+ field: "paramValue",
144
+ width: 150,
145
+ fixed: "left",
146
+ },
147
+ {
148
+ title: this.$t1("参数备注"),
149
+ field: "remark",
150
+ width: 150,
151
+ },
152
+ {
153
+ title: this.$t1("是否启用"),
154
+ field: "enabled",
155
+ width: 150,
156
+ slots: {
157
+ default: ({ row }) => {
158
+ if (row.enabled) {
159
+ return getJsxStatus(null, this.$t1("启用"));
160
+ } else {
161
+ return getJsxStatus("s-3", this.$t1("禁用"));
162
+ }
163
+ },
164
+ },
165
+ },
166
+ ];
167
+
168
+ let searchColumns = [
169
+ {
170
+ title: this.$t1("参数值"),
171
+ field: "paramValue",
172
+ type: "input",
173
+ common: true,
174
+ },
175
+ {
176
+ title: this.$t1("参数备注"),
177
+ field: "remark",
178
+ type: "input",
179
+ common: true,
180
+ },
181
+ {
182
+ title: this.$t1("是否启用"),
183
+ field: "enabled",
184
+ type: "select",
185
+ itemOption: [
186
+ {
187
+ label: this.$t1("启用"),
188
+ value: true,
189
+ },
190
+ {
191
+ label: this.$t1("禁用"),
192
+ value: false,
193
+ },
194
+ ],
195
+ common: true,
196
+ },
197
+ ];
198
+
199
+ return { columns, searchColumns };
200
+ },
201
+ getColumnInfo2() {
202
+ //上传文件服务
203
+ let columns = [
204
+ {
205
+ title: this.$t1("参数编码"),
206
+ field: "paramCode",
207
+ width: 150,
208
+ fixed: "left",
209
+ },
210
+ {
211
+ title: this.$t1("参数备注"),
212
+ field: "remark",
213
+ width: 150,
214
+ },
215
+ {
216
+ title: this.$t1("是否启用"),
217
+ field: "enabled",
218
+ width: 150,
219
+ slots: {
220
+ default: ({ row }) => {
221
+ if (row.enabled) {
222
+ return getJsxStatus(null, this.$t1("启用"));
223
+ } else {
224
+ return getJsxStatus("s-3", this.$t1("禁用"));
225
+ }
226
+ },
227
+ },
228
+ },
229
+ ];
230
+
231
+ let searchColumns = [
232
+ {
233
+ title: this.$t1("参数编码"),
234
+ field: "paramCode",
235
+ type: "input",
236
+ common: true,
237
+ },
238
+ {
239
+ title: this.$t1("参数值"),
240
+ field: "paramValue",
241
+ type: "input",
242
+ common: true,
243
+ },
244
+ {
245
+ title: this.$t1("参数备注"),
246
+ field: "remark",
247
+ type: "input",
248
+ common: true,
249
+ },
250
+ {
251
+ title: this.$t1("是否启用"),
252
+ field: "enabled",
253
+ type: "select",
254
+ itemOption: [
255
+ {
256
+ label: this.$t1("启用"),
257
+ value: true,
258
+ },
259
+ {
260
+ label: this.$t1("禁用"),
261
+ value: false,
262
+ },
263
+ ],
264
+ common: true,
265
+ },
266
+ ];
267
+
268
+ return { columns, searchColumns };
269
+ },
270
+ getColumnInfo() {
271
+ if (this.paramType === 0) {
272
+ return this.getColumnInfo0();
273
+ } else if (this.paramType === 1) {
274
+ return this.getColumnInfo1();
275
+ } else if (this.paramType === 2) {
276
+ return this.getColumnInfo2();
277
+ }
278
+ },
279
+ initTableList() {
280
+ let that = this;
281
+ let { columns, searchColumns } = this.getColumnInfo();
282
+
283
+ let tableOption = {
284
+ vue: this,
285
+ tableRef: "table-m1",
286
+ tableName: "logic_param_list-m" + this.paramType,
287
+ path: USER_PREFIX + "/logic_param/listPage",
288
+ param: () => {
289
+ return {
290
+ ...this.formData,
291
+ paramType: this.paramType,
292
+ };
293
+ },
294
+ columns: [
295
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
296
+ ...columns,
297
+ {
298
+ field: "createBy",
299
+ title: this.$t1("创建人"),
300
+ width: 150,
301
+ },
302
+ {
303
+ field: "createDate",
304
+ title: this.$t1("创建时间"),
305
+ width: 150,
306
+ },
307
+ {
308
+ field: "modifyBy",
309
+ title: this.$t1("更新人"),
310
+ width: 150,
311
+ },
312
+ {
313
+ field: "modifyDate",
314
+ title: this.$t1("更新时间"),
315
+ width: 150,
316
+ },
317
+ {
318
+ width: 47,
319
+ fixed: "right",
320
+ title: "",
321
+ sortable: false,
322
+ slots: {
323
+ default: ({ row }) => {
324
+ return [
325
+ <div>
326
+ <a
327
+ href="javascript:void(0);"
328
+ class="a-link"
329
+ onclick={() => {
330
+ this.openEditDialog(row.id);
331
+ }}
332
+ >
333
+ <el-tooltip
334
+ enterable={false}
335
+ effect="dark"
336
+ content={this.$t1("查看")}
337
+ placement="top"
338
+ popper-class="tooltip-skin"
339
+ >
340
+ <i class="el-icon-edit" />
341
+ </el-tooltip>
342
+ </a>
343
+ </div>,
344
+ ];
345
+ },
346
+ },
347
+ },
348
+ ],
349
+ searchColumns,
350
+ };
351
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
352
+ this.vxeOption = opts;
353
+ });
354
+ },
355
+ },
356
+ };
357
+
358
+ export default modules