|
@@ -168,7 +168,7 @@ export default {
|
|
...this.searchForm,
|
|
...this.searchForm,
|
|
sort: {
|
|
sort: {
|
|
order: 'desc',
|
|
order: 'desc',
|
|
- orderBy: 'create_time',
|
|
|
|
|
|
+ orderBy: 't.create_time',
|
|
},
|
|
},
|
|
};
|
|
};
|
|
if (this.time && this.time.length >= 2) {
|
|
if (this.time && this.time.length >= 2) {
|
|
@@ -208,10 +208,15 @@ export default {
|
|
},
|
|
},
|
|
statuzChange(id, statuz) {
|
|
statuzChange(id, statuz) {
|
|
let obj = {
|
|
let obj = {
|
|
- id,
|
|
|
|
- statuz,
|
|
|
|
|
|
+ ids: [id],
|
|
|
|
+ status: statuz
|
|
};
|
|
};
|
|
- this.editformData(obj);
|
|
|
|
|
|
+ useBath(obj)
|
|
|
|
+ .then(() => {
|
|
|
|
+ this.$message.success('操作成功');
|
|
|
|
+ this.queryListData();
|
|
|
|
+ })
|
|
|
|
+ .catch(err => err);
|
|
},
|
|
},
|
|
// 编辑
|
|
// 编辑
|
|
editformData(data) {
|
|
editformData(data) {
|