From bddd6c159c148d77ee01406b3d16895cf37f003c Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Thu, 10 Nov 2022 15:34:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E8=B5=84=E6=BA=90=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E7=BB=84=E4=BB=B6=E6=9C=8D=E5=8A=A1=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/ability/bsabilityai.vue | 10 ++++++++++ back/src/views/modules/ability/bsabilityservice.vue | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index 404dd2ce..bba3d0ea 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -251,6 +251,7 @@ import qs from 'qs' import { pinyin } from 'pinyin-pro' import RelateApplication from './bsabilityai-relate-application.vue' import putOnTheShelf from '@/views/modules/putOnTheShelf' +import Cookies from 'js-cookie' export default { mixins: [mixinViewModule], data () { @@ -341,6 +342,15 @@ export default { } }) }, + exportHandle () { + window.open(window.SITE_CONFIG.apiURL + '/resource/export?token=' + Cookies.get('ucsToken') + '&' + qs.stringify({ + name: this.dataForm.name, + type: '组件服务', + orderField: 'pin_top', + orderType: 'DESC', + delFlag: 0 + })) + }, noToppingCapacity (item) { this.$http.put('/resource/cancel_pin_top/' + item.id).then(res => { if (res.data.code == 0) { diff --git a/back/src/views/modules/ability/bsabilityservice.vue b/back/src/views/modules/ability/bsabilityservice.vue index 21e55945..32c17f0f 100644 --- a/back/src/views/modules/ability/bsabilityservice.vue +++ b/back/src/views/modules/ability/bsabilityservice.vue @@ -227,6 +227,7 @@ import dictionaries from '@/utils/dictionaries' import RelateApplication from './bsabilityai-relate-application.vue' import qs from 'qs' import { type } from 'os' +import Cookies from 'js-cookie' import putOnTheShelf from '@/views/modules/putOnTheShelf' export default { @@ -359,6 +360,15 @@ export default { '_blank' ) }, + exportHandle () { + window.open(window.SITE_CONFIG.apiURL + '/resource/export?token=' + Cookies.get('ucsToken') + '&' + qs.stringify({ + name: this.dataForm.name, + type: '应用资源', + orderField: 'pin_top', + orderType: 'DESC', + delFlag: 0 + })) + }, findValue (list, type) { const found = list.find((item) => item.attrType === type) if (found) {