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