fff
This commit is contained in:
parent
42c4b9f48a
commit
c895df0043
|
@ -20,7 +20,7 @@ export const getDeviceList = (query) => {
|
||||||
// app 警告分析
|
// app 警告分析
|
||||||
export const getWarningAnalysis = (query) => {
|
export const getWarningAnalysis = (query) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/app/index/warning-analysis',
|
url: '/app/tenant/index/warning-analysis',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
|
@ -29,7 +29,7 @@ export const getWarningAnalysis = (query) => {
|
||||||
// 首页数据
|
// 首页数据
|
||||||
export function homeCount(query) {
|
export function homeCount(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/app/index',
|
url: '/app/tenant/index',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
|
@ -38,7 +38,7 @@ export function homeCount(query) {
|
||||||
// app 项目设备
|
// app 项目设备
|
||||||
export function appProjectDeviceList(query) {
|
export function appProjectDeviceList(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/app/device/table',
|
url: '/app/tenant/device/table',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
|
@ -47,7 +47,7 @@ export function appProjectDeviceList(query) {
|
||||||
// app 项目列表
|
// app 项目列表
|
||||||
export function appProjectList(query) {
|
export function appProjectList(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/app/project/list',
|
url: '/app/tenant/project/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
|
@ -56,7 +56,7 @@ export function appProjectList(query) {
|
||||||
// app 告警列表
|
// app 告警列表
|
||||||
export function appAlarmRecordList(query) {
|
export function appAlarmRecordList(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/app/alarm/table',
|
url: '/app/tenant/alarm/table',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
|
@ -65,7 +65,7 @@ export function appAlarmRecordList(query) {
|
||||||
// app 模型统计
|
// app 模型统计
|
||||||
export function appDeviceStatistics(query) {
|
export function appDeviceStatistics(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/app/index/device-statistics',
|
url: '/app/tenant/index/device-statistics',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
|
|
|
@ -3,7 +3,7 @@ import request from '@/utils/request'
|
||||||
// 首页数据
|
// 首页数据
|
||||||
export function homeCount(query) {
|
export function homeCount(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/app/index',
|
url: '/app/tenant/index',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
|
|
|
@ -148,7 +148,7 @@ export function roleOptionselectList(tenantId) {
|
||||||
// 查询工单处理人列表
|
// 查询工单处理人列表
|
||||||
export function gdListUser(query) {
|
export function gdListUser(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/app/maintenance/maintenance-user',
|
url: '/app/tenant/maintenance/maintenance-user',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="bigscreen-echarts-pie">
|
<div class="bigscreen-echarts-pie">
|
||||||
<div :id="eId" :style="styles" ></div>
|
<div :id="eId" :style="styles"></div>
|
||||||
<!-- <div v-else>暂无数据</div> -->
|
<!-- <div v-else>暂无数据</div> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -10,23 +10,23 @@ export default {
|
||||||
name: "echartsRadarWrap",
|
name: "echartsRadarWrap",
|
||||||
props: {
|
props: {
|
||||||
eId: {
|
eId: {
|
||||||
type: String
|
type: String,
|
||||||
},
|
},
|
||||||
styles: {
|
styles: {
|
||||||
type: String
|
type: String,
|
||||||
},
|
},
|
||||||
colorList: {
|
colorList: {
|
||||||
type: [Array, String],
|
type: [Array, String],
|
||||||
default: ""
|
default: "",
|
||||||
},
|
},
|
||||||
option: {
|
option: {
|
||||||
stype: Object,
|
stype: Object,
|
||||||
default: []
|
default: [],
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
chart: null
|
chart: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -49,8 +49,9 @@ export default {
|
||||||
const option = {
|
const option = {
|
||||||
legend: {
|
legend: {
|
||||||
top: "5",
|
top: "5",
|
||||||
right: "60",
|
right: "10",
|
||||||
type: "scroll",
|
type: "scroll",
|
||||||
|
// itemWidth: 10, // legend 显示宽度
|
||||||
orient: "vertical",
|
orient: "vertical",
|
||||||
pageIconColor: "#6495ed", //翻页下一页的三角按钮颜色
|
pageIconColor: "#6495ed", //翻页下一页的三角按钮颜色
|
||||||
pageIconInactiveColor: "#aaa", //翻页(即翻页到头时)
|
pageIconInactiveColor: "#aaa", //翻页(即翻页到头时)
|
||||||
|
@ -58,9 +59,11 @@ export default {
|
||||||
pageButtonItemGap: 1, //翻页按钮的两个之间的间距
|
pageButtonItemGap: 1, //翻页按钮的两个之间的间距
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
fontSize: 16
|
fontSize: 16,
|
||||||
|
},
|
||||||
|
formatter: function (name) {
|
||||||
|
return name.length > 7 ? name.substr(0, 7) + "..." : name;
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
toolbox: {
|
toolbox: {
|
||||||
show: false,
|
show: false,
|
||||||
|
@ -68,8 +71,8 @@ export default {
|
||||||
mark: { show: true },
|
mark: { show: true },
|
||||||
dataView: { show: true, readOnly: false },
|
dataView: { show: true, readOnly: false },
|
||||||
restore: { show: true },
|
restore: { show: true },
|
||||||
saveAsImage: { show: true }
|
saveAsImage: { show: true },
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
|
@ -80,28 +83,28 @@ export default {
|
||||||
roseType: "area",
|
roseType: "area",
|
||||||
emphasis: {
|
emphasis: {
|
||||||
label: {
|
label: {
|
||||||
show: false
|
show: false,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
show: false
|
show: false,
|
||||||
},
|
},
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
borderRadius: 1
|
borderRadius: 1,
|
||||||
},
|
},
|
||||||
data: this.option
|
data: this.option,
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
};
|
};
|
||||||
this.chart.setOption(option);
|
this.chart.setOption(option);
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
option(val, oldVal) {
|
option(val, oldVal) {
|
||||||
this.chart = null;
|
this.chart = null;
|
||||||
this.drawLine();
|
this.drawLine();
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
@click="handleJobLog"
|
@click="handleJobLog"
|
||||||
v-hasPermi="['device:job:query']"
|
v-hasPermi="['device:job:query']"
|
||||||
>日志</el-button>
|
>日志</el-button>
|
||||||
<el-button size="mini" type="primary" @click="open1 = true">测试</el-button>
|
<!-- <el-button size="mini" type="primary" @click="open1 = true">测试</el-button> -->
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
Loading…
Reference in New Issue