cloud-web-corejs 1.0.194 → 1.0.195

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 (124) hide show
  1. package/package.json +1 -1
  2. package/src/components/VabUpload/index.js +48 -1
  3. package/src/components/VabUpload/mixins.js +1821 -1
  4. package/src/components/VabUpload/privateProfileDialogMixins.js +1063 -1
  5. package/src/components/advancedSearchDialog/mixins.js +28 -1
  6. package/src/components/baseAlert/index.js +44 -1
  7. package/src/components/baseAlert/mixins.js +61 -1
  8. package/src/components/baseAttachment/install.js +21 -5
  9. package/src/components/baseAttachment/mixins.js +317 -1
  10. package/src/components/baseInputBatch/mixins.js +58 -1
  11. package/src/components/baseInputExport/mixins.js +391 -1
  12. package/src/components/baseTabs/mixins.js +166 -1
  13. package/src/components/cnPrint/index.js +44 -1
  14. package/src/components/cnPrint/mixins.js +189 -1
  15. package/src/components/code-editor/index.vue +51 -136
  16. package/src/components/confirmDialog/index.js +41 -1
  17. package/src/components/confirmDialog/mixins.js +31 -1
  18. package/src/components/errorMsg/index.js +44 -1
  19. package/src/components/errorMsg/mixins.js +96 -1
  20. package/src/components/excelExport/index.js +43 -1
  21. package/src/components/excelExport/mixins.js +964 -1
  22. package/src/components/excelImport/index.js +74 -13
  23. package/src/components/excelImport/mixins.js +774 -1
  24. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  25. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  26. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  27. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +202 -350
  28. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +26 -33
  29. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
  30. package/src/components/fileLibrary/mixins/indexMixins.js +106 -250
  31. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +4 -64
  32. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +4 -3
  33. package/src/components/formOplog/mixins.js +77 -1
  34. package/src/components/hiprint/view/design/mixins.js +611 -1
  35. package/src/components/jdPrint/index.js +44 -1
  36. package/src/components/jdPrint/mixins.js +208 -1
  37. package/src/components/jsonImport/index.js +187 -17
  38. package/src/components/jsonImport/mixins.js +332 -1
  39. package/src/components/langImport/index.js +80 -1
  40. package/src/components/langImport/mixins.js +484 -1
  41. package/src/components/langTag/mixins/addButton.js +51 -5
  42. package/src/components/langTag/mixins/deleteButton.js +55 -5
  43. package/src/components/langTag/mixins/view.js +47 -5
  44. package/src/components/luckysheet/export.js +591 -1
  45. package/src/components/luckysheet/fileUtils.js +147 -1
  46. package/src/components/luckysheet/index.js +72 -1
  47. package/src/components/obsUpload/index.js +34 -1
  48. package/src/components/obsUpload/mixins.js +1469 -1
  49. package/src/components/onlineTalk/index.vue +5 -327
  50. package/src/components/onlineTalk/mixins.js +852 -1
  51. package/src/components/oplogTable/mixins.js +80 -1
  52. package/src/components/pddPrint/index.js +44 -1
  53. package/src/components/pddPrint/mixins.js +252 -1
  54. package/src/components/projectTag/mixins/addButton.js +52 -1
  55. package/src/components/projectTag/mixins/deleteButton.js +52 -1
  56. package/src/components/projectTag/mixins/view.js +43 -1
  57. package/src/components/scriptDescription/mixins.js +30 -1
  58. package/src/components/scriptTest/mixins.js +90 -1
  59. package/src/components/statusTag/mixins.js +66 -1
  60. package/src/components/table/CellSlot.vue +2 -29
  61. package/src/components/table/config - hx5.0.js +79 -0
  62. package/src/components/table/config.js +74 -1
  63. package/src/components/table/index - hx5.0.js +958 -0
  64. package/src/components/table/index.js +1055 -1
  65. package/src/components/table/tableFormMixin.js +281 -1
  66. package/src/components/table/util/index.js +3 -10
  67. package/src/components/table/vxeFilter/index.js +153 -1
  68. package/src/components/table/vxeFilter/mixin.js +301 -1
  69. package/src/components/vipPrint/index.js +44 -1
  70. package/src/components/vipPrint/mixins.js +268 -1
  71. package/src/components/wf/mixins/addOpinionButton.js +51 -1
  72. package/src/components/wf/mixins/setCandidateButton.js +156 -1
  73. package/src/components/wf/mixins/setCandidateDialog.js +212 -1
  74. package/src/components/wf/mixins/setCandidateDialog2.js +247 -1
  75. package/src/components/wf/mixins/wfFlowEleScriptDialog.js +129 -1
  76. package/src/components/wf/mixins/wfTaskUserRangeDialog.js +67 -1
  77. package/src/components/wf/wf.js +2156 -1
  78. package/src/components/wf/wfUtil.js +279 -1
  79. package/src/components/xform/form-designer/designer.js +1685 -1
  80. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +112 -1
  81. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +290 -1
  82. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1769 -1
  83. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1654 -1
  84. package/src/components/xform/form-designer/form-widget/indexMixin.js +183 -1
  85. package/src/components/xform/form-designer/indexMixin.js +847 -1
  86. package/src/components/xform/form-designer/setting-panel/indexMixin.js +335 -1
  87. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +589 -1
  88. package/src/components/xform/form-designer/widget-panel/indexMixin.js +308 -1
  89. package/src/components/xform/form-render/container-item/containerItemMixin.js +389 -1
  90. package/src/components/xform/form-render/container-item/data-table-mixin.js +3064 -1
  91. package/src/components/xform/form-render/dynamicDialogRender.js +199 -1
  92. package/src/components/xform/form-render/indexMixin.js +3725 -1
  93. package/src/components/xform/form-render/refMixin.js +31 -1
  94. package/src/components/xform/mixins/defaultHandle.js +343 -1
  95. package/src/components/xform/mixins/scriptHttp.js +1 -1
  96. package/src/components/xform/utils/emitter.js +4 -4
  97. package/src/components/xform/utils/format.js +1 -1
  98. package/src/components/xform/utils/formula-util.js +4 -0
  99. package/src/components/xform/utils/smart-vue-i18n/index.js +2 -1
  100. package/src/components/xform/utils/util.js +1464 -1
  101. package/src/components/xform/utils/validators.js +134 -1
  102. package/src/components/xhsPrint/index.js +44 -1
  103. package/src/components/xhsPrint/mixins.js +269 -1
  104. package/src/directive/LimitNumber/index.js +125 -1
  105. package/src/directive/el-dialog-center/index.js +34 -1
  106. package/src/directive/el-drag-dialog/drag.js +86 -1
  107. package/src/directive/el-readonly/index.js +15 -1
  108. package/src/directive/permission/hasPermi.js +34 -1
  109. package/src/permission.js +135 -1
  110. package/src/store/config/index.js +667 -1
  111. package/src/store/modules/permission.js +0 -15
  112. package/src/store/modules/settings.js +26 -1
  113. package/src/store/modules/tagsView.js +200 -1
  114. package/src/store/modules/user.js +356 -1
  115. package/src/utils/aes.js +15 -1
  116. package/src/utils/auth.js +27 -1
  117. package/src/utils/global.js +362 -1
  118. package/src/utils/index.js +579 -1
  119. package/src/utils/keepAlive.js +181 -1
  120. package/src/utils/pddLog.js +17 -28
  121. package/src/utils/request.js +368 -1
  122. package/src/utils/vab.js +1258 -1
  123. package/src/utils/validate.js +106 -1
  124. package/src/utils/wf.js +749 -4
@@ -1,28 +1,22 @@
1
- import editView from "../fileObjAuthEdit";
2
- import userDialog from "@base/views/user/user/dialog";
3
- import positionDialog from "@base/views/user/position/dialog";
4
- import saleOrgDialog from "@base/views/user/sale_org/dialog";
5
- import roleDialog from "@base/views/user/role/dialog";
6
- import fileObjAuthEditDialog from "../fileObjAuthEditDialog.vue";
7
- import fileObjNotifyEdit from "../fileObjNotifyEdit.vue";
1
+ import editView from "../../../components/fileLibrary/fileObjAuthEdit";
2
+ import userDialog from "../../../views/user/user/dialog";
3
+ import positionDialog from "../../../views/user/position/dialog";
4
+ import saleOrgDialog from "../../../views/user/sale_org/dialog";
5
+ import roleDialog from "../../../views/user/role/dialog";
6
+ import fileObjAuthEditDialog from "../../../components/fileLibrary/fileObjAuthEditDialog.vue";
7
+
8
8
 
9
9
  let modules = {};
10
10
  modules = {
11
11
  name: "fileObjAuthDialog",
12
12
  props: {
13
13
  fileObjId: Number,
14
- treeNodeArr: Array,
14
+ treeNodeArr: Array
15
15
  },
16
16
  components: {
17
- editView,
18
- userDialog,
19
- positionDialog,
20
- saleOrgDialog,
21
- roleDialog,
22
- fileObjAuthEditDialog,
23
- fileObjNotifyEdit,
17
+ editView, userDialog, positionDialog, saleOrgDialog, roleDialog,fileObjAuthEditDialog
24
18
  },
25
- inject: ["current_prefix", "getFileStoreArea"],
19
+ inject: ['current_prefix'],
26
20
  mounted() {
27
21
  this.initTableList();
28
22
  },
@@ -30,9 +24,9 @@ modules = {
30
24
  let that = this;
31
25
  return {
32
26
  showDialog: true,
33
- activeName: "first",
34
- value10: "",
35
- dataId: "",
27
+ activeName: 'second',
28
+ value10: '',
29
+ dataId: '',
36
30
  showEdit: false,
37
31
  formData: {
38
32
  saleOrgName: null,
@@ -56,41 +50,36 @@ modules = {
56
50
  showSaleOrgAddDialog: false,
57
51
  showPositionAddDialog: false,
58
52
  showRoleAddDialog: false,
59
- showDetailDialog: false,
60
- currentRow: null,
61
- showFileObjNotifyEdit: true,
53
+ showDetailDialog:false,
54
+ currentRow:null,
55
+
62
56
  };
63
57
  },
64
- computed: {
65
- fileStoreArea() {
66
- return this.getFileStoreArea();
67
- },
68
- },
69
58
  methods: {
70
59
  searchEvent() {
71
- this.$refs["table-m1"].commitProxy("reload");
60
+ this.$refs['table-m1'].commitProxy('reload');
72
61
  },
73
62
  resetEvent() {
74
63
  this.formData = {};
75
- this.$refs["table-m1"].commitProxy("reload");
64
+ this.$refs['table-m1'].commitProxy('reload');
76
65
  },
77
66
  openEditDialog(id) {
78
- this.dataId = !id || typeof id == "object" ? 0 : id;
79
- this.activeName = "first";
67
+ this.dataId = !id || typeof id == 'object' ? 0 : id;
68
+ this.activeName = 'first';
80
69
  this.showViewDialog = true;
81
- this.$openEditView("showEdit");
70
+ this.$openEditView('showEdit');
82
71
  },
83
72
 
84
73
  initTableList() {
85
74
  let that = this;
86
75
  let valMap = {
87
- 0: this.$t2("", "components.fileLibrary.auThLaebl0"),
88
- 1: this.$t2("", "components.fileLibrary.auThLaebl1"),
76
+ 0: this.$t2('', 'components.fileLibrary.auThLaebl0'),
77
+ 1: this.$t2('', 'components.fileLibrary.auThLaebl1')
89
78
  };
90
79
  let tableOption = {
91
80
  vue: this,
92
- tableRef: "table-m1",
93
- tableName: "user_fileLibrary-fileAuto-list-m1",
81
+ tableRef: 'table-m1',
82
+ tableName: 'user_fileLibrary-fileAuto-list-m1',
94
83
  /*path: this.current_prefix + '/file_obj_auth/listPage',
95
84
  param: () => {
96
85
  return {
@@ -100,360 +89,245 @@ modules = {
100
89
  },*/
101
90
  config: {
102
91
  height: "auto",
103
- rowStyle: ({ row, rowIndex }) => {
104
- return row._isParent ? "background-color: #f3f3f3;" : "";
105
- },
92
+ rowStyle: ({row, rowIndex}) => {
93
+ return row._isParent ? "background-color: #f3f3f3;" : ""
94
+
95
+ }
106
96
  },
107
97
  columns: [
108
- { type: "checkbox", width: 48, resizable: false, fixed: "left" },
98
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
109
99
  {
110
- title: this.$t2("机构", "components.fileLibrary.saleOrg"),
111
- field: "saleOrgName",
100
+ title: this.$t2('机构', 'components.fileLibrary.saleOrg'),
101
+ field: 'saleOrgName',
112
102
  width: 150,
113
103
  slots: {
114
- default: "saleOrg",
115
- },
104
+ default: "saleOrg"
105
+ }
116
106
  },
117
107
  {
118
- title: this.$t2("岗位", "components.fileLibrary.position"),
119
- field: "positionName",
108
+ title: this.$t2('岗位', 'components.fileLibrary.position'),
109
+ field: 'positionName',
120
110
  width: 150,
121
111
  slots: {
122
- default: "position",
123
- },
112
+ default: "position"
113
+ }
124
114
  },
125
115
  {
126
- title: this.$t2("用户", "components.fileLibrary.user"),
127
- field: "nickName",
116
+ title: this.$t2('用户', 'components.fileLibrary.user'),
117
+ field: 'nickName',
128
118
  width: 150,
129
119
  slots: {
130
- default: "user",
131
- },
120
+ default: "user"
121
+ }
132
122
  },
133
123
  {
134
- title: this.$t2("角色", "components.fileLibrary.role"),
135
- field: "roleName",
124
+ title: this.$t2('角色', 'components.fileLibrary.role'),
125
+ field: 'roleName',
136
126
  width: 150,
137
127
  slots: {
138
- default: "role",
139
- },
128
+ default: "role"
129
+ }
140
130
  },
141
131
  {
142
- title: this.$t2("新增", "components.fileLibrary.add"),
143
- field: "addAuth",
132
+ title: this.$t2('新增', 'components.fileLibrary.add'),
133
+ field: 'addAuth',
144
134
  width: 150,
145
135
  slots: {
146
- default: ({ row }) => {
136
+ default: ({row}) => {
147
137
  return [
148
- <el-switch
149
- v-model={row.addAuth}
150
- active-value={1}
151
- inactive-value={0}
152
- disabled={row._isParent}
153
- ></el-switch>,
138
+ <el-switch v-model={row.addAuth} active-value={1} inactive-value={0}
139
+ disabled={row._isParent}></el-switch>
154
140
  ];
155
- },
156
- },
141
+ }
142
+ }
157
143
  },
158
144
  {
159
- title: this.$t2("编辑", "components.fileLibrary.edit"),
160
- field: "editAuth",
145
+ title: this.$t2('编辑', 'components.fileLibrary.edit'),
146
+ field: 'editAuth',
161
147
  width: 150,
162
148
  slots: {
163
- default: ({ row }) => {
149
+ default: ({row}) => {
164
150
  return [
165
- <el-switch
166
- v-model={row.editAuth}
167
- active-value={1}
168
- inactive-value={0}
169
- disabled={row._isParent}
170
- ></el-switch>,
151
+ <el-switch v-model={row.editAuth} active-value={1} inactive-value={0}
152
+ disabled={row._isParent}></el-switch>
171
153
  ];
172
- },
173
- },
154
+ }
155
+ }
174
156
  },
175
157
  {
176
- title: this.$t2("查看", "components.fileLibrary.view"),
177
- field: "viewAuth",
158
+ title: this.$t2('查看', 'components.fileLibrary.view'),
159
+ field: 'viewAuth',
178
160
  width: 150,
179
161
  slots: {
180
- default: ({ row }) => {
162
+ default: ({row}) => {
181
163
  return [
182
- <el-switch
183
- v-model={row.viewAuth}
184
- active-value={1}
185
- inactive-value={0}
186
- disabled={row._isParent}
187
- ></el-switch>,
164
+ <el-switch v-model={row.viewAuth} active-value={1} inactive-value={0}
165
+ disabled={row._isParent}></el-switch>
188
166
  ];
189
- },
190
- },
167
+ }
168
+ }
191
169
  },
192
170
  {
193
- title: this.$t2("上传", "components.fileLibrary.upload"),
194
- field: "uploadAuth",
171
+ title: this.$t2('上传', 'components.fileLibrary.upload'),
172
+ field: 'uploadAuth',
195
173
  width: 150,
196
174
  slots: {
197
- default: ({ row }) => {
175
+ default: ({row}) => {
198
176
  return [
199
- <el-switch
200
- v-model={row.uploadAuth}
201
- active-value={1}
202
- inactive-value={0}
203
- disabled={row._isParent}
204
- ></el-switch>,
177
+ <el-switch v-model={row.uploadAuth} active-value={1} inactive-value={0}
178
+ disabled={row._isParent}></el-switch>
205
179
  ];
206
- },
207
- },
180
+ }
181
+ }
208
182
  },
209
183
  {
210
- title: this.$t2("下载", "components.fileLibrary.download"),
211
- field: "downloadAuth",
184
+ title: this.$t2('下载', 'components.fileLibrary.download'),
185
+ field: 'downloadAuth',
212
186
  width: 150,
213
187
  slots: {
214
- default: ({ row }) => {
188
+ default: ({row}) => {
215
189
  return [
216
- <el-switch
217
- v-model={row.downloadAuth}
218
- active-value={1}
219
- inactive-value={0}
220
- disabled={row._isParent}
221
- ></el-switch>,
190
+ <el-switch v-model={row.downloadAuth} active-value={1} inactive-value={0}
191
+ disabled={row._isParent}></el-switch>
222
192
  ];
223
- },
224
- },
193
+ }
194
+ }
225
195
  },
226
196
  {
227
- title: this.$t2("移动", "components.fileLibrary.move"),
228
- field: "moveAuth",
197
+ title: this.$t2('移动', 'components.fileLibrary.move'),
198
+ field: 'moveAuth',
229
199
  width: 150,
230
200
  slots: {
231
- default: ({ row }) => {
201
+ default: ({row}) => {
232
202
  return [
233
- <el-switch
234
- v-model={row.moveAuth}
235
- active-value={1}
236
- inactive-value={0}
237
- disabled={row._isParent}
238
- ></el-switch>,
203
+ <el-switch v-model={row.moveAuth} active-value={1} inactive-value={0}
204
+ disabled={row._isParent}></el-switch>
239
205
  ];
240
- },
241
- },
206
+ }
207
+ }
242
208
  },
243
209
  {
244
- title: this.$t2("复制", "components.fileLibrary.copy"),
245
- field: "copyAuth",
210
+ title: this.$t2('复制', 'components.fileLibrary.copy'),
211
+ field: 'copyAuth',
246
212
  width: 150,
247
213
  slots: {
248
- default: ({ row }) => {
214
+ default: ({row}) => {
249
215
  return [
250
- <el-switch
251
- v-model={row.copyAuth}
252
- active-value={1}
253
- inactive-value={0}
254
- disabled={row._isParent}
255
- ></el-switch>,
216
+ <el-switch v-model={row.copyAuth} active-value={1} inactive-value={0}
217
+ disabled={row._isParent}></el-switch>
256
218
  ];
257
- },
258
- },
219
+ }
220
+ }
259
221
  },
260
222
  {
261
- title: this.$t2("替换", "components.fileLibrary.replace"),
262
- field: "replaceAuth",
223
+ title: this.$t2('替换', 'components.fileLibrary.replace'),
224
+ field: 'replaceAuth',
263
225
  width: 150,
264
226
  slots: {
265
- default: ({ row }) => {
227
+ default: ({row}) => {
266
228
  return [
267
- <el-switch
268
- v-model={row.replaceAuth}
269
- active-value={1}
270
- inactive-value={0}
271
- disabled={row._isParent}
272
- ></el-switch>,
229
+ <el-switch v-model={row.replaceAuth} active-value={1} inactive-value={0}
230
+ disabled={row._isParent}></el-switch>
273
231
  ];
274
- },
275
- },
232
+ }
233
+ }
276
234
  },
277
235
  {
278
- title: this.$t2("删除文件", "components.fileLibrary.deleteFile"),
279
- field: "deleteAuth",
236
+ title: this.$t2('删除文件', 'components.fileLibrary.deleteFile'),
237
+ field: 'deleteAuth',
280
238
  width: 150,
281
239
  slots: {
282
- default: ({ row }) => {
240
+ default: ({row}) => {
283
241
  return [
284
- <el-switch
285
- v-model={row.deleteAuth}
286
- active-value={1}
287
- inactive-value={0}
288
- disabled={row._isParent}
289
- ></el-switch>,
242
+ <el-switch v-model={row.deleteAuth} active-value={1} inactive-value={0}
243
+ disabled={row._isParent}></el-switch>
290
244
  ];
291
- },
292
- },
245
+ }
246
+ }
293
247
  },
294
248
  {
295
- title: this.$t2(
296
- "删除文件夹",
297
- "components.fileLibrary.deleteCategory"
298
- ),
299
- field: "deleteDirAuth",
249
+ title: this.$t2('删除文件夹', 'components.fileLibrary.deleteCategory'),
250
+ field: 'deleteDirAuth',
300
251
  width: 150,
301
252
  slots: {
302
- default: ({ row }) => {
253
+ default: ({row}) => {
303
254
  return [
304
- <el-switch
305
- v-model={row.deleteDirAuth}
306
- active-value={1}
307
- inactive-value={0}
308
- disabled={row._isParent}
309
- ></el-switch>,
255
+ <el-switch v-model={row.deleteDirAuth} active-value={1} inactive-value={0}
256
+ disabled={row._isParent}></el-switch>
310
257
  ];
311
- },
312
- },
258
+ }
259
+ }
313
260
  },
314
261
  {
315
- title: this.$t2("查看历史", "components.fileLibrary.checkHistory"),
316
- field: "historyAuth",
262
+ title: this.$t2('查看历史', 'components.fileLibrary.checkHistory'),
263
+ field: 'historyAuth',
317
264
  width: 150,
318
265
  slots: {
319
- default: ({ row }) => {
266
+ default: ({row}) => {
320
267
  return [
321
- <el-switch
322
- v-model={row.historyAuth}
323
- active-value={1}
324
- inactive-value={0}
325
- disabled={row._isParent}
326
- ></el-switch>,
268
+ <el-switch v-model={row.historyAuth} active-value={1} inactive-value={0}
269
+ disabled={row._isParent}></el-switch>
327
270
  ];
328
- },
329
- },
271
+ }
272
+ }
330
273
  },
331
274
  {
332
- title: this.$t2("分享", "components.fileLibrary.share"),
333
- field: "shareAuth",
275
+ title: this.$t2('分享', 'components.fileLibrary.share'),
276
+ field: 'shareAuth',
334
277
  width: 150,
335
278
  slots: {
336
- default: ({ row }) => {
279
+ default: ({row}) => {
337
280
  return [
338
- <el-switch
339
- v-model={row.shareAuth}
340
- active-value={1}
341
- inactive-value={0}
342
- disabled={row._isParent}
343
- ></el-switch>,
281
+ <el-switch v-model={row.shareAuth} active-value={1} inactive-value={0}
282
+ disabled={row._isParent}></el-switch>
344
283
  ];
345
- },
346
- },
347
- },
348
- ...(this.fileStoreArea.toDownWatermark
349
- ? [
350
- {
351
- title: this.$t1("下载打水印 "),
352
- field: "downWatermarkAuth",
353
- width: 150,
354
- slots: {
355
- default: ({ row }) => {
356
- return [
357
- <el-switch
358
- v-model={row.downWatermarkAuth}
359
- active-value={1}
360
- inactive-value={0}
361
- disabled={row._isParent}
362
- ></el-switch>,
363
- ];
364
- },
365
- },
366
- },
367
- ]
368
- : []),
369
-
370
- {
371
- title: this.$t1("设置权限"),
372
- field: "authAuth",
373
- width: 150,
374
- slots: {
375
- default: ({ row }) => {
376
- return [
377
- <el-switch
378
- v-model={row.authAuth}
379
- active-value={1}
380
- inactive-value={0}
381
- disabled={row._isParent}
382
- ></el-switch>,
383
- ];
384
- },
385
- },
386
- },
387
- {
388
- title: this.$t2("创建人", "system.label.createBy"),
389
- field: "_createBy",
390
- width: 150,
391
- },
392
- {
393
- title: this.$t2("创建时间", "system.label.createDate"),
394
- field: "createDate",
395
- width: 150,
396
- },
397
- {
398
- title: this.$t2("更新人", "system.label.modifyBy"),
399
- field: "_modifyBy",
400
- width: 150,
401
- },
402
- {
403
- title: this.$t2("更新时间", "system.label.modifyDate"),
404
- field: "modifyDate",
405
- width: 150,
284
+ }
285
+ }
406
286
  },
287
+ {title: this.$t2('创建人', 'system.label.createBy'), field: 'createBy', width: 150},
288
+ {title: this.$t2('创建时间', 'system.label.createDate'), field: 'createDate', width: 150},
289
+ {title: this.$t2('更新人', 'system.label.modifyBy'), field: 'modifyBy', width: 150},
290
+ {title: this.$t2('更新时间', 'system.label.modifyDate'), field: 'modifyDate', width: 150},
407
291
  {
408
292
  width: 100,
409
- fixed: "right",
410
- title: "",
293
+ fixed: 'right',
294
+ title: '',
411
295
  sortable: false,
412
296
  slots: {
413
- default: ({ row, rowIndex, $table }) => {
297
+ default: ({row, rowIndex, $table}) => {
414
298
  return [
415
299
  <a
416
300
  href="javascript:void(0);"
417
301
  class="a-link"
418
302
  onClick={() => {
419
- this.openDetailDialog(row, rowIndex);
303
+ this.openDetailDialog(row, rowIndex)
420
304
  }}
421
305
  >
422
- <el-tooltip
423
- enterable={false}
424
- effect="dark"
425
- content="查看"
426
- placement="top"
427
- popper-class="tooltip-skin"
428
- >
429
- <i class="el-icon-edit" />
306
+ <el-tooltip enterable={false} effect="dark" content="查看" placement="top"
307
+ popper-class="tooltip-skin">
308
+ <i class="el-icon-edit"/>
430
309
  </el-tooltip>
431
310
  </a>,
432
311
  <a
433
312
  href="javascript:void(0);"
434
313
  class="a-link"
435
314
  onClick={() => {
436
- this.tableData.splice(rowIndex, 1);
315
+ this.tableData.splice(rowIndex, 1)
437
316
  }}
438
317
  v-show={!row._isParent}
439
318
  >
440
- <el-tooltip
441
- enterable={false}
442
- effect="dark"
443
- content="删除"
444
- placement="top"
445
- popper-class="tooltip-skin"
446
- >
447
- <i class="el-icon-delete" />
319
+ <el-tooltip enterable={false} effect="dark" content="删除" placement="top"
320
+ popper-class="tooltip-skin">
321
+ <i class="el-icon-delete"/>
448
322
  </el-tooltip>
449
- </a>,
323
+ </a>
450
324
  ];
451
- },
452
- },
453
- },
454
- ],
325
+ }
326
+ }
327
+ }
328
+ ]
455
329
  };
456
- this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
330
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
457
331
  this.vxeOption = opts;
458
332
  });
459
333
  this.initData();
@@ -461,33 +335,34 @@ modules = {
461
335
  initData() {
462
336
  let tableData = [];
463
337
  this.$http({
464
- url: this.current_prefix + "/file_obj_auth/listParentPage",
338
+ url: this.current_prefix + '/file_obj_auth/listParentPage',
465
339
  method: `post`,
466
340
  data: {
467
341
  fileObjId: this.fileObjId,
468
342
  },
469
343
  isLoading: true,
470
344
  modalStrictly: true,
471
- success: (res1) => {
345
+ success: res1 => {
472
346
  tableData = res1.objx?.records || [];
473
- tableData.forEach((item) => {
347
+ tableData.forEach(item => {
474
348
  item._isParent = true;
475
- });
349
+ })
476
350
 
477
351
  this.$http({
478
- url: this.current_prefix + "/file_obj_auth/listPage",
352
+ url: this.current_prefix + '/file_obj_auth/listPage',
479
353
  method: `post`,
480
354
  data: {
481
355
  fileObjId: this.fileObjId,
482
356
  },
483
357
  isLoading: true,
484
358
  modalStrictly: true,
485
- success: (res2) => {
486
- tableData.push(...(res2.objx?.records || []));
359
+ success: res2 => {
360
+ tableData.push(...(res2.objx?.records || []))
487
361
  this.tableData = tableData;
488
- },
362
+ }
489
363
  });
490
- },
364
+
365
+ }
491
366
  });
492
367
  },
493
368
  confirmInsertUser(rows) {
@@ -512,42 +387,34 @@ modules = {
512
387
  }
513
388
  },
514
389
  dialogClose() {
515
- this.$emit("update:visiable", false);
390
+ this.$emit('update:visiable', false)
516
391
  },
517
392
  deleteRows() {
518
- let checkRows = this.$refs["table-m1"].getCheckboxRecords(true);
393
+ let checkRows = this.$refs['table-m1'].getCheckboxRecords(true);
519
394
  if (!checkRows.length) {
520
395
  this.$message({
521
- message: this.$t2(
522
- "请选择需要删除的文件权限",
523
- "components.fileLibrary.deleteAuthTip1"
524
- ),
525
- type: "error",
396
+ message: this.$t2('请选择需要删除的文件权限', 'components.fileLibrary.deleteAuthTip1'),
397
+ type: 'error',
526
398
  showClose: true,
527
399
  duration: 3000,
528
400
  });
529
401
  return;
530
402
  }
531
- this.$baseConfirm(
532
- this.$t2(
533
- "您确定要删除吗?",
534
- "components.fileLibrary.deleteAuthConfirmTip"
535
- )
536
- ).then(() => {
537
- let ids = checkRows.map((checkRow) => checkRow.id);
403
+ this.$baseConfirm(this.$t2('您确定要删除吗?', 'components.fileLibrary.deleteAuthConfirmTip')).then(() => {
404
+ let ids = checkRows.map(checkRow => checkRow.id);
538
405
  this.$http({
539
- method: "post",
540
- url: this.current_prefix + "/file_obj_auth/delete",
406
+ method: 'post',
407
+ url: this.current_prefix + '/file_obj_auth/delete',
541
408
  data: ids,
542
409
  isLoading: true,
543
- success: (res) => {
410
+ success: res => {
544
411
  this.$message({
545
412
  message: res.content,
546
- type: "success",
413
+ type: 'success',
547
414
  duration: 500,
548
415
  });
549
416
  this.searchEvent();
550
- },
417
+ }
551
418
  });
552
419
  });
553
420
  },
@@ -570,7 +437,7 @@ modules = {
570
437
  confirmtUserRow(rows) {
571
438
  if (rows.length) {
572
439
  let row = rows[0];
573
- let item = this.tableData[this.operateIndex];
440
+ let item = this.tableData[this.operateIndex]
574
441
  item.userId = row.id;
575
442
  item.nickName = row.nickName;
576
443
  }
@@ -578,7 +445,7 @@ modules = {
578
445
  confirmSaleOrgRow(rows) {
579
446
  if (rows.length) {
580
447
  let row = rows[0];
581
- let item = this.tableData[this.operateIndex];
448
+ let item = this.tableData[this.operateIndex]
582
449
  item.saleOrgId = row.id;
583
450
  item.saleOrgName = row.name;
584
451
  }
@@ -586,7 +453,7 @@ modules = {
586
453
  confirmPositionRow(rows) {
587
454
  if (rows.length) {
588
455
  let row = rows[0];
589
- let item = this.tableData[this.operateIndex];
456
+ let item = this.tableData[this.operateIndex]
590
457
  item.positionId = row.id;
591
458
  item.positionName = row.name;
592
459
  }
@@ -594,7 +461,7 @@ modules = {
594
461
  confirmRoleRow(rows) {
595
462
  if (rows.length) {
596
463
  let row = rows[0];
597
- let item = this.tableData[this.operateIndex];
464
+ let item = this.tableData[this.operateIndex]
598
465
  item.roleId = row.id;
599
466
  item.roleName = row.name;
600
467
  }
@@ -616,11 +483,9 @@ modules = {
616
483
  if (rows.length) {
617
484
  const tableData = this.tableData;
618
485
  const map = {};
619
- tableData
620
- .filter((item) => !!item.userId)
621
- .forEach(function (item) {
622
- map[item.userId] = 1;
623
- });
486
+ tableData.filter(item => !!item.userId).forEach(function (item) {
487
+ map[item.userId] = 1;
488
+ });
624
489
  let items = [];
625
490
 
626
491
  rows.forEach((row, index) => {
@@ -638,11 +503,9 @@ modules = {
638
503
  if (rows.length) {
639
504
  const tableData = this.tableData;
640
505
  const map = {};
641
- tableData
642
- .filter((item) => !!item.saleOrgId && !item.positionId)
643
- .forEach(function (item) {
644
- map[item.saleOrgId] = 1;
645
- });
506
+ tableData.filter(item => !!item.saleOrgId && !item.positionId).forEach(function (item) {
507
+ map[item.saleOrgId] = 1;
508
+ });
646
509
  let items = [];
647
510
 
648
511
  rows.forEach((row, index) => {
@@ -660,11 +523,9 @@ modules = {
660
523
  if (rows.length) {
661
524
  const tableData = this.tableData;
662
525
  const map = {};
663
- tableData
664
- .filter((item) => !!item.positionId && !item.saleOrgId)
665
- .forEach(function (item) {
666
- map[item.positionId] = 1;
667
- });
526
+ tableData.filter(item => !!item.positionId && !item.saleOrgId).forEach(function (item) {
527
+ map[item.positionId] = 1;
528
+ });
668
529
  let items = [];
669
530
 
670
531
  rows.forEach((row, index) => {
@@ -682,11 +543,9 @@ modules = {
682
543
  if (rows.length) {
683
544
  const tableData = this.tableData;
684
545
  const map = {};
685
- tableData
686
- .filter((item) => !!item.roleId)
687
- .forEach(function (item) {
688
- map[item.roleId] = 1;
689
- });
546
+ tableData.filter(item => !!item.roleId).forEach(function (item) {
547
+ map[item.roleId] = 1;
548
+ });
690
549
  let items = [];
691
550
 
692
551
  rows.forEach((row, index) => {
@@ -701,29 +560,24 @@ modules = {
701
560
  }
702
561
  },
703
562
  saveData() {
704
- this.$baseConfirm(
705
- this.$t2("您确定要保存吗?", "system.message.sureSave")
706
- ).then(() => {
563
+ this.$baseConfirm(this.$t2('您确定要保存吗?', 'system.message.sureSave')).then(() => {
707
564
  var url = this.current_prefix + `/file_obj_auth/saves`;
708
- let formData = this.tableData.filter((item) => !item._isParent);
565
+ let formData = this.tableData.filter(item => !item._isParent);
709
566
  this.$http({
710
567
  url: url,
711
568
  method: `post`,
712
- data: {
713
- fileObjId: this.fileObjId,
714
- fileObjAuthDTOs:formData
715
- },
569
+ data: formData,
716
570
  isLoading: true,
717
- success: (res) => {
571
+ success: res => {
718
572
  this.$message({
719
573
  message: res.content,
720
- type: "success",
574
+ type: 'success',
721
575
  duration: 500,
722
- onClose: (t) => {
723
- this.dialogClose();
724
- },
576
+ onClose: t => {
577
+ this.dialogClose()
578
+ }
725
579
  });
726
- },
580
+ }
727
581
  });
728
582
  });
729
583
  },
@@ -749,10 +603,8 @@ modules = {
749
603
  deleteDirAuth: 1,
750
604
  historyAuth: 1,
751
605
  shareAuth: 1,
752
- downWatermarkAuth: 0,
753
- authAuth: 1,
754
- fileObjId: this.fileObjId,
755
- };
606
+ fileObjId: this.fileObjId
607
+ }
756
608
  return row;
757
609
  },
758
610
  openDetailDialog(row, rowIndex) {
@@ -761,9 +613,9 @@ modules = {
761
613
  this.showDetailDialog = true;
762
614
  },
763
615
  confirmDetailDialog(row) {
764
- this.tableData.splice(this.operateIndex, 1, row);
616
+ this.tableData.splice(this.operateIndex,1,row)
765
617
  this.showDetailDialog = false;
766
- },
767
- },
618
+ }
619
+ }
768
620
  };
769
621
  export default modules;