Commit 59c280d9 authored by lwy's avatar lwy

一键启停静态页面

parent 0052eacf
......@@ -8,8 +8,10 @@
<el-dialog @close="onClose" :close-on-click-modal="false" v-model="dialogFormVisible" width="30%" title="请选择进行一键启动的循环泵:" center>
<div style="display: flex;justify-content: center;align-items: center; height: 150px;">
<el-button type="primary" :loading="isLoading" @click="OneKeyStart(1)" style="margin-right: 50px;">一号循环泵</el-button>
<el-button type="primary" :loading="isLoading" @click="OneKeyStart(2)">二号循环泵</el-button>
<!-- 删除 @click="OneKeyStart(1)" 不进行操作-->
<el-button type="primary" :loading="isLoading" style="margin-right: 50px;">一号循环泵</el-button>
<!-- 删除@click="OneKeyStart(2)" 不进行操作 -->
<el-button type="primary" :loading="isLoading">二号循环泵</el-button>
</div>
</el-dialog>
<el-card class="remoteTitle">
......@@ -32,9 +34,11 @@
<el-input v-model="limit" v-text="limit" style="width: 150px;" v-float-number></el-input>(米)
</div>
<div class="demo-button">
<el-button type="primary" :loading="isLoading" @click="TransferOpen" >一键启动</el-button>
<!-- 删除 @click="TransferOpen" 不进行操作 -->
<el-button type="primary" :loading="isLoading" >一键启动</el-button>
<!-- <el-button type="primary" :loading="isLoading" @click="OnekeyStopEnd" >一键停止</el-button>-->
<el-button type="primary" :loading="isLoading" @click="TransferClose" >一键停止</el-button>
<!-- 删除 @click="TransferClose" 不进行操作 -->
<el-button type="primary" :loading="isLoading" >一键停止</el-button>
</div>
</div>
</el-card>
......@@ -103,7 +107,7 @@ import { ElMessage,ElMessageBox } from "element-plus";
import { vFloatNumber } from "../../utils/directives.js";
import { fa } from 'element-plus/es/locale';
import {useRoute} from "vue-router";
import {selectOneStartStop, selectIsScheduleByUserId, setOneStartStop} from '../../api/oneKeyStartStop/index.js'
//import {selectOneStartStop, selectIsScheduleByUserId, setOneStartStop} from '../../api/oneKeyStartStop/index.js'
const enterpriseId = ref(null);
const cascaderRef = ref(null);
const isLoading= ref(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment