|
@@ -204,7 +204,7 @@
|
|
|
>
|
|
|
<i
|
|
|
class="el-icon-delete tb-icon"
|
|
|
- @click="deleteItem(scope.row.id)"
|
|
|
+ @click="deleteItem([scope.row.id])"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
@@ -362,6 +362,7 @@ export default {
|
|
|
let res = await asyncRequest.orderimportlist(this.parmValue);
|
|
|
if (res && res.code === 0 && res.data) {
|
|
|
this.tableData = res.data.list;
|
|
|
+ console.log(this.tableData)
|
|
|
this.pageInfo.total = Number(res.data.count);
|
|
|
} else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
await this.logout();
|
|
@@ -371,8 +372,10 @@ export default {
|
|
|
}
|
|
|
this.loading = false;
|
|
|
},
|
|
|
-
|
|
|
- async deleteItem(id) {
|
|
|
+ //删除
|
|
|
+ async deleteItem(ids) {
|
|
|
+
|
|
|
+
|
|
|
await this.$confirm("确定要删除?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -380,9 +383,9 @@ export default {
|
|
|
})
|
|
|
.then(async () => {
|
|
|
const model = {
|
|
|
- id: id,
|
|
|
+ ids
|
|
|
};
|
|
|
- const res = await asyncRequest.delete(model);
|
|
|
+ const res = await asyncRequest.delimportorder(model);
|
|
|
if (res && res.code === 0) {
|
|
|
this.$notify.success({
|
|
|
title: "删除成功",
|