@@ -77,7 +86,7 @@
diff --git a/psdc-ui/src/views/emonitor/wdcgq/index.vue b/psdc-ui/src/views/emonitor/wdcgq/index.vue
index 46abd72..907d71d 100644
--- a/psdc-ui/src/views/emonitor/wdcgq/index.vue
+++ b/psdc-ui/src/views/emonitor/wdcgq/index.vue
@@ -52,21 +52,27 @@ export default {
})
onMounted(() => {//需要获取到element,所以是onMounted的Hook
//温度传感器1-8 id 5-12
- getWdcgq(16).then((res)=>{
+ getWdcgq("温度传感器").then((res)=>{
console.log(res)
- let arr = []
- let brr = []
- let crr = []
- for (let i in res.data){
- arr.push({name:res.data[i].deviceName,temp:res.data[i].deviceTemp})
- brr.push({name:res.data[i].deviceName,type: "line",data:res.data[i].temps,itemStyle:{color:'#2F8EE0'}})
- crr.push(res.data[i].times)
+ if(res.data!=null) {
+ let arr = []
+ let brr = []
+ let crr = []
+ for (let i in res.data) {
+ arr.push({name: res.data[i].deviceName, temp: res.data[i].deviceTemp})
+ brr.push({
+ name: res.data[i].deviceName,
+ type: "line",
+ data: res.data[i].temps,
+ itemStyle: {color: '#2F8EE0'}
+ })
+ crr.push(res.data[i].times)
+ }
+ console.log(crr)
+ data.info = arr
+ data.infos = brr
+ data.xinfo = crr
}
- console.log(crr)
- data.info=arr
- data.infos=brr
- data.xinfo=crr
-
let myChart = echarts.getInstanceByDom(document.getElementById("myEcharts"));
if (myChart){
myChart.dispose()
diff --git a/psdc-ui/src/views/emonitor/xrgl/index.vue b/psdc-ui/src/views/emonitor/xrgl/index.vue
index 86fb278..8afa1c2 100644
--- a/psdc-ui/src/views/emonitor/xrgl/index.vue
+++ b/psdc-ui/src/views/emonitor/xrgl/index.vue
@@ -223,21 +223,23 @@ export default {
onMounted(() => {//需要获取到element,所以是onMounted的Hook
getXrgl(2).then((res)=>{
console.log('1',res)
- data.tempIn=res.data.tempIn
- data.tempOut=res.data.tempOut
- data.totp = res.data.totp
- data.totwh = res.data.totwh
- if(res.data.runStatus==1){
- data.runStatus = '开启'
- }else if (res.data.runStatus==2){
- data.runStatus = '关闭'
+ if(res.data!=null) {
+ data.tempIn = res.data.tempIn
+ data.tempOut = res.data.tempOut
+ data.totp = res.data.totp
+ data.totwh = res.data.totwh
+ if (res.data.runStatus == 1) {
+ data.runStatus = '开启'
+ } else if (res.data.runStatus == 2) {
+ data.runStatus = '关闭'
+ }
+ //gl
+ delete res.data.todayUsePowers.deviceId
+ delete res.data.todayUsePowers.samDate
+ delete res.data.todayUsePowers.userId
+ let arr = Object.values(res.data.todayUsePowers)
+ data.glData = arr
}
- //gl
- delete res.data.todayUsePowers.deviceId
- delete res.data.todayUsePowers.samDate
- delete res.data.todayUsePowers.userId
- let arr = Object.values(res.data.todayUsePowers)
- data.glData=arr
let myChart3 = echarts.getInstanceByDom(document.getElementById("myEcharts3"));
if (myChart3){
myChart3.dispose()
diff --git a/psdc-ui/src/views/system/cl/index.vue b/psdc-ui/src/views/system/cl/index.vue
index 2968389..ef91d88 100644
--- a/psdc-ui/src/views/system/cl/index.vue
+++ b/psdc-ui/src/views/system/cl/index.vue
@@ -61,37 +61,46 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
全选
+
+
+ {{item.deviceName}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -158,6 +167,12 @@ onMounted(()=>{
}
console.log('sblb',arr)
data.sblb=arr
+ var brr = []
+ for(let a in arr){
+ brr.push(arr[a].deviceId)
+ }
+ data.AllName=brr
+ console.log(brr)
})
getXl().then((res)=>{
console.log(res)
@@ -180,7 +195,11 @@ onMounted(()=>{
})
/** 筛选处理 */
const data = reactive({
- sblb:[],
+ checkAll: false,
+ checkedSblb: [],
+ sblb: [],
+ AllName:[],
+ isIndeterminate: false,
total:'',
timingList:[],
queryParams: '',
@@ -222,8 +241,18 @@ function resetQuery(){
data.total=res.total
})
}
+function handleCheckAllChange(val) {
+ data.checkedSblb = val ? data.AllName : [];
+ data.isIndeterminate = false;
+ console.log(data.checkedSblb)
+}
-
+function handleCheckedCitiesChange(value) {
+ let checkedCount = value.length;
+ data.checkAll = checkedCount === data.sblb.length;
+ data.isIndeterminate = checkedCount > 0 && checkedCount < data.sblb.length;
+ console.log(data.checkedSblb)
+}
/** 数据表格处理 */
const currentPage = ref(1)
@@ -366,7 +395,7 @@ function cancel1() {
timingForm1.temp=''
};
function handleDel(sceneId) {
- ElMessageBox.confirm("是否确认删除此电站?", "提示",{
+ ElMessageBox.confirm("是否确认删除此策略?", "提示",{
confirmButtonText: "确认",
cancelButtonText: "取消",
type: "warning"
diff --git a/psdc-ui/src/views/system/config/index.vue b/psdc-ui/src/views/system/config/index.vue
index 1a55e17..37d41ab 100644
--- a/psdc-ui/src/views/system/config/index.vue
+++ b/psdc-ui/src/views/system/config/index.vue
@@ -1,6 +1,6 @@
-
+111
diff --git a/psdc-ui/src/views/system/device/index.vue b/psdc-ui/src/views/system/device/index.vue
new file mode 100644
index 0000000..346fc51
--- /dev/null
+++ b/psdc-ui/src/views/system/device/index.vue
@@ -0,0 +1,514 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/psdc-ui/src/views/system/user/profile/index.vue b/psdc-ui/src/views/system/user/profile/index.vue
index ab43fce..3f777dd 100644
--- a/psdc-ui/src/views/system/user/profile/index.vue
+++ b/psdc-ui/src/views/system/user/profile/index.vue
@@ -41,17 +41,28 @@
- 基本资料
+ 修改密码
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
@@ -59,15 +70,21 @@
+
+