+
+
+
- 电能表设置
+ 稳压分控器
-
-->
-
电能表地址
-
{{ address }}
-
+
电能表型号
+
+
-
电能表型号
-
-
+
电能表地址
+
{{ address }}
+
@@ -130,6 +158,22 @@ const systemRuntime = ref('38分钟')
const formField = ref({})
const commit_uid = localStorage.getItem('central_control_comm_uid')
+const RiseSetOption = [
+ { label: '0', value: 0 },
+ { label: '提前60分钟', value: 60 },
+ { label: '提前50分钟', value: 50 },
+ { label: '提前40分钟', value: 40 },
+ { label: '提前30分钟', value: 30 },
+ { label: '提前20分钟', value: 20 },
+ { label: '提前10分钟', value: 10 },
+ { label: '延后10分钟', value: -10 },
+ { label: '延后20分钟', value: -20 },
+ { label: '延后30分钟', value: -30 },
+ { label: '延后40分钟', value: -40 },
+ { label: '延后50分钟', value: -50 },
+ { label: '延后60分钟', value: -60 },
+]
+
RPC.post('/m9z/getLgnLatData', { comm_uid: commit_uid }).then(res => {
formField.value.lat = res.lat
formField.value.lgn = res.lgn
@@ -162,22 +206,44 @@ const updateTime = () => {
}
const restartSystem = () => {
- RPC.post('/m9z/setRestart', { comm_uid: commit_uid }).then(res => {
- ElMessage.success('重启成功')
+ ElMessageBox.confirm(
+ `此操作将远程重启,是否继续?`,
+ '提示',
+ {
+ confirmButtonText: '确认',
+ cancelButtonText: '取消',
+ type: 'warning',
+ }
+ ).then(() => {
+ RPC.post('/m9z/setRestart', { comm_uid: commit_uid }).then(res => {
+ ElMessage.success('远程重启成功')
+ getInfo()
+ })
})
}
const save = () => {
- const params = {
- "comm_uid": commit_uid,
- "lat": Number(formField.value.lat),
- "lgn": Number(formField.value.lgn),
- "loc_str": formField.value.loc_str,
- "rise": Number(formField.value.rise),
- "set": Number(formField.value.set)
- }
- RPC.post('/m9z/setDeviceLgnLatAndSunRsTime', params).then(res => {
- ElMessage.success('操作成功')
+ ElMessageBox.confirm(
+ `此操作将保存配置,是否继续?`,
+ '提示',
+ {
+ confirmButtonText: '确认',
+ cancelButtonText: '取消',
+ type: 'warning',
+ }
+ ).then(() => {
+ const params = {
+ "comm_uid": commit_uid,
+ "lat": Number(formField.value.lat),
+ "lgn": Number(formField.value.lgn),
+ "loc_str": formField.value.loc,
+ "rise": Number(formField.value.rise),
+ "set": Number(formField.value.set)
+ }
+ console.log(params, formField.value)
+ // RPC.post('/m9z/setDeviceLgnLatAndSunRsTime', params).then(res => {
+ // ElMessage.success('操作成功')
+ // })
})
}
@@ -253,7 +319,8 @@ onUnmounted(() => {
.control-content {
display: flex;
width: 100%;
- gap: 30px;
+ gap: 20px;
+ overflow: hidden;
box-sizing: border-box;
.main_item {
@@ -287,6 +354,7 @@ onUnmounted(() => {
.key {
color: #fff;
margin-right: 10px;
+ flex-shrink: 0;
}
.value {
@@ -297,7 +365,7 @@ onUnmounted(() => {
min-height: 32px;
box-sizing: border-box;
border-radius: 5px;
- border: 1px solid #ccc;
+ // border: 1px solid #ccc;
}
.line {
@@ -393,14 +461,25 @@ onUnmounted(() => {
.el-input {
background-color: #21232A;
- :deep(.el-input__wrapper) {
- background-color: #212329;
- box-shadow: none;
- border: 1px soild #3B3D45;
+}
- input {
- color: #8088AA;
- }
+:deep(.el-input__wrapper) {
+ background-color: #212329 !important;
+ box-shadow: none;
+ border: 1px soild #3B3D45;
+
+ input {
+ color: #8088AA;
+ }
+}
+
+:deep(.el-select__wrapper) {
+ background-color: #212329 !important;
+ box-shadow: none;
+ border: 1px soild #3B3D45;
+
+ .el-select__placeholder {
+ color: #8088AA;
}
}