diff --git a/src/views/baseCaseHandling/Form.vue b/src/views/baseCaseHandling/Form.vue index 433db27..656c82f 100644 --- a/src/views/baseCaseHandling/Form.vue +++ b/src/views/baseCaseHandling/Form.vue @@ -281,7 +281,6 @@ export default { }) }, selectBlur(e) { - if(!this.isSHILevel) return; let value = e.target.value; if(!value) return; this.dataForm.systemName = e.target.value; diff --git a/src/views/baseCaseHandling/index.vue b/src/views/baseCaseHandling/index.vue index 1a0d677..e2fc9eb 100644 --- a/src/views/baseCaseHandling/index.vue +++ b/src/views/baseCaseHandling/index.vue @@ -48,6 +48,7 @@
新增 + 导出
@@ -157,6 +158,7 @@ export default { stateOptions: [], areaOptions: [], systemOptions: [], + exportBtnLoading: false, }; }, computed: { @@ -256,6 +258,34 @@ export default { }) .catch(() => {}); }, + // 导出 + toExport() { + let _query = { + ...this.query, + }; + let query = {}; + for (let key in _query) { + if (Array.isArray(_query[key])) { + query[key] = _query[key].join(); + } else { + query[key] = _query[key]; + } + } + this.exportBtnLoading = true; + request({ + url: ``, + method: "POST", + data: query, + }).then((res) => { + const url = process.env.VUE_APP_BASE_API + res.data.url; + const link = document.createElement("a"); + link.href = url; + link.download = res.data.name; + link.click(); + this.exportBtnLoading = false; + }).catch(() => this.exportBtnLoading = false); + }, + search() { this.listQuery = { currentPage: 1, diff --git a/src/views/baseComapnyInfo/Form.vue b/src/views/baseComapnyInfo/Form.vue index eb743a3..17c8d0a 100644 --- a/src/views/baseComapnyInfo/Form.vue +++ b/src/views/baseComapnyInfo/Form.vue @@ -18,8 +18,8 @@ - - + @@ -36,13 +36,13 @@ - + @@ -63,8 +63,8 @@ - - + + {{ v.fullName }} diff --git a/src/views/baseComapnyInfo/index.vue b/src/views/baseComapnyInfo/index.vue index 9f2dbf1..7444142 100644 --- a/src/views/baseComapnyInfo/index.vue +++ b/src/views/baseComapnyInfo/index.vue @@ -6,17 +6,24 @@
- + + + + + + + + - + - + @@ -24,6 +31,7 @@ 搜索 + 重置 @@ -53,6 +61,9 @@ + + +