Browse Source

init

newStyle
lancer 3 years ago
parent
commit
ace99f797d
2 changed files with 32 additions and 1 deletions
  1. +31
    -0
      src/views/Equipment/state.vue
  2. +1
    -1
      src/views/Statistics/trend.vue

+ 31
- 0
src/views/Equipment/state.vue View File

@@ -3,6 +3,20 @@
<!-- 头 --> <!-- 头 -->
<div class="app-top"> <div class="app-top">
<div class="app-titel" style="margin-left: 15px" v-if="orgType!=3"> <div class="app-titel" style="margin-left: 15px" v-if="orgType!=3">
<el-select
v-model="houseTypes"
@change="sysChange"
style="width: 100px; margin-right: 10px"
placeholder="请选择"
>
<el-option
v-for="item in options2"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
<el-select <el-select
v-model="selValue" v-model="selValue"
@change="selChange1" @change="selChange1"
@@ -778,6 +792,17 @@ export default {
// { color: "#1989fa", percentage: 80 }, // { color: "#1989fa", percentage: 80 },
{ color: "#6f7ad3", percentage: 100 }, { color: "#6f7ad3", percentage: 100 },
], ],
options2: [
{
label: "正式数据",
value: "0,1",
},
{
label: "测试数据",
value: "2,3",
},
],
houseTypes:'0,1'
}; };
}, },
computed: { computed: {
@@ -809,6 +834,11 @@ export default {
this.zkhousePage(); this.zkhousePage();
}, },
methods: { methods: {
sysChange(){
this.choicValue=''
this.selValue='0'
this.getList()
},
selChange1() { selChange1() {
this.choicValue = ""; this.choicValue = "";
this.getList(); this.getList();
@@ -831,6 +861,7 @@ export default {
.findHouseByUser({ .findHouseByUser({
orgType: localStorage.getItem("orgType"), orgType: localStorage.getItem("orgType"),
houseId: localStorage.getItem("houseId"), houseId: localStorage.getItem("houseId"),
houseTypes: this.houseTypes,
}) })
.then((res) => { .then((res) => {
this.dataList = res.data; this.dataList = res.data;


+ 1
- 1
src/views/Statistics/trend.vue View File

@@ -479,7 +479,7 @@ export default {
sysChange(){ sysChange(){
this.choicValue='' this.choicValue=''
this.selValue='0' this.selValue='0'
this.receptionOverviewOfSystem();
this.getList()
}, },
// 获取tab2 // 获取tab2
receptionOverviewOfSystem() { receptionOverviewOfSystem() {


Loading…
Cancel
Save