master
“yu” 2024-07-17 20:57:09 +08:00
parent b21c6ec18e
commit d081ab1486
5 changed files with 90 additions and 13 deletions

1
components.d.ts vendored
View File

@ -28,7 +28,6 @@ declare module 'vue' {
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTimePicker: typeof import('element-plus/es')['ElTimePicker']
ElTimeSelect: typeof import('element-plus/es')['ElTimeSelect']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -68,7 +68,19 @@
</div>
</div>
<div class="capAjust_box content_bg" v-if="allFlag">
<div class="infotitle"><span>可调资源</span></div>
<div class="infotitle">
<span>可调资源</span>
<!-- <div
:class="[
boxbtnFlag === item.id ? 'btns_ac' : 'btns_de',
'btn_box',
]"
v-for="item in box_btn"
@click="changeSourceInfo(item.id)"
>
{{ item.name }}
</div> -->
</div>
<div class="info1">
<div class="source_type">
<div class="box source_active" v-for="item in sourceLArr">
@ -82,7 +94,19 @@
</div>
</div>
<div class="capAjust_box content_bg" v-else>
<div class="infotitle"><span>可调资源</span></div>
<div class="infotitle">
<span>可调资源</span>
<div
:class="[
boxbtnFlag === item.id ? 'btns_ac' : 'btns_de',
'btn_box',
]"
v-for="item in box_btn"
@click="changeSourceInfo(item.id)"
>
{{ item.name }}
</div>
</div>
<div class="info1">
<div class="source_type">
<div class="box source_active" v-for="item in sourceLArr">
@ -150,11 +174,21 @@
</div>
</div>
</div>
<div class="info3">
</div>
<div class="info3"></div>
</div>
<div class="capAjust_box content_bg" v-else>
<div class="infotitle"><span>可调资源</span></div>
<div class="infotitle"><span>可调资源</span>
<div
:class="[
boxbtnFlag === item.id ? 'btns_ac' : 'btns_de',
'btn_box',
]"
v-for="item in box_btn"
@click="changeSourceInfo(item.id)"
>
{{ item.name }}
</div>
</div>
<div class="info1">
<div class="source_type">
<div class="box source_active" v-for="item in sourceLArr">
@ -289,8 +323,6 @@
</div>
</div>
<div class="infotitle"><span>已下发指令</span></div>
<!-- <div ><span>已下发指令</span></div> -->
<div class="progress_info2">
<el-carousel trigger="click" arrow="never">
<el-carousel-item
@ -462,6 +494,7 @@ onMounted(() => {
// console.log(result, "");
getAllSourceAjust(); //
});
let allFlag = ref(true); //
let allSource = ref([]);
// orgID
@ -499,12 +532,13 @@ let treeNodeKey = ref(""); //点击设备树二级服务获取的台区id去获
// id treeNode
const getTreeKey = (treeNode: any) => {
treeNodeKey.value = treeNode.key; //线id
boxbtnFlag.value="1"//
allFlag.value = false;
if (treeNode.level === 3) {
console.log(treeNode.level, "3");
getAllSourceAjust_Line(treeNode.key);
getRateDate(treeNode.key); // id
} else {
} else if(treeNode.level === 4) {
console.log(treeNode.level, "4"); //
getTreeSourceList(treeNode.key); // id
// treeAreaId = treeNode.key; //id
@ -513,6 +547,31 @@ const getTreeKey = (treeNode: any) => {
// console.log(treeAreaId,'treeAreaId----------------------');
};
//
let boxbtnFlag = ref("1");
let box_btn = reactive([
{
id: "1",
name: "全量",
},
{
id: "2",
name: "可调",
},
]);
const changeSourceInfo = (val: string) => {
boxbtnFlag.value = val;
if (val === "1") {
//
console.log(tablepvData,'11111');
// tablepvData=
} else {
//
console.log(tablepvData,'222222');
}
};
// ---
let pht = ref(0); //
let cdz = ref(0); //
@ -1383,6 +1442,25 @@ const styleVar = computed(() => {
margin-left: 7%;
font-size: changeHeight(40);
}
.btn_box {
margin-left: 2%;
font-size: changeHeight(40);
width: changeHeight(140);
height: changeHeight(60);
line-height: changeHeight(60);
cursor: pointer;
// border: 1px solid red;
}
.btns_ac {
background: url("@/assets/images/btnType/tabdate_active.png")
no-repeat;
background-size: 100% 100%;
}
.btns_de {
background: url("@/assets/images/btnType/tabdate_default.png")
no-repeat;
background-size: 100% 100%;
}
}
// 线
.infotitle_box {

View File

@ -23,7 +23,7 @@ const props = defineProps<{
keysv?: Number;
}>();
onMounted(() => {
console.log(props.rateDate, props.keysv, "负载率曲线");
// console.log(props.rateDate, props.keysv, "线");
drawOneLine(props.rateDate);
nextTick(()=>{
@ -41,7 +41,7 @@ const { proxy }: any = getCurrentInstance();
const drawOneLine = (rateArr: RateDateInfo[]) => {
let myChart = proxy.$echarts.init(OneLine.value);
console.log(rateArr, "echarts中的负载率数组");
// console.log(rateArr, "echarts");
myChart.clear();
const option = {

View File

@ -23,7 +23,7 @@ const props = defineProps<{
keysv?: Number;
}>();
onMounted(() => {
console.log(props.rateDate, props.keysv, "负载率曲线");
// console.log(props.rateDate, props.keysv, "线");
drawOneLine(props.rateDate);
nextTick(()=>{
@ -41,7 +41,7 @@ const { proxy }: any = getCurrentInstance();
const drawOneLine = (rateArr: RateDateInfo[]) => {
let myChart = proxy.$echarts.init(OneLine.value);
console.log(rateArr, "echarts中的负载率数组");
// console.log(rateArr, "echarts");
myChart.clear();
const option = {