提交
This commit is contained in:
@@ -218,12 +218,7 @@
|
|||||||
></el-input>
|
></el-input>
|
||||||
<div style="display: flex;justify-content: space-between">
|
<div style="display: flex;justify-content: space-between">
|
||||||
<div style="width: 80%;margin-top: 13px">
|
<div style="width: 80%;margin-top: 13px">
|
||||||
<div v-for="(item,index) in LSBBBUSSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">
|
<div v-for="(item,index) in LSBBBUSSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
|
||||||
<span style="" @click="handleFilePreview2(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
|
||||||
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
|
||||||
<i class="el-icon-download" title="下载" @click="handleFilePreview2(item,'down')"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 20%;">
|
<div style="width: 20%;">
|
||||||
<el-button :disabled="disabledXX"
|
<el-button :disabled="disabledXX"
|
||||||
@@ -2743,39 +2738,6 @@
|
|||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleFilePreview2(file, type) {
|
|
||||||
let attId = ""
|
|
||||||
if (file && file.id) {
|
|
||||||
attId = file.id
|
|
||||||
} else {
|
|
||||||
attId = file.response.data.id
|
|
||||||
}
|
|
||||||
if (file.name == this.form.standName) {
|
|
||||||
let fileName = ""
|
|
||||||
let fileNam2 = ""
|
|
||||||
if (this.form.standName && this.form.standName !== '') {
|
|
||||||
fileName = this.form.standName + '-企业标准.docx'
|
|
||||||
fileNam2 = this.form.standName
|
|
||||||
} else {
|
|
||||||
fileName = '企业标准.docx'
|
|
||||||
fileNam2 = '企业标准'
|
|
||||||
}
|
|
||||||
let form = JSON.parse(JSON.stringify(this.form))
|
|
||||||
form.standCode = ''
|
|
||||||
form.issueDate = ''
|
|
||||||
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (type === 'down') {
|
|
||||||
if (attId) {
|
|
||||||
window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId)
|
|
||||||
} else {
|
|
||||||
this.$message.warning('文件不存在,下载失败')
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$preview(attId)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 导入标准数据成功后执行
|
// 导入标准数据成功后执行
|
||||||
importFileSuccess (response, file,fileList) {
|
importFileSuccess (response, file,fileList) {
|
||||||
// 上传成功后判断是否是两条数据是的话替换掉旧数据
|
// 上传成功后判断是否是两条数据是的话替换掉旧数据
|
||||||
|
|||||||
@@ -213,12 +213,8 @@
|
|||||||
<div style="display: flex;justify-content: space-between">
|
<div style="display: flex;justify-content: space-between">
|
||||||
<div style="width: 80%;margin-top: 13px">
|
<div style="width: 80%;margin-top: 13px">
|
||||||
<div v-for="(item,index) in LSBBBUSSFileList" :key="index"
|
<div v-for="(item,index) in LSBBBUSSFileList" :key="index"
|
||||||
style="color: #409eff;cursor:pointer"
|
@click="handleFilePreview(item)" style="color: #409eff;cursor:pointer"
|
||||||
class="fileClass">
|
class="fileClass">{{ item.name }}
|
||||||
<span style="" @click="handleFilePreview2(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
|
||||||
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
|
||||||
<i class="el-icon-download" title="下载" @click="handleFilePreview2(item,'down')"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 20%;">
|
<div style="width: 20%;">
|
||||||
@@ -2923,39 +2919,6 @@
|
|||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleFilePreview2(file, type) {
|
|
||||||
let attId = ""
|
|
||||||
if (file && file.id) {
|
|
||||||
attId = file.id
|
|
||||||
} else {
|
|
||||||
attId = file.response.data.id
|
|
||||||
}
|
|
||||||
if (file.name == this.form.standName) {
|
|
||||||
let fileName = ""
|
|
||||||
let fileNam2 = ""
|
|
||||||
if (this.form.standName && this.form.standName !== '') {
|
|
||||||
fileName = this.form.standName + '-企业标准.docx'
|
|
||||||
fileNam2 = this.form.standName
|
|
||||||
} else {
|
|
||||||
fileName = '企业标准.docx'
|
|
||||||
fileNam2 = '企业标准'
|
|
||||||
}
|
|
||||||
let form = JSON.parse(JSON.stringify(this.form))
|
|
||||||
form.standCode = ''
|
|
||||||
form.issueDate = ''
|
|
||||||
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (type === 'down') {
|
|
||||||
if (attId) {
|
|
||||||
window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId)
|
|
||||||
} else {
|
|
||||||
this.$message.warning('文件不存在,下载失败')
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$preview(attId)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
handleFilePreviewOne(file, type) {
|
handleFilePreviewOne(file, type) {
|
||||||
let id = ""
|
let id = ""
|
||||||
let fileName = ""
|
let fileName = ""
|
||||||
|
|||||||
@@ -209,12 +209,8 @@
|
|||||||
<div style="display: flex;justify-content: space-between">
|
<div style="display: flex;justify-content: space-between">
|
||||||
<div style="width: 80%;margin-top: 13px">
|
<div style="width: 80%;margin-top: 13px">
|
||||||
<div v-for="(item,index) in LSBBBUSSFileList" :key="index"
|
<div v-for="(item,index) in LSBBBUSSFileList" :key="index"
|
||||||
@click="handleFilePreview(item)" style="color: #409eff;cursor:pointer;margin-left: 12px;"
|
@click="handleFilePreview(item)" style="color: #409eff;cursor:pointer"
|
||||||
class="fileClass">
|
class="fileClass">{{ item.name }}
|
||||||
<span style="" @click="handleFilePreview2(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
|
||||||
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
|
||||||
<i class="el-icon-download" title="下载" @click="handleFilePreview2(item,'down')"></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 20%;">
|
<div style="width: 20%;">
|
||||||
@@ -2893,39 +2889,6 @@
|
|||||||
this.$preview(attId)
|
this.$preview(attId)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleFilePreview2(file, type) {
|
|
||||||
let attId = ""
|
|
||||||
if (file && file.id) {
|
|
||||||
attId = file.id
|
|
||||||
} else {
|
|
||||||
attId = file.response.data.id
|
|
||||||
}
|
|
||||||
if (file.name == this.form.standName) {
|
|
||||||
let fileName = ""
|
|
||||||
let fileNam2 = ""
|
|
||||||
if (this.form.standName && this.form.standName !== '') {
|
|
||||||
fileName = this.form.standName + '-企业标准.docx'
|
|
||||||
fileNam2 = this.form.standName
|
|
||||||
} else {
|
|
||||||
fileName = '企业标准.docx'
|
|
||||||
fileNam2 = '企业标准'
|
|
||||||
}
|
|
||||||
let form = JSON.parse(JSON.stringify(this.form))
|
|
||||||
form.standCode = ''
|
|
||||||
form.issueDate = ''
|
|
||||||
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (type === 'down') {
|
|
||||||
if (attId) {
|
|
||||||
window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId)
|
|
||||||
} else {
|
|
||||||
this.$message.warning('文件不存在,下载失败')
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
this.$preview(attId)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// 导入标准数据成功后执行
|
// 导入标准数据成功后执行
|
||||||
importFileSuccess(response, file, fileList) {
|
importFileSuccess(response, file, fileList) {
|
||||||
// 上传成功后判断是否是两条数据是的话替换掉旧数据
|
// 上传成功后判断是否是两条数据是的话替换掉旧数据
|
||||||
|
|||||||
Reference in New Issue
Block a user