|
@@ -46,19 +46,19 @@
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="配置内容" name="second">
|
|
|
<div class="desBlock">
|
|
|
- <h3>【站点级配置】</h3>
|
|
|
+ <h3>【站点级配置】<a @click="goSitePowerScore">立即前往</a></h3>
|
|
|
<p>请在 站点管理->电能质量评分配置中配置 或 联系运维管理员:</p>
|
|
|
<span>电能质量各要素权重、功率因数标准值</span>
|
|
|
</div>
|
|
|
<div class="desBlock">
|
|
|
- <h3>【设备级配置】</h3>
|
|
|
+ <h3>【设备级配置】<a @click="goSiteWatchDog">立即前往</a></h3>
|
|
|
<p>请在 站点管理->监控设备中配置 或 联系运维管理员:</p>
|
|
|
<span>额定电压、额定电流、电流负载率门限、电能质量分析</span>
|
|
|
<span>如果设备没有配置额定电压,电压/谐波畸变率分析项可能没有数据</span>
|
|
|
<span>如果设备不勾选电能质量分析,该设备不参与电能质量分析</span>
|
|
|
</div>
|
|
|
<div class="desBlock">
|
|
|
- <h3>【变量级配置】</h3>
|
|
|
+ <h3>【变量级配置】<a @click="goSiteVariableList">立即前往</a></h3>
|
|
|
<p>请在 站点管理->变量列表中配置 或 联系运维管理员:配置下列变量,且需要指定变量的变量属性</p>
|
|
|
<span>A/B/C相电压</span>
|
|
|
<span>A/B/C相电流</span>
|
|
@@ -85,7 +85,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-// import { useStore } from 'vuex'
|
|
|
+import { useStore } from 'vuex'
|
|
|
+import {useRouter} from 'vue-router'
|
|
|
+
|
|
|
import { defineComponent, ref, watchEffect } from 'vue'
|
|
|
// import * as api from '@/api/siteManage/watchDog.js'
|
|
|
// import { ElMessage } from 'element-plus'
|
|
@@ -100,7 +102,8 @@ export default defineComponent({
|
|
|
},
|
|
|
setup(props, context) {
|
|
|
context
|
|
|
- // const store = useStore()
|
|
|
+ let router = useRouter();
|
|
|
+ const store = useStore()
|
|
|
const dialogVisible = ref(false)
|
|
|
|
|
|
const activeName=ref('first')
|
|
@@ -130,9 +133,46 @@ export default defineComponent({
|
|
|
function handleClick(tab, event) {
|
|
|
console.log(tab, event)
|
|
|
}
|
|
|
+
|
|
|
+ function goSiteWatchDog(){
|
|
|
+ store.state.goUrl=2
|
|
|
+ router.push({
|
|
|
+ //传递参数使用query的话,指定path或者name都行,但使用params的话,只能使用name指定
|
|
|
+ path:'/siteManage',
|
|
|
+ query:{
|
|
|
+ activeName:'second',
|
|
|
+ siteId:store.state.siteId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ function goSiteVariableList(){
|
|
|
+ store.state.goUrl=3
|
|
|
+ router.push({
|
|
|
+ //传递参数使用query的话,指定path或者name都行,但使用params的话,只能使用name指定
|
|
|
+ path:'/siteManage',
|
|
|
+ query:{
|
|
|
+ activeName:'six',
|
|
|
+ siteId:store.state.siteId
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+ function goSitePowerScore(){
|
|
|
+ store.state.goUrl=6
|
|
|
+ router.push({
|
|
|
+ //传递参数使用query的话,指定path或者name都行,但使用params的话,只能使用name指定
|
|
|
+ path:'/siteManage',
|
|
|
+ query:{
|
|
|
+ activeName:'six',
|
|
|
+ siteId:store.state.siteId
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
|
|
|
return {
|
|
|
+ store,
|
|
|
closeDialog,
|
|
|
dialogVisible,
|
|
|
|
|
@@ -140,6 +180,10 @@ export default defineComponent({
|
|
|
|
|
|
handleClick,
|
|
|
activeName,
|
|
|
+
|
|
|
+ goSitePowerScore,
|
|
|
+ goSiteWatchDog,
|
|
|
+ goSiteVariableList
|
|
|
}
|
|
|
},
|
|
|
})
|
|
@@ -164,6 +208,10 @@ export default defineComponent({
|
|
|
h3{
|
|
|
margin:0 0 10px 0;
|
|
|
position:relative;
|
|
|
+ a{
|
|
|
+ position:absolute;
|
|
|
+ right:0
|
|
|
+ }
|
|
|
span{
|
|
|
position:absolute;
|
|
|
right:0;
|