diff --git a/psdc-ui/src/views/analyse/nhtj/index.vue b/psdc-ui/src/views/analyse/nhtj/index.vue
index be2f634..df2d996 100644
--- a/psdc-ui/src/views/analyse/nhtj/index.vue
+++ b/psdc-ui/src/views/analyse/nhtj/index.vue
@@ -31,7 +31,7 @@
-
+
@@ -195,7 +195,10 @@ const small = ref(false)
const background = ref(false)
const disabled = ref(false)
const total = ref()
-
+//翻页时不刷新序号
+function indexMethod1(index){
+ return index+(currentPage.value-1)*pageSize.value+1
+}
//获取表格数据
function getTableFun(){
getTable({
diff --git a/psdc-ui/src/views/control/manual/index.vue b/psdc-ui/src/views/control/manual/index.vue
index dc584a0..17088c7 100644
--- a/psdc-ui/src/views/control/manual/index.vue
+++ b/psdc-ui/src/views/control/manual/index.vue
@@ -7,7 +7,10 @@
@@ -15,16 +18,16 @@
@@ -37,7 +40,7 @@
-
+
@@ -97,21 +100,11 @@ onMounted(()=>{
/** 获取所有设备*/
const deviceArr = ref([])
-// const isShow1 = ref(true)
-// const isShow2 = ref(true)
function getDeviceFun(){
getDevice().then((res)=>{
- console.log(res.data)
deviceArr.value = res.data
- for(let i = 0;i < res.data.length;i++){
- // if(res.data[i].deviceModel == '发热电缆'){
- // isShow1.value = false
- // isShow2.value = true
- // }
- }
})
}
-
/** 设备控制处理*/
const form1 = reactive({
intemp:'',
@@ -160,6 +153,10 @@ function getControlLogListFun(){
})
}
+//翻页时不刷新序号
+function indexMethod1(index){
+ return index+(currentPage.value-1)*pageSize.value+1
+}
/** 策略导入处理*/
const drawerIshow = ref(false)
@@ -168,26 +165,25 @@ const celueList = ref([])
function getStrategyListFun(){
getStrategyList().then((res)=>{
celueList.value = res.data
- console.log(res.data)
})
}
function confirmClick() {
ElMessageBox.confirm(`确定执行 ${radio.value} ?`).then(() => {
drawerIshow.value = false;
- console.log('确定')
})
}
/** 控制设备启停*/
+const loading = ref(false)
function handleDevChangeFun(id,sta){
- console.log(id,sta)
+ // console.log(id,sta)
//1开启,2关闭
sta = sta === true ? 1 : 2
getStartAndStop({
"deviceId": id,
"runStatus": sta
}).then((res)=>{
- console.log(res.data)
+ // beforeChange()
if(res.code == 200){
ElMessage({
type:'success',
@@ -197,10 +193,20 @@ function handleDevChangeFun(id,sta){
})
getControlLogListFun()
}
+// function beforeChange(){
+// loading.value = true
+// return new Promise((resolve) => {
+// setTimeout(() => {
+// loading.value = false
+// // ElMessage.success('111!')
+// return resolve(true)
+// }, 1000)
+// })
+// }
/** 设置温度*/
function getSetTemperatureFun(item){
- console.log(item)
+ // console.log(item)
// getSetTemperature({
// "deviceId":100,
// "data":[
@@ -405,5 +411,9 @@ function getSetTemperatureFun(item){
overflow-x: hidden;
overflow-y: auto;
}
+::v-deep .el-input__wrapper{
+ padding: 0 10px;
+ border-radius: 0px !important;
+}
diff --git a/psdc-ui/src/views/control/timer/index.vue b/psdc-ui/src/views/control/timer/index.vue
index 9a2eb4f..963d8ec 100644
--- a/psdc-ui/src/views/control/timer/index.vue
+++ b/psdc-ui/src/views/control/timer/index.vue
@@ -37,7 +37,7 @@
-
+
@@ -247,7 +247,10 @@ const total = ref()
const small = ref(false)
const background = ref(false)
const disabled = ref(false)
-
+//翻页时不刷新序号
+function indexMethod1(index){
+ return index+(currentPage.value-1)*pageSize.value+1
+}
//获取表格信息
function getListFun(){
getList({