1
This commit is contained in:
		
							parent
							
								
									5edf37db7c
								
							
						
					
					
						commit
						7f7dd72f0d
					
				@ -482,12 +482,30 @@
 | 
			
		||||
                 type="text" placeholder="0">
 | 
			
		||||
            </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>
 | 
			
		||||
</template>
 | 
			
		||||
<script>
 | 
			
		||||
export default {
 | 
			
		||||
    data() {
 | 
			
		||||
        return {
 | 
			
		||||
    warnModel: true,
 | 
			
		||||
            modelPassword:'',
 | 
			
		||||
            sensorType: '',
 | 
			
		||||
            typeList1: [{ label: '平均1#土壤湿度', value: 0 },
 | 
			
		||||
            { label: '1#土壤湿度', value: 1 },
 | 
			
		||||
@ -525,6 +543,16 @@ export default {
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    methods: {
 | 
			
		||||
                modelClose(){
 | 
			
		||||
            this.$router.go(-1); // 返回前一页
 | 
			
		||||
        },
 | 
			
		||||
modelConfirm(){
 | 
			
		||||
        if(this.modelPassword=='230509'){
 | 
			
		||||
            this.warnModel=false
 | 
			
		||||
        }else{
 | 
			
		||||
            this.$message('密码错误');
 | 
			
		||||
        }
 | 
			
		||||
},
 | 
			
		||||
          //失去焦点 计算公式 x/10
 | 
			
		||||
          blurChange10(code, el) {
 | 
			
		||||
            var store = this.$store.state
 | 
			
		||||
 | 
			
		||||
@ -584,22 +584,7 @@
 | 
			
		||||
                </el-dropdown>
 | 
			
		||||
            </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>
 | 
			
		||||
</template>
 | 
			
		||||
@ -607,8 +592,7 @@
 | 
			
		||||
export default {
 | 
			
		||||
    data() {
 | 
			
		||||
        return {
 | 
			
		||||
            warnModel: true,
 | 
			
		||||
            modelPassword:'',
 | 
			
		||||
        
 | 
			
		||||
            sensorType: '',
 | 
			
		||||
            typeList1: [
 | 
			
		||||
                { label: '1#平均空气温度', value: 1 },
 | 
			
		||||
@ -655,16 +639,7 @@ export default {
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    methods: {
 | 
			
		||||
        modelClose(){
 | 
			
		||||
            this.$router.go(-1); // 返回前一页
 | 
			
		||||
        },
 | 
			
		||||
modelConfirm(){
 | 
			
		||||
        if(this.modelPassword=='230509'){
 | 
			
		||||
            this.warnModel=false
 | 
			
		||||
        }else{
 | 
			
		||||
            this.$message('密码错误');
 | 
			
		||||
        }
 | 
			
		||||
},
 | 
			
		||||
 | 
			
		||||
        getData1(data) {
 | 
			
		||||
            var name = ''
 | 
			
		||||
            this.typeList1.forEach((el, index) => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user