n20-common-lib 1.2.34 → 1.2.37
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
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
15
15
|
<h3 class="header-title" v-html="headerTitle"></h3>
|
|
16
16
|
<el-tooltip content="帮助文档">
|
|
17
|
-
<span class="set-user-btn
|
|
17
|
+
<span class="set-user-btn n20-icon-xinxitishi" @click="openHelp"></span>
|
|
18
18
|
</el-tooltip>
|
|
19
19
|
|
|
20
20
|
<el-dropdown
|
|
@@ -139,6 +139,9 @@ export default {
|
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
created() {
|
|
142
|
+
clearTimeout(this.getNNumTimeOut)
|
|
143
|
+
this.getNNumTimeOut = setInterval(this.getNNum, 1000 * 60 * 2)
|
|
144
|
+
|
|
142
145
|
this.getNNum()
|
|
143
146
|
},
|
|
144
147
|
methods: {
|
|
@@ -228,6 +231,18 @@ export default {
|
|
|
228
231
|
}
|
|
229
232
|
})
|
|
230
233
|
}
|
|
234
|
+
if (item.readState === '0') {
|
|
235
|
+
this.$axios
|
|
236
|
+
.put(
|
|
237
|
+
`/bems/wkb/messageCenter/batchUpdate`,
|
|
238
|
+
{ ids: [item.id], type: '1' },
|
|
239
|
+
{ loading: false, noMsg: true }
|
|
240
|
+
)
|
|
241
|
+
.then(() => {
|
|
242
|
+
item.readState = '1'
|
|
243
|
+
this.noticeNum = this.noticeNum - 1
|
|
244
|
+
})
|
|
245
|
+
}
|
|
231
246
|
},
|
|
232
247
|
seeDetailsAffiche(item) {
|
|
233
248
|
if (this.$route.path === '/notice/views') {
|
|
@@ -258,17 +273,16 @@ export default {
|
|
|
258
273
|
null,
|
|
259
274
|
{ noMsg: true }
|
|
260
275
|
)
|
|
261
|
-
.then(({ msg }) => {
|
|
262
|
-
this
|
|
276
|
+
.then(({ msg = '' }) => {
|
|
277
|
+
this.$message({
|
|
278
|
+
message: '消息一键已读成功 ' + msg,
|
|
279
|
+
type: 'success'
|
|
280
|
+
})
|
|
281
|
+
this.getNNum()
|
|
282
|
+
this.getMsgList()
|
|
263
283
|
})
|
|
264
284
|
})
|
|
265
285
|
},
|
|
266
|
-
readAllMsg(msg = '') {
|
|
267
|
-
this.$message({
|
|
268
|
-
message: '消息一键已读成功 ' + msg,
|
|
269
|
-
type: 'success'
|
|
270
|
-
})
|
|
271
|
-
},
|
|
272
286
|
queryMore() {
|
|
273
287
|
this.$router.push({ path: '/notice/list' })
|
|
274
288
|
},
|
|
@@ -280,6 +294,7 @@ export default {
|
|
|
280
294
|
message: '系统公告一键已读成功',
|
|
281
295
|
type: 'success'
|
|
282
296
|
})
|
|
297
|
+
this.getNNum()
|
|
283
298
|
this.getAfficheList()
|
|
284
299
|
})
|
|
285
300
|
},
|
package/src/utils/axios.js
CHANGED
|
@@ -192,8 +192,8 @@ customAxios.post = function (url, data = {}, opt = {}) {
|
|
|
192
192
|
return request(Object.assign({ method: 'post', url, data }, opt))
|
|
193
193
|
}
|
|
194
194
|
/** @returns {Promise} */
|
|
195
|
-
customAxios.put = function (url, data = {},
|
|
196
|
-
return this.request(Object.assign({ method: 'put', url, data
|
|
195
|
+
customAxios.put = function (url, data = {}, opt = {}) {
|
|
196
|
+
return this.request(Object.assign({ method: 'put', url, data }, opt))
|
|
197
197
|
}
|
|
198
198
|
/** @returns {Promise} */
|
|
199
199
|
customAxios.delete = function (url, params = {}, opt = {}) {
|
|
@@ -40,11 +40,11 @@ function repairPopper() {
|
|
|
40
40
|
export default function (ElementUI) {
|
|
41
41
|
repairPopper()
|
|
42
42
|
|
|
43
|
-
setPropsDefault(ElementUI.Table, {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
})
|
|
43
|
+
// setPropsDefault(ElementUI.Table, {
|
|
44
|
+
// tooltipEffect: {
|
|
45
|
+
// default: 'light'
|
|
46
|
+
// }
|
|
47
|
+
// })
|
|
48
48
|
|
|
49
49
|
setPropsDefault(ElementUI.TableColumn, {
|
|
50
50
|
filterPlacement: {
|