Compare commits

...

2 Commits

Author SHA1 Message Date
d79c66fb9d Merge branch 'main' of http://47.112.118.149:10082/xgxt_sd/zhxg_pc 2025-10-21 10:56:33 +08:00
c92c44b3c6 记录查询 2025-10-21 10:56:31 +08:00
8 changed files with 268 additions and 6 deletions

View File

@@ -60,6 +60,12 @@
<GlLook v-if="lookV" id="printDiv" :form-data="lookForm" /> <GlLook v-if="lookV" id="printDiv" :form-data="lookForm" />
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form v-if="lookForm.hardFile" label-width="120px">
<el-form-item label="证明材料">
<el-button type="primary" size="mini" icon="el-icon-download" @click="downloadDiploma">下载文件</el-button>
</el-form-item>
<FileUpload v-model="lookForm.hardFile" />
</el-form>
<el-button v-print="printContent">打印</el-button> <el-button v-print="printContent">打印</el-button>
<hr> <hr>
<el-timeline> <el-timeline>
@@ -207,11 +213,37 @@ export default {
async lookVClick(row) { async lookVClick(row) {
this.lookForm = {} this.lookForm = {}
this.lookForm = { ...row } this.lookForm = { ...row }
const res = await listView(this.queryParams) const res = await listView(this.queryParams)
console.log('API 返回的数据:', res.rows) console.log('API 返回的数据:', res.rows)
this.lookV = true this.lookV = true
}, },
downloadDiploma() {
const raw = this.lookForm.hardFile
if (!raw) return
// 支持逗号分隔的多个文件
const files = String(raw)
.split(',')
.map((s) => s.trim())
.filter(Boolean)
const triggerDownload = (href, filename) => {
const link = document.createElement('a')
link.href = href
// 设置下载文件名(跨域时可能被浏览器忽略,但不影响触发下载/打开)
link.download = filename || ''
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
}
files.forEach((file, idx) => {
const isAbsoluteUrl = /^https?:\/\//i.test(file)
const url = isAbsoluteUrl ? file : `${this.baseurl}${file}`
const name = this.getFileName(file)
// 轻微延时,避免浏览器对一次事件同时触发多个下载的限制
setTimeout(() => triggerDownload(url, name), idx * 200)
})
},
} }
} }

View File

@@ -65,6 +65,12 @@
<GlLook v-if="lookV" id="printDiv" :form-data="lookForm" /> <GlLook v-if="lookV" id="printDiv" :form-data="lookForm" />
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form v-if="lookForm.hardFile" label-width="120px">
<el-form-item label="证明材料">
<el-button type="primary" size="mini" icon="el-icon-download" @click="downloadDiploma">下载文件</el-button>
</el-form-item>
<FileUpload v-model="lookForm.hardFile" />
</el-form>
<el-button v-print="printContent">打印</el-button> <el-button v-print="printContent">打印</el-button>
<hr> <hr>
<el-timeline> <el-timeline>
@@ -215,7 +221,33 @@ export default {
this.lookV = true this.lookV = true
console.log('打印了' + lookForm.xwCmt) console.log('打印了' + lookForm.xwCmt)
}, },
downloadDiploma() {
const raw = this.lookForm.hardFile
if (!raw) return
// 支持逗号分隔的多个文件
const files = String(raw)
.split(',')
.map((s) => s.trim())
.filter(Boolean)
const triggerDownload = (href, filename) => {
const link = document.createElement('a')
link.href = href
// 设置下载文件名(跨域时可能被浏览器忽略,但不影响触发下载/打开)
link.download = filename || ''
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
}
files.forEach((file, idx) => {
const isAbsoluteUrl = /^https?:\/\//i.test(file)
const url = isAbsoluteUrl ? file : `${this.baseurl}${file}`
const name = this.getFileName(file)
// 轻微延时,避免浏览器对一次事件同时触发多个下载的限制
setTimeout(() => triggerDownload(url, name), idx * 200)
})
},
} }
} }

View File

@@ -66,6 +66,12 @@
<GlLook v-if="lookV" :form-data="lookForm" /> <GlLook v-if="lookV" :form-data="lookForm" />
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form v-if="lookForm.hardFile" label-width="120px">
<el-form-item label="证明材料">
<el-button type="primary" size="mini" icon="el-icon-download" @click="downloadDiploma">下载文件</el-button>
</el-form-item>
<FileUpload v-model="lookForm.hardFile" />
</el-form>
<el-form label-width="200px" size="mini" class="lookForm"> <el-form label-width="200px" size="mini" class="lookForm">
<el-form-item label="是否通过"> <el-form-item label="是否通过">
<el-select v-model="auditRes" @change="changeAuditRes"> <el-select v-model="auditRes" @change="changeAuditRes">
@@ -408,8 +414,35 @@ export default {
this.auditForm.xgCmt = '' this.auditForm.xgCmt = ''
break break
} }
},
downloadDiploma() {
const raw = this.lookForm.hardFile
if (!raw) return
// 支持逗号分隔的多个文件
const files = String(raw)
.split(',')
.map((s) => s.trim())
.filter(Boolean)
const triggerDownload = (href, filename) => {
const link = document.createElement('a')
link.href = href
// 设置下载文件名(跨域时可能被浏览器忽略,但不影响触发下载/打开)
link.download = filename || ''
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} }
files.forEach((file, idx) => {
const isAbsoluteUrl = /^https?:\/\//i.test(file)
const url = isAbsoluteUrl ? file : `${this.baseurl}${file}`
const name = this.getFileName(file)
// 轻微延时,避免浏览器对一次事件同时触发多个下载的限制
setTimeout(() => triggerDownload(url, name), idx * 200)
})
},
} }
} }

View File

@@ -66,6 +66,12 @@
<GlLook v-if="lookV" :form-data="lookForm" /> <GlLook v-if="lookV" :form-data="lookForm" />
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form v-if="lookForm.hardFile" label-width="120px">
<el-form-item label="证明材料">
<el-button type="primary" size="mini" icon="el-icon-download" @click="downloadDiploma">下载文件</el-button>
</el-form-item>
<FileUpload v-model="lookForm.hardFile" />
</el-form>
<el-form label-width="200px" size="mini" class="lookForm"> <el-form label-width="200px" size="mini" class="lookForm">
<el-form-item label="是否通过"> <el-form-item label="是否通过">
<el-select v-model="auditRes" @change="changeAuditRes"> <el-select v-model="auditRes" @change="changeAuditRes">
@@ -414,8 +420,35 @@ export default {
this.auditForm.deptCmt = '' this.auditForm.deptCmt = ''
break break
} }
},
downloadDiploma() {
const raw = this.lookForm.hardFile
if (!raw) return
// 支持逗号分隔的多个文件
const files = String(raw)
.split(',')
.map((s) => s.trim())
.filter(Boolean)
const triggerDownload = (href, filename) => {
const link = document.createElement('a')
link.href = href
// 设置下载文件名(跨域时可能被浏览器忽略,但不影响触发下载/打开)
link.download = filename || ''
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} }
files.forEach((file, idx) => {
const isAbsoluteUrl = /^https?:\/\//i.test(file)
const url = isAbsoluteUrl ? file : `${this.baseurl}${file}`
const name = this.getFileName(file)
// 轻微延时,避免浏览器对一次事件同时触发多个下载的限制
setTimeout(() => triggerDownload(url, name), idx * 200)
})
},
} }
} }

View File

@@ -65,6 +65,12 @@
<TufaLook v-if="lookV" id="printDiv" :form-data="lookForm" /> <TufaLook v-if="lookV" id="printDiv" :form-data="lookForm" />
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form v-if="lookForm.applyFile" label-width="120px">
<el-form-item label="证明材料">
<el-button type="primary" size="mini" icon="el-icon-download" @click="downloadDiploma">下载文件</el-button>
</el-form-item>
<FileUpload v-model="lookForm.applyFile" />
</el-form>
<el-button v-print="printContent">打印</el-button> <el-button v-print="printContent">打印</el-button>
<hr> <hr>
<el-timeline> <el-timeline>
@@ -223,7 +229,34 @@ export default {
this.download('/comprehensive/knzzZzqApply/export', { this.download('/comprehensive/knzzZzqApply/export', {
...this.queryParams ...this.queryParams
}, `apply_${new Date().getTime()}.xlsx`) }, `apply_${new Date().getTime()}.xlsx`)
},
downloadDiploma() {
const raw = this.lookForm.applyFile
if (!raw) return
// 支持逗号分隔的多个文件
const files = String(raw)
.split(',')
.map((s) => s.trim())
.filter(Boolean)
const triggerDownload = (href, filename) => {
const link = document.createElement('a')
link.href = href
// 设置下载文件名(跨域时可能被浏览器忽略,但不影响触发下载/打开)
link.download = filename || ''
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} }
files.forEach((file, idx) => {
const isAbsoluteUrl = /^https?:\/\//i.test(file)
const url = isAbsoluteUrl ? file : `${this.baseurl}${file}`
const name = this.getFileName(file)
// 轻微延时,避免浏览器对一次事件同时触发多个下载的限制
setTimeout(() => triggerDownload(url, name), idx * 200)
})
},
} }
} }

View File

@@ -68,6 +68,12 @@
<TufaLook v-if="lookV" id="printDiv" :form-data="lookForm" /> <TufaLook v-if="lookV" id="printDiv" :form-data="lookForm" />
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form v-if="lookForm.applyFile" label-width="120px">
<el-form-item label="证明材料">
<el-button type="primary" size="mini" icon="el-icon-download" @click="downloadDiploma">下载文件</el-button>
</el-form-item>
<FileUpload v-model="lookForm.applyFile" />
</el-form>
<el-button v-print="printContent">打印</el-button> <el-button v-print="printContent">打印</el-button>
<hr> <hr>
<el-timeline> <el-timeline>
@@ -223,7 +229,34 @@ export default {
this.download('/comprehensive/knzzZzqApply/export', { this.download('/comprehensive/knzzZzqApply/export', {
...this.queryParams ...this.queryParams
}, `apply_${new Date().getTime()}.xlsx`) }, `apply_${new Date().getTime()}.xlsx`)
},
downloadDiploma() {
const raw = this.lookForm.applyFile
if (!raw) return
// 支持逗号分隔的多个文件
const files = String(raw)
.split(',')
.map((s) => s.trim())
.filter(Boolean)
const triggerDownload = (href, filename) => {
const link = document.createElement('a')
link.href = href
// 设置下载文件名(跨域时可能被浏览器忽略,但不影响触发下载/打开)
link.download = filename || ''
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} }
files.forEach((file, idx) => {
const isAbsoluteUrl = /^https?:\/\//i.test(file)
const url = isAbsoluteUrl ? file : `${this.baseurl}${file}`
const name = this.getFileName(file)
// 轻微延时,避免浏览器对一次事件同时触发多个下载的限制
setTimeout(() => triggerDownload(url, name), idx * 200)
})
},
} }
} }

View File

@@ -71,6 +71,12 @@
<TufaLook v-if="lookV" :form-data="lookForm" /> <TufaLook v-if="lookV" :form-data="lookForm" />
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form v-if="lookForm.applyFile" label-width="120px">
<el-form-item label="证明材料">
<el-button type="primary" size="mini" icon="el-icon-download" @click="downloadDiploma">下载文件</el-button>
</el-form-item>
<FileUpload v-model="lookForm.applyFile" />
</el-form>
<el-form label-width="200px" size="mini" class="lookForm">z <el-form label-width="200px" size="mini" class="lookForm">z
<el-form-item label="是否通过"> <el-form-item label="是否通过">
<el-select v-model="auditRes" @change="changeAuditRes"> <el-select v-model="auditRes" @change="changeAuditRes">
@@ -418,8 +424,35 @@ export default {
this.download('/comprehensive/knzzZzqApply/export', { this.download('/comprehensive/knzzZzqApply/export', {
...this.queryParams ...this.queryParams
}, `apply_${new Date().getTime()}.xlsx`) }, `apply_${new Date().getTime()}.xlsx`)
},
downloadDiploma() {
const raw = this.lookForm.applyFile
if (!raw) return
// 支持逗号分隔的多个文件
const files = String(raw)
.split(',')
.map((s) => s.trim())
.filter(Boolean)
const triggerDownload = (href, filename) => {
const link = document.createElement('a')
link.href = href
// 设置下载文件名(跨域时可能被浏览器忽略,但不影响触发下载/打开)
link.download = filename || ''
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} }
files.forEach((file, idx) => {
const isAbsoluteUrl = /^https?:\/\//i.test(file)
const url = isAbsoluteUrl ? file : `${this.baseurl}${file}`
const name = this.getFileName(file)
// 轻微延时,避免浏览器对一次事件同时触发多个下载的限制
setTimeout(() => triggerDownload(url, name), idx * 200)
})
},
} }
} }

View File

@@ -69,6 +69,12 @@
<TufaLook v-if="lookV" :form-data="lookForm" /> <TufaLook v-if="lookV" :form-data="lookForm" />
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form v-if="lookForm.applyFile" label-width="120px">
<el-form-item label="证明材料">
<el-button type="primary" size="mini" icon="el-icon-download" @click="downloadDiploma">下载文件</el-button>
</el-form-item>
<FileUpload v-model="lookForm.applyFile" />
</el-form>
<el-form label-width="200px" size="mini" class="lookForm"> <el-form label-width="200px" size="mini" class="lookForm">
<el-form-item label="是否通过"> <el-form-item label="是否通过">
<el-select v-model="auditRes" @change="changeAuditRes"> <el-select v-model="auditRes" @change="changeAuditRes">
@@ -416,7 +422,34 @@ export default {
this.download('/comprehensive/knzzZzqApply/export', { this.download('/comprehensive/knzzZzqApply/export', {
...this.queryParams ...this.queryParams
}, `apply_${new Date().getTime()}.xlsx`) }, `apply_${new Date().getTime()}.xlsx`)
},
downloadDiploma() {
const raw = this.lookForm.applyFile
if (!raw) return
// 支持逗号分隔的多个文件
const files = String(raw)
.split(',')
.map((s) => s.trim())
.filter(Boolean)
const triggerDownload = (href, filename) => {
const link = document.createElement('a')
link.href = href
// 设置下载文件名(跨域时可能被浏览器忽略,但不影响触发下载/打开)
link.download = filename || ''
document.body.appendChild(link)
link.click()
document.body.removeChild(link)
} }
files.forEach((file, idx) => {
const isAbsoluteUrl = /^https?:\/\//i.test(file)
const url = isAbsoluteUrl ? file : `${this.baseurl}${file}`
const name = this.getFileName(file)
// 轻微延时,避免浏览器对一次事件同时触发多个下载的限制
setTimeout(() => triggerDownload(url, name), idx * 200)
})
},
} }
} }