|
|
@@ -13,6 +13,17 @@
|
|
|
<el-button size="small" type="danger" icon="el-icon-delete" class="ele-btn-icon" @click="removeBatch">
|
|
|
删除
|
|
|
</el-button>
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-download"
|
|
|
+ class="ele-btn-icon"
|
|
|
+ plain
|
|
|
+
|
|
|
+ @click="uploadFile()"
|
|
|
+ >
|
|
|
+ 导入
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:name="{ row }">
|
|
|
@@ -53,6 +64,8 @@
|
|
|
<user-setting :visible.sync="showSetting" :data="current" ref="userSetting" />
|
|
|
|
|
|
<SampleParam v-if="sampleShow" :taskId="taskId" @close="close"></SampleParam>
|
|
|
+
|
|
|
+ <importDialog :defModule="moudleName" ref="importDialogRef" @success="reload" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -63,6 +76,7 @@ import UserSetting from './components/user-setting.vue';
|
|
|
import SampleParam from './components/sampleParam.vue'
|
|
|
import producetask from '@/api/technology/production';
|
|
|
import control from '@/api/technology/control';
|
|
|
+import importDialog from "@/components/upload/import-dialog.vue";
|
|
|
|
|
|
export default {
|
|
|
name: 'technologyProduction',
|
|
|
@@ -70,10 +84,12 @@ export default {
|
|
|
UserSearch,
|
|
|
UserEdit,
|
|
|
UserSetting,
|
|
|
- SampleParam
|
|
|
+ SampleParam,
|
|
|
+ importDialog
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ moudleName : "mainProduceTask",
|
|
|
// 表格列配置
|
|
|
columns: [
|
|
|
{
|
|
|
@@ -266,6 +282,9 @@ export default {
|
|
|
|
|
|
close(done) {
|
|
|
this.sampleShow = false
|
|
|
+ },
|
|
|
+ uploadFile () {
|
|
|
+ this.$refs.importDialogRef.open();
|
|
|
}
|
|
|
}
|
|
|
};
|