|
|
@@ -54,7 +54,7 @@
|
|
|
</section>
|
|
|
<div class>
|
|
|
<!-- height="250" -->
|
|
|
- <el-table :data="tableData" border style="width: 100%">
|
|
|
+ <el-table :data="tableData" border style="width: 100%" v-loading="loading">
|
|
|
<el-table-column label="项目名称">
|
|
|
<template slot-scope="scope">
|
|
|
<!-- @click="clickDev(scope.row.uid)" -->
|
|
|
@@ -63,7 +63,7 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" label="用户">
|
|
|
+ <el-table-column prop="name" label="用户" >
|
|
|
<template slot-scope="scope">
|
|
|
<span class="lblue point">
|
|
|
<a
|
|
|
@@ -108,6 +108,11 @@
|
|
|
<span>{{scope.row.status_name}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column prop="uid" label="操作">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="text" @click="onDelete(scope.row.id)">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<div class="order-footer">
|
|
|
@@ -150,7 +155,8 @@ export default {
|
|
|
searchCount: 0,
|
|
|
waitUnfrozenCoins: 0,
|
|
|
totalCoins: 0,
|
|
|
- totalCount: 0
|
|
|
+ totalCount: 0,
|
|
|
+ loading:false,
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -169,6 +175,33 @@ export default {
|
|
|
this.currentPageSize = pageSize;
|
|
|
this.getTableData();
|
|
|
},
|
|
|
+ onDelete(id) {
|
|
|
+ this.loading = true;
|
|
|
+ this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.deleteWorkFile(id)
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消删除'
|
|
|
+ });
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ async deleteWorkFile(id) {
|
|
|
+ let res = await this.$post("/api/admin/order/delFrozen", {id: id});
|
|
|
+ if (res && res.status === 1) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '删除成功!'
|
|
|
+ });
|
|
|
+ this.getTableData();
|
|
|
+ this.loading = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
// 获取列表数据
|
|
|
async getTableData() {
|
|
|
this.tableData = [];
|