Commit 9c4de9b2 authored by pengxin's avatar pengxin

新增版本改成导入操作。

parent 9817cdbc
......@@ -80,8 +80,8 @@
<vxe-column field="operation" title="操作" width="230">
<template slot-scope="scope">
<el-button type="text" icon="el-icon-menu" @click="all(scope.row)" :size="defaultFormItemSize">详情</el-button>
<el-button v-if="scope.row.releaseStatus==0" type="text" icon="el-icon-plus" @click="addVersions(scope.row)" :size="defaultFormItemSize">新增版本</el-button>
<el-button type="text" icon="el-icon-reading" v-else :size="defaultFormItemSize" @click='drill(scope.row)'>训练</el-button>
<el-button v-if="scope.row.releaseStatus==0" type="text" icon="el-icon-plus" @click="dataImport(scope.row)" :size="defaultFormItemSize">导入</el-button>
<el-button type="text" icon="el-icon-reading" v-else :size="defaultFormItemSize" @click='drill(scope.row)'>训练</el-button>
<template v-if="scope.row.inputStatus !== 0">
<el-dropdown style="margin-left:15px;color: #0092FF;" :size="defaultFormItemSize">
<span class="el-dropdown-link">
......@@ -120,6 +120,7 @@ import editOrAdd from './dialog/editOrAdd'
import addVersions from './versionsTableBox/dialog/add.vue'
import versionsTableBox from './versionsTableBox/index.vue'
import derived from './versionsTableBox/dialog/derived.vue'
import dataImport from "./versionsTableBox/dialog/dataImport";
export default {
data() {
return {
......@@ -191,6 +192,22 @@ export default {
})
})
},
dataImport(data) {
this.$dialog
.show(
'导入',
dataImport,
{
area: ['600px', '200px']
},
{ row: data }
)
.then((res) => {
this.refresh()
this.getList()
})
.catch((e) => {})
},
addVersions(row) {
this.$dialog
.show(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment