合并分支 'dev_20230216' 到 'master'
技术标准-发布稿按钮 查看合并请求 laws-foton-slrs/foton-laws-system-front!82
This commit is contained in:
@@ -139,37 +139,26 @@
|
||||
<div v-for="(item,index) in FBGBUSSFileList" :key="index"
|
||||
style="color: #409eff;cursor:pointer"
|
||||
class="fileClass fileClassName">
|
||||
<span style="width: 80%;"
|
||||
v-if="index == 0 && !item.id.startsWith('ATT')"
|
||||
@click="handleFilePreviewOne(item,'preview')">
|
||||
{{ item.name }}
|
||||
</span>
|
||||
<span v-else @click="handleFilePreview(item,'preview')">
|
||||
{{ item.name }}
|
||||
</span>
|
||||
<span style="width: 20%;margin-left: 15px;"
|
||||
v-if="item.id !== '' && index == 0 && !item.id.startsWith('ATT')">
|
||||
<el-button type="primary" size="mini"
|
||||
plain icon="el-icon-edit"
|
||||
@click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
|
||||
</span>
|
||||
<span style="margin-left: 7px;" v-if="item.id !== '' && index != 0">
|
||||
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||
</span>
|
||||
<span style="width: 80%;"
|
||||
v-if="index == 0 && !item.id.startsWith('ATT')"
|
||||
@click="handleFilePreviewOne(item,'preview')">
|
||||
{{ item.name }}
|
||||
</span>
|
||||
<span v-else @click="handleFilePreview(item,'preview')"> {{ item.name }} </span>
|
||||
<span style="width: 20%;margin-left: 15px;" v-if="item.id !== '' && index == 0 && !item.id.startsWith('ATT')">
|
||||
<el-button type="primary" size="mini" plain icon="el-icon-edit" @click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
|
||||
</span>
|
||||
<span style="margin-left: 7px;" v-if="item.id !== '' && item.id.startsWith('ATT')">
|
||||
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width: 80%;margin-top: 13px" v-if="!isTrue">
|
||||
<div v-for="(item,index) in FBGBUSSFileList" :key="index"
|
||||
style="color: #409eff;cursor:pointer;"
|
||||
class="fileClass">
|
||||
<span style="" @click="handleFilePreview(item,'preview')"
|
||||
:title="item.name">
|
||||
{{ item.name }}
|
||||
</span>
|
||||
<span style="margin-left: 7px;"
|
||||
v-if="item.id !== '' && item.name != form.standName">
|
||||
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||
</span>
|
||||
<div v-for="(item,index) in FBGBUSSFileList" :key="index" style="color: #409eff;cursor:pointer;" class="fileClass">
|
||||
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
||||
<span style="margin-left: 7px;" v-if="item.id !== '' && item.id.startsWith('ATT')">
|
||||
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width: 20%;">
|
||||
@@ -963,23 +952,25 @@
|
||||
} else {
|
||||
attId = file.response.data.id
|
||||
}
|
||||
if (file.name == this.form.standName) {
|
||||
if(type === 'preview' && 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
|
||||
fileName = this.form.standName + '-企业标准.docx'
|
||||
fileNam2 = this.form.standName
|
||||
} else {
|
||||
fileName = '企业标准.docx'
|
||||
fileNam2 = '企业标准'
|
||||
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 (file.id.startsWith('ATT')) {
|
||||
this.$preview(file.id)
|
||||
} else {
|
||||
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
|
||||
}
|
||||
}else if (type === 'down') {
|
||||
if (attId) {
|
||||
window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId)
|
||||
} else {
|
||||
|
||||
@@ -173,7 +173,7 @@
|
||||
:title="item.name">
|
||||
{{ item.name }}
|
||||
</span>
|
||||
<span style="margin-left: 7px;" v-if="item.id !== '' && item.name != form.standName">
|
||||
<span style="margin-left: 7px;" v-if="item.id !== '' && item.id.startsWith('ATT')">
|
||||
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||
</span>
|
||||
</div>
|
||||
@@ -957,7 +957,7 @@ export default {
|
||||
}else {
|
||||
attId = file.response.data.id
|
||||
}
|
||||
if (file.name == this.form.standName) {
|
||||
if (type === 'preview' && file.name == this.form.standName) {
|
||||
let fileName = ""
|
||||
let fileNam2 = ""
|
||||
if (this.form.standName && this.form.standName !== '') {
|
||||
@@ -970,18 +970,20 @@ export default {
|
||||
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 (file.id.startsWith('ATT')) {
|
||||
this.$preview(file.id)
|
||||
} else {
|
||||
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
|
||||
}
|
||||
}else if (type === 'down') {
|
||||
if (attId) {
|
||||
window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId)
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
} else {
|
||||
this.$preview(attId)
|
||||
}
|
||||
} else {
|
||||
this.$preview(attId)
|
||||
}
|
||||
},
|
||||
handleFilePreviewOne(file, type) {
|
||||
let id = ""
|
||||
|
||||
@@ -115,9 +115,7 @@
|
||||
@click="handleFilePreviewOne(item,'preview')"> {{ item.name }} </span>
|
||||
<span v-else @click="handleFilePreview(item,'preview')"> {{ item.name }} </span>
|
||||
<span style="width: 20%;margin-left: 15px;" v-if="item.id !== '' && index == 0 && !item.id.startsWith('ATT')">
|
||||
<el-button type="primary" size="mini"
|
||||
plain icon="el-icon-edit"
|
||||
@click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
|
||||
<el-button type="primary" size="mini" plain icon="el-icon-edit" @click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
|
||||
</span>
|
||||
<span style="margin-left: 7px;" v-if="item.id !== '' && item.id.startsWith('ATT')">
|
||||
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||
@@ -130,7 +128,7 @@
|
||||
:key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;"
|
||||
class="fileClass">
|
||||
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
||||
<span style="margin-left: 7px;" v-if="item.id !== '' && item.name != form.standName">
|
||||
<span style="margin-left: 7px;" v-if="item.id !== '' && item.id.startsWith('ATT')">
|
||||
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||
</span>
|
||||
</div>
|
||||
@@ -650,23 +648,25 @@
|
||||
} else {
|
||||
attId = file.response.data.id
|
||||
}
|
||||
if (file.name == this.form.standName) {
|
||||
if(type === 'preview' && 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
|
||||
fileName = this.form.standName + '-企业标准.docx'
|
||||
fileNam2 = this.form.standName
|
||||
} else {
|
||||
fileName = '企业标准.docx'
|
||||
fileNam2 = '企业标准'
|
||||
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(file.id.startsWith('ATT')){
|
||||
this.$preview(file.id)
|
||||
}else {
|
||||
this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form)
|
||||
}
|
||||
}else if (type === 'down') {
|
||||
if (attId) {
|
||||
window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId)
|
||||
} else {
|
||||
|
||||
@@ -173,19 +173,14 @@
|
||||
<div v-for="(item,index) in FBGBUSSFileList" :key="index"
|
||||
style="color: #409eff;cursor:pointer"
|
||||
class="fileClass fileClassName">
|
||||
<span style="width: 80%;"
|
||||
v-if="index == 0"
|
||||
@click="handleFilePreviewOne(item,'preview')">
|
||||
<span style="width: 80%;" v-if="index == 0 && !item.id.startsWith('ATT')" @click="handleFilePreviewOne(item,'preview')">
|
||||
{{ item.name }}
|
||||
</span>
|
||||
<span v-else @click="handleFilePreview(item)">
|
||||
<span v-else @click="handleFilePreview(item,'preview')">
|
||||
{{ item.name }}
|
||||
</span>
|
||||
<span style="width: 20%;margin-left: 15px;"
|
||||
v-if="item.id !== '' && index == 0">
|
||||
<el-button type="primary" size="mini"
|
||||
plain icon="el-icon-edit"
|
||||
@click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
|
||||
<span style="width: 20%;margin-left: 15px;" v-if="item.id !== '' && index == 0 && !item.id.startsWith('ATT')">
|
||||
<el-button type="primary" size="mini" plain icon="el-icon-edit" @click="handleFilePreviewOne(item,'onlineEdit')"></el-button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user