修改文件上传

master
夜笙歌 6 months ago
parent ae51bad4e8
commit 6f9334bbab

@ -8,21 +8,12 @@
<div class="select"> <div class="select">
<el-dropdown @command="handleCommand"> <el-dropdown @command="handleCommand">
<el-button type="primary" size="mini"> <el-button type="primary" size="mini">
切换看板 {{ (menuData.find(v=>v.path === $route.fullPath)||{}).name }}
<i class="el-icon-arrow-down el-icon--right"></i> <i class="el-icon-arrow-down el-icon--right"></i>
</el-button> </el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="/index">后台系统</el-dropdown-item> <el-dropdown-item command="/index">后台系统</el-dropdown-item>
<el-dropdown-item command="/board/firstFloorProduction">一楼生产</el-dropdown-item> <el-dropdown-item v-for="i in menuData" :command="i.path">{{ i.name }}</el-dropdown-item>
<el-dropdown-item command="/board/firstFloorWarehouse">一楼能源</el-dropdown-item>
<el-dropdown-item command="/board/secondFloorProduction">二楼生产</el-dropdown-item>
<el-dropdown-item command="/board/secondFloorWarehouse">二楼仓储</el-dropdown-item>
<el-dropdown-item command="/board/thirdFloorProduction">三楼生产</el-dropdown-item>
<el-dropdown-item command="/board/thirdFloorWarehouse">三楼仓储</el-dropdown-item>
<el-dropdown-item command="/board/fourthFloorProduction">四楼生产</el-dropdown-item>
<el-dropdown-item command="/board/fourthFloorWarehouse">四楼仓储</el-dropdown-item>
<el-dropdown-item command="/board/fifthFloorProduction">五楼生产</el-dropdown-item>
<el-dropdown-item command="/board/fifthFloorWarehouse">五楼仓储</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
@ -41,7 +32,45 @@
data: '', data: '',
time: '', time: '',
date: '', date: '',
value: '' value: '',
menuData:[
{
name:'一楼生产',
path:'/board/firstFloorProduction'
},
{
name:'一楼能源',
path:'/board/firstFloorWarehouse'
},
{
name:'二楼生产',
path:'/board/secondFloorProduction'
},
{
name:'二楼仓储',
path:'/board/secondFloorWarehouse'
},
{
name:'三楼生产',
path:'/board/thirdFloorProduction'
},
{
name:'三楼仓储',
path:'/board/thirdFloorWarehouse'
},
{
name:'四楼生产',
path:'/board/fourthFloorProduction'
},
{
name:'四楼仓储',
path:'/board/fourthFloorWarehouse'
},
{
name:'五楼生产',
path:'/board/fifthFloorProduction'
},
]
} }
}, },
created() { created() {
@ -61,6 +90,9 @@
getDate() getDate()
getDateIntervalFun = setInterval(getDate, 1000) getDateIntervalFun = setInterval(getDate, 1000)
}, },
mounted(){
console.log(this.$route.fullPath)
},
methods: { methods: {
handleCommand(e) { handleCommand(e) {
this.$router.push(e) this.$router.push(e)

@ -186,7 +186,7 @@
size="mini" size="mini"
type="primary" type="primary"
@click="handleDrawing(scope.row)" @click="handleDrawing(scope.row)"
v-if="scope.row.processType !== PROCESS_TYPE.AUTO && scope.row.children != null && scope.row.children !== undefined"
>图纸 >图纸
</el-button> </el-button>
<el-button <el-button
@ -243,7 +243,7 @@
@before-close="blueprintModel = false"> @before-close="blueprintModel = false">
<el-form ref="form"> <el-form ref="form">
<el-form-item label="选择BOM图纸"> <el-form-item label="选择BOM图纸">
<el-select v-model="materialBomAttachIdList" placeholder="请选择选择BOM图纸" multiple filterable :clearable="false"> <el-select v-model="materialBomAttachIdList" placeholder="请选择选择BOM图纸" multiple filterable :clearable="false" :disabled="!(nowRow.processType !== PROCESS_TYPE.AUTO && nowRow.children != null && nowRow.children !== undefined)">
<el-option <el-option
v-for="item in attachInfoList" v-for="item in attachInfoList"
:key="item.attachId" :key="item.attachId"
@ -292,6 +292,7 @@
<span <span
class="el-upload-list__item-delete" class="el-upload-list__item-delete"
@click="handleRemoveDrawing(file)" @click="handleRemoveDrawing(file)"
v-if="nowRow.processType !== PROCESS_TYPE.AUTO && nowRow.children != null && nowRow.children !== undefined"
> >
<i class="el-icon-delete"></i> <i class="el-icon-delete"></i>
</span> </span>
@ -300,12 +301,6 @@
</el-upload> </el-upload>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<!-- 上传提示 --> <!-- 上传提示 -->
<div class="el-upload__tip" slot="tip" v-if="isShowTip">
请上传
<template v-if="drawingFileSize"> <b style="color: #f67c7c">{{ drawingFileSize }}MB</b></template>
<template v-if="drawingFileType"> <b style="color: #f56c6c">{{ drawingFileType.join("/") }}</b></template>
的文件
</div>
<el-button type="primary" @click="drawingFileUploadSubmit"> </el-button> <el-button type="primary" @click="drawingFileUploadSubmit"> </el-button>
<el-button @click="blueprintModel = false"> </el-button> <el-button @click="blueprintModel = false"> </el-button>
</span> </span>
@ -482,6 +477,7 @@ export default {
}, },
data() { data() {
return { return {
nowRow:{},
blueprintModel: false, blueprintModel: false,
sopViewModel: false, sopViewModel: false,
pictureDetailModel: false, pictureDetailModel: false,
@ -1298,6 +1294,7 @@ export default {
/** 查看sop */ /** 查看sop */
handleSop(row) { handleSop(row) {
this.nowRow = row
this.fileList = []; this.fileList = [];
if (row.oldRowFlag && (!this.previewSopFlag[row.dispatchCode + "-" + row.processId] if (row.oldRowFlag && (!this.previewSopFlag[row.dispatchCode + "-" + row.processId]
|| this.previewSopFlag[row.dispatchCode + "-" + row.processId] !== "1")) { || this.previewSopFlag[row.dispatchCode + "-" + row.processId] !== "1")) {
@ -1561,4 +1558,7 @@ export default {
<style scoped> <style scoped>
/deep/.el-icon-close{display:none} /deep/.el-icon-close{display:none}
/deep/.el-upload{
display: none;
}
</style> </style>

Loading…
Cancel
Save