From 9771627ac57e040aca03d7cc75d9a1804c040143 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 09 四月 2025 23:28:37 +0800 Subject: [PATCH] Merge branch 'develop' --- src/views/appmanage/index.jsx | 40 +++++++++++++++++++++++++++++++++++++++- 1 files changed, 39 insertions(+), 1 deletions(-) diff --git a/src/views/appmanage/index.jsx b/src/views/appmanage/index.jsx index 77a2cc2..88bbad2 100644 --- a/src/views/appmanage/index.jsx +++ b/src/views/appmanage/index.jsx @@ -1,7 +1,7 @@ import React, {Component} from 'react' import { fromJS } from 'immutable' import { Spin, notification, Input, Button, Table, Modal, Typography, Row, Col, Tooltip } from 'antd' -import { QuestionCircleOutlined } from '@ant-design/icons' +import { QuestionCircleOutlined, LinkOutlined } from '@ant-design/icons' import moment from 'moment' import md5 from 'md5' @@ -1137,6 +1137,43 @@ }) } + updateLink = (item) => { + let link = `${window.GLOB.baseurl}${item.typename === 'pad' ? 'mob' : item.typename}/index.html#/index/${this.state.selectApp.kei_no}/${item.typename !== 'pc' ? item.typename + '/' : ''}${item.lang}` + + let param = { + func: 's_miniapp_kei_linkurl_upt', + id: item.ID, + linkurl: link + } + + confirm({ + content: '纭畾鏇存柊搴旂敤閾炬帴鍦板潃鍚楋紵', + onOk() { + return new Promise(resolve => { + Api.getCloudConfig(param).then(result => { + if (result.status) { + notification.success({ + top: 92, + message: '鎿嶄綔鎴愬姛锛�', + duration: 3 + }) + } else { + notification.warning({ + top: 92, + message: result.message, + duration: 5 + }) + } + resolve() + }, () => { + resolve() + }) + }) + }, + onCancel() {} + }) + } + render () { const { loading, visible, subVisible, columns, transcolumns, applist, translist, transVisible, selectApp, selectTran, selectSubApp, scriptVisible, scriptlist, scriptcolumns, selectScriptKeys } = this.state @@ -1295,6 +1332,7 @@ <Button type="link" onClick={() => this.setState({ selectSubApp: item, subVisible: 'edit' })} style={{color: '#8E44AD'}}>淇敼</Button> <Button type="link" onClick={() => this.deleteSubApp(item)} style={{color: '#ff4d4f'}}>鍒犻櫎</Button> <Button type="link" onClick={() => this.jumpApp(item)}>缂栬緫搴旂敤</Button> + <Button type="link" onClick={() => this.updateLink(item)}><LinkOutlined style={{color: 'orange'}}/></Button> <Paragraph style={{display: 'inline-block', margin: 0}} copyable={{ text: `${window.GLOB.baseurl}${item.typename === 'pad' ? 'mob' : item.typename}/index.html#/index/${this.state.selectApp.kei_no}/${item.typename !== 'pc' ? item.typename + '/' : ''}${item.lang}${item.wxAppId ? '/' + item.wxAppId : ''}` }}></Paragraph> </div> </div> -- Gitblit v1.8.0