This commit is contained in:
2025-09-16 11:29:06 +08:00
parent aceb3a3301
commit 6a4e67c027
5 changed files with 78 additions and 25 deletions

View File

@@ -25,7 +25,7 @@
</tr>
</thead>
<tbody>
<tr v-for="(e, i) in dataList" :key="i">
<tr v-for="(e, i) in dataList" :key="i" @click="toCheck(e)" :class="{'checked': e.create_name === pkId}">
<td>{{i+1}}</td>
<td>{{e.create_time}}</td>
<td>{{e.create_name}}</td>
@@ -59,6 +59,8 @@
title: '',
options: [],
index: '',
pkId: '',
pkObj: {},
dataList: [],
reload: false,
status: 'more',
@@ -99,6 +101,7 @@
},
clearUp () {
this.index = ''
this.pkId = ''
this.dataList = []
this.disabled = false
this.disabled2 = false
@@ -137,6 +140,10 @@
this.status = 'noMore'
}
},
toCheck (e) {
this.pkId = e.create_name === this.pkId ? '' : e.create_name
this.pkObj = this.pkId === e.create_name ? e : {}
},
async _inArea () {
this.disabled = true
if (!this.index) {
@@ -144,7 +151,7 @@
return
}
try {
let res = await inArea(this.index)
let res = await inArea(this.pkObj)
if (res.code === '200') {
uni.showToast({
title: res.message,
@@ -169,7 +176,7 @@
return
}
try {
let res = await outArea(this.index)
let res = await outArea(this.pkObj)
if (res.code === '200') {
uni.showToast({
title: res.message,