|
@@ -147,7 +147,14 @@ export default { |
|
@@ -147,7 +147,14 @@ export default { |
147
|
const tabSecondList = Vue.ref([]);
|
147
|
const tabSecondList = Vue.ref([]);
|
148
|
let dialogFormVisible = Vue.ref(false);
|
148
|
let dialogFormVisible = Vue.ref(false);
|
149
|
let parentList = Vue.ref([]);
|
149
|
let parentList = Vue.ref([]);
|
150
|
- let isAdd = Vue.ref(false);
|
150
|
+
|
|
|
151
|
+ var isEdit=Vue.ref(false);
|
|
|
152
|
+ var isAdd = Vue.ref(false);
|
|
|
153
|
+ if(false==id){
|
|
|
154
|
+ isEdit=false;
|
|
|
155
|
+ }else{
|
|
|
156
|
+ isEdit=true;
|
|
|
157
|
+ }
|
151
|
let count=Vue.ref(0);
|
158
|
let count=Vue.ref(0);
|
152
|
let countFirst=Vue.ref(0);
|
159
|
let countFirst=Vue.ref(0);
|
153
|
|
160
|
|
|
@@ -167,10 +174,12 @@ export default { |
|
@@ -167,10 +174,12 @@ export default { |
167
|
|
174
|
|
168
|
|
175
|
|
169
|
let getResType = (arr) => {
|
176
|
let getResType = (arr) => {
|
|
|
177
|
+
|
170
|
var types = arr.map(function (v) {
|
178
|
var types = arr.map(function (v) {
|
171
|
return v.id;
|
179
|
return v.id;
|
172
|
});
|
180
|
});
|
173
|
resTypeArr.value = types;
|
181
|
resTypeArr.value = types;
|
|
|
182
|
+ getParams.value.resType=resTypeArr.value.join(',');
|
174
|
loeadTable();
|
183
|
loeadTable();
|
175
|
}
|
184
|
}
|
176
|
let getKpiType = (arr) => {
|
185
|
let getKpiType = (arr) => {
|
|
@@ -179,6 +188,7 @@ export default { |
|
@@ -179,6 +188,7 @@ export default { |
179
|
return v.kpiId;
|
188
|
return v.kpiId;
|
180
|
});
|
189
|
});
|
181
|
kpiTypeArr.value = types;
|
190
|
kpiTypeArr.value = types;
|
|
|
191
|
+ getParams.value.kpiId= kpiTypeArr.value.join(',');
|
182
|
loeadTable();
|
192
|
loeadTable();
|
183
|
}
|
193
|
}
|
184
|
let getBizType = (arr) => {
|
194
|
let getBizType = (arr) => {
|
|
@@ -186,10 +196,11 @@ export default { |
|
@@ -186,10 +196,11 @@ export default { |
186
|
return v.busId;
|
196
|
return v.busId;
|
187
|
});
|
197
|
});
|
188
|
busTypeArr.value = types;
|
198
|
busTypeArr.value = types;
|
|
|
199
|
+ getParams.value.busId = busTypeArr.value.join(',');
|
189
|
loeadTable();
|
200
|
loeadTable();
|
190
|
}
|
201
|
}
|
191
|
// 查询参数
|
202
|
// 查询参数
|
192
|
- let getParams = Vue.ref({
|
203
|
+ var getParams = Vue.ref({
|
193
|
keyWords: keyWords.value,
|
204
|
keyWords: keyWords.value,
|
194
|
resType: resTypeArr.value.join(','),
|
205
|
resType: resTypeArr.value.join(','),
|
195
|
kpiId: kpiTypeArr.value.join(','),
|
206
|
kpiId: kpiTypeArr.value.join(','),
|
|
@@ -235,7 +246,6 @@ export default { |
|
@@ -235,7 +246,6 @@ export default { |
235
|
let getPageInfoSecond = ({page, limit}) => {
|
246
|
let getPageInfoSecond = ({page, limit}) => {
|
236
|
getParams.value.page = page;
|
247
|
getParams.value.page = page;
|
237
|
getParams.value.limit = limit;
|
248
|
getParams.value.limit = limit;
|
238
|
-
|
|
|
239
|
// 下一页搜索
|
249
|
// 下一页搜索
|
240
|
loadSecondList();
|
250
|
loadSecondList();
|
241
|
}
|
251
|
}
|
|
@@ -380,6 +390,11 @@ export default { |
|
@@ -380,6 +390,11 @@ export default { |
380
|
|
390
|
|
381
|
// 点击按钮搜索
|
391
|
// 点击按钮搜索
|
382
|
let onBtnSearch = () => {
|
392
|
let onBtnSearch = () => {
|
|
|
393
|
+ getParams.value.busId = busTypeArr.value.join(',');
|
|
|
394
|
+ getParams.value.resType=resTypeArr.value.join(',');
|
|
|
395
|
+ getParams.value.kpiId= kpiTypeArr.value.join(',');
|
|
|
396
|
+ getParams.value .keyWords = keyWords.value;
|
|
|
397
|
+
|
383
|
loeadTable(true);
|
398
|
loeadTable(true);
|
384
|
}
|
399
|
}
|
385
|
|
400
|
|
|
@@ -443,6 +458,10 @@ export default { |
|
@@ -443,6 +458,10 @@ export default { |
443
|
}
|
458
|
}
|
444
|
|
459
|
|
445
|
let url = '';
|
460
|
let url = '';
|
|
|
461
|
+ if(id && parentId == ''){
|
|
|
462
|
+ proxy.$global.showMsg("请切换场景并选择场景分类","warning");
|
|
|
463
|
+ return;
|
|
|
464
|
+ }
|
446
|
if (isAdd.value == false) {
|
465
|
if (isAdd.value == false) {
|
447
|
if(parentName == ''){
|
466
|
if(parentName == ''){
|
448
|
proxy.$global.showMsg("请输入场景分类!","warning");
|
467
|
proxy.$global.showMsg("请输入场景分类!","warning");
|
|
@@ -463,7 +482,7 @@ export default { |
|
@@ -463,7 +482,7 @@ export default { |
463
|
proxy.$http.post(url, addParam, function (res) {
|
482
|
proxy.$http.post(url, addParam, function (res) {
|
464
|
if (res && res.success) {
|
483
|
if (res && res.success) {
|
465
|
proxy.$global.showMsg("添加成功!");
|
484
|
proxy.$global.showMsg("添加成功!");
|
466
|
-
|
485
|
+ showDialogForm(false);
|
467
|
onReset();
|
486
|
onReset();
|
468
|
// 清空数据
|
487
|
// 清空数据
|
469
|
form.value = {
|
488
|
form.value = {
|
|
@@ -482,7 +501,7 @@ export default { |
|
@@ -482,7 +501,7 @@ export default { |
482
|
// 已选择列表
|
501
|
// 已选择列表
|
483
|
tabFirstList.value = [];
|
502
|
tabFirstList.value = [];
|
484
|
// 关闭谈画框
|
503
|
// 关闭谈画框
|
485
|
- showDialogForm(false);
|
504
|
+
|
486
|
|
505
|
|
487
|
// window.top.location.href = window.top.location.origin + "/#/analysis/view/id=105"
|
506
|
// window.top.location.href = window.top.location.origin + "/#/analysis/view/id=105"
|
488
|
window.top.location.href = window.top.location.origin + '/#/' + res.str;
|
507
|
window.top.location.href = window.top.location.origin + '/#/' + res.str;
|
|
@@ -579,6 +598,7 @@ export default { |
|
@@ -579,6 +598,7 @@ export default { |
579
|
timeRangeChange,
|
598
|
timeRangeChange,
|
580
|
|
599
|
|
581
|
isAdd,
|
600
|
isAdd,
|
|
|
601
|
+ isEdit,
|
582
|
analysisChange,
|
602
|
analysisChange,
|
583
|
dialogFormVisible,
|
603
|
dialogFormVisible,
|
584
|
showDialogForm,
|
604
|
showDialogForm,
|