|
@@ -17,6 +17,10 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
+ <view class="btn-area submitBottomBtn padding-lr-sm" v-if="this.num!=1">
|
|
|
+ <button class="bg-blue round margin-top" @click="goDetail"> 配电系统模拟图 </button>
|
|
|
+ </view>
|
|
|
+
|
|
|
|
|
|
</view>
|
|
|
</template>
|
|
@@ -29,25 +33,26 @@
|
|
|
|
|
|
modalName: null,
|
|
|
companyCode:"",
|
|
|
- deviceType:""
|
|
|
+ deviceType:"",
|
|
|
+ num:''
|
|
|
};
|
|
|
},
|
|
|
|
|
|
onLoad:function(option){
|
|
|
- console.log(111)
|
|
|
- console.log(option.companyCode)
|
|
|
this.companyCode=option.companyCode
|
|
|
this.deviceType=option.deviceType
|
|
|
this.getDeviceManage({"companyCode":option.companyCode,"deviceType":option.deviceType})
|
|
|
+ this.num=option.num;
|
|
|
+ console.log('this.num')
|
|
|
+ console.log(this.num)
|
|
|
},
|
|
|
- onNavigationBarButtonTap(e) {
|
|
|
- console.log(e)
|
|
|
- uni.navigateTo({
|
|
|
- url: './electricalSystem/index?siteId=1&deviceType='+this.deviceType+'&companyCode='+this.companyCode
|
|
|
- });
|
|
|
- },
|
|
|
+ // onNavigationBarButtonTap(e) {
|
|
|
+ // console.log(e)
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: './electricalSystem/index?deviceType='+this.deviceType+'&companyCode='+this.companyCode
|
|
|
+ // });
|
|
|
+ // },
|
|
|
methods: {
|
|
|
-
|
|
|
async getDeviceManage(ming={}) {
|
|
|
const res= await this.$myRequest({
|
|
|
url:'OperationMonitoring/getDeviceList',
|
|
@@ -61,16 +66,27 @@
|
|
|
|
|
|
},
|
|
|
|
|
|
- // 页面跳转
|
|
|
- goDeviceDetail(item) {
|
|
|
+ goDetail(){
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages/device-Manage/deviceDetail/deviceDetail?deviceType=1&companyCode='+this.companyCode+'&deviceCode='+item.deviceCode+'',
|
|
|
- success: res => {},
|
|
|
- fail: () => {},
|
|
|
- complete: () => {}
|
|
|
+ url: './electricalSystem/index?deviceType='+this.deviceType+'&companyCode='+this.companyCode
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ // 页面跳转
|
|
|
+ goDeviceDetail(item) {
|
|
|
+ if(this.num==1){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/device-Manage/deviceDetail/deviceDetail?deviceType=1&companyCode='+this.companyCode+'&deviceCode='+item.deviceCode+'',
|
|
|
+ success: res => {},
|
|
|
+ fail: () => {},
|
|
|
+ complete: () => {}
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
|
|
|
|
|
|
|