n20-common-lib 3.0.17 → 3.0.19
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
|
@@ -293,20 +293,36 @@ export default {
|
|
|
293
293
|
})
|
|
294
294
|
},
|
|
295
295
|
// 通过filterId拿取视图列表
|
|
296
|
-
getFilterList() {
|
|
296
|
+
getFilterList(viewId) {
|
|
297
297
|
let list = []
|
|
298
|
-
axios
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
298
|
+
axios
|
|
299
|
+
.get(`/bems/query/viewColumn/getViewInfo`, { bussId: this.bussId })
|
|
300
|
+
.then((res) => {
|
|
301
|
+
list = res.data.map((item) => {
|
|
302
|
+
item.keyIds = item.keyIds ? JSON.parse(item.keyIds) : []
|
|
303
|
+
return item
|
|
304
|
+
})
|
|
305
|
+
this.list = [
|
|
306
|
+
{
|
|
307
|
+
viewName: '所有的'
|
|
308
|
+
},
|
|
309
|
+
...list
|
|
310
|
+
]
|
|
311
|
+
if (this.isRefresh) {
|
|
312
|
+
const obj = this.list.find((item) => item.viewId === viewId)
|
|
313
|
+
if (obj) {
|
|
314
|
+
this.handleSelect(obj)
|
|
315
|
+
this.selectItem = obj
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
})
|
|
319
|
+
.catch((err) => {
|
|
320
|
+
this.list = [
|
|
321
|
+
{
|
|
322
|
+
viewName: '所有的'
|
|
323
|
+
}
|
|
324
|
+
]
|
|
302
325
|
})
|
|
303
|
-
})
|
|
304
|
-
this.list = [
|
|
305
|
-
{
|
|
306
|
-
viewName: '所有的'
|
|
307
|
-
},
|
|
308
|
-
...list
|
|
309
|
-
]
|
|
310
326
|
},
|
|
311
327
|
// 新增
|
|
312
328
|
add() {
|
|
@@ -382,14 +398,7 @@ export default {
|
|
|
382
398
|
}
|
|
383
399
|
this.visible = false
|
|
384
400
|
this.$message.success('保存成功')
|
|
385
|
-
this.getFilterList()
|
|
386
|
-
this.$nextTick(() => {
|
|
387
|
-
if (this.isRefresh) {
|
|
388
|
-
const obj = this.list.find((item) => item.viewId === this.viewId)
|
|
389
|
-
this.handleSelect(obj)
|
|
390
|
-
this.selectItem = obj
|
|
391
|
-
}
|
|
392
|
-
})
|
|
401
|
+
this.getFilterList(this.viewId)
|
|
393
402
|
})
|
|
394
403
|
},
|
|
395
404
|
// 删除
|