积分超市

This commit is contained in:
yanran200730
2023-04-14 14:49:39 +08:00
parent 7d72023ad7
commit c37a19036a
5 changed files with 11 additions and 22 deletions

View File

@@ -259,8 +259,7 @@
getList () {
this.instance.post(`/app/appintegralsupermarketgoods/list`, null, {
params: {
...this.search,
areaId: this.areaId,
...this.search
}
}).then((res) => {
if (res.code == 0) {
@@ -288,8 +287,9 @@
this.$nextTick(() => {
if (this.form.goodsList.length) {
this.form.goodsList.map(v => v.goods).forEach(v => {
console.log(v)
this.$refs.aiTable.toggleRowSelection(v, true)
if (this.tableData.filter(e => e.id === v.id).length) {
this.$refs.aiTable.toggleRowSelection(this.tableData.filter(e => e.id === v.id)[0], true)
}
})
}
})

View File

@@ -77,8 +77,7 @@
props: {
instance: Function,
dict: Object,
permissions: Function,
areaId: String,
permissions: Function
},
data() {
@@ -116,8 +115,7 @@
getList () {
this.instance.post(`/app/appintegralsupermarketgoods/list`, null, {
params: {
...this.search,
areaId: this.areaId,
...this.search
}
}).then((res) => {
if (res.code == 0) {

View File

@@ -69,8 +69,7 @@
props: {
instance: Function,
dict: Object,
permissions: Function,
areaId: String,
permissions: Function
},
data() {
@@ -110,8 +109,7 @@
getList () {
this.instance.post(`/app/appintegralsupermarketshop/list`, null, {
params: {
...this.search,
areaId: this.areaId,
...this.search
}
}).then((res) => {
if (res.code == 0) {