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) {