diff --git a/client/src/api/eaduitors.js b/client/src/api/eaduitors.js index 324e7cc..e7cf719 100644 --- a/client/src/api/eaduitors.js +++ b/client/src/api/eaduitors.js @@ -11,43 +11,51 @@ export function getMyEas(query) { } - export function getOneEa(id) { - return request({ - url: `/info/ea/${id}/`, - method: 'get' - }) - } - - - export function updateEa(id, data) { - return request({ - url: `/info/ea/${id}/`, - method: 'put', - data - }) - } - - export function createEa(data) { - return request({ - url: `/info/ea/`, - method: 'post', - data - }) - } +export function getOneEa(id) { + return request({ + url: `/info/ea/${id}/`, + method: 'get' + }) +} - export function delEa(id) { - return request({ - url: `/info/ea/${id}/`, - method: 'delete' - }) - } +export function updateEa(id, data) { + return request({ + url: `/info/ea/${id}/`, + method: 'put', + data + }) +} + +export function createEa(data) { + return request({ + url: `/info/ea/`, + method: 'post', + data + }) +} - export function exportData(data) { - return request({ - url: `/info/ea/filter_by_date/`, - method: 'post', - data - }) - } \ No newline at end of file +export function delEa(id) { + return request({ + url: `/info/ea/${id}/`, + method: 'delete' + }) +} + + +export function exportData(data) { + return request({ + url: `/info/ea/filter_by_date/`, + method: 'post', + data + }) +} + +export function impData(data) { + return request({ + url: `/info/ea/imp/`, + method: 'post', + data + }) +} \ No newline at end of file diff --git a/client/src/api/qa.js b/client/src/api/qa.js index 652bff6..0d6a2c6 100644 --- a/client/src/api/qa.js +++ b/client/src/api/qa.js @@ -2,7 +2,7 @@ import request from '@/utils/request' -export function getgetMyRcsRcs(query) { +export function getgetMyRcs(query) { return request({ url: '/info/qa/', method: 'get', @@ -56,3 +56,12 @@ export function getRc_activate() { data }) } + + export function impData(data) { + return request({ + url: `/info/qa/imp/`, + method: 'post', + data + }) + } + diff --git a/client/src/api/qc.js b/client/src/api/qc.js index 15274a3..2e3c712 100644 --- a/client/src/api/qc.js +++ b/client/src/api/qc.js @@ -54,3 +54,11 @@ export function getRc_activate() { data }) } + + export function impData(data) { + return request({ + url: `/info/qc/imp/`, + method: 'post', + data + }) + } diff --git a/client/src/api/review.js b/client/src/api/review.js index 8e4b551..36524ed 100644 --- a/client/src/api/review.js +++ b/client/src/api/review.js @@ -52,3 +52,11 @@ export function getMyRs(query) { data }) } + + export function impData(data) { + return request({ + url: `/info/ar/imp/`, + method: 'post', + data + }) + } diff --git a/client/src/views/informatiomCollect/externalAuditor.vue b/client/src/views/informatiomCollect/externalAuditor.vue index 94c1dd9..e590659 100644 --- a/client/src/views/informatiomCollect/externalAuditor.vue +++ b/client/src/views/informatiomCollect/externalAuditor.vue @@ -2,6 +2,7 @@
新增 + 导入 导出 @@ -46,18 +47,7 @@ - - - - + 确认
+ + + + + 点击下载模板 + + + + 上传文件 + + + +
+ 取消 + 确认 +
+
+ { + this.$refs["Form"].clearValidate(); + }); }, submitUpload() { this.$refs.upload.submit(); this.impDialogVisible = false; + this.saveLoading = true; + impData(this.impForm).then(res=>{ + console.log(this.impForm) + if(res.code>=200){ + this.saveLoading = false; + this.$message.success("提交成功"); + this.getList(); + }else{ + this.$message.error(res.message); + this.saveLoading = false; + } + }) }, handleImport(type){ this.impDialogVisible = true; @@ -219,16 +272,14 @@ export default { window.open(file.value); } }, - handleUpSuccess(res, file) { - this.fileList = [file]; - this.form.notification_form = res.data.path - console.log(this.form) + handleUpSuccess(res, file, fileList) { + console.log(res, file, fileList) + this.impForm.file = res.data.path; + console.log(this.impForm) }, - handleRemove_res(file) { - // 实现删除文件结果告知单 - this.fileList_res = []; - this.form.result_form = null - console.log(this.form) + handleRemove(file) { + this.fileList = []; + this.impForm.file = ''; }, checkPermission, @@ -236,7 +287,9 @@ export default { if (!value) return true; return data.label.indexOf(value) !== -1; }, - + onSubmit(){ + + }, getList() { this.listLoading = true; this.tableData.results =[]; diff --git a/client/src/views/informatiomCollect/laboratoryContact.vue b/client/src/views/informatiomCollect/laboratoryContact.vue index 24adbc1..cd4ff6c 100644 --- a/client/src/views/informatiomCollect/laboratoryContact.vue +++ b/client/src/views/informatiomCollect/laboratoryContact.vue @@ -8,7 +8,7 @@ - + diff --git a/client/src/views/informatiomCollect/qualificInfo.vue b/client/src/views/informatiomCollect/qualificInfo.vue index 0a5b50d..76e4b66 100644 --- a/client/src/views/informatiomCollect/qualificInfo.vue +++ b/client/src/views/informatiomCollect/qualificInfo.vue @@ -2,7 +2,7 @@
新增 - 导出 + 导出 确认
- - - - - - - - - - - 取消 - 确定 - - +