首页修改
This commit is contained in:
@@ -13,16 +13,20 @@
|
||||
@clickLeft="back"
|
||||
@clickRight="add"
|
||||
/>
|
||||
<uni-search-bar v-model="store.params.searchValue" clearButton="none" bgColor="#fff" placeholder="请输入关键词"
|
||||
@input="store.search()"></uni-search-bar>
|
||||
<view class="message">
|
||||
<uni-card :title="item.name" @click="jump(item)" v-for="(item, index) in store.data" :key="index">
|
||||
<uni-card :title="item.name" @click="jump(item)"
|
||||
v-for="(item, index) in store.data" :key="index"
|
||||
:style="{marginTop:index===0?'0':''}">
|
||||
<view class="term-list-bottom">
|
||||
<view class="term-list-bottom-item">
|
||||
<view>设备个数</view>
|
||||
<view>{{ item.devNum }}</view>
|
||||
</view>
|
||||
<view class="term-list-bottom-item">
|
||||
<view>创建时间</view>
|
||||
<view>{{ item.createTime }}</view>
|
||||
<view>所属工程</view>
|
||||
<view>{{ item.engineeringName }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-card>
|
||||
@@ -47,7 +51,7 @@ export default {
|
||||
init() {
|
||||
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
||||
this.store = this.DataSource('/cs-device-boot/project/queryProject')
|
||||
this.store.params.engineeringId = uni.getStorageSync('engineering')?.id
|
||||
this.store.params.searchValue = ''
|
||||
this.store.reload()
|
||||
},
|
||||
back() {
|
||||
|
||||
Reference in New Issue
Block a user