统一
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user