Browse Source

feat:[资源库管理]给药制剂导出

lkf
15881625488@163.com 3 months ago
parent
commit
8640ae7928
2 changed files with 17 additions and 4 deletions
  1. +8
    -1
      src/api/business/gyzj/gyzj.js
  2. +9
    -3
      src/views/business/resource/gyzj/comps/gyzj/Xq.vue

+ 8
- 1
src/api/business/gyzj/gyzj.js View File

@ -16,7 +16,14 @@ export function studyList(query) {
params: query
})
}
//导出
export function exportDetail(query) {
return request({
url: '/system/business/gyzj/exportDetail',
method: 'get',
params: query
})
}
// 稽查轨迹列表
export function jcgjList(query) {
return request({

+ 9
- 3
src/views/business/resource/gyzj/comps/gyzj/Xq.vue View File

@ -165,7 +165,7 @@
</template>
<script>
import { info, tzList, jcgjList } from "@/api/business/gyzj/gyzj"
import { info, tzList, jcgjList,exportDetail } from "@/api/business/gyzj/gyzj"
import JcgjList from "@/views/business/comps/common/JcgjList";
export default {
@ -195,8 +195,14 @@ export default {
created() {
},
methods: {
exportExcel() {
alert('todo')
exportExcel() {
this.$modal.loading()
exportDetail({ id: this.form.id }).then(response => {
window.open(this.baseUrl +response.msg)
this.$modal.closeLoading()
}).finally(() => {
this.$modal.closeLoading()
})
},
getJjcgjList(val) {
this.$modal.loading()

Loading…
Cancel
Save