From 2a0b8a1f99f61d50fe2983eed2bead449a50704a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 09 四月 2025 23:43:16 +0800
Subject: [PATCH] Merge branch 'positec' into dms

---
 src/views/appcheck/index.jsx |   47 +++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 45 insertions(+), 2 deletions(-)

diff --git a/src/views/appcheck/index.jsx b/src/views/appcheck/index.jsx
index 9dbbfd2..b231964 100644
--- a/src/views/appcheck/index.jsx
+++ b/src/views/appcheck/index.jsx
@@ -1,7 +1,7 @@
 import React, {Component} from 'react'
 import { withRouter } from 'react-router-dom'
-import { Spin, notification, Table, Typography, Row, Col, Tooltip } from 'antd'
-import { QuestionCircleOutlined } from '@ant-design/icons'
+import { Spin, notification, Table, Typography, Row, Col, Tooltip, Button, Modal } from 'antd'
+import { QuestionCircleOutlined, LinkOutlined } from '@ant-design/icons'
 
 import Api from '@/api'
 import { langs } from '@/store/options.js'
@@ -9,6 +9,7 @@
 import './index.scss'
 
 const { Paragraph } = Typography
+const { confirm } = Modal
 
 const Header = asyncComponent(() => import('./header'))
 
@@ -147,6 +148,47 @@
     this.setState({ selectApp: record })
   }
 
+  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
+    }
+
+    if (window.GLOB.mainSystemApi) {
+      param.rduri = window.GLOB.mainSystemApi
+    }
+
+    confirm({
+      content: '纭畾鏇存柊搴旂敤閾炬帴鍦板潃鍚楋紵',
+      onOk() {
+        return new Promise(resolve => {
+          Api.genericInterface(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, columns, applist, selectApp } = this.state
 
@@ -259,6 +301,7 @@
                     </Col>
                   </Row>
                   <div className="action">
+                    <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