|
|
@@ -2,7 +2,7 @@
|
|
|
<view class="search-box">
|
|
|
<up-search placeholder="搜索产品名称/序列号" v-model="keyword" height="35" @blur="onSearch" :clearabled="false"
|
|
|
:showAction="false" />
|
|
|
- <view v-if="content.where.condition" class="clear" @click.stop="onSearch('')">
|
|
|
+ <view v-if="content.where.tablefilter.sku" class="clear" @click.stop="onSearch('')">
|
|
|
<up-icon name="close-circle-fill" size="20" />
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -97,8 +97,8 @@ const list = ref([])
|
|
|
|
|
|
const keyword = ref('');
|
|
|
function onSearch(e) {
|
|
|
- if (content.where.condition == e) return;
|
|
|
- content.where.condition = e;
|
|
|
+ if (content.where.tablefilter.sku == e) return;
|
|
|
+ content.where.tablefilter.sku = e;
|
|
|
keyword.value = e;
|
|
|
getList(true);
|
|
|
}
|
|
|
@@ -117,6 +117,7 @@ let tabList = ref([
|
|
|
|
|
|
function tabClick(e) {
|
|
|
content.where.tablefilter.isinstalled = e.name;
|
|
|
+ content.loading = false;
|
|
|
getList(true);
|
|
|
listBox.value.backToTop()
|
|
|
}
|
|
|
@@ -152,7 +153,10 @@ function createdServices(item) {
|
|
|
|
|
|
function getList(init = false) {
|
|
|
if (content.loading) return;
|
|
|
- if (init) content.pageNumber = 1;
|
|
|
+ if (init) {
|
|
|
+ content.pageNumber = 1;
|
|
|
+ content.pageTotal = undefined;
|
|
|
+ }
|
|
|
content.loading = true;
|
|
|
content.tableid = 784;
|
|
|
$Http.basic({
|