diff --git a/epmet-oper-web/src/views/modules/thirdparty/publishForm.vue b/epmet-oper-web/src/views/modules/thirdparty/publishForm.vue index 4d5aa3c..bd9067b 100644 --- a/epmet-oper-web/src/views/modules/thirdparty/publishForm.vue +++ b/epmet-oper-web/src/views/modules/thirdparty/publishForm.vue @@ -197,6 +197,8 @@ export default { this.$refs['dataForm'].resetFields() this.iconList = getIconList() this.dataForm.parentName = this.$t('menu.parentNameDefault') + this.dataForm.name = this.appName + this.dataForm.url = this.appUrl this.dataForm.resourceList = [] this.getMenuList().then(() => { if (this.dataForm.id) { @@ -315,7 +317,15 @@ export default { id: { type: String, default: '' - } + }, + appUrl: { + type: String, + default: '' + }, + appName: { + type: String, + default: '' + }, } } diff --git a/epmet-oper-web/src/views/modules/thirdparty/thirdparty.vue b/epmet-oper-web/src/views/modules/thirdparty/thirdparty.vue index f32a6d3..e340c5b 100644 --- a/epmet-oper-web/src/views/modules/thirdparty/thirdparty.vue +++ b/epmet-oper-web/src/views/modules/thirdparty/thirdparty.vue @@ -6,9 +6,12 @@
认证 下载接口文档 + type="primary" + size="small" + @click="handleDownDoc">下载接口文档
查看 审核 发布 + @click="handlePublish(scope.row)" + v-if="scope.row.status==2">发布 @@ -104,7 +109,9 @@ :before-close="dialogCancle"> + :id='detailsId' + :appUrl="appUrl" + :appName="appName"> @@ -116,10 +123,13 @@ import addForm from './addForm' // import FootbarList from '../../productConfig/footbar/FootbarList' import publishForm from "./publishForm.vue" import { requestPost, requestGet } from "@/js/dai/request"; +import debounce from 'lodash/debounce' export default { data () { return { tableData: [], + appUrl: "", + appName: "", statusList: [ { value: '0', @@ -178,6 +188,10 @@ export default { // this.getAgency(node, resolve) // }, 200) }, + + handleDownDoc: debounce(function () { + window.open('https://www.yantai1s.com/oss/20230209/637e6347f1aa484aa3d8c2778e8fee9a.docx') + }, 2000, { 'leading': true, 'trailing': false }), async getAgency (node, resolve) { const url = '/third/dataSync/ytorglist' @@ -241,6 +255,9 @@ export default { handlePublish (row) { this.showPublish = true this.detailsId = row.id + this.appUrl = row.link + this.appName = row.name + console.log(row); this.$nextTick(() => { this.$refs.ref_publish.init() })