commit
This commit is contained in:
@@ -327,7 +327,7 @@
|
||||
:action="fileUrl"
|
||||
ref="importfile"
|
||||
name="file"
|
||||
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
|
||||
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx, .pdf, .PDF"
|
||||
:before-upload="beginImportFile"
|
||||
:on-success="importFileSuccess"
|
||||
:on-remove="importFileRemove"
|
||||
@@ -476,10 +476,10 @@ export default {
|
||||
var fileSuffix = filename.substring(index1, index2)
|
||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
||||
// 判断上传文件格式
|
||||
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
|
||||
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx' || fileSuffix === '.pdf' || fileSuffix === '.PDF') {
|
||||
return true
|
||||
} else {
|
||||
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
|
||||
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS,PDF文件')
|
||||
return false
|
||||
}
|
||||
// 判断文件上传大小
|
||||
|
||||
@@ -342,7 +342,7 @@
|
||||
:action="fileUrl"
|
||||
ref="importfile"
|
||||
name="file"
|
||||
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
|
||||
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx, .pdf, .PDF"
|
||||
:before-upload="beginImportFile"
|
||||
:on-success="importFileSuccess"
|
||||
:on-remove="importFileRemove"
|
||||
@@ -489,10 +489,10 @@ export default {
|
||||
var fileSuffix = filename.substring(index1, index2)
|
||||
// const fileSuffix = file.name.split('.')[1] // 后缀名
|
||||
// 判断上传文件格式
|
||||
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
|
||||
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx' || fileSuffix === '.pdf' || fileSuffix === '.PDF') {
|
||||
return true
|
||||
} else {
|
||||
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
|
||||
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS,PDF文件')
|
||||
return false
|
||||
}
|
||||
// 判断文件上传大小
|
||||
|
||||
@@ -255,14 +255,7 @@ export default {
|
||||
})
|
||||
},
|
||||
updataFj (item) {
|
||||
let id
|
||||
let type = item.fileName.split('.')
|
||||
if (type[1] === 'pdf') {
|
||||
id = item.attId
|
||||
} else {
|
||||
id = item.oriAttId
|
||||
}
|
||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||
},
|
||||
getHistoryData() {
|
||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||
|
||||
@@ -464,14 +464,7 @@
|
||||
})
|
||||
},
|
||||
updataFj(item) {
|
||||
let id
|
||||
let type = item.fileName.split('.')
|
||||
if (type[1] === 'pdf') {
|
||||
id = item.attId
|
||||
} else {
|
||||
id = item.oriAttId
|
||||
}
|
||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||
},
|
||||
getHistoryData() {
|
||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||
|
||||
@@ -365,14 +365,7 @@
|
||||
})
|
||||
},
|
||||
updataFj(item) {
|
||||
let id
|
||||
let type = item.fileName.split('.')
|
||||
if (type[1] === 'pdf') {
|
||||
id = item.attId
|
||||
} else {
|
||||
id = item.oriAttId
|
||||
}
|
||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||
},
|
||||
getHistoryData() {
|
||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||
|
||||
@@ -357,14 +357,7 @@
|
||||
})
|
||||
},
|
||||
updataFj(item) {
|
||||
let id
|
||||
let type = item.fileName.split('.')
|
||||
if (type[1] === 'pdf') {
|
||||
id = item.attId
|
||||
} else {
|
||||
id = item.oriAttId
|
||||
}
|
||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||
},
|
||||
getHistoryData() {
|
||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||
|
||||
@@ -550,14 +550,7 @@ export default {
|
||||
})
|
||||
},
|
||||
updataFj(item) {
|
||||
let id
|
||||
let type = item.fileName.split('.')
|
||||
if (type[1] === 'pdf') {
|
||||
id = item.attId
|
||||
} else {
|
||||
id = item.oriAttId
|
||||
}
|
||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||
},
|
||||
getHistoryData() {
|
||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||
|
||||
@@ -473,14 +473,7 @@
|
||||
})
|
||||
},
|
||||
updataFj(item) {
|
||||
let id
|
||||
let type = item.fileName.split('.')
|
||||
if (type[1] === 'pdf') {
|
||||
id = item.attId
|
||||
} else {
|
||||
id = item.oriAttId
|
||||
}
|
||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||
},
|
||||
getHistoryData() {
|
||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||
|
||||
@@ -364,14 +364,7 @@ export default {
|
||||
})
|
||||
},
|
||||
updataFj(item) {
|
||||
let id
|
||||
let type = item.fileName.split('.')
|
||||
if (type[1] === 'pdf') {
|
||||
id = item.attId
|
||||
} else {
|
||||
id = item.oriAttId
|
||||
}
|
||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||
},
|
||||
getHistoryData() {
|
||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||
|
||||
@@ -361,14 +361,7 @@ export default {
|
||||
})
|
||||
},
|
||||
updataFj(item) {
|
||||
let id
|
||||
let type = item.fileName.split('.')
|
||||
if (type[1] === 'pdf') {
|
||||
id = item.attId
|
||||
} else {
|
||||
id = item.oriAttId
|
||||
}
|
||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||
},
|
||||
getHistoryData() {
|
||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||
|
||||
@@ -361,14 +361,7 @@ export default {
|
||||
})
|
||||
},
|
||||
updataFj(item) {
|
||||
let id
|
||||
let type = item.fileName.split('.')
|
||||
if (type[1] === 'pdf') {
|
||||
id = item.attId
|
||||
} else {
|
||||
id = item.oriAttId
|
||||
}
|
||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||
},
|
||||
getHistoryData() {
|
||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||
|
||||
@@ -361,14 +361,7 @@ export default {
|
||||
})
|
||||
},
|
||||
updataFj(item) {
|
||||
let id
|
||||
let type = item.fileName.split('.')
|
||||
if (type[1] === 'pdf') {
|
||||
id = item.attId
|
||||
} else {
|
||||
id = item.oriAttId
|
||||
}
|
||||
window.open('/static/pdf/phone/bzzqyjViewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
|
||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||
},
|
||||
getHistoryData() {
|
||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||
|
||||
@@ -290,7 +290,7 @@
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="DrawerType === 'see'" class="fileClass">
|
||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(scope.row)" style="margin-right: 5px;">
|
||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(item)" style="margin-right: 5px;">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -416,7 +416,7 @@
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="DrawerType === 'see'" class="fileClass">
|
||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(scope.row)" style="margin-right: 5px;">
|
||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(item)" style="margin-right: 5px;">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -523,7 +523,7 @@
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="DrawerType === 'see'" class="fileClass">
|
||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(scope.row)" style="margin-right: 5px;">
|
||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(item)" style="margin-right: 5px;">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -1029,8 +1029,22 @@
|
||||
this.addDrawer2 = false
|
||||
}, // 关闭添加标准事件
|
||||
updateFile (item) {
|
||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||
const attId = item.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
clickButtonToUpload (file) {
|
||||
const attId = file.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
|
||||
checkRole(type, index, row) {
|
||||
if (row) {
|
||||
this.nodeList = []
|
||||
|
||||
@@ -173,7 +173,7 @@
|
||||
align="center"
|
||||
width="150">
|
||||
<template slot-scope="scope">
|
||||
<el-input style="margin: 10px 0;" disabled v-model="scope.row.phone"></el-input>
|
||||
<el-input style="margin: 10px 0;" v-model="scope.row.phone"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -182,7 +182,7 @@
|
||||
align="center"
|
||||
width="200">
|
||||
<template slot-scope="scope">
|
||||
<el-input style="margin: 10px 0;" disabled v-model="scope.row.email"></el-input>
|
||||
<el-input style="margin: 10px 0;" v-model="scope.row.email"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -262,7 +262,7 @@
|
||||
align="center"
|
||||
width="150">
|
||||
<template slot-scope="scope">
|
||||
<el-input style="margin: 10px 0;" disabled v-model="scope.row.phone"></el-input>
|
||||
<el-input style="margin: 10px 0;" v-model="scope.row.phone"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -271,7 +271,7 @@
|
||||
align="center"
|
||||
width="200">
|
||||
<template slot-scope="scope">
|
||||
<el-input style="margin: 10px 0;" disabled v-model="scope.row.email"></el-input>
|
||||
<el-input style="margin: 10px 0;" v-model="scope.row.email"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -290,7 +290,7 @@
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="DrawerType === 'see'" class="fileClass">
|
||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(scope.row)" style="margin-right: 5px;">
|
||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(item)" style="margin-right: 5px;">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -416,7 +416,7 @@
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="DrawerType === 'see'" class="fileClass">
|
||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(scope.row)" style="margin-right: 5px;">
|
||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(item)" style="margin-right: 5px;">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -523,7 +523,7 @@
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="DrawerType === 'see'" class="fileClass">
|
||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(scope.row)" style="margin-right: 5px;">
|
||||
<div v-if="scope.row.joinfile.length > 0" v-for="(item, index) in scope.row.joinfile" :key="index" @click="updateFile(item)" style="margin-right: 5px;">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
<div v-else>
|
||||
@@ -906,7 +906,12 @@
|
||||
this.addDrawer2 = false
|
||||
}, // 关闭添加标准事件
|
||||
updateFile (item) {
|
||||
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
|
||||
const attId = item.attId
|
||||
if (attId) {
|
||||
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId
|
||||
} else {
|
||||
this.$message.warning('文件不存在,下载失败')
|
||||
}
|
||||
},
|
||||
checkRole(type, index, row) {
|
||||
if (row) {
|
||||
|
||||
Reference in New Issue
Block a user