|
@@ -11,10 +11,9 @@
|
|
|
<el-table-column prop="UserName" label="上传人"></el-table-column>
|
|
|
<el-table-column prop="address" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button @click="handleClick(scope.row)" size="mini">下载</el-button>
|
|
|
- <el-button @click="deleteModel(scope.row)" size="mini">
|
|
|
- <span style="color:#F56C6C">删除</span>
|
|
|
- </el-button>
|
|
|
+ <el-button @click="handleClick(scope.row)" v-if="!scope.row.Removed" type='primary' size="mini" class="iconfont icon-download"></el-button>
|
|
|
+ <!-- 需求:先不支持删除 -->
|
|
|
+ <!-- <el-button @click="deleteModel(scope.row)" v-if="!scope.row.Removed" type='danger' plain size="mini">删除</el-button> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -36,7 +35,7 @@ export default {
|
|
|
return {
|
|
|
dialogVisible: false, //是否显示该弹窗
|
|
|
activeName: "first", //默认选择上传日志
|
|
|
- tableData: [] //列表数据]
|
|
|
+ tableData: [] //列表数据
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -44,9 +43,7 @@ export default {
|
|
|
let newLogData = [];
|
|
|
if (this.logData.length) {
|
|
|
this.logData.forEach(item => {
|
|
|
- if (item.Removed) {
|
|
|
- newLogData.push(item);
|
|
|
- }
|
|
|
+ newLogData.push(item);
|
|
|
});
|
|
|
}
|
|
|
return newLogData
|
|
@@ -113,6 +110,7 @@ export default {
|
|
|
#modelLog {
|
|
|
.bodys {
|
|
|
position: relative;
|
|
|
+ padding-bottom: 30px;
|
|
|
.delete-model {
|
|
|
position: absolute;
|
|
|
right: 0;
|