pc-master #96

Merged
xiaomeng merged 3 commits from pc-master into portal 2024-01-22 07:02:54 +00:00
3 changed files with 110 additions and 54 deletions

View File

@ -482,12 +482,30 @@
type="text" placeholder="0"> type="text" placeholder="0">
</div> </div>
</div> </div>
<el-dialog title="请输入密码" class="vrcode-model confirm-psw" top="30vh" :append-to-body="true" :visible.sync="warnModel"
width="700px">
<div class="vrcode-model-title vrcode-model-title-282">请输入密码</div>
<div class="warning-model" style="padding: 0 30px;">
<div class="flex-view border-none">
<div class="input-main">
<div>密码:</div>
<input type="text" v-model="modelPassword">
</div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="modelClose"> </el-button>
<el-button type="success" @click="modelConfirm"> </el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
warnModel: true,
modelPassword:'',
sensorType: '', sensorType: '',
typeList1: [{ label: '平均1#土壤湿度', value: 0 }, typeList1: [{ label: '平均1#土壤湿度', value: 0 },
{ label: '1#土壤湿度', value: 1 }, { label: '1#土壤湿度', value: 1 },
@ -525,6 +543,16 @@ export default {
} }
}, },
methods: { methods: {
modelClose(){
this.$router.go(-1); //
},
modelConfirm(){
if(this.modelPassword=='230509'){
this.warnModel=false
}else{
this.$message('密码错误');
}
},
// x/10 // x/10
blurChange10(code, el) { blurChange10(code, el) {
var store = this.$store.state var store = this.$store.state

View File

@ -556,7 +556,7 @@
</div> </div>
</div> </div>
<div class="flex-view shrink-none border-none"> <div class="flex-view shrink-none">
<div class="input-sel input-sel-w180"> <div class="input-sel input-sel-w180">
<span>轴流风机: 目标温度选择</span> <span>轴流风机: 目标温度选择</span>
<el-dropdown @command="handleCommand3($event, 21741)"> <el-dropdown @command="handleCommand3($event, 21741)">
@ -584,22 +584,62 @@
</el-dropdown> </el-dropdown>
</div> </div>
</div> </div>
<el-dialog title="请输入密码" class="vrcode-model confirm-psw" top="30vh" :append-to-body="true" :visible.sync="warnModel" <div class="flex-view shrink-none border-none">
width="700px"> <div class="input-sel input-sel-w180">
<div class="vrcode-model-title vrcode-model-title-282">请输入密码</div> <span>内保温1:目标温度选择</span>
<div class="warning-model" style="padding: 0 30px;"> <el-dropdown @command="handleCommand3($event, 21773)">
<div class="flex-view border-none"> <div class="el-dropdown-link">
<div class="input-main"> <input v-model="inputDataNew[21773]" type="text" class="input-input" placeholder="无">
<div>密码:</div> <div class="arrow"><img src="../../assets/image/arrow.png" alt=""></div>
<input type="text" v-model="modelPassword"> </div>
<el-dropdown-menu class="input-menu-180" slot="dropdown">
<el-dropdown-item v-for="item, index in typeList3" :key="index" :command="item.value">{{
item.label }}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<div class="input-sel input-sel-w180">
<span>温度选择</span>
<el-dropdown @command="handleCommand1($event, 21772)">
<div class="el-dropdown-link">
<input v-model="inputDataNew[21772]" type="text" class="input-input" placeholder="无">
<div class="arrow"><img src="../../assets/image/arrow.png" alt=""></div>
</div>
<el-dropdown-menu class="input-menu-180" slot="dropdown">
<el-dropdown-item v-for="item, index in typeList1" :key="index" :command="item.value">{{
item.label }}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div> </div>
</div> </div>
<div class="flex-view shrink-none">
<div class="input-sel input-sel-w180">
<span>内保温2:目标温度选择</span>
<el-dropdown @command="handleCommand3($event, 21775)">
<div class="el-dropdown-link">
<input v-model="inputDataNew[21775]" type="text" class="input-input" placeholder="无">
<div class="arrow"><img src="../../assets/image/arrow.png" alt=""></div>
</div>
<el-dropdown-menu class="input-menu-180" slot="dropdown">
<el-dropdown-item v-for="item, index in typeList3" :key="index" :command="item.value">{{
item.label }}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<div class="input-sel input-sel-w180">
<span>温度选择</span>
<el-dropdown @command="handleCommand1($event, 21774)">
<div class="el-dropdown-link">
<input v-model="inputDataNew[21774]" type="text" class="input-input" placeholder="无">
<div class="arrow"><img src="../../assets/image/arrow.png" alt=""></div>
</div>
<el-dropdown-menu class="input-menu-180" slot="dropdown">
<el-dropdown-item v-for="item, index in typeList1" :key="index" :command="item.value">{{
item.label }}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</div> </div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="modelClose"> </el-button>
<el-button type="success" @click="modelConfirm"> </el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
@ -607,8 +647,7 @@
export default { export default {
data() { data() {
return { return {
warnModel: true,
modelPassword:'',
sensorType: '', sensorType: '',
typeList1: [ typeList1: [
{ label: '1#平均空气温度', value: 1 }, { label: '1#平均空气温度', value: 1 },
@ -655,16 +694,7 @@ export default {
} }
}, },
methods: { methods: {
modelClose(){
this.$router.go(-1); //
},
modelConfirm(){
if(this.modelPassword=='230509'){
this.warnModel=false
}else{
this.$message('密码错误');
}
},
getData1(data) { getData1(data) {
var name = '' var name = ''
this.typeList1.forEach((el, index) => { this.typeList1.forEach((el, index) => {

View File

@ -1,7 +1,8 @@
<template> <template>
<div class="formula realTime"> <div class="formula realTime">
<!-- 生态气象站 --> <!-- 生态气象站 -->
<div class="page-content new-data" v-if="deviceName == 30" :class="deviceName == 10 || deviceName == 30 ? 'control-page' : ''"> <div class="page-content new-data" v-if="deviceName == 30"
:class="deviceName == 10 || deviceName == 30 ? 'control-page' : ''">
<div class="table-title"> <div class="table-title">
<img src="../../assets/image/real-time.png" alt="" /> <img src="../../assets/image/real-time.png" alt="" />
@ -855,24 +856,25 @@ export default {
// name = '2#' + el.environmentDataId // name = '2#' + el.environmentDataId
// } // }
// } else { // } else {
// if (el.targetValue == 1) {
// name = el.equipmentNumber + '#' + el.environmentDataId
// } else {
// name = el.equipmentNumber + '#' + el.environmentDataId // name = el.equipmentNumber + '#' + el.environmentDataId
// } // }
if (el.equipmentNumber == 0) { // }
name = '1#平均' + el.environmentDataId
} else if (el.equipmentNumber == 15) {
name = '2#平均' + el.environmentDataId
} else {
if (el.targetValue == 1) { if (el.targetValue == 1) {
name = el.equipmentNumber + '#目标' + el.environmentDataId name = '目标' + el.environmentDataId
} else {
if (el.equipmentNumber == 0) {
name = '1#平均' + el.environmentDataId
} else if (el.equipmentNumber == 15) {
name = '2#平均' + el.environmentDataId
} else { } else {
name = el.equipmentNumber + '#' + el.environmentDataId name = el.equipmentNumber + '#' + el.environmentDataId
} }
} }
this.list.push({ this.list.push({
...el, ...el,
name: name, name: name,
@ -942,17 +944,13 @@ export default {
num = el.environmentData + el1.unit num = el.environmentData + el1.unit
} }
// } // }
if (el.equipmentNumber == 0) {
name = '1#平均' + el.environmentDataId
} else if (el.equipmentNumber == 15) {
name = '2#平均' + el.environmentDataId
} else {
if (el.targetValue == 1) { if (el.targetValue == 1) {
name = el.equipmentNumber + '#目标' + el.environmentDataId name = '目标' + el.environmentDataId
} else {
if (el.equipmentNumber == 0) {
name = '1#平均' + el.environmentDataId
} else if (el.equipmentNumber == 15) {
name = '2#平均' + el.environmentDataId
} else { } else {
name = el.equipmentNumber + '#' + el.environmentDataId name = el.equipmentNumber + '#' + el.environmentDataId
} }