fix: 挂账管理更新,耗材盘点更新,代客下单更新
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<el-form-item>
|
||||
<el-input
|
||||
placeholder="邀请人名称/被邀请人/昵称/手机号"
|
||||
v-model="query.search"
|
||||
v-model="query.key"
|
||||
style="width: 240px"
|
||||
/>
|
||||
</el-form-item>
|
||||
@@ -101,6 +101,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import shopShareApi from "@/api/account/shopShare";
|
||||
|
||||
const statusList = [
|
||||
{
|
||||
value: 0,
|
||||
@@ -127,7 +129,7 @@ export default {
|
||||
avatarUrlList2: [],
|
||||
shareId: "",
|
||||
query: {
|
||||
search: "",
|
||||
key: "",
|
||||
status: "",
|
||||
},
|
||||
resetQuery: "",
|
||||
@@ -174,7 +176,7 @@ export default {
|
||||
// 获取邀请设置
|
||||
async byShopId() {
|
||||
try {
|
||||
const res = await byShopId();
|
||||
const res = await shopShareApi.get();
|
||||
this.shareId = res.id;
|
||||
this.getTableData();
|
||||
} catch (error) {
|
||||
@@ -185,19 +187,19 @@ export default {
|
||||
async getTableData() {
|
||||
try {
|
||||
this.tableData.loading = true;
|
||||
const res = await byShare({
|
||||
const res = await shopShareApi.getRecord({
|
||||
page: this.tableData.page,
|
||||
size: this.tableData.size,
|
||||
search: this.query.search,
|
||||
key: this.query.key,
|
||||
status: this.query.status,
|
||||
shareId: this.shareId,
|
||||
});
|
||||
this.tableData.loading = false;
|
||||
this.tableData.list = res.content;
|
||||
this.tableData.total = res.totalElements;
|
||||
this.tableData.list = res.records;
|
||||
this.tableData.total = res.totalRow;
|
||||
// 头像预览图集合
|
||||
this.avatarUrlList1 = res.content.map((item) => item.invitedHeadImg);
|
||||
this.avatarUrlList2 = res.content.map((item) => item.beInvitedHeadImg);
|
||||
this.avatarUrlList1 = res.records.map((item) => item.invitedHeadImg);
|
||||
this.avatarUrlList2 = res.records.map((item) => item.beInvitedHeadImg);
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user