cloud-web-corejs 1.0.54-dev.29 → 1.0.54-dev.30
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/fileLibrary/fileObjAuthDialog.vue +1 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +1 -1
- package/src/components/fileLibrary/fileObjNotifyEdit.vue +47 -66
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +10 -3
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +4 -1
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +1 -1
- package/src/components/fileLibrary/mixins/indexMixins.js +9 -2
- package/src/components/onlineTalk/mixins.js +1 -1
- package/src/utils/request.js +28 -357
- package/src/views/user/file_type/edit.vue +30 -1
- package/src/views/user/file_type/list.vue +28 -0
- package/src/views/user/login/default.vue +4 -2
- package/src/views/user/system_notice/edit.vue +1 -1
- package/src/views/user/user/list.vue +1 -17
package/package.json
CHANGED
@@ -137,7 +137,7 @@
|
|
137
137
|
</vxe-grid>
|
138
138
|
</div>
|
139
139
|
</el-tab-pane>
|
140
|
-
<el-tab-pane :label="$t1('文件操作,发系统通知')" name="second">
|
140
|
+
<el-tab-pane :label="$t1('文件操作,发系统通知')" name="second" v-if="fileStoreArea.toNotify">
|
141
141
|
<div class="grid-height" style="height: 500px">
|
142
142
|
<fileObjNotifyEdit v-if="showFileObjNotifyEdit" visible-key="showFileObjNotifyEdit"
|
143
143
|
:current_prefix="current_prefix" :_dataId="fileObjId" :parent-target="_self"
|
@@ -150,7 +150,7 @@
|
|
150
150
|
<el-switch v-model="fileObjAuth.shareAuth" :active-value="1" :inactive-value="0"
|
151
151
|
:disabled="fileObjAuth._isParent"/>
|
152
152
|
</el-form-item>
|
153
|
-
<el-form-item prop="downWatermarkAuth" :label="$t1('下载打水印')"
|
153
|
+
<el-form-item v-if="fileStoreArea.toDownWatermark" prop="downWatermarkAuth" :label="$t1('下载打水印')"
|
154
154
|
:rules="[{ required: false, trigger: 'blur' }]">
|
155
155
|
<el-switch v-model="fileObjAuth.downWatermarkAuth" :active-value="1" :inactive-value="0"
|
156
156
|
:disabled="fileObjAuth._isParent"/>
|
@@ -1,10 +1,11 @@
|
|
1
1
|
<template>
|
2
|
-
<div class="detail-wrap">
|
3
|
-
<el-form ref="editForm" :model="fileObjNotify">
|
2
|
+
<div class="detail-wrap" style="margin: -6px -8px;">
|
3
|
+
<el-form ref="editForm" :model="fileObjNotify" label-position=top>
|
4
4
|
<div class="d-header clearfix">
|
5
5
|
<div class="fl">
|
6
6
|
<i class="el-icon-info"/>
|
7
|
-
{{ isEdit ? $t1('查看文件对象通知设置') : $t1('新增文件对象通知设置') }}
|
7
|
+
<!--{{ isEdit ? $t1('查看文件对象通知设置') : $t1('新增文件对象通知设置') }}-->
|
8
|
+
文件操作 - 发系统通知设置
|
8
9
|
</div>
|
9
10
|
<div class="fr">
|
10
11
|
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
@@ -15,68 +16,29 @@
|
|
15
16
|
</div>
|
16
17
|
</div>
|
17
18
|
<div class="d-cont">
|
18
|
-
<div class="d-item">
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
<
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<el-radio :label="1">{{ $t1('针对当前文件夹中的文件操作') }}</el-radio>
|
42
|
-
<el-radio :label="2">{{ $t1('针对当前文件夹与下级所有文件夹的文件操作') }}</el-radio>
|
43
|
-
</el-radio-group>
|
44
|
-
</el-form-item>
|
45
|
-
</td>
|
46
|
-
</tr>
|
47
|
-
<tr>
|
48
|
-
<th>
|
49
|
-
{{ $t1('新增文件-通知模板编码') }}
|
50
|
-
</th>
|
51
|
-
<td colspan="3">
|
52
|
-
<el-form-item prop="addNtCode" :rules="[{ required: false, trigger: 'blur' }]">
|
53
|
-
<el-input type="text" autocomplete="off" v-model="fileObjNotify.addNtCode" clearable/>
|
54
|
-
</el-form-item>
|
55
|
-
</td>
|
56
|
-
</tr>
|
57
|
-
<tr>
|
58
|
-
<th>
|
59
|
-
{{ $t1('删除文件-通知模板编码') }}
|
60
|
-
</th>
|
61
|
-
<td colspan="3">
|
62
|
-
<el-form-item prop="deleteNtCode" :rules="[{ required: false, trigger: 'blur' }]">
|
63
|
-
<el-input type="text" autocomplete="off" v-model="fileObjNotify.deleteNtCode" clearable/>
|
64
|
-
</el-form-item>
|
65
|
-
</td>
|
66
|
-
</tr>
|
67
|
-
<tr>
|
68
|
-
<th>
|
69
|
-
{{ $t1('替换文件-通知模板编码') }}
|
70
|
-
</th>
|
71
|
-
<td colspan="3">
|
72
|
-
<el-form-item prop="replaceNtCode" :rules="[{ required: false, trigger: 'blur' }]">
|
73
|
-
<el-input type="text" autocomplete="off" v-model="fileObjNotify.replaceNtCode" clearable/>
|
74
|
-
</el-form-item>
|
75
|
-
</td>
|
76
|
-
</tr>
|
77
|
-
|
78
|
-
</tbody>
|
79
|
-
</table>
|
19
|
+
<div class="d-item d-i-left">
|
20
|
+
<div class="d-i-tit">
|
21
|
+
<em class="f-red">*</em>
|
22
|
+
{{ $t1('文件夹内文件操作是否通知') }}
|
23
|
+
</div>
|
24
|
+
<el-form-item prop="toNotify" :rules="[{ required: true, trigger: 'blur' }]">
|
25
|
+
<el-radio-group v-model="fileObjNotify.toNotify">
|
26
|
+
<div><el-radio :label="0">{{ $t1('不通知') }}</el-radio></div>
|
27
|
+
<div><el-radio :label="1">{{ $t1('针对当前文件夹中的文件操作') }}</el-radio></div>
|
28
|
+
<div><el-radio :label="2">{{ $t1('针对当前文件夹与下级所有文件夹的文件操作') }}</el-radio></div>
|
29
|
+
</el-radio-group>
|
30
|
+
</el-form-item>
|
31
|
+
</div>
|
32
|
+
<div class="d-item d-i-right">
|
33
|
+
<el-form-item prop="addNtCode" :rules="[{ required: false, trigger: 'blur' }]" :label="$t1('新增文件-通知模板编码')">
|
34
|
+
<el-input type="text" autocomplete="off" v-model="fileObjNotify.addNtCode" clearable/>
|
35
|
+
</el-form-item>
|
36
|
+
<el-form-item prop="deleteNtCode" :rules="[{ required: false, trigger: 'blur' }]" :label="$t1('删除文件-通知模板编码') ">
|
37
|
+
<el-input type="text" autocomplete="off" v-model="fileObjNotify.deleteNtCode" clearable/>
|
38
|
+
</el-form-item>
|
39
|
+
<el-form-item prop="replaceNtCode" :rules="[{ required: false, trigger: 'blur' }]" :label=" $t1('替换文件-通知模板编码') ">
|
40
|
+
<el-input type="text" autocomplete="off" v-model="fileObjNotify.replaceNtCode" clearable/>
|
41
|
+
</el-form-item>
|
80
42
|
</div>
|
81
43
|
</div>
|
82
44
|
</el-form>
|
@@ -159,7 +121,7 @@ export default {
|
|
159
121
|
}
|
160
122
|
};
|
161
123
|
</script>
|
162
|
-
<style scoped>
|
124
|
+
<style scoped lang="scss">
|
163
125
|
.noTr th {
|
164
126
|
height: 0px
|
165
127
|
}
|
@@ -167,4 +129,23 @@ export default {
|
|
167
129
|
.noTr td {
|
168
130
|
height: 0px
|
169
131
|
}
|
132
|
+
.d-cont{display: flex;margin: -11px -12px;
|
133
|
+
.d-i-left,.d-i-right{border:none !important;padding:24px 18px 24px 14px !important}
|
134
|
+
.d-i-left{width:420px;}
|
135
|
+
.d-i-tit{
|
136
|
+
background:#f7f7f7;line-height: 36px;padding: 0 10px;margin-bottom: 16px;
|
137
|
+
}
|
138
|
+
.d-i-right{
|
139
|
+
border-left:solid 1px #e9e9e9 !important;flex:1;padding-left:32px !important;
|
140
|
+
::v-deep .el-form-item{margin-bottom:16px;
|
141
|
+
.el-form-item__label{font-size:14px;}
|
142
|
+
.el-form-item__content{
|
143
|
+
.el-input{width:360px !important;
|
144
|
+
.el-input__inner{height:38px !important}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
170
151
|
</style>
|
@@ -17,7 +17,7 @@ modules = {
|
|
17
17
|
components: {
|
18
18
|
editView, userDialog, positionDialog, saleOrgDialog, roleDialog, fileObjAuthEditDialog, fileObjNotifyEdit
|
19
19
|
},
|
20
|
-
inject: ['current_prefix'],
|
20
|
+
inject: ['current_prefix', 'getFileStoreArea'],
|
21
21
|
mounted() {
|
22
22
|
this.initTableList();
|
23
23
|
},
|
@@ -56,6 +56,11 @@ modules = {
|
|
56
56
|
showFileObjNotifyEdit: true
|
57
57
|
};
|
58
58
|
},
|
59
|
+
computed: {
|
60
|
+
fileStoreArea() {
|
61
|
+
return this.getFileStoreArea();
|
62
|
+
}
|
63
|
+
},
|
59
64
|
methods: {
|
60
65
|
searchEvent() {
|
61
66
|
this.$refs['table-m1'].commitProxy('reload');
|
@@ -77,6 +82,8 @@ modules = {
|
|
77
82
|
0: this.$t2('否', 'components.fileLibrary.auThLaebl0'),
|
78
83
|
1: this.$t2('是', 'components.fileLibrary.auThLaebl1')
|
79
84
|
};
|
85
|
+
let a = this.fileStoreArea.toDownWatermark;
|
86
|
+
debugger
|
80
87
|
let tableOption = {
|
81
88
|
vue: this,
|
82
89
|
tableRef: 'table-m1',
|
@@ -285,7 +292,7 @@ modules = {
|
|
285
292
|
}
|
286
293
|
}
|
287
294
|
},
|
288
|
-
{
|
295
|
+
...(this.fileStoreArea.toDownWatermark ? [{
|
289
296
|
title: this.$t1('下载打水印 '),
|
290
297
|
field: 'downWatermarkAuth',
|
291
298
|
width: 150,
|
@@ -297,7 +304,7 @@ modules = {
|
|
297
304
|
];
|
298
305
|
}
|
299
306
|
}
|
300
|
-
},
|
307
|
+
}] : []),
|
301
308
|
{title: this.$t2('创建人', 'system.label.createBy'), field: 'createBy', width: 150},
|
302
309
|
{title: this.$t2('创建时间', 'system.label.createDate'), field: 'createDate', width: 150},
|
303
310
|
{title: this.$t2('更新人', 'system.label.modifyBy'), field: 'modifyBy', width: 150},
|
@@ -14,7 +14,7 @@ modules = {
|
|
14
14
|
components: {
|
15
15
|
userDialog, positionDialog, saleOrgDialog, roleDialog
|
16
16
|
},
|
17
|
-
inject: ['current_prefix'],
|
17
|
+
inject: ['current_prefix', 'getFileStoreArea'],
|
18
18
|
data() {
|
19
19
|
return {
|
20
20
|
isEdit: false,
|
@@ -56,6 +56,9 @@ modules = {
|
|
56
56
|
let prevTitle = this.currentRow ? this.$t2('查看', 'system.button.check') : this.$t2('新增', 'system.button.add')
|
57
57
|
let title = prevTitle + this.$t2('文件权限', 'components.fileLibrary.fileAuth')
|
58
58
|
return title;
|
59
|
+
},
|
60
|
+
fileStoreArea(){
|
61
|
+
return this.getFileStoreArea();
|
59
62
|
}
|
60
63
|
},
|
61
64
|
mounted() {
|
@@ -44,6 +44,9 @@ modules = {
|
|
44
44
|
getObjectForeignId: () => {
|
45
45
|
return this.objectForeignId;
|
46
46
|
},
|
47
|
+
getFileStoreArea: () => {
|
48
|
+
return this.fileStoreArea;
|
49
|
+
}
|
47
50
|
};
|
48
51
|
},
|
49
52
|
async created() {
|
@@ -73,6 +76,7 @@ modules = {
|
|
73
76
|
billDialogContent: null,
|
74
77
|
checkBillDatas: [],
|
75
78
|
title: "",
|
79
|
+
fileStoreArea: {},
|
76
80
|
folderStatus: false,
|
77
81
|
filterText: "",
|
78
82
|
defaultProps: {
|
@@ -1403,6 +1407,7 @@ modules = {
|
|
1403
1407
|
success: (res) => {
|
1404
1408
|
let fileStoreArea = res.objx;
|
1405
1409
|
if (fileStoreArea) {
|
1410
|
+
this.fileStoreArea = fileStoreArea;
|
1406
1411
|
this.title = fileStoreArea.storeAreaName;
|
1407
1412
|
this.$nextTick(() => {
|
1408
1413
|
treeScollx({target: this, type: "default"});
|
@@ -1749,11 +1754,13 @@ modules = {
|
|
1749
1754
|
}
|
1750
1755
|
},
|
1751
1756
|
downloadSingerFile(attachment) {
|
1757
|
+
|
1752
1758
|
let fileObjAuth = this.fileObjAuth;
|
1753
1759
|
if (attachment.dirs || !fileObjAuth.downloadAuth) return
|
1754
1760
|
let url = attachment.domain + attachment.url;
|
1755
|
-
|
1756
|
-
if (fileObjAuth.downWatermarkAuth) {
|
1761
|
+
debugger
|
1762
|
+
if (this.fileStoreArea.toDownWatermark && fileObjAuth.downWatermarkAuth) {
|
1763
|
+
let loginAccount = this.$store.getters.loginAccount;
|
1757
1764
|
url += '?_w=' + encode(loginAccount)
|
1758
1765
|
}
|
1759
1766
|
this.$commonFileUtil.downloadFile(url, attachment.fileName)
|