From 5515a793e08f2c9f0c8116960d3043f5bd32ccad Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 15 六月 2021 11:07:02 +0800
Subject: [PATCH] 2021-06-15

---
 src/views/appmanage/index.jsx |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/views/appmanage/index.jsx b/src/views/appmanage/index.jsx
index 3efc3ba..9814d18 100644
--- a/src/views/appmanage/index.jsx
+++ b/src/views/appmanage/index.jsx
@@ -1,6 +1,6 @@
 import React, {Component} from 'react'
 import { fromJS } from 'immutable'
-import { Spin, notification, Button, Table, Modal, ConfigProvider } from 'antd'
+import { Spin, notification, Button, Table, Modal, ConfigProvider, Typography } from 'antd'
 import moment from 'moment'
 import md5 from 'md5'
 import enUS from 'antd/es/locale/en_US'
@@ -12,11 +12,19 @@
 import './index.scss'
 
 const { confirm } = Modal
+const { Paragraph } = Typography
 
 const _locale = sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
 const Header = asyncComponent(() => import('@/mob/header'))
 const MutilForm = asyncComponent(() => import('./mutilform'))
 const SubMutilForm = asyncComponent(() => import('./submutilform'))
+
+let base_url = ''
+if (process.env.NODE_ENV === 'production') {
+  base_url = document.location.origin + '/' + window.GLOB.service
+} else {
+  base_url = window.GLOB.location + '/' + window.GLOB.service
+}
 
 class AppManage extends Component {
   state = {
@@ -100,11 +108,12 @@
         title: '鎿嶄綔',
         key: 'action',
         align: 'center',
-        width: '190px',
+        width: '250px',
         render: (text, record) => (
           <div>
             <Button type="link" onClick={() => this.deleteSubApp(record)} style={{color: '#ff4d4f'}}>鍒犻櫎</Button>
             <Button type="link" onClick={() => this.jumpApp(record)}>缂栬緫搴旂敤</Button>
+            <Paragraph style={{display: 'inline-block', margin: 0}} copyable={{ text: `${base_url}${record.typename}/index.html#/index/${this.state.selectApp.kei_no}/${record.lang}` }}></Paragraph>
           </div>
         )
       },
@@ -152,7 +161,7 @@
 
           return item
         })
-
+        
         this.setState({
           loading: false,
           applist: applist,

--
Gitblit v1.8.0