n20-common-lib 2.4.55 → 2.4.57
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
|
@@ -126,10 +126,14 @@ export default {
|
|
|
126
126
|
this.searchObj = Object.assign(this.searchObj, window._approvalExtend['addtask.chdUserInfo.extend'])
|
|
127
127
|
}
|
|
128
128
|
axios
|
|
129
|
-
.post(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
.post(
|
|
130
|
+
'/bems/activiti/online/chdUserInfo',
|
|
131
|
+
{
|
|
132
|
+
data: this.searchObj,
|
|
133
|
+
...this.pageObj
|
|
134
|
+
},
|
|
135
|
+
{ loading: false }
|
|
136
|
+
)
|
|
133
137
|
.then(({ data }) => {
|
|
134
138
|
this.nodeTable = data.list || []
|
|
135
139
|
this.pageObj.totalSize = data.totalSize
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
173
173
|
methods: {
|
|
174
174
|
setMainTab(ev) {
|
|
175
175
|
const { targetName, replaceTab, addTab, closeTab, setTabName, addTabO, refreshTab } = ev.data
|
|
176
|
-
|
|
176
|
+
|
|
177
177
|
if (targetName === 'main') {
|
|
178
178
|
replaceTab && this.tabReplace(replaceTab)
|
|
179
179
|
addTab && this.tabAdd(addTab)
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<script>
|
|
12
12
|
import axios from '../../utils/axios'
|
|
13
|
+
import getJsonc from '../../assets/getJsonc.js'
|
|
13
14
|
import cloneDeep from 'lodash/cloneDeep'
|
|
14
15
|
let filterData
|
|
15
16
|
let enumData = {
|
|
@@ -51,7 +52,8 @@ export default {
|
|
|
51
52
|
enumData,
|
|
52
53
|
tips: [],
|
|
53
54
|
list: '',
|
|
54
|
-
interval: ''
|
|
55
|
+
interval: '',
|
|
56
|
+
timer: null
|
|
55
57
|
}
|
|
56
58
|
},
|
|
57
59
|
computed: {
|
|
@@ -61,8 +63,23 @@ export default {
|
|
|
61
63
|
},
|
|
62
64
|
mounted() {
|
|
63
65
|
this.getOperatingStatus()
|
|
66
|
+
getJsonc('/server-config.jsonc').then((res) => {
|
|
67
|
+
this.setTimedTask(res.customOpt.timedTask)
|
|
68
|
+
})
|
|
69
|
+
},
|
|
70
|
+
beforeDestroy() {
|
|
71
|
+
clearInterval(this.timer)
|
|
64
72
|
},
|
|
65
73
|
methods: {
|
|
74
|
+
/**
|
|
75
|
+
* 设置定时任务
|
|
76
|
+
*/
|
|
77
|
+
setTimedTask(timer = 60000) {
|
|
78
|
+
this.timer = setInterval(this.getOperatingStatus, timer)
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* 获取营业状态
|
|
82
|
+
*/
|
|
66
83
|
async getOperatingStatus() {
|
|
67
84
|
const { data } = await axios.get(`/bems/portal/portalTopShow/getShowTopAll`, null, { loading: false })
|
|
68
85
|
this.tips = data
|