修改 审计日志 排序
This commit is contained in:
@@ -191,7 +191,7 @@ const choose = (e: any, name: string) => {
|
||||
}
|
||||
|
||||
const submitForm = async (id: string) => {
|
||||
console.log(form.value)
|
||||
// console.log(form.value)
|
||||
|
||||
let data = []
|
||||
for (let i in formName.value) {
|
||||
@@ -206,6 +206,7 @@ const submitForm = async (id: string) => {
|
||||
await addOrUpdateFile(data)
|
||||
}
|
||||
const queryFiles = (id: string) => {
|
||||
reset()
|
||||
getFileById({ id: id }).then(res => {
|
||||
res.data.forEach((item: any) => {
|
||||
if (item.url.length > 0) getFileNamePath(item.url, item.name)
|
||||
@@ -225,6 +226,33 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
||||
}, 100)
|
||||
})
|
||||
}
|
||||
const reset = () => {
|
||||
form.value = {
|
||||
NetReport: [], //入网设计方案审查报告:
|
||||
governReport: [], //治理工程验收报告
|
||||
informationSecurityTestReport: [], //信息安全检测报告
|
||||
acceptanceInspectionReportSingle: [], //信息安全检测报告
|
||||
acceptanceInspectionReport: [], //验收检验报告:
|
||||
typeExperimentReport: [], //型式实验报告
|
||||
factoryInspectionReport: [], //出厂检验报告:
|
||||
performanceTestReport: [], //性能检测报告
|
||||
mainWiringDiagram: [], //主接线图:
|
||||
runTheReport: [] //试运行报告
|
||||
}
|
||||
|
||||
formName.value = {
|
||||
NetReport: '',
|
||||
governReport: '',
|
||||
informationSecurityTestReport: '',
|
||||
acceptanceInspectionReportSingle: '',
|
||||
acceptanceInspectionReport: '',
|
||||
typeExperimentReport: '',
|
||||
factoryInspectionReport: '',
|
||||
performanceTestReport: '',
|
||||
mainWiringDiagram: '',
|
||||
runTheReport: ''
|
||||
}
|
||||
}
|
||||
defineExpose({ submitForm, queryFiles })
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user