This commit is contained in:
2023-07-11 11:53:16 +08:00
parent cbe1999b51
commit 1eaf929a99
20 changed files with 752 additions and 39 deletions

View File

@@ -8,9 +8,9 @@
<el-card shadow="always" class="card_style">
<el-table
:header-row-style="{height:'20px'}" :cell-style="{padding:'2px'}" border
:header-row-style="{height:'20px'}" :cell-style="{padding:'2px'}" border @row-dblclick="toDetailPage"
:data="dataTable"
style="width: 100%;margin-top: 20px">
style="width: 100%;margin-top: 20px;cursor: pointer">
<el-table-column
prop="projectId"
label="ID"
@@ -124,9 +124,9 @@
<template slot-scope="scope">
<div class="ButtonBlock">
<img class="MyButton" @click="handleEdit(scope.row)"
src="../../../assets/images/EditButton.svg" style="width:60px">
src="../../../assets/svg/EditButton.svg" style="width:60px">
<img class="MyButton" @click="handleDelete(scope.row)"
src="../../../assets/images/DeleteButton.svg" style="width:60px">
src="../../../assets/svg/DeleteButton.svg" style="width:60px">
</div>
</template>
</el-table-column>
@@ -239,6 +239,14 @@ export default {
}
},
methods:{
toDetailPage(row){
this.$router.push({
path:'/ProjectDetail',
query: {
id: row.projectId,
refresh: true
}})
},
handleChangeStatus($event, id){
if ($event === 1) { // 这里判断一下
// 启用