|
|
const lineDetail = () => {
|
|
|
let showLineDialog = Vue.ref(false);
|
|
|
|
|
|
let closeLineDialog = (flg) =>{
|
|
|
showLineDialog.value = flg;
|
|
|
}
|
|
|
return {
|
|
|
showLineDialog,
|
|
|
closeLineDialog
|
|
|
}
|
|
|
}
|
|
|
export default {
|
|
|
name: 'resultItemIndex',
|
|
|
template: '',
|
|
|
components: {
|
|
|
'echarts-line': Vue.defineAsyncComponent(
|
|
|
() => myImport('components/common/echarts/line/index')
|
|
|
)
|
|
|
},
|
|
|
data() {
|
|
|
return {}
|
|
|
},
|
|
|
props: {
|
|
|
faultType:{
|
|
|
type: String,
|
|
|
default:'NPM'
|
|
|
},
|
|
|
faultNo:{
|
|
|
type: String,
|
|
|
default:''
|
|
|
}
|
|
|
},
|
|
|
setup(props, {attrs, slots, emit}) {
|
|
|
let width = Vue.ref(window.innerWidth*0.8 - 190);
|
|
|
const {proxy} = Vue.getCurrentInstance();
|
|
|
let list = Vue.ref({
|
|
|
columns: [],
|
|
|
dataList: [],
|
|
|
total: 0
|
|
|
});
|
|
|
|
|
|
|
|
|
let getPage = () =>{
|
|
|
let data = {
|
|
|
"5e991f126b8ee03541976384": [
|
|
|
{
|
|
|
"id": "da57056823be410c848a4a4ab821de41",
|
|
|
"faultId": "e011b982f0d2405a9d4d43df57199d05",
|
|
|
"faultNo": "GZ202112130014",
|
|
|
"targetId": "11cdc282437a91174d808e114954463d",
|
|
|
"targetType": "NPM",
|
|
|
"itemId": "ccb5404e731ff9b7c2344c2806b41442",
|
|
|
"timestap": "2021-12-13T12:31:08.988+0800",
|
|
|
"bizId": "53bebbd79f384f619513b50666ea1d48",
|
|
|
"bizName": "电子税务局",
|
|
|
"resId": "5e991f126b8ee03541976384",
|
|
|
"resName": "各地市-网上申报Weblogic",
|
|
|
"resType": "NPM_STREAM",
|
|
|
"kpiId": "count",
|
|
|
"kpiName": "业务量",
|
|
|
"flag": "base",
|
|
|
"kpiValue": "26299",
|
|
|
"collTime": "2021-12-04 10:50:00",
|
|
|
"dataType": "last",
|
|
|
"createTimeToMonth": "2021-12"
|
|
|
},
|
|
|
{
|
|
|
"id": "bd8c7d4fdf1247d195652251c95acca0",
|
|
|
"faultId": "e011b982f0d2405a9d4d43df57199d05",
|
|
|
"faultNo": "GZ202112130014",
|
|
|
"targetId": "11cdc282437a91174d808e114954463d",
|
|
|
"targetType": "NPM",
|
|
|
"itemId": "ccb5404e731ff9b7c2344c2806b41442",
|
|
|
"timestap": "2021-12-13T12:31:08.988+0800",
|
|
|
"bizId": "53bebbd79f384f619513b50666ea1d48",
|
|
|
"bizName": "电子税务局",
|
|
|
"resId": "5e991f126b8ee03541976384",
|
|
|
"resName": "各地市-网上申报Weblogic",
|
|
|
"resType": "NPM_STREAM",
|
|
|
"kpiId": "response_rate",
|
|
|
"kpiName": "响应率",
|
|
|
"flag": "base",
|
|
|
"kpiValue": "47.25",
|
|
|
"collTime": "2021-12-04 10:50:00",
|
|
|
"dataType": "last",
|
|
|
"createTimeToMonth": "2021-12"
|
|
|
},
|
|
|
{
|
|
|
"id": "a9e00473c9964300bde164c1183ebe1d",
|
|
|
"faultId": "e011b982f0d2405a9d4d43df57199d05",
|
|
|
"faultNo": "GZ202112130014",
|
|
|
"targetId": "11cdc282437a91174d808e114954463d",
|
|
|
"targetType": "NPM",
|
|
|
"itemId": "ccb5404e731ff9b7c2344c2806b41442",
|
|
|
"timestap": "2021-12-13T12:31:08.988+0800",
|
|
|
"bizId": "53bebbd79f384f619513b50666ea1d48",
|
|
|
"bizName": "电子税务局",
|
|
|
"resId": "5e991f126b8ee03541976384",
|
|
|
"resName": "各地市-网上申报Weblogic",
|
|
|
"resType": "NPM_STREAM",
|
|
|
"kpiId": "success_rate",
|
|
|
"kpiName": "成功率",
|
|
|
"flag": "base",
|
|
|
"kpiValue": "100",
|
|
|
"collTime": "2021-12-04 10:50:00",
|
|
|
"dataType": "last",
|
|
|
"createTimeToMonth": "2021-12"
|
|
|
}
|
|
|
],
|
|
|
"5e966cec6b8e8d2938be120a": [
|
|
|
{
|
|
|
"id": "1f12837a6faf4193a3867759ee3d0bb8",
|
|
|
"faultId": "e011b982f0d2405a9d4d43df57199d05",
|
|
|
"faultNo": "GZ202112130014",
|
|
|
"targetId": "11cdc282437a91174d808e114954463d",
|
|
|
"targetType": "NPM",
|
|
|
"itemId": "2ba02341a1c5dc28f6a2bd362be58ca9",
|
|
|
"timestap": "2021-12-13T12:29:14.907+0800",
|
|
|
"bizId": "53bebbd79f384f619513b50666ea1d48",
|
|
|
"bizName": "电子税务局",
|
|
|
"resId": "5e966cec6b8e8d2938be120a",
|
|
|
"resName": "nginx-Nginx代理 ",
|
|
|
"resType": "NPM_STREAM",
|
|
|
"kpiId": "count",
|
|
|
"kpiName": "业务量",
|
|
|
"flag": "base",
|
|
|
"kpiValue": "26299",
|
|
|
"collTime": "2021-12-04 10:50:00",
|
|
|
"dataType": "last",
|
|
|
"createTimeToMonth": "2021-12"
|
|
|
},
|
|
|
{
|
|
|
"id": "11c19383b95c4ec8b30ea07f5c9e3f42",
|
|
|
"faultId": "e011b982f0d2405a9d4d43df57199d05",
|
|
|
"faultNo": "GZ202112130014",
|
|
|
"targetId": "11cdc282437a91174d808e114954463d",
|
|
|
"targetType": "NPM",
|
|
|
"itemId": "2ba02341a1c5dc28f6a2bd362be58ca9",
|
|
|
"timestap": "2021-12-13T12:29:14.907+0800",
|
|
|
"bizId": "53bebbd79f384f619513b50666ea1d48",
|
|
|
"bizName": "电子税务局",
|
|
|
"resId": "5e966cec6b8e8d2938be120a",
|
|
|
"resName": "nginx-Nginx代理 ",
|
|
|
"resType": "NPM_STREAM",
|
|
|
"kpiId": "response_rate",
|
|
|
"kpiName": "响应率",
|
|
|
"flag": "base",
|
|
|
"kpiValue": "47.25",
|
|
|
"collTime": "2021-12-04 10:50:00",
|
|
|
"dataType": "last",
|
|
|
"createTimeToMonth": "2021-12"
|
|
|
},
|
|
|
{
|
|
|
"id": "426fe02a1ebd4949a68167612933c880",
|
|
|
"faultId": "e011b982f0d2405a9d4d43df57199d05",
|
|
|
"faultNo": "GZ202112130014",
|
|
|
"targetId": "11cdc282437a91174d808e114954463d",
|
|
|
"targetType": "NPM",
|
|
|
"itemId": "2ba02341a1c5dc28f6a2bd362be58ca9",
|
|
|
"timestap": "2021-12-13T12:29:14.907+0800",
|
|
|
"bizId": "53bebbd79f384f619513b50666ea1d48",
|
|
|
"bizName": "电子税务局",
|
|
|
"resId": "5e966cec6b8e8d2938be120a",
|
|
|
"resName": "nginx-Nginx代理 ",
|
|
|
"resType": "NPM_STREAM",
|
|
|
"kpiId": "success_rate",
|
|
|
"kpiName": "成功率",
|
|
|
"flag": "base",
|
|
|
"kpiValue": "100",
|
|
|
"collTime": "2021-12-04 10:50:00",
|
|
|
"dataType": "last",
|
|
|
"createTimeToMonth": "2021-12"
|
|
|
}
|
|
|
],
|
|
|
"5e9594b66b8e8d293845bd70": [
|
|
|
{
|
|
|
"id": "84e0ad1f09e049fd97efe18c5eb9a40b",
|
|
|
"faultId": "e011b982f0d2405a9d4d43df57199d05",
|
|
|
"faultNo": "GZ202112130014",
|
|
|
"targetId": "11cdc282437a91174d808e114954463d",
|
|
|
"targetType": "NPM",
|
|
|
"itemId": "953ff1ab4a718866a2b91ae5da50627e",
|
|
|
"timestap": "2021-12-13T12:30:15.355+0800",
|
|
|
"bizId": "53bebbd79f384f619513b50666ea1d48",
|
|
|
"bizName": "电子税务局",
|
|
|
"resId": "5e9594b66b8e8d293845bd70",
|
|
|
"resName": "MQ-EDAS",
|
|
|
"resType": "NPM_STREAM",
|
|
|
"kpiId": "count",
|
|
|
"kpiName": "业务量",
|
|
|
"flag": "base",
|
|
|
"kpiValue": "26299",
|
|
|
"collTime": "2021-12-04 10:50:00",
|
|
|
"dataType": "last",
|
|
|
"createTimeToMonth": "2021-12"
|
|
|
},
|
|
|
{
|
|
|
"id": "e0e71be7a26f469b932f3b197c2ea7e8",
|
|
|
"faultId": "e011b982f0d2405a9d4d43df57199d05",
|
|
|
"faultNo": "GZ202112130014",
|
|
|
"targetId": "11cdc282437a91174d808e114954463d",
|
|
|
"targetType": "NPM",
|
|
|
"itemId": "953ff1ab4a718866a2b91ae5da50627e",
|
|
|
"timestap": "2021-12-13T12:30:15.355+0800",
|
|
|
"bizId": "53bebbd79f384f619513b50666ea1d48",
|
|
|
"bizName": "电子税务局",
|
|
|
"resId": "5e9594b66b8e8d293845bd70",
|
|
|
"resName": "MQ-EDAS",
|
|
|
"resType": "NPM_STREAM",
|
|
|
"kpiId": "response_rate",
|
|
|
"kpiName": "响应率",
|
|
|
"flag": "base",
|
|
|
"kpiValue": "47.25",
|
|
|
"collTime": "2021-12-04 10:50:00",
|
|
|
"dataType": "last",
|
|
|
"createTimeToMonth": "2021-12"
|
|
|
},
|
|
|
{
|
|
|
"id": "bd21a27f24cd459792c562a1a9067d98",
|
|
|
"faultId": "e011b982f0d2405a9d4d43df57199d05",
|
|
|
"faultNo": "GZ202112130014",
|
|
|
"targetId": "11cdc282437a91174d808e114954463d",
|
|
|
"targetType": "NPM",
|
|
|
"itemId": "953ff1ab4a718866a2b91ae5da50627e",
|
|
|
"timestap": "2021-12-13T12:30:15.355+0800",
|
|
|
"bizId": "53bebbd79f384f619513b50666ea1d48",
|
|
|
"bizName": "电子税务局",
|
|
|
"resId": "5e9594b66b8e8d293845bd70",
|
|
|
"resName": "MQ-EDAS",
|
|
|
"resType": "NPM_STREAM",
|
|
|
"kpiId": "success_rate",
|
|
|
"kpiName": "成功率",
|
|
|
"flag": "base",
|
|
|
"kpiValue": "100",
|
|
|
"collTime": "2021-12-04 10:50:00",
|
|
|
"dataType": "last",
|
|
|
"createTimeToMonth": "2021-12"
|
|
|
}
|
|
|
],
|
|
|
"5e991f126b8ee03541976383": [
|
|
|
{
|
|
|
"id": "f2a46c0548d74659bcf84b149029b4ea",
|
|
|
"faultId": "e011b982f0d2405a9d4d43df57199d05",
|
|
|
"faultNo": "GZ202112130014",
|
|
|
"targetId": "11cdc282437a91174d808e114954463d",
|
|
|
"targetType": "NPM",
|
|
|
"itemId": "d6fab6451da3d14dada155670c15ae5e",
|
|
|
"timestap": "2021-12-13T12:31:28.472+0800",
|
|
|
"bizId": "53bebbd79f384f619513b50666ea1d48",
|
|
|
"bizName": "电子税务局",
|
|
|
"resId": "5e991f126b8ee03541976383",
|
|
|
"resName": "各地市-涉税文书Weblogic",
|
|
|
"resType": "NPM_STREAM",
|
|
|
"kpiId": "count",
|
|
|
"kpiName": "业务量",
|
|
|
"flag": "base",
|
|
|
"kpiValue": "26299",
|
|
|
"collTime": "2021-12-04 10:50:00",
|
|
|
"dataType": "last",
|
|
|
"createTimeToMonth": "2021-12"
|
|
|
},
|
|
|
{
|
|
|
"id": "0b2d9d77ea6c4c0e8bc280802c48721c",
|
|
|
"faultId": "e011b982f0d2405a9d4d43df57199d05",
|
|
|
"faultNo": "GZ202112130014",
|
|
|
"targetId": "11cdc282437a91174d808e114954463d",
|
|
|
"targetType": "NPM",
|
|
|
"itemId": "d6fab6451da3d14dada155670c15ae5e",
|
|
|
"timestap": "2021-12-13T12:31:28.472+0800",
|
|
|
"bizId": "53bebbd79f384f619513b50666ea1d48",
|
|
|
"bizName": "电子税务局",
|
|
|
"resId": "5e991f126b8ee03541976383",
|
|
|
"resName": "各地市-涉税文书Weblogic",
|
|
|
"resType": "NPM_STREAM",
|
|
|
"kpiId": "response_rate",
|
|
|
"kpiName": "响应率",
|
|
|
"flag": "base",
|
|
|
"kpiValue": "47.25",
|
|
|
"collTime": "2021-12-04 10:50:00",
|
|
|
"dataType": "last",
|
|
|
"createTimeToMonth": "2021-12"
|
|
|
},
|
|
|
{
|
|
|
"id": "0ca1b9a73c5b4a34a49361a121eea219",
|
|
|
"faultId": "e011b982f0d2405a9d4d43df57199d05",
|
|
|
"faultNo": "GZ202112130014",
|
|
|
"targetId": "11cdc282437a91174d808e114954463d",
|
|
|
"targetType": "NPM",
|
|
|
"itemId": "d6fab6451da3d14dada155670c15ae5e",
|
|
|
"timestap": "2021-12-13T12:31:28.472+0800",
|
|
|
"bizId": "53bebbd79f384f619513b50666ea1d48",
|
|
|
"bizName": "电子税务局",
|
|
|
"resId": "5e991f126b8ee03541976383",
|
|
|
"resName": "各地市-涉税文书Weblogic",
|
|
|
"resType": "NPM_STREAM",
|
|
|
"kpiId": "success_rate",
|
|
|
"kpiName": "成功率",
|
|
|
"flag": "base",
|
|
|
"kpiValue": "100",
|
|
|
"collTime": "2021-12-04 10:50:00",
|
|
|
"dataType": "last",
|
|
|
"createTimeToMonth": "2021-12"
|
|
|
}
|
|
|
]
|
|
|
};
|
|
|
|
|
|
let dataList = [];
|
|
|
let col = [{
|
|
|
prop: 'resName',
|
|
|
label: '检测指标',
|
|
|
width: 100,
|
|
|
click: function (row) {
|
|
|
closeLineDialog(true);
|
|
|
}
|
|
|
}];
|
|
|
|
|
|
|
|
|
let index = 0;
|
|
|
for (let resId in data) {
|
|
|
let list = data[resId];
|
|
|
|
|
|
let item = {};
|
|
|
item.resId = list[0].resId;
|
|
|
item.resName = list[0].resName;
|
|
|
item.bizId = list[0].bizId;
|
|
|
item.bizName = list[0].bizName;
|
|
|
|
|
|
list.forEach(function (v){
|
|
|
item[v.kpiId] = v.kpiValue;
|
|
|
if(index == 0){
|
|
|
col.push({
|
|
|
prop: v.kpiId,
|
|
|
label: v.kpiName,
|
|
|
width: 80
|
|
|
})
|
|
|
}
|
|
|
});
|
|
|
|
|
|
dataList.push(item);
|
|
|
index ++;
|
|
|
}
|
|
|
// 设置数据
|
|
|
list.value.dataList = dataList;
|
|
|
list.value.columns = col;
|
|
|
}
|
|
|
|
|
|
const {
|
|
|
showLineDialog,
|
|
|
closeLineDialog
|
|
|
} = lineDetail();
|
|
|
|
|
|
// 监听编辑状态
|
|
|
Vue.watch(() => props.faultNo, (newValue, oldVlaue) => {
|
|
|
getPage();
|
|
|
});
|
|
|
|
|
|
// 挂载完
|
|
|
Vue.onMounted(() => {
|
|
|
getPage();
|
|
|
})
|
|
|
|
|
|
return {
|
|
|
width,
|
|
|
list,
|
|
|
|
|
|
showLineDialog,
|
|
|
closeLineDialog
|
|
|
}
|
|
|
}
|
|
|
} |
...
|
...
|
|