This commit is contained in:
zhutianqi
2021-12-15 11:05:22 +08:00
parent a6f0ee7322
commit 488b68ae35
12 changed files with 99 additions and 28 deletions
@@ -236,7 +236,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="importFileSuccess2"
:on-remove="importFileRemove2"
@@ -442,7 +442,7 @@
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 === '.XLS' || fileSuffix === '.XLSX' || fileSuffix === '.pdf' || fileSuffix === '.PDF') {
return true
} else {
this.spinShow = false
@@ -237,7 +237,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="importFileSuccess2"
:on-remove="importFileRemove2"
@@ -434,10 +434,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' || fileSuffix === '.XLS' || fileSuffix === '.XLSX') {
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx' || 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
}
// 判断文件上传大小
@@ -230,7 +230,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"
:show-file-list="true"
@@ -408,11 +408,11 @@
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 === '.XLS' || fileSuffix === '.XLSX' || fileSuffix === '.pdf' || fileSuffix === '.PDF') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS,PDF文件')
return false
}
// 判断文件上传大小
@@ -209,7 +209,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"
:show-file-list="true"
@@ -320,11 +320,11 @@
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 === '.XLS' || fileSuffix === '.XLSX' || fileSuffix === '.pdf' || fileSuffix === '.PDF') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS,PDF文件')
return false
}
// 判断文件上传大小
@@ -199,7 +199,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"
:show-file-list="false"
@@ -311,11 +311,11 @@
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 === '.XLS' || fileSuffix === '.XLSX' || fileSuffix === '.pdf' || fileSuffix === '.PDF') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS,PDF文件')
return false
}
// 判断文件上传大小
@@ -199,7 +199,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"
:show-file-list="false"
@@ -311,11 +311,11 @@
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 === '.XLS' || fileSuffix === '.XLSX' || fileSuffix === '.pdf' || fileSuffix === '.PDF') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS,PDF文件')
return false
}
// 判断文件上传大小
@@ -199,7 +199,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"
:show-file-list="false"
@@ -311,11 +311,11 @@
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 === '.XLS' || fileSuffix === '.XLSX' || fileSuffix === '.pdf' || fileSuffix === '.PDF') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS,PDF文件')
return false
}
// 判断文件上传大小
@@ -199,7 +199,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"
:show-file-list="false"
@@ -311,11 +311,11 @@
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 === '.XLS' || fileSuffix === '.XLSX' || fileSuffix === '.pdf' || fileSuffix === '.PDF') {
return true
} else {
this.spinShow = false
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS,PDF文件')
return false
}
// 判断文件上传大小
@@ -51,7 +51,7 @@
style="display: none;"
></el-input>
<div style="display: flex;">
<div class="table-jump" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
<div class="fileClass" @click="updataFj(item)" style="margin-right: 15px;padding-left: 10px" v-for="(item, index) in form.fjList" :key="index">
{{ item.fileName }}
</div>
</div>
@@ -557,7 +557,7 @@ export default {
updataFj(item) {
let id
let type = item.fileName.split('.')
if (type[1] === 'pdf') {
if (type[1] === 'pdf' || type[1] === 'PDF') {
id = item.attId
} else {
id = item.oriAttId
@@ -481,7 +481,6 @@ export default {
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.cname = data.cname || data.form.cname;
this.oldData = JSON.parse(JSON.stringify(data.info))
var arr = []
data.info.forEach(item => {
@@ -847,10 +847,14 @@
standerArea: '', // 标准化工作领域
mark: '', // 备注
wgNetInfos: [], // 秘书联系方式
wgNetInfosDel: '',
wgMeetingInfos: [], // 参会记录
wgMeetingInfosDel: '',
wgDepts: [], // 集团参与
wgStandorpolicyInfos: [], // 标准政策
wgDeptsDel: '',
wgPayInfos: [], // 支付信息
wgPayInfosDel: '',
wgStandorpolicyInfos: [], // 标准政策
},
addFormRules: {
number: [
@@ -1235,6 +1239,14 @@
confirmButtonClass: 'common-button-primary',
roundButton: true
}).then(() => {
for (let s = 0; s < this.delNetInfos.length; s++) {
if (this.addForm.wgNetInfosDel) {
this.addForm.wgNetInfosDel += ','
this.addForm.wgNetInfosDel += this.delNetInfos[s].id
} else {
this.addForm.wgNetInfosDel = this.delNetInfos[s].id
}
}
for (let a = 0; a < this.addForm.wgNetInfos.length; a++) {
this.delNetInfos.forEach(item => {
if (this.addForm.wgNetInfos[a].joinId === item.joinId) {
@@ -1256,6 +1268,14 @@
confirmButtonClass: 'common-button-primary',
roundButton: true
}).then(() => {
for (let s = 0; s < this.delDepts.length; s++) {
if (this.addForm.wgDeptsDel) {
this.addForm.wgDeptsDel += ','
this.addForm.wgDeptsDel += this.delDepts[s].id
} else {
this.addForm.wgDeptsDel = this.delDepts[s].id
}
}
for (let a = 0; a < this.addForm.wgDepts.length; a++) {
this.delDepts.forEach(item => {
if (this.addForm.wgDepts[a].joinId === item.joinId) {
@@ -1277,6 +1297,14 @@
confirmButtonClass: 'common-button-primary',
roundButton: true
}).then(() => {
for (let s = 0; s < this.delPayInfos.length; s++) {
if (this.addForm.wgPayInfosDel) {
this.addForm.wgPayInfosDel += ','
this.addForm.wgPayInfosDel += this.delPayInfos[s].id
} else {
this.addForm.wgPayInfosDel = this.delPayInfos[s].id
}
}
for (let a = 0; a < this.addForm.wgPayInfos.length; a++) {
this.delPayInfos.forEach(item => {
if (this.addForm.wgPayInfos[a].joinId === item.joinId) {
@@ -1298,6 +1326,14 @@
confirmButtonClass: 'common-button-primary',
roundButton: true
}).then(() => {
for (let s = 0; s < this.delMeetingInfos.length; s++) {
if (this.addForm.wgMeetingInfosDel) {
this.addForm.wgMeetingInfosDel += ','
this.addForm.wgMeetingInfosDel += this.delMeetingInfos[s].id
} else {
this.addForm.wgMeetingInfosDel = this.delMeetingInfos[s].id
}
}
for (let a = 0; a < this.addForm.wgMeetingInfos.length; a++) {
this.delMeetingInfos.forEach(item => {
if (this.addForm.wgMeetingInfos[a].joinId === item.joinId) {
@@ -767,10 +767,14 @@
standerArea: '', // 标准化工作领域
mark: '', // 备注
wgNetInfos: [], // 秘书联系方式
wgNetInfosDel: '',
wgMeetingInfos: [], // 参会记录
wgMeetingInfosDel: '',
wgDepts: [], // 集团参与
wgStandorpolicyInfos: [], // 标准政策
wgDeptsDel: '',
wgPayInfos: [], // 支付信息
wgPayInfosDel: '',
wgStandorpolicyInfos: [], // 标准政策
},
addFormRules: {
number: [
@@ -1112,6 +1116,14 @@
confirmButtonClass: 'common-button-primary',
roundButton: true
}).then(() => {
for (let s = 0; s < this.delNetInfos.length; s++) {
if (this.addForm.wgNetInfosDel) {
this.addForm.wgNetInfosDel += ','
this.addForm.wgNetInfosDel += this.delNetInfos[s].id
} else {
this.addForm.wgNetInfosDel = this.delNetInfos[s].id
}
}
for (let a = 0; a < this.addForm.wgNetInfos.length; a++) {
this.delNetInfos.forEach(item => {
if (this.addForm.wgNetInfos[a].joinId === item.joinId) {
@@ -1133,6 +1145,14 @@
confirmButtonClass: 'common-button-primary',
roundButton: true
}).then(() => {
for (let s = 0; s < this.delDepts.length; s++) {
if (this.addForm.wgDeptsDel) {
this.addForm.wgDeptsDel += ','
this.addForm.wgDeptsDel += this.delDepts[s].id
} else {
this.addForm.wgDeptsDel = this.delDepts[s].id
}
}
for (let a = 0; a < this.addForm.wgDepts.length; a++) {
this.delDepts.forEach(item => {
if (this.addForm.wgDepts[a].joinId === item.joinId) {
@@ -1154,6 +1174,14 @@
confirmButtonClass: 'common-button-primary',
roundButton: true
}).then(() => {
for (let s = 0; s < this.delPayInfos.length; s++) {
if (this.addForm.wgPayInfosDel) {
this.addForm.wgPayInfosDel += ','
this.addForm.wgPayInfosDel += this.delPayInfos[s].id
} else {
this.addForm.wgPayInfosDel = this.delPayInfos[s].id
}
}
for (let a = 0; a < this.addForm.wgPayInfos.length; a++) {
this.delPayInfos.forEach(item => {
if (this.addForm.wgPayInfos[a].joinId === item.joinId) {
@@ -1175,6 +1203,14 @@
confirmButtonClass: 'common-button-primary',
roundButton: true
}).then(() => {
for (let s = 0; s < this.delMeetingInfos.length; s++) {
if (this.addForm.wgMeetingInfosDel) {
this.addForm.wgMeetingInfosDel += ','
this.addForm.wgMeetingInfosDel += this.delMeetingInfos[s].id
} else {
this.addForm.wgMeetingInfosDel = this.delMeetingInfos[s].id
}
}
for (let a = 0; a < this.addForm.wgMeetingInfos.length; a++) {
this.delMeetingInfos.forEach(item => {
if (this.addForm.wgMeetingInfos[a].joinId === item.joinId) {