|
@@ -148,9 +148,9 @@
|
|
<el-table-column prop="ctime" label="创建时间" width="160"/>
|
|
<el-table-column prop="ctime" label="创建时间" width="160"/>
|
|
<el-table-column prop="date" label="操作" fixed="right" width="220">
|
|
<el-table-column prop="date" label="操作" fixed="right" width="220">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button @click="editComment(scope.row.id)" size="mini" type="primary">点评</el-button>
|
|
|
|
- <el-button @click="edit(scope.row.id)" size="mini" type="warning">编辑</el-button>
|
|
|
|
- <el-button @click="del(scope.row.id)" size="mini" type="danger">删除</el-button>
|
|
|
|
|
|
+ <el-button @click="editComment(scope.row)" size="mini" type="primary">点评</el-button>
|
|
|
|
+ <el-button @click="edit(scope.row)" size="mini" type="warning">编辑</el-button>
|
|
|
|
+ <el-button @click="del(scope.row)" size="mini" type="danger">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -368,11 +368,11 @@ export default {
|
|
this.download_loading = false;
|
|
this.download_loading = false;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- del(id) {
|
|
|
|
|
|
+ del(row) {
|
|
this.$confirm("确定删除吗?", "提示", {
|
|
this.$confirm("确定删除吗?", "提示", {
|
|
type: "warning",
|
|
type: "warning",
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- this.$api.delRecord({ id: id }).then((res) => {
|
|
|
|
|
|
+ this.$api.delRecord({ id: row.id,match_id:row.match_id }).then((res) => {
|
|
this.$message({
|
|
this.$message({
|
|
message: "删除成功",
|
|
message: "删除成功",
|
|
type: "success",
|
|
type: "success",
|
|
@@ -396,16 +396,16 @@ export default {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- edit(id){
|
|
|
|
|
|
+ edit(row){
|
|
this.title = "编辑数据"
|
|
this.title = "编辑数据"
|
|
- this.$api.getRecordInfo({id:id}).then(res=>{
|
|
|
|
|
|
+ this.$api.getRecordInfo({id:row.id,match_id:row.match_id}).then(res=>{
|
|
this.form = res.data.data
|
|
this.form = res.data.data
|
|
this.open = true
|
|
this.open = true
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- editComment(id){
|
|
|
|
|
|
+ editComment(row){
|
|
this.title = "顽主点评"
|
|
this.title = "顽主点评"
|
|
- this.$api.getRecordInfo({id:id}).then(res=>{
|
|
|
|
|
|
+ this.$api.getRecordInfo({id:row.id,match_id:row.match_id}).then(res=>{
|
|
this.form1 = res.data.data
|
|
this.form1 = res.data.data
|
|
this.open1 = true
|
|
this.open1 = true
|
|
})
|
|
})
|