|
@@ -14,7 +14,7 @@
|
|
|
<el-table-column label="版本号">
|
|
|
<template slot-scope="scope">
|
|
|
<span style="margin-right: 5px">{{ scope.row.Version }}</span>
|
|
|
- <i v-show="scope.row.Version" class="iconfont icon-warn" style="cursor:pointer;" title="查看版本更新信息"></i>
|
|
|
+ <i v-show="scope.row.Version" class="iconfont icon-warn" style="cursor:pointer;" title="查看版本更新信息" @click="handleClickVersion(scope.row)"></i>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="AcceptTime" label="上传时间"></el-table-column>
|
|
@@ -27,16 +27,16 @@
|
|
|
<el-button type="primary" size="mini" class="iconfont icon-Log" @click="queryModelLog(scope.row)"></el-button>
|
|
|
</div>
|
|
|
<div
|
|
|
- :class="[scope.row.Status == 1 || scope.row.Status == 10 || scope.row.Status == 11 || (!scope.row.Status && scope.row.precent == 100)? 'upLoad-loading':'','upLoad']"
|
|
|
+ :class="['upLoad-loading']"
|
|
|
v-show="scope.row.isDown">
|
|
|
<div class="progress">
|
|
|
<el-progress
|
|
|
- :text-inside="scope.row.Status == 1 || scope.row.Status == 10 || scope.row.Status == 11 || (!scope.row.Status && scope.row.precent == 100)?false:true"
|
|
|
- :stroke-width="20" :percentage="scope.row.precent"
|
|
|
+ :text-inside="false"
|
|
|
+ :stroke-width="20" :percentage="100"
|
|
|
:color="scope.row.Status == 1 || scope.row.Status == 10 || scope.row.Status == 11?'#909399':'#67C23A'"></el-progress>
|
|
|
</div>
|
|
|
<div class="progress-right">
|
|
|
- <span v-show="!scope.row.Status && scope.row.precent == 100">上传中</span>
|
|
|
+ <span v-show="!scope.row.Status">上传中</span>
|
|
|
<span v-show="scope.row.Status == 1">等待检查...</span>
|
|
|
<span v-show="scope.row.Status == 10">模型检查中</span>
|
|
|
<span v-show="scope.row.Status == 11">未通过检查</span>
|
|
@@ -45,11 +45,16 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+ <version-dialog :dialogVisible.sync="dialogVisible" :modelFile="modelFile" ref="addSpaceDialog"></version-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import { mapGetters } from "vuex";
|
|
|
+import versionDialog from "@/components/model/file/versionDialog";
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ versionDialog
|
|
|
+ },
|
|
|
props: {
|
|
|
tableData: Array,
|
|
|
persentList: Array,
|
|
@@ -57,7 +62,9 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- maxHeight: 0
|
|
|
+ maxHeight: 0,
|
|
|
+ dialogVisible: false,
|
|
|
+ modelFile: null
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -68,6 +75,11 @@ export default {
|
|
|
queryModelLog(item) {
|
|
|
this.$emit("openModelLog", item);
|
|
|
},
|
|
|
+ // 查看版本信息
|
|
|
+ handleClickVersion(item) {
|
|
|
+ this.modelFile = item;
|
|
|
+ this.dialogVisible = true;
|
|
|
+ },
|
|
|
// 替换日志
|
|
|
repliaceModel(item) {
|
|
|
if (item.Status != 4 && item.Status != 21) {
|