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