|
@@ -74,7 +74,7 @@
|
|
|
<el-col :span="24" class="title">
|
|
|
文档资料
|
|
|
<el-upload
|
|
|
- class="upload-demo"
|
|
|
+ v-show="activeTab != 5"
|
|
|
action="customize"
|
|
|
:http-request="uploadFile"
|
|
|
:show-file-list="false"
|
|
@@ -82,8 +82,15 @@
|
|
|
:limit="5"
|
|
|
style="float:right;"
|
|
|
>
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
+ <el-button size="small" type="primary">上传</el-button>
|
|
|
</el-upload>
|
|
|
+ <el-button
|
|
|
+ v-show="activeTab == 5"
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ style="float:right;"
|
|
|
+ @click="centerDialog2Visible = true"
|
|
|
+ >上传</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-tabs v-model="activePage" @tab-click="handleClick">
|
|
@@ -329,6 +336,21 @@
|
|
|
<el-button type="primary" @click="check(true)">通过</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <!-- 模具报废上传弹窗 -->
|
|
|
+ <el-dialog title="模具报废上传" :visible.sync="centerDialog2Visible" width="30%" center>
|
|
|
+ <p>申请单</p>
|
|
|
+ <el-upload action="customize" :http-request="uploadFile" :limit="1">
|
|
|
+ <el-button size="small" type="primary">上传</el-button>
|
|
|
+ </el-upload>
|
|
|
+ <p>报废单</p>
|
|
|
+ <el-upload action="customize" :http-request="uploadFile" :limit="1">
|
|
|
+ <el-button size="small" type="primary">上传</el-button>
|
|
|
+ </el-upload>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="centerDialog2Visible = false">确定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</section>
|
|
|
</template>
|
|
|
|
|
@@ -362,6 +384,7 @@ export default {
|
|
|
height: 0
|
|
|
},
|
|
|
centerDialogVisible: false,
|
|
|
+ centerDialog2Visible: false,
|
|
|
listLoading: false,
|
|
|
activeTab: 0,
|
|
|
activePage: 0,
|
|
@@ -508,6 +531,10 @@ export default {
|
|
|
}
|
|
|
);
|
|
|
},
|
|
|
+ //上传成功时的提示 没卵用
|
|
|
+ successTips() {
|
|
|
+ console.log("成功啦");
|
|
|
+ },
|
|
|
//文件删除
|
|
|
deleteFile(fileId) {
|
|
|
this.http.post(
|