cloud-web-corejs 1.0.56 → 1.0.58
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/excelExport/exportFieldDialog.vue +201 -0
- package/src/components/excelExport/index.js +5 -5
- package/src/components/excelExport/index.vue +1 -0
- package/src/components/excelExport/mixins.js +4 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +125 -103
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -1
- package/src/components/fileLibrary/fileObjNotifyEdit.vue +153 -0
- package/src/components/fileLibrary/index.vue +2 -2
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +29 -7
- 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 +18 -0
- package/src/layout/components/notify_message/unreadDialog.vue +11 -5
- package/src/views/user/file_type/edit.vue +30 -1
- package/src/views/user/file_type/list.vue +28 -0
- package/src/views/user/home/index.vue +4 -2
- package/src/views/user/outLink/view.vue +21 -0
- package/src/views/user/system_notice/infoDialog.vue +25 -1
@@ -32,12 +32,13 @@
|
|
32
32
|
</div>
|
33
33
|
</el-dialog>
|
34
34
|
<systemNoticeInfoDialog v-if="showSystemNoticeInfoDialog" :visiable.sync="showSystemNoticeInfoDialog"
|
35
|
-
:appendToTop="true"></systemNoticeInfoDialog>
|
35
|
+
:appendToTop="true" :queryParam="systemNoticeInfoDialogParam"></systemNoticeInfoDialog>
|
36
36
|
</div>
|
37
37
|
</template>
|
38
38
|
|
39
39
|
<script>
|
40
40
|
import systemNoticeInfoDialog from "@base/views/user/system_notice/infoDialog.vue";
|
41
|
+
import settingConfig from "@/settings";
|
41
42
|
|
42
43
|
export default {
|
43
44
|
name: 'notifyMessageDialog',
|
@@ -55,7 +56,8 @@ export default {
|
|
55
56
|
tableDatas: [],
|
56
57
|
currentIndex: 0,
|
57
58
|
currentRow: {},
|
58
|
-
showSystemNoticeInfoDialog: false
|
59
|
+
showSystemNoticeInfoDialog: false,
|
60
|
+
systemNoticeInfoDialogParam: {}
|
59
61
|
};
|
60
62
|
},
|
61
63
|
|
@@ -72,9 +74,9 @@ export default {
|
|
72
74
|
this.checkLine(0, () => {
|
73
75
|
this.showDialog = true;
|
74
76
|
});
|
75
|
-
}
|
77
|
+
} else {
|
76
78
|
this.initSystemNoticeInfoDialog();
|
77
|
-
}
|
79
|
+
}
|
78
80
|
}
|
79
81
|
});
|
80
82
|
},
|
@@ -115,14 +117,18 @@ export default {
|
|
115
117
|
|
116
118
|
},
|
117
119
|
initSystemNoticeInfoDialog() {
|
120
|
+
if (!settingConfig.systemNoticeAutoTip) return
|
121
|
+
let userFlag = this.$store.getters.userFlag
|
122
|
+
if (userFlag == 6 || userFlag == 7 || userFlag == 8) return;
|
118
123
|
this.$http({
|
119
124
|
url: USER_PREFIX + '/system_notice/listPage',
|
120
|
-
data: {publish: true, important: true, size: 1},
|
125
|
+
data: {publish: true, important: true, readed: 0, size: 1},
|
121
126
|
method: 'post',
|
122
127
|
success: res => {
|
123
128
|
this.systemNotices = res.objx && res.objx.records ? res.objx.records : [];
|
124
129
|
let rows = res?.objx?.records || []
|
125
130
|
if (rows.length > 0) {
|
131
|
+
this.systemNoticeInfoDialogParam = {publish: true, important: true, readed: 0};
|
126
132
|
this.showSystemNoticeInfoDialog = true;
|
127
133
|
}
|
128
134
|
}
|
@@ -55,6 +55,30 @@
|
|
55
55
|
</el-radio-group>
|
56
56
|
</el-form-item>
|
57
57
|
</td>
|
58
|
+
<th>
|
59
|
+
<em class="f-red">*</em>
|
60
|
+
{{ $t1('文件操作,是否发系统通知') }}
|
61
|
+
</th>
|
62
|
+
<td>
|
63
|
+
<el-form-item prop="toNotify" :rules="[{ required: true, trigger: 'blur' }]">
|
64
|
+
<el-radio-group v-model="fileStoreArea.toNotify">
|
65
|
+
<el-radio :label="1">{{ $t1('是') }}</el-radio>
|
66
|
+
<el-radio :label="0">{{ $t1('否') }}</el-radio>
|
67
|
+
</el-radio-group>
|
68
|
+
</el-form-item>
|
69
|
+
</td>
|
70
|
+
<th>
|
71
|
+
<em class="f-red">*</em>
|
72
|
+
{{ $t1('文件下载,是否打水印') }}
|
73
|
+
</th>
|
74
|
+
<td>
|
75
|
+
<el-form-item prop="toDownWatermark" :rules="[{ required: true, trigger: 'blur' }]">
|
76
|
+
<el-radio-group v-model="fileStoreArea.toDownWatermark">
|
77
|
+
<el-radio :label="1">{{ $t1('是') }}</el-radio>
|
78
|
+
<el-radio :label="0">{{ $t1('否') }}</el-radio>
|
79
|
+
</el-radio-group>
|
80
|
+
</el-form-item>
|
81
|
+
</td>
|
58
82
|
</tr>
|
59
83
|
<tr>
|
60
84
|
<th>{{ $t1('备注') }}</th>
|
@@ -94,7 +118,12 @@ export default {
|
|
94
118
|
tabIndex: 0,
|
95
119
|
isEdit: false,
|
96
120
|
dataId: '',
|
97
|
-
fileStoreArea: {
|
121
|
+
fileStoreArea: {
|
122
|
+
storeAreaType: 0,
|
123
|
+
hasAuth: 0,
|
124
|
+
toNotify: 0,
|
125
|
+
toDownWatermark: 0
|
126
|
+
},
|
98
127
|
};
|
99
128
|
},
|
100
129
|
created() {
|
@@ -154,6 +154,34 @@ export default {
|
|
154
154
|
}
|
155
155
|
}
|
156
156
|
},
|
157
|
+
{
|
158
|
+
field: 'toNotify',
|
159
|
+
title: this.$t1('文件操作,是否发系统通知'),
|
160
|
+
width: 220,
|
161
|
+
slots: {
|
162
|
+
default: ({row}) => {
|
163
|
+
if (row.toNotify == 1) {
|
164
|
+
return [<div class="txt-status">{this.$t1('是')}</div>];
|
165
|
+
} else {
|
166
|
+
return [<div class="txt-status s-3">{this.$t1('否')}</div>];
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
170
|
+
},
|
171
|
+
{
|
172
|
+
field: 'toDownWatermark',
|
173
|
+
title: this.$t1('文件下载,是否打水印'),
|
174
|
+
width: 200,
|
175
|
+
slots: {
|
176
|
+
default: ({row}) => {
|
177
|
+
if (row.toDownWatermark == 1) {
|
178
|
+
return [<div class="txt-status">{this.$t1('是')}</div>];
|
179
|
+
} else {
|
180
|
+
return [<div class="txt-status s-3">{this.$t1('否')}</div>];
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
},
|
157
185
|
{
|
158
186
|
title: this.$t1('备注'),
|
159
187
|
field: 'note',
|
@@ -21,6 +21,7 @@ export default {
|
|
21
21
|
flag: 0,
|
22
22
|
homeContent: null,
|
23
23
|
showHomeContent: false,
|
24
|
+
userInfo: {}
|
24
25
|
};
|
25
26
|
},
|
26
27
|
created() {
|
@@ -33,6 +34,7 @@ export default {
|
|
33
34
|
method: 'post',
|
34
35
|
success: res => {
|
35
36
|
let userInfo = res.objx;
|
37
|
+
this.userInfo = userInfo;
|
36
38
|
let flag = userInfo.flag;
|
37
39
|
if (flag !== 6 && flag !== 7 && flag !== 8) {
|
38
40
|
this.initHome();
|
@@ -72,8 +74,8 @@ export default {
|
|
72
74
|
if (menuUrl) {
|
73
75
|
url = menuUrl + '.vue';
|
74
76
|
} else {
|
75
|
-
let
|
76
|
-
url =
|
77
|
+
let defaultHomePage = this.userInfo.defaultHomePage;
|
78
|
+
url = defaultHomePage ? defaultHomePage : '@base/views/user/home/default.vue'
|
77
79
|
}
|
78
80
|
if (url.startsWith(str1)) {
|
79
81
|
let a = url.slice(str1.length);
|
@@ -55,6 +55,25 @@ export default {
|
|
55
55
|
|
56
56
|
delete queryParam.urlmobile;
|
57
57
|
delete queryParam.url;
|
58
|
+
|
59
|
+
if(purl.indexOf('.html')>=0){
|
60
|
+
let eUrl = purl;
|
61
|
+
let pstr = Object.keys(queryParam).map(key=>{
|
62
|
+
return key+"="+queryParam[key]
|
63
|
+
}).join("&")
|
64
|
+
|
65
|
+
if(pstr){
|
66
|
+
if(purl.indexOf('.html?')>=0){
|
67
|
+
eUrl = eUrl+'&'+pstr
|
68
|
+
}else{
|
69
|
+
eUrl = eUrl+'?'+pstr
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
location.href = eUrl;
|
74
|
+
return
|
75
|
+
}
|
76
|
+
|
58
77
|
delete queryParam.dataId;
|
59
78
|
delete queryParam.showWfContent;
|
60
79
|
delete queryParam.access_token;
|
@@ -62,6 +81,8 @@ export default {
|
|
62
81
|
delete queryParam.thirdparty_info;
|
63
82
|
delete queryParam.i18nLang;
|
64
83
|
|
84
|
+
|
85
|
+
|
65
86
|
let url = purl + '.vue';
|
66
87
|
this.queryParam = queryParam;
|
67
88
|
this.showWfContent = true;
|
@@ -51,6 +51,9 @@ export default {
|
|
51
51
|
},
|
52
52
|
param: {
|
53
53
|
default: null
|
54
|
+
},
|
55
|
+
queryParam: {
|
56
|
+
default: null
|
54
57
|
}
|
55
58
|
},
|
56
59
|
created() {
|
@@ -102,7 +105,8 @@ export default {
|
|
102
105
|
url: url,
|
103
106
|
data: {
|
104
107
|
publish: true,
|
105
|
-
current: pageNumber
|
108
|
+
current: pageNumber,
|
109
|
+
...this.queryParam
|
106
110
|
},
|
107
111
|
success: res => {
|
108
112
|
let page = res.objx;
|
@@ -121,9 +125,11 @@ export default {
|
|
121
125
|
});
|
122
126
|
this.currentRow = currentRow;
|
123
127
|
this.currentIndex = currentIndex;
|
128
|
+
this.handleRead(this.currentIndex)
|
124
129
|
} else {
|
125
130
|
this.currentIndex = 0;
|
126
131
|
this.currentRow = page.records.length > 0 ? page.records[0] : {};
|
132
|
+
this.handleRead(this.currentIndex)
|
127
133
|
}
|
128
134
|
}
|
129
135
|
});
|
@@ -132,6 +138,24 @@ export default {
|
|
132
138
|
this.flag = 0;
|
133
139
|
this.currentIndex = index;
|
134
140
|
this.currentRow = item;
|
141
|
+
this.handleRead(index)
|
142
|
+
},
|
143
|
+
handleRead(index, callback) {
|
144
|
+
let row = this.page.records[index];
|
145
|
+
if (row.readed !== 1) {
|
146
|
+
this.$http({
|
147
|
+
url: USER_PREFIX + `/system_notice/read`,
|
148
|
+
method: `post`,
|
149
|
+
data: {id: row.id},
|
150
|
+
isLoading: true,
|
151
|
+
success: res => {
|
152
|
+
row.readed = 1;
|
153
|
+
callback && callback()
|
154
|
+
}
|
155
|
+
});
|
156
|
+
} else {
|
157
|
+
callback && callback()
|
158
|
+
}
|
135
159
|
},
|
136
160
|
initAttachfo() {
|
137
161
|
let id = this.currentRow && this.currentRow.id ? this.currentRow.id : '';
|