修复设备无法查找的问题

This commit is contained in:
aixianling
2023-05-08 10:54:28 +08:00
parent 46d7d85e29
commit a25da8f889

View File

@@ -9,7 +9,8 @@
<u-icon name="arrow-down" color="#666" size="24" style="margin-left: 4px"/> <u-icon name="arrow-down" color="#666" size="24" style="margin-left: 4px"/>
</AiAreaPicker> </AiAreaPicker>
</div> </div>
<u-search v-model="keyword" :clearabled="true" placeholder="请输入设备名称" :show-action="false" bg-color="#F5F5F5" search-icon-color="#ccc" color="#666" height="58" @search="getList" @clear="getListInit"></u-search> <u-search v-model="keyword" :clearabled="true" placeholder="请输入设备名称" :show-action="false" bg-color="#F5F5F5" search-icon-color="#ccc" color="#666"
height="58" @search="getList" @clear="getListInit"></u-search>
</div> </div>
</AiTopFixed> </AiTopFixed>
<div class="record"> <div class="record">
@@ -29,6 +30,7 @@
</template> </template>
<script> <script>
import {mapState} from 'vuex' import {mapState} from 'vuex'
export default { export default {
name: "AppEquipment", name: "AppEquipment",
data() { data() {
@@ -62,7 +64,7 @@ export default {
this.getList() this.getList()
}, },
getList() { getList() {
this.$http.post(`/app/appdlbquipment/list?current=1000&size=20&name=${this.keyword}&areaId=${this.areaId}`).then((res) => { this.$http.post(`/app/appdlbquipment/list?current=1&size=20&name=${this.keyword}&areaId=${this.areaId}`).then((res) => {
if (res.code == 0) { if (res.code == 0) {
if (this.current > 1) { if (this.current > 1) {
this.list = [...this.list, ...res.data.records] this.list = [...this.list, ...res.data.records]
@@ -100,6 +102,7 @@ export default {
} }
} }
} }
.record { .record {
margin-top: 8px; margin-top: 8px;
padding-left: 32px; padding-left: 32px;
@@ -109,7 +112,7 @@ export default {
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
height: 110rpx; height: 110px;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
box-sizing: border-box; box-sizing: border-box;