fix
This commit is contained in:
parent
4ada5e0015
commit
9a5cf76ac5
@ -6,7 +6,7 @@
|
|||||||
已扫画筒号:{{state.pid }}
|
已扫画筒号:{{state.pid }}
|
||||||
</span>
|
</span>
|
||||||
<view style="display: flex; align-items: center;">
|
<view style="display: flex; align-items: center;">
|
||||||
<up-input class="login-input" placeholder="画家姓名/编号/画作编号/画作名称" v-model="state.searchValue" style="flex: 1; margin-right: 10rpx;" clearable>
|
<up-input class="login-input" placeholder="画家姓名/画作名称" v-model="state.searchValue" style="flex: 1; margin-right: 10rpx;" clearable>
|
||||||
</up-input>
|
</up-input>
|
||||||
|
|
||||||
<up-button style="width: 120rpx;
|
<up-button style="width: 120rpx;
|
||||||
@ -18,7 +18,8 @@
|
|||||||
:loading="loading"
|
:loading="loading"
|
||||||
@click="paintingList">搜索</up-button>
|
@click="paintingList">搜索</up-button>
|
||||||
</view>
|
</view>
|
||||||
<view class="painting-box" v-for="(painting,index) in state.tableData" :key="index">
|
<up-list @scrolltolower="scrolltolower">
|
||||||
|
<up-list-item class="painting-box" v-for="(painting,index) in state.tableData" :key="index">
|
||||||
<span style="display: flex; align-items: center;position: relative;" >
|
<span style="display: flex; align-items: center;position: relative;" >
|
||||||
<up-image :show-loading="true" :src="painting.HdPic" width="100px" height="100px" @click="click"></up-image>
|
<up-image :show-loading="true" :src="painting.HdPic" width="100px" height="100px" @click="click"></up-image>
|
||||||
<span style="display: flex; flex-direction: column; margin-left: 10px;">
|
<span style="display: flex; flex-direction: column; margin-left: 10px;">
|
||||||
@ -40,7 +41,8 @@
|
|||||||
<up-radio :name="painting.ArtworkUuid"></up-radio>
|
<up-radio :name="painting.ArtworkUuid"></up-radio>
|
||||||
</up-radio-group>
|
</up-radio-group>
|
||||||
</span>
|
</span>
|
||||||
</view>
|
</up-list-item>
|
||||||
|
</up-list>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="button-container">
|
<view class="button-container">
|
||||||
@ -103,7 +105,7 @@ const paintingList = async (param) => {
|
|||||||
ArtistName: "",
|
ArtistName: "",
|
||||||
page:state.page,
|
page:state.page,
|
||||||
pageSize:state.pageSize,
|
pageSize:state.pageSize,
|
||||||
searchValue:state.searchValue,
|
keywords:state.searchValue,
|
||||||
...param,
|
...param,
|
||||||
});
|
});
|
||||||
if (res.status === 0) {
|
if (res.status === 0) {
|
||||||
@ -113,7 +115,8 @@ const paintingList = async (param) => {
|
|||||||
...item,
|
...item,
|
||||||
checked:''
|
checked:''
|
||||||
}
|
}
|
||||||
})||[]
|
})||[];
|
||||||
|
|
||||||
console.log(1111,state.tableData)
|
console.log(1111,state.tableData)
|
||||||
} else {
|
} else {
|
||||||
showMessage({ type: "error", message: res.msg });
|
showMessage({ type: "error", message: res.msg });
|
||||||
@ -151,12 +154,32 @@ const doneSet = async () => {
|
|||||||
}
|
}
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
const lower=() =>{
|
//下拉刷新数据
|
||||||
console.log(888888)
|
const scrolltolower = async () => {
|
||||||
}
|
const newPage = state.page++;
|
||||||
const scroll =(e) =>{
|
const res = await creChangepainting({
|
||||||
console.log(e)
|
Tfnum: "",
|
||||||
}
|
ArtworkName: "",
|
||||||
|
Tnum: "",
|
||||||
|
ArtistName: "",
|
||||||
|
page: newPage,
|
||||||
|
pageSize: state.pageSize,
|
||||||
|
searchValue: state.searchValue
|
||||||
|
});
|
||||||
|
if (res.status === 0) {
|
||||||
|
const newData = res.data.Data.map((item) => {
|
||||||
|
return {
|
||||||
|
...item,
|
||||||
|
checked: ''
|
||||||
|
}
|
||||||
|
});
|
||||||
|
state.tableData = state.tableData.concat(newData);
|
||||||
|
} else {
|
||||||
|
showMessage({ type: "error", message: res.msg });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@ -173,9 +196,9 @@ page {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
.container-box {
|
.container-box {
|
||||||
height: 100%;
|
height: auto;
|
||||||
width: 95%;
|
width: 95%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -213,7 +236,7 @@ page {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 20rpx;
|
bottom: 1rpx;
|
||||||
left: 0;
|
left: 0;
|
||||||
padding: 0 20rpx;
|
padding: 0 20rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
Loading…
Reference in New Issue
Block a user