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.
- package/package.json +1 -1
- package/src/components/VabUpload/index.js +48 -1
- package/src/components/VabUpload/mixins.js +1821 -1
- package/src/components/VabUpload/privateProfileDialogMixins.js +1063 -1
- package/src/components/advancedSearchDialog/mixins.js +28 -1
- package/src/components/baseAlert/index.js +44 -1
- package/src/components/baseAlert/mixins.js +61 -1
- package/src/components/baseAttachment/install.js +21 -5
- package/src/components/baseAttachment/mixins.js +317 -1
- package/src/components/baseInputBatch/mixins.js +58 -1
- package/src/components/baseInputExport/mixins.js +391 -1
- package/src/components/baseTabs/mixins.js +166 -1
- package/src/components/cnPrint/index.js +44 -1
- package/src/components/cnPrint/mixins.js +189 -1
- package/src/components/code-editor/index.vue +51 -136
- package/src/components/confirmDialog/index.js +41 -1
- package/src/components/confirmDialog/mixins.js +31 -1
- package/src/components/errorMsg/index.js +44 -1
- package/src/components/errorMsg/mixins.js +96 -1
- package/src/components/excelExport/index.js +43 -1
- package/src/components/excelExport/mixins.js +964 -1
- package/src/components/excelImport/index.js +74 -13
- package/src/components/excelImport/mixins.js +774 -1
- 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 +202 -350
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +26 -33
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
- package/src/components/fileLibrary/mixins/indexMixins.js +106 -250
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +4 -64
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +4 -3
- package/src/components/formOplog/mixins.js +77 -1
- package/src/components/hiprint/view/design/mixins.js +611 -1
- package/src/components/jdPrint/index.js +44 -1
- package/src/components/jdPrint/mixins.js +208 -1
- package/src/components/jsonImport/index.js +187 -17
- package/src/components/jsonImport/mixins.js +332 -1
- package/src/components/langImport/index.js +80 -1
- package/src/components/langImport/mixins.js +484 -1
- package/src/components/langTag/mixins/addButton.js +51 -5
- package/src/components/langTag/mixins/deleteButton.js +55 -5
- package/src/components/langTag/mixins/view.js +47 -5
- package/src/components/luckysheet/export.js +591 -1
- package/src/components/luckysheet/fileUtils.js +147 -1
- package/src/components/luckysheet/index.js +72 -1
- package/src/components/obsUpload/index.js +34 -1
- package/src/components/obsUpload/mixins.js +1469 -1
- package/src/components/onlineTalk/index.vue +5 -327
- package/src/components/onlineTalk/mixins.js +852 -1
- package/src/components/oplogTable/mixins.js +80 -1
- package/src/components/pddPrint/index.js +44 -1
- package/src/components/pddPrint/mixins.js +252 -1
- package/src/components/projectTag/mixins/addButton.js +52 -1
- package/src/components/projectTag/mixins/deleteButton.js +52 -1
- package/src/components/projectTag/mixins/view.js +43 -1
- package/src/components/scriptDescription/mixins.js +30 -1
- package/src/components/scriptTest/mixins.js +90 -1
- package/src/components/statusTag/mixins.js +66 -1
- package/src/components/table/CellSlot.vue +2 -29
- package/src/components/table/config - hx5.0.js +79 -0
- package/src/components/table/config.js +74 -1
- package/src/components/table/index - hx5.0.js +958 -0
- package/src/components/table/index.js +1055 -1
- package/src/components/table/tableFormMixin.js +281 -1
- package/src/components/table/util/index.js +3 -10
- package/src/components/table/vxeFilter/index.js +153 -1
- package/src/components/table/vxeFilter/mixin.js +301 -1
- package/src/components/vipPrint/index.js +44 -1
- package/src/components/vipPrint/mixins.js +268 -1
- package/src/components/wf/mixins/addOpinionButton.js +51 -1
- package/src/components/wf/mixins/setCandidateButton.js +156 -1
- package/src/components/wf/mixins/setCandidateDialog.js +212 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +247 -1
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +129 -1
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +67 -1
- package/src/components/wf/wf.js +2156 -1
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +1685 -1
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +112 -1
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +290 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1769 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1654 -1
- package/src/components/xform/form-designer/form-widget/indexMixin.js +183 -1
- package/src/components/xform/form-designer/indexMixin.js +847 -1
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +335 -1
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +589 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +308 -1
- package/src/components/xform/form-render/container-item/containerItemMixin.js +389 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +3064 -1
- package/src/components/xform/form-render/dynamicDialogRender.js +199 -1
- package/src/components/xform/form-render/indexMixin.js +3725 -1
- package/src/components/xform/form-render/refMixin.js +31 -1
- package/src/components/xform/mixins/defaultHandle.js +343 -1
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/format.js +1 -1
- package/src/components/xform/utils/formula-util.js +4 -0
- package/src/components/xform/utils/smart-vue-i18n/index.js +2 -1
- package/src/components/xform/utils/util.js +1464 -1
- package/src/components/xform/utils/validators.js +134 -1
- package/src/components/xhsPrint/index.js +44 -1
- package/src/components/xhsPrint/mixins.js +269 -1
- package/src/directive/LimitNumber/index.js +125 -1
- package/src/directive/el-dialog-center/index.js +34 -1
- package/src/directive/el-drag-dialog/drag.js +86 -1
- package/src/directive/el-readonly/index.js +15 -1
- package/src/directive/permission/hasPermi.js +34 -1
- package/src/permission.js +135 -1
- package/src/store/config/index.js +667 -1
- package/src/store/modules/permission.js +0 -15
- package/src/store/modules/settings.js +26 -1
- package/src/store/modules/tagsView.js +200 -1
- package/src/store/modules/user.js +356 -1
- package/src/utils/aes.js +15 -1
- package/src/utils/auth.js +27 -1
- package/src/utils/global.js +362 -1
- package/src/utils/index.js +579 -1
- package/src/utils/keepAlive.js +181 -1
- package/src/utils/pddLog.js +17 -28
- package/src/utils/request.js +368 -1
- package/src/utils/vab.js +1258 -1
- package/src/utils/validate.js +106 -1
- package/src/utils/wf.js +749 -4
|
@@ -1,28 +1,22 @@
|
|
|
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 "../../../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: [
|
|
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:
|
|
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:
|
|
60
|
-
currentRow:
|
|
61
|
-
|
|
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[
|
|
60
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
72
61
|
},
|
|
73
62
|
resetEvent() {
|
|
74
63
|
this.formData = {};
|
|
75
|
-
this.$refs[
|
|
64
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
76
65
|
},
|
|
77
66
|
openEditDialog(id) {
|
|
78
|
-
this.dataId = !id || typeof id ==
|
|
79
|
-
this.activeName =
|
|
67
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
|
68
|
+
this.activeName = 'first';
|
|
80
69
|
this.showViewDialog = true;
|
|
81
|
-
this.$openEditView(
|
|
70
|
+
this.$openEditView('showEdit');
|
|
82
71
|
},
|
|
83
72
|
|
|
84
73
|
initTableList() {
|
|
85
74
|
let that = this;
|
|
86
75
|
let valMap = {
|
|
87
|
-
0: this.$t2(
|
|
88
|
-
1: this.$t2(
|
|
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:
|
|
93
|
-
tableName:
|
|
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: ({
|
|
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
|
-
{
|
|
98
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
109
99
|
{
|
|
110
|
-
title: this.$t2(
|
|
111
|
-
field:
|
|
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(
|
|
119
|
-
field:
|
|
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(
|
|
127
|
-
field:
|
|
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(
|
|
135
|
-
field:
|
|
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(
|
|
143
|
-
field:
|
|
132
|
+
title: this.$t2('新增', 'components.fileLibrary.add'),
|
|
133
|
+
field: 'addAuth',
|
|
144
134
|
width: 150,
|
|
145
135
|
slots: {
|
|
146
|
-
default: ({
|
|
136
|
+
default: ({row}) => {
|
|
147
137
|
return [
|
|
148
|
-
<el-switch
|
|
149
|
-
|
|
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(
|
|
160
|
-
field:
|
|
145
|
+
title: this.$t2('编辑', 'components.fileLibrary.edit'),
|
|
146
|
+
field: 'editAuth',
|
|
161
147
|
width: 150,
|
|
162
148
|
slots: {
|
|
163
|
-
default: ({
|
|
149
|
+
default: ({row}) => {
|
|
164
150
|
return [
|
|
165
|
-
<el-switch
|
|
166
|
-
|
|
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(
|
|
177
|
-
field:
|
|
158
|
+
title: this.$t2('查看', 'components.fileLibrary.view'),
|
|
159
|
+
field: 'viewAuth',
|
|
178
160
|
width: 150,
|
|
179
161
|
slots: {
|
|
180
|
-
default: ({
|
|
162
|
+
default: ({row}) => {
|
|
181
163
|
return [
|
|
182
|
-
<el-switch
|
|
183
|
-
|
|
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(
|
|
194
|
-
field:
|
|
171
|
+
title: this.$t2('上传', 'components.fileLibrary.upload'),
|
|
172
|
+
field: 'uploadAuth',
|
|
195
173
|
width: 150,
|
|
196
174
|
slots: {
|
|
197
|
-
default: ({
|
|
175
|
+
default: ({row}) => {
|
|
198
176
|
return [
|
|
199
|
-
<el-switch
|
|
200
|
-
|
|
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(
|
|
211
|
-
field:
|
|
184
|
+
title: this.$t2('下载', 'components.fileLibrary.download'),
|
|
185
|
+
field: 'downloadAuth',
|
|
212
186
|
width: 150,
|
|
213
187
|
slots: {
|
|
214
|
-
default: ({
|
|
188
|
+
default: ({row}) => {
|
|
215
189
|
return [
|
|
216
|
-
<el-switch
|
|
217
|
-
|
|
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(
|
|
228
|
-
field:
|
|
197
|
+
title: this.$t2('移动', 'components.fileLibrary.move'),
|
|
198
|
+
field: 'moveAuth',
|
|
229
199
|
width: 150,
|
|
230
200
|
slots: {
|
|
231
|
-
default: ({
|
|
201
|
+
default: ({row}) => {
|
|
232
202
|
return [
|
|
233
|
-
<el-switch
|
|
234
|
-
|
|
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(
|
|
245
|
-
field:
|
|
210
|
+
title: this.$t2('复制', 'components.fileLibrary.copy'),
|
|
211
|
+
field: 'copyAuth',
|
|
246
212
|
width: 150,
|
|
247
213
|
slots: {
|
|
248
|
-
default: ({
|
|
214
|
+
default: ({row}) => {
|
|
249
215
|
return [
|
|
250
|
-
<el-switch
|
|
251
|
-
|
|
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(
|
|
262
|
-
field:
|
|
223
|
+
title: this.$t2('替换', 'components.fileLibrary.replace'),
|
|
224
|
+
field: 'replaceAuth',
|
|
263
225
|
width: 150,
|
|
264
226
|
slots: {
|
|
265
|
-
default: ({
|
|
227
|
+
default: ({row}) => {
|
|
266
228
|
return [
|
|
267
|
-
<el-switch
|
|
268
|
-
|
|
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(
|
|
279
|
-
field:
|
|
236
|
+
title: this.$t2('删除文件', 'components.fileLibrary.deleteFile'),
|
|
237
|
+
field: 'deleteAuth',
|
|
280
238
|
width: 150,
|
|
281
239
|
slots: {
|
|
282
|
-
default: ({
|
|
240
|
+
default: ({row}) => {
|
|
283
241
|
return [
|
|
284
|
-
<el-switch
|
|
285
|
-
|
|
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: ({
|
|
253
|
+
default: ({row}) => {
|
|
303
254
|
return [
|
|
304
|
-
<el-switch
|
|
305
|
-
|
|
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(
|
|
316
|
-
field:
|
|
262
|
+
title: this.$t2('查看历史', 'components.fileLibrary.checkHistory'),
|
|
263
|
+
field: 'historyAuth',
|
|
317
264
|
width: 150,
|
|
318
265
|
slots: {
|
|
319
|
-
default: ({
|
|
266
|
+
default: ({row}) => {
|
|
320
267
|
return [
|
|
321
|
-
<el-switch
|
|
322
|
-
|
|
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(
|
|
333
|
-
field:
|
|
275
|
+
title: this.$t2('分享', 'components.fileLibrary.share'),
|
|
276
|
+
field: 'shareAuth',
|
|
334
277
|
width: 150,
|
|
335
278
|
slots: {
|
|
336
|
-
default: ({
|
|
279
|
+
default: ({row}) => {
|
|
337
280
|
return [
|
|
338
|
-
<el-switch
|
|
339
|
-
|
|
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:
|
|
410
|
-
title:
|
|
293
|
+
fixed: 'right',
|
|
294
|
+
title: '',
|
|
411
295
|
sortable: false,
|
|
412
296
|
slots: {
|
|
413
|
-
default: ({
|
|
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
|
-
|
|
424
|
-
|
|
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
|
-
|
|
442
|
-
|
|
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(
|
|
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 +
|
|
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:
|
|
345
|
+
success: res1 => {
|
|
472
346
|
tableData = res1.objx?.records || [];
|
|
473
|
-
tableData.forEach(
|
|
347
|
+
tableData.forEach(item => {
|
|
474
348
|
item._isParent = true;
|
|
475
|
-
})
|
|
349
|
+
})
|
|
476
350
|
|
|
477
351
|
this.$http({
|
|
478
|
-
url: this.current_prefix +
|
|
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:
|
|
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(
|
|
390
|
+
this.$emit('update:visiable', false)
|
|
516
391
|
},
|
|
517
392
|
deleteRows() {
|
|
518
|
-
let checkRows = this.$refs[
|
|
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
|
-
|
|
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:
|
|
540
|
-
url: this.current_prefix +
|
|
406
|
+
method: 'post',
|
|
407
|
+
url: this.current_prefix + '/file_obj_auth/delete',
|
|
541
408
|
data: ids,
|
|
542
409
|
isLoading: true,
|
|
543
|
-
success:
|
|
410
|
+
success: res => {
|
|
544
411
|
this.$message({
|
|
545
412
|
message: res.content,
|
|
546
|
-
type:
|
|
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
|
-
.
|
|
621
|
-
|
|
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
|
-
|
|
643
|
-
|
|
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
|
-
|
|
665
|
-
|
|
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
|
-
.
|
|
687
|
-
|
|
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(
|
|
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:
|
|
571
|
+
success: res => {
|
|
718
572
|
this.$message({
|
|
719
573
|
message: res.content,
|
|
720
|
-
type:
|
|
574
|
+
type: 'success',
|
|
721
575
|
duration: 500,
|
|
722
|
-
onClose:
|
|
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
|
-
|
|
753
|
-
|
|
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,
|
|
616
|
+
this.tableData.splice(this.operateIndex,1,row)
|
|
765
617
|
this.showDetailDialog = false;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
768
620
|
};
|
|
769
621
|
export default modules;
|