cloud-web-corejs-haier 1.0.5 → 1.0.6

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
@@ -0,0 +1,318 @@
1
+ <template>
2
+ <div id="containt">
3
+ <el-tabs v-model="activeName" class="tab-box">
4
+ <el-tab-pane :label="$t1('列表')" name="second">
5
+ <div class="grid-height">
6
+ <vxe-grid
7
+ class="is-pointer"
8
+ ref="table-m1"
9
+ v-bind="vxeOption"
10
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
11
+ @custom="$vxeTableUtil.customHandle"
12
+ >
13
+ <template #form>
14
+ <div class="clearfix screen-btns">
15
+ <div class="fl">
16
+ <vxe-button
17
+ status="primary"
18
+ class="button-sty"
19
+ icon="el-icon-plus"
20
+ @click="addTopItem"
21
+ ><i></i>
22
+ {{ $t1("新增一级地区") }}
23
+ </vxe-button>
24
+ <!-- <vxe-button
25
+ status="primary"
26
+ class="button-sty"
27
+ icon="el-icon-plus"
28
+ @click="showAreaDialog = true"
29
+ ><i></i>
30
+ {{ $t1("测试") }}
31
+ </vxe-button> -->
32
+ </div>
33
+ <div class="fr">
34
+ <vxe-button
35
+ icon="el-icon-brush"
36
+ class="button-sty"
37
+ @click="resetEvent"
38
+ type="text"
39
+ status="primary"
40
+ plain
41
+ >{{ $t1("重置") }}
42
+ </vxe-button>
43
+ <vxe-button
44
+ status="warning"
45
+ icon="el-icon-search"
46
+ class="button-sty"
47
+ @click="searchEvent"
48
+ >
49
+ {{ $t1("搜索") }}
50
+ </vxe-button>
51
+ </div>
52
+ </div>
53
+ <vxe-form
54
+ class="screen-box"
55
+ title-width="92px"
56
+ title-align="right"
57
+ :data="formData"
58
+ @submit="searchEvent"
59
+ @reset="resetEvent"
60
+ >
61
+ <vxe-form-item :title="$t1('地区名称') + ':'" field="name">
62
+ <template v-slot>
63
+ <el-input v-model="formData.name" size="small" clearable />
64
+ </template>
65
+ </vxe-form-item>
66
+ <vxe-form-item :title="$t1('地区全称') + ':'" field="fullName">
67
+ <template v-slot>
68
+ <el-input v-model="formData.fullName" size="small" clearable />
69
+ </template>
70
+ </vxe-form-item>
71
+ <vxe-form-item :title="$t1('国家名称') + ':'" field="countryName">
72
+ <template v-slot>
73
+ <el-input
74
+ class="search-input"
75
+ max="200"
76
+ v-model="formData.countryName"
77
+ @clear="formData.locale = null"
78
+ placeholder="默认中国"
79
+ v-el-readonly
80
+ clearable
81
+ >
82
+ <i
83
+ slot="suffix"
84
+ class="el-input__icon el-icon-search"
85
+ @click="showCountryDialog = true"
86
+ ></i>
87
+ </el-input>
88
+ </template>
89
+ </vxe-form-item>
90
+ <vxe-button
91
+ type="submit"
92
+ @click="searchEvent"
93
+ v-show="false"
94
+ ></vxe-button>
95
+ </vxe-form>
96
+ </template>
97
+ <template #operate="obj">
98
+ <div class="cell-operate">
99
+ <template v-if="$refs['table-m1'].isActiveByRow(obj.row)">
100
+ <a @click="saveRowEvent(obj)" class="a-link">
101
+ <el-tooltip
102
+ :enterable="false"
103
+ effect="dark"
104
+ :content="$t1('保存')"
105
+ placement="top"
106
+ popper-class="tooltip-skin"
107
+ ><i class="el-icon-circle-check"></i
108
+ ></el-tooltip>
109
+ </a>
110
+ <a
111
+ @click="cancleRowEvent(obj)"
112
+ class="a-link"
113
+ v-if="hasSaveRow(obj.row)"
114
+ >
115
+ <el-tooltip
116
+ :enterable="false"
117
+ effect="dark"
118
+ :content="$t1('取消行编辑')"
119
+ placement="top"
120
+ popper-class="tooltip-skin"
121
+ ><i class="el-icon-circle-close"></i
122
+ ></el-tooltip>
123
+ </a>
124
+ <a
125
+ @click="removeRowEvent(obj)"
126
+ class="a-link"
127
+ v-if="!hasSaveRow(obj.row)"
128
+ >
129
+ <el-tooltip
130
+ :enterable="false"
131
+ effect="dark"
132
+ :content="$t1('删除')"
133
+ placement="top"
134
+ popper-class="tooltip-skin"
135
+ ><i class="el-icon-delete"></i
136
+ ></el-tooltip>
137
+ </a>
138
+ </template>
139
+ <template v-else>
140
+ <a class="a-link" @click="insertChildEvent(obj)">
141
+ <el-tooltip
142
+ :enterable="false"
143
+ effect="dark"
144
+ :content="$t1('新增')"
145
+ placement="top"
146
+ popper-class="tooltip-skin"
147
+ ><i class="el-icon-circle-plus-outline"></i
148
+ ></el-tooltip>
149
+ </a>
150
+ <a @click="editRowEvent(obj)" class="a-link" v-if="obj.row">
151
+ <el-tooltip
152
+ :enterable="false"
153
+ effect="dark"
154
+ :content="$t1('行编辑')"
155
+ placement="top"
156
+ popper-class="tooltip-skin"
157
+ ><i class="el-icon-edit-outline"></i
158
+ ></el-tooltip>
159
+ </a>
160
+ </template>
161
+ </div>
162
+ </template>
163
+ </vxe-grid>
164
+ </div>
165
+ </el-tab-pane>
166
+ </el-tabs>
167
+ <countryDialog
168
+ v-if="showCountryDialog"
169
+ :visiable.sync="showCountryDialog"
170
+ :multi="false"
171
+ @confirm="countryDialogConfirm"
172
+ ></countryDialog>
173
+ <!-- <areaDialog
174
+ v-if="showAreaDialog"
175
+ :visiable.sync="showAreaDialog"
176
+ :multi="false"
177
+ ></areaDialog> -->
178
+ </div>
179
+ </template>
180
+
181
+ <script>
182
+ import { tableTreeMixins } from "@base/mixins/tableTree/index.js";
183
+ import countryDialog from "@base/views/user/country/dialog.vue";
184
+ // import areaDialog from "@base/views/user/area/dialog.vue";
185
+
186
+ export default {
187
+ name: "menu:in_list",
188
+ components: { countryDialog /* , areaDialog */ },
189
+ mixins: [tableTreeMixins],
190
+ mounted() {
191
+ this.initTableList();
192
+ },
193
+ data() {
194
+ let that = this;
195
+ return {
196
+ activeName: "second",
197
+ dataId: "",
198
+ formData: {
199
+ countryName: null,
200
+ locale: null,
201
+ },
202
+ vxeOption: {},
203
+ showCountryDialog: false,
204
+ showAreaDialog: false,
205
+ };
206
+ },
207
+ methods: {
208
+ searchEvent() {
209
+ this.$refs["table-m1"].commitProxy("reload");
210
+ },
211
+ resetEvent() {
212
+ this.formData = {};
213
+ this.$refs["table-m1"].commitProxy("reload");
214
+ },
215
+ initTableList() {
216
+ let that = this;
217
+ let tableOption = {
218
+ vue: this,
219
+ tableRef: "table-m1",
220
+ tableName: "user_area_list-m1",
221
+ path: USER_PREFIX + "/area/list",
222
+ treeNodeUrl: USER_PREFIX + "/area/getChildren",
223
+ editSaveUrl: USER_PREFIX + "/area/save",
224
+ editDefaultRow: ({ row }) => {
225
+ let locale = row?.locale || null;
226
+ return { enabled: true };
227
+ },
228
+ param: () => {
229
+ let locale = this.formData.locale || null;
230
+ return {
231
+ ...this.formData,
232
+ locale,
233
+ };
234
+ },
235
+ treeNodeParam: (row) => {
236
+ return {
237
+ id: row.id,
238
+ // enabled: this.formData.enabled,
239
+ };
240
+ },
241
+ config: {
242
+ treeConfig: {
243
+ parentField: "parent",
244
+ },
245
+ },
246
+ columns: [
247
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
248
+ {
249
+ title: this.$t1("地区名称"),
250
+ field: "name",
251
+ width: 250,
252
+ fixed: "left",
253
+ treeNode: true,
254
+ editRender: {},
255
+ slots: {
256
+ edit: ({ row }) => {
257
+ return [<el-input v-model={row.name} clearable />];
258
+ },
259
+ },
260
+ },
261
+ {
262
+ field: "code",
263
+ title: this.$t1("地区编码"),
264
+ width: 250,
265
+ editRender: {},
266
+ slots: {
267
+ edit: ({ row }) => {
268
+ return [<el-input v-model={row.code} clearable />];
269
+ },
270
+ },
271
+ },
272
+ {
273
+ field: "fullName",
274
+ title: this.$t1("地区全称"),
275
+ width: 250,
276
+ },
277
+ {
278
+ field: "locale",
279
+ title: this.$t1("国家编码"),
280
+ width: 250,
281
+ editRender: {},
282
+ slots: {
283
+ edit: ({ row }) => {
284
+ return [<el-input v-model={row.locale} clearable />];
285
+ },
286
+ },
287
+ },
288
+ { title: this.$t1("创建人"), field: "createBy", width: 150 },
289
+ { title: this.$t1("创建时间"), field: "createDate", width: 150 },
290
+ { title: this.$t1("更新人"), field: "modifyBy", width: 100 },
291
+ { title: this.$t1("更新时间"), field: "modifyDate", width: 150 },
292
+ {
293
+ width: 100,
294
+ title: "",
295
+ fixed: "right",
296
+ sortable: false,
297
+ slots: { default: "operate" },
298
+ },
299
+ ],
300
+ };
301
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
302
+ this.vxeOption = opts;
303
+ });
304
+ },
305
+ addTopItem(type, parentParam) {
306
+ this.insertTopRow(this.$refs["table-m1"]);
307
+ },
308
+ countryDialogConfirm(rows) {
309
+ if (rows.length > 0) {
310
+ let row = rows[0];
311
+ this.formData.locale = row.countryCode;
312
+ this.formData.countryName = row.simpleName;
313
+ }
314
+ },
315
+ },
316
+ };
317
+ </script>
318
+ <style scoped lang="scss"></style>
@@ -142,7 +142,10 @@ export default {
142
142
  tableName: 'basic_common_attribute_list-m1',
143
143
  path: USER_PREFIX + '/common_attribute/listPage',
144
144
  param: () => {
145
- return this.formData;
145
+ return {
146
+ ...this.formData,
147
+ enabled: true
148
+ };
146
149
  },
147
150
  config: {
148
151
  checkboxConfig: {
@@ -51,6 +51,7 @@
51
51
  <el-select v-model="formData.dsType" clearable>
52
52
  <el-option :value="0" label="mysql"></el-option>
53
53
  <el-option :value="1" label="oracle"></el-option>
54
+ <el-option :value="2" label="doris"></el-option>
54
55
  </el-select>
55
56
  </template>
56
57
  </vxe-form-item>
@@ -156,6 +157,8 @@ export default {
156
157
  return 'mysql';
157
158
  } else if (row.dsType === 1) {
158
159
  return 'oracle';
160
+ } else if (row.dsType === 2) {
161
+ return 'doris';
159
162
  }
160
163
  }
161
164
  }
@@ -61,11 +61,12 @@
61
61
  <em class="f-red">*</em>
62
62
  {{ $t1('数据源类型') }}
63
63
  </th>
64
- <td>
64
+ <td colspan="3">
65
65
  <el-form-item prop="dsType" :rules="[{ required: true, trigger: 'blur' }]">
66
66
  <el-radio-group v-model="dataSource.dsType">
67
67
  <el-radio :label="0">mysql</el-radio>
68
68
  <el-radio :label="1">oracle</el-radio>
69
+ <el-radio :label="2">doris</el-radio>
69
70
  </el-radio-group>
70
71
  </el-form-item>
71
72
  </td>
@@ -48,6 +48,7 @@
48
48
  <el-select v-model="formData.dsType" clearable>
49
49
  <el-option :value="0" label="mysql"></el-option>
50
50
  <el-option :value="1" label="oracle"></el-option>
51
+ <el-option :value="2" label="doris"></el-option>
51
52
  </el-select>
52
53
  </template>
53
54
  </vxe-form-item>
@@ -133,6 +134,8 @@ export default {
133
134
  return 'mysql';
134
135
  } else if (row.dsType === 1) {
135
136
  return 'oracle';
137
+ } else if (row.dsType === 2) {
138
+ return 'doris';
136
139
  }
137
140
  }
138
141
  }
@@ -104,7 +104,8 @@ export default {
104
104
  this.showDesinger = true;
105
105
  this.$nextTick(() => {
106
106
  let formJson = this.$baseLodash.cloneDeep({
107
- widgetList: this.widgetList
107
+ widgetList: this.widgetList,
108
+ formConfig:{}
108
109
  });
109
110
  this.$refs.designer.setFormJson(formJson);
110
111
  })