Compare commits

...

2 Commits

Author SHA1 Message Date
“yu” 8143fc29fc Merge branch 'master' of http://58.87.70.254/zhaoqiang/v3tianjin 2024-07-17 20:57:11 +08:00
“yu” d081ab1486 aa 2024-07-17 20:57:09 +08:00
5 changed files with 90 additions and 13 deletions

1
components.d.ts vendored
View File

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

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -68,7 +68,19 @@
</div> </div>
</div> </div>
<div class="capAjust_box content_bg" v-if="allFlag"> <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="info1">
<div class="source_type"> <div class="source_type">
<div class="box source_active" v-for="item in sourceLArr"> <div class="box source_active" v-for="item in sourceLArr">
@ -82,7 +94,19 @@
</div> </div>
</div> </div>
<div class="capAjust_box content_bg" v-else> <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="info1">
<div class="source_type"> <div class="source_type">
<div class="box source_active" v-for="item in sourceLArr"> <div class="box source_active" v-for="item in sourceLArr">
@ -150,11 +174,21 @@
</div> </div>
</div> </div>
</div> </div>
<div class="info3"> <div class="info3"></div>
</div>
</div> </div>
<div class="capAjust_box content_bg" v-else> <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="info1">
<div class="source_type"> <div class="source_type">
<div class="box source_active" v-for="item in sourceLArr"> <div class="box source_active" v-for="item in sourceLArr">
@ -289,8 +323,6 @@
</div> </div>
</div> </div>
<div class="infotitle"><span>已下发指令</span></div> <div class="infotitle"><span>已下发指令</span></div>
<!-- <div ><span>已下发指令</span></div> -->
<div class="progress_info2"> <div class="progress_info2">
<el-carousel trigger="click" arrow="never"> <el-carousel trigger="click" arrow="never">
<el-carousel-item <el-carousel-item
@ -462,6 +494,7 @@ onMounted(() => {
// console.log(result, ""); // console.log(result, "");
getAllSourceAjust(); // getAllSourceAjust(); //
}); });
let allFlag = ref(true); // let allFlag = ref(true); //
let allSource = ref([]); let allSource = ref([]);
// orgID // orgID
@ -499,12 +532,13 @@ let treeNodeKey = ref(""); //点击设备树二级服务获取的台区id去获
// id treeNode // id treeNode
const getTreeKey = (treeNode: any) => { const getTreeKey = (treeNode: any) => {
treeNodeKey.value = treeNode.key; //线id treeNodeKey.value = treeNode.key; //线id
boxbtnFlag.value="1"//
allFlag.value = false; allFlag.value = false;
if (treeNode.level === 3) { if (treeNode.level === 3) {
console.log(treeNode.level, "3"); console.log(treeNode.level, "3");
getAllSourceAjust_Line(treeNode.key); getAllSourceAjust_Line(treeNode.key);
getRateDate(treeNode.key); // id getRateDate(treeNode.key); // id
} else { } else if(treeNode.level === 4) {
console.log(treeNode.level, "4"); // console.log(treeNode.level, "4"); //
getTreeSourceList(treeNode.key); // id getTreeSourceList(treeNode.key); // id
// treeAreaId = treeNode.key; //id // treeAreaId = treeNode.key; //id
@ -513,6 +547,31 @@ const getTreeKey = (treeNode: any) => {
// console.log(treeAreaId,'treeAreaId----------------------'); // 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 pht = ref(0); //
let cdz = ref(0); // let cdz = ref(0); //
@ -1383,6 +1442,25 @@ const styleVar = computed(() => {
margin-left: 7%; margin-left: 7%;
font-size: changeHeight(40); 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 { .infotitle_box {

View File

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

View File

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