|
@@ -247,13 +247,96 @@ export default { |
|
@@ -247,13 +247,96 @@ export default { |
247
|
getListData({page: 1, limit: pageSize.value});
|
247
|
getListData({page: 1, limit: pageSize.value});
|
248
|
}
|
248
|
}
|
249
|
|
249
|
|
|
|
250
|
+ let uncheckedResColumns = Vue.ref([
|
|
|
251
|
+ {
|
|
|
252
|
+ prop: 'resName',
|
|
|
253
|
+ label: '资源名称',
|
|
|
254
|
+ sortable: true,
|
|
|
255
|
+ align: 'center',
|
|
|
256
|
+ },
|
|
|
257
|
+ {
|
|
|
258
|
+ prop: 'ip',
|
|
|
259
|
+ label: 'ip地址',
|
|
|
260
|
+ sortable: true,
|
|
|
261
|
+ align: 'center',
|
|
|
262
|
+ },
|
|
|
263
|
+ {
|
|
|
264
|
+ prop: 'resTypeName',
|
|
|
265
|
+ label: '资源类型',
|
|
|
266
|
+ sortable: true,
|
|
|
267
|
+ align: 'center',
|
|
|
268
|
+ },
|
|
|
269
|
+ {
|
|
|
270
|
+ prop: 'healthDesc',
|
|
|
271
|
+ label: '资源状态',
|
|
|
272
|
+ sortable: true,
|
|
|
273
|
+ align: 'center',
|
|
|
274
|
+ },
|
|
|
275
|
+ {
|
|
|
276
|
+ prop: 'linkState',
|
|
|
277
|
+ label: '连接状态',
|
|
|
278
|
+ sortable: true,
|
|
|
279
|
+ align: 'center',
|
|
|
280
|
+ },
|
|
|
281
|
+ {
|
|
|
282
|
+ prop: 'adminName',
|
|
|
283
|
+ label: '负责人',
|
|
|
284
|
+ sortable: true,
|
|
|
285
|
+ align: 'center',
|
|
|
286
|
+ },
|
|
|
287
|
+ {
|
|
|
288
|
+ prop: 'phone',
|
|
|
289
|
+ label: '负责人电话',
|
|
|
290
|
+ sortable: true,
|
|
|
291
|
+ align: 'center',
|
|
|
292
|
+ },
|
|
|
293
|
+ {
|
|
|
294
|
+ prop: 'lastCollTime',
|
|
|
295
|
+ label: '最近采集时间',
|
|
|
296
|
+ sortable: true,
|
|
|
297
|
+ align: 'center',
|
|
|
298
|
+ }
|
|
|
299
|
+ ])
|
|
|
300
|
+ let uncheckedResData = Vue.ref([]);
|
|
|
301
|
+ let uncheckedResTotal = Vue.ref(0);
|
|
|
302
|
+ let uncheckedResChange = (val)=>{
|
|
|
303
|
+ portSenseConfigData.value = val.map(item=>item.resId);
|
|
|
304
|
+ }
|
|
|
305
|
+ let uncheckedParams = Vue.ref({
|
|
|
306
|
+ keyWords:'',
|
|
|
307
|
+ resTypes:[],
|
|
|
308
|
+ busIds:[],
|
|
|
309
|
+ page:1,
|
|
|
310
|
+ limit:20,
|
|
|
311
|
+ })
|
250
|
const loadResTree = () => {
|
312
|
const loadResTree = () => {
|
251
|
- proxy.$http.get('/mj/user/selectResTreeAndSelectRes', {userId: proxy.$global.common.getUserId()}, function (res) {
|
313
|
+ let params = {
|
|
|
314
|
+ keyWords:uncheckedParams.value.keyWords,
|
|
|
315
|
+ resTypes:uncheckedParams.value.resTypes.join(','),
|
|
|
316
|
+ busIds:uncheckedParams.value.busIds.join(','),
|
|
|
317
|
+ page:uncheckedParams.value.page,
|
|
|
318
|
+ limit:uncheckedParams.value.limit,
|
|
|
319
|
+ }
|
|
|
320
|
+ proxy.$http.get('/api-web/bResourceExtendParam/addPage', params, function (res) {
|
252
|
if (res && res.success && res.data) {
|
321
|
if (res && res.success && res.data) {
|
253
|
- resTreeArr.value = res.data.options;
|
322
|
+ uncheckedResData.value = res.data;
|
|
|
323
|
+ uncheckedResTotal.value = res.count;
|
254
|
}
|
324
|
}
|
255
|
})
|
325
|
})
|
256
|
}
|
326
|
}
|
|
|
327
|
+ const loadUncheckedTable = ({page, limit})=>{
|
|
|
328
|
+ uncheckedParams.value.page = page;
|
|
|
329
|
+ uncheckedParams.value.limit = limit;
|
|
|
330
|
+ loadResTree();
|
|
|
331
|
+ }
|
|
|
332
|
+ const getUncheckedResType = (arr)=>{
|
|
|
333
|
+ uncheckedParams.value.resTypes = arr.map(item=>item.id)
|
|
|
334
|
+ loadResTree();
|
|
|
335
|
+ }
|
|
|
336
|
+ const getUncheckedBizType = (arr)=>{
|
|
|
337
|
+ uncheckedParams.value.busIds = arr.map(item=>item.busId)
|
|
|
338
|
+ loadResTree();
|
|
|
339
|
+ }
|
257
|
|
340
|
|
258
|
// 挂载完
|
341
|
// 挂载完
|
259
|
Vue.onMounted(() => {
|
342
|
Vue.onMounted(() => {
|
|
@@ -302,6 +385,16 @@ export default { |
|
@@ -302,6 +385,16 @@ export default { |
302
|
title,
|
385
|
title,
|
303
|
portSenseConfigData,
|
386
|
portSenseConfigData,
|
304
|
showPortSenseDialog,
|
387
|
showPortSenseDialog,
|
|
|
388
|
+
|
|
|
389
|
+ loadResTree,
|
|
|
390
|
+ uncheckedParams,
|
|
|
391
|
+ uncheckedResColumns,
|
|
|
392
|
+ uncheckedResData,
|
|
|
393
|
+ uncheckedResTotal,
|
|
|
394
|
+ uncheckedResChange,
|
|
|
395
|
+ loadUncheckedTable,
|
|
|
396
|
+ getUncheckedBizType,
|
|
|
397
|
+ getUncheckedResType,
|
305
|
}
|
398
|
}
|
306
|
}
|
399
|
}
|
307
|
} |
400
|
} |