|
@@ -19,11 +19,29 @@
|
|
<el-table-column prop="address" align="center" label="操作">
|
|
<el-table-column prop="address" align="center" label="操作">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div class="operate" v-show="!scope.row.isDown">
|
|
<div class="operate" v-show="!scope.row.isDown">
|
|
- <el-button type="primary" size="mini" class="iconfont icon-download" @click="downloadModel(scope.row)" ></el-button>
|
|
|
|
- <el-button type="primary" size="mini" class="iconfont icon-replace" @click="repliaceModel(scope.row)" ></el-button>
|
|
|
|
- <el-button type="primary" size="mini" class="iconfont icon-Log" @click="queryModelLog(scope.row)" ></el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ size="mini"
|
|
|
|
+ class="iconfont icon-download"
|
|
|
|
+ @click="downloadModel(scope.row)"
|
|
|
|
+ ></el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ size="mini"
|
|
|
|
+ class="iconfont icon-replace"
|
|
|
|
+ @click="repliaceModel(scope.row)"
|
|
|
|
+ ></el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ size="mini"
|
|
|
|
+ class="iconfont icon-Log"
|
|
|
|
+ @click="queryModelLog(scope.row)"
|
|
|
|
+ ></el-button>
|
|
</div>
|
|
</div>
|
|
- <div :class="[scope.row.Status == 1 ||scope.row.Status == 2 ? 'upLoad-loading':'','upLoad']" v-show="scope.row.isDown" >
|
|
|
|
|
|
+ <div
|
|
|
|
+ :class="[scope.row.Status == 1 ||scope.row.Status == 2 ? 'upLoad-loading':'','upLoad']"
|
|
|
|
+ v-show="scope.row.isDown"
|
|
|
|
+ >
|
|
<div class="progress">
|
|
<div class="progress">
|
|
<el-progress
|
|
<el-progress
|
|
:text-inside="scope.row.Status == 1 || scope.row.Status == 2 ?false:true"
|
|
:text-inside="scope.row.Status == 1 || scope.row.Status == 2 ?false:true"
|
|
@@ -39,9 +57,9 @@
|
|
class="iconfont icon-termination"
|
|
class="iconfont icon-termination"
|
|
@click="closeUpdate(scope.row)"
|
|
@click="closeUpdate(scope.row)"
|
|
circle
|
|
circle
|
|
- ></el-button> -->
|
|
|
|
|
|
+ ></el-button>-->
|
|
<span v-show="scope.row.Status == 1">等待检查...</span>
|
|
<span v-show="scope.row.Status == 1">等待检查...</span>
|
|
- <span v-show="scope.row.Status == 2">模型检查中</span>
|
|
|
|
|
|
+ <span v-show="scope.row.Status == 10">模型检查中</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -70,7 +88,15 @@ export default {
|
|
},
|
|
},
|
|
// 替换日志
|
|
// 替换日志
|
|
repliaceModel(item) {
|
|
repliaceModel(item) {
|
|
- this.$emit("replaceModel", item);
|
|
|
|
|
|
+ if (item.row.Status == 2) {
|
|
|
|
+ this.$alert("正在识别模型对象,请稍后再替换。", "替换模型", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ callback: action => {
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$emit("replaceModel", item);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
filterTag(Id, precent) {
|
|
filterTag(Id, precent) {
|
|
this.$refs.filterTable.data.map(item => {
|
|
this.$refs.filterTable.data.map(item => {
|
|
@@ -105,11 +131,11 @@ export default {
|
|
},
|
|
},
|
|
// 停止上传
|
|
// 停止上传
|
|
closeUpdate(item) {
|
|
closeUpdate(item) {
|
|
- if (this.userInfo.username ==item.UserName ) {
|
|
|
|
|
|
+ if (this.userInfo.username == item.UserName) {
|
|
this.$emit("closeUpdateFile", item);
|
|
this.$emit("closeUpdateFile", item);
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
- message:"您不是该文件的上传者,不能停止该文件上传!",
|
|
|
|
|
|
+ message: "您不是该文件的上传者,不能停止该文件上传!",
|
|
type: "error"
|
|
type: "error"
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -147,7 +173,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.icon-termination {
|
|
.icon-termination {
|
|
- color: #F56C6C;
|
|
|
|
|
|
+ color: #f56c6c;
|
|
background: #fff;
|
|
background: #fff;
|
|
padding: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
border: 0;
|
|
@@ -168,7 +194,6 @@ export default {
|
|
height: 20px;
|
|
height: 20px;
|
|
line-height: 20px;
|
|
line-height: 20px;
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
.upLoad-loading {
|
|
.upLoad-loading {
|
|
position: relative;
|
|
position: relative;
|
|
@@ -194,10 +219,10 @@ export default {
|
|
display: none;
|
|
display: none;
|
|
}
|
|
}
|
|
/deep/ .upLoad-loading .el-progress-bar {
|
|
/deep/ .upLoad-loading .el-progress-bar {
|
|
- padding-right: 44px;
|
|
|
|
- margin-right: -44px;
|
|
|
|
|
|
+ padding-right: 44px;
|
|
|
|
+ margin-right: -44px;
|
|
}
|
|
}
|
|
/deep/ .el-progress-bar__inner {
|
|
/deep/ .el-progress-bar__inner {
|
|
- text-align: center;
|
|
|
|
|
|
+ text-align: center;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|