n20-common-lib 2.4.55 → 2.4.56

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.4.55",
3
+ "version": "2.4.56",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -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('/bems/activiti/online/chdUserInfo', {
130
- data: this.searchObj,
131
- ...this.pageObj
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
- console.log(refreshTab)
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 = {
@@ -61,8 +62,20 @@ export default {
61
62
  },
62
63
  mounted() {
63
64
  this.getOperatingStatus()
65
+ getJsonc('/server-config.jsonc').then((res) => {
66
+ this.setTimedTask(res.customOpt.timedTask)
67
+ })
64
68
  },
65
69
  methods: {
70
+ /**
71
+ * 设置定时任务
72
+ */
73
+ setTimedTask(timer = 60000) {
74
+ setInterval(this.getOperatingStatus, timer)
75
+ },
76
+ /**
77
+ * 获取营业状态
78
+ */
66
79
  async getOperatingStatus() {
67
80
  const { data } = await axios.get(`/bems/portal/portalTopShow/getShowTopAll`, null, { loading: false })
68
81
  this.tips = data