接口对接修改
This commit is contained in:
@@ -26,23 +26,36 @@
|
||||
sub-title="创建时间"
|
||||
v-for="item in store.data"
|
||||
:key="item.equipmentId"
|
||||
@click="goDevice"
|
||||
@click="goDevice(item)"
|
||||
padding="0"
|
||||
thumbnail="/static/device.png"
|
||||
>
|
||||
</uni-card>
|
||||
<Cn-empty v-if="store.empty"></Cn-empty>
|
||||
<uni-load-more v-if="store.data && store.data.length > 0" :status="store.status"></uni-load-more>
|
||||
<uni-load-more
|
||||
v-if="store.data && store.data.length > 0"
|
||||
:status="store.status"
|
||||
></uni-load-more>
|
||||
</view>
|
||||
<view style="padding: 0 20rpx" v-show="navMenuActive == 1">
|
||||
<uni-list>
|
||||
<uni-list-item title="张三" note="2023-02-10 14:55" thumb="/static/head.png" thumb-size="lg">
|
||||
<uni-list-item
|
||||
title="张三"
|
||||
note="2023-02-10 14:55"
|
||||
thumb="/static/head.png"
|
||||
thumb-size="lg"
|
||||
>
|
||||
<template v-slot:footer>
|
||||
<view class="footer-btn mt20" style="background: #e47470" @click="del">移除</view>
|
||||
<!-- <view class="footer-btn mt20 ml10" @click="goUserDetail">查看</view> -->
|
||||
</template>
|
||||
</uni-list-item>
|
||||
<uni-list-item title="李四" note="2023-02-10 14:55" thumb="/static/head.png" thumb-size="lg">
|
||||
<uni-list-item
|
||||
title="李四"
|
||||
note="2023-02-10 14:55"
|
||||
thumb="/static/head.png"
|
||||
thumb-size="lg"
|
||||
>
|
||||
<template v-slot:footer>
|
||||
<view class="footer-btn mt20" style="background: #e47470" @click="del">移除</view>
|
||||
<!-- <view class="footer-btn mt20 ml10" @click="goUserDetail">查看</view> -->
|
||||
@@ -65,6 +78,7 @@
|
||||
:auto-upload="false"
|
||||
@select="addAppTopologyDiagram"
|
||||
@delete="deleteTopologyDiagramPage"
|
||||
readonly
|
||||
></uni-file-picker>
|
||||
</view>
|
||||
</view>
|
||||
@@ -75,7 +89,6 @@
|
||||
vertical="bottom"
|
||||
:content="content"
|
||||
@trigger="trigger"
|
||||
v-if="content.length"
|
||||
/>
|
||||
<uni-popup ref="share" type="share" background-color="#fff">
|
||||
<uni-popup-share title="分享到"></uni-popup-share>
|
||||
@@ -118,7 +131,7 @@ export default {
|
||||
projectId: this.project.id,
|
||||
topologyDiagramName: e.tempFiles[0].name,
|
||||
},
|
||||
e.tempFiles[0].path
|
||||
e.tempFiles[0].path,
|
||||
).then((res) => {
|
||||
console.log(res)
|
||||
if (res.length > 1) {
|
||||
@@ -161,6 +174,10 @@ export default {
|
||||
})
|
||||
} else if (e.item.text == '分享') {
|
||||
this.$refs.share.open()
|
||||
} else if (e.item.text == '编辑') {
|
||||
uni.navigateTo({
|
||||
url: '/pages/project/new?project=' + encodeURIComponent(JSON.stringify(this.project)),
|
||||
})
|
||||
}
|
||||
},
|
||||
navMenuClick(index) {
|
||||
@@ -185,9 +202,9 @@ export default {
|
||||
},
|
||||
})
|
||||
},
|
||||
goDevice() {
|
||||
goDevice(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/device/APF/detail',
|
||||
url: '/pages/device/APF/detail?id=' + item.equipmentId,
|
||||
})
|
||||
},
|
||||
init() {
|
||||
@@ -212,6 +229,10 @@ export default {
|
||||
},
|
||||
onLoad(option) {
|
||||
let userInfo = uni.getStorageSync('userInfo')
|
||||
this.content.push({
|
||||
iconPath: '/static/share.png',
|
||||
text: '编辑',
|
||||
})
|
||||
if (userInfo.authorities == '3') {
|
||||
this.content.push({
|
||||
iconPath: '/static/transfer.png',
|
||||
@@ -232,7 +253,8 @@ export default {
|
||||
})
|
||||
.exec()
|
||||
}, 1000)
|
||||
this.project = JSON.parse(option.project)
|
||||
console.log(option.project)
|
||||
this.project = JSON.parse(decodeURIComponent(option.project))
|
||||
this.init()
|
||||
// uni.setNavigationBarTitle({ title: this.project })
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user