Browse Source

【更多】操作按钮

RaoMeng 6 years ago
parent
commit
d5a7b87283

+ 0 - 1
uas-office-web/wxuasapproval/package.json

@@ -6,7 +6,6 @@
   "dependencies": {
     "@antv/data-set": "^0.11.1",
     "antd-mobile": "^2.3.1",
-    "babel-polyfill": "^6.26.0",
     "bizcharts": "^3.5.7",
     "js-cookie": "^2.2.1",
     "moment": "^2.22.2",

+ 4 - 1
uas-office-web/wxuasapproval/public/index.html

@@ -19,7 +19,10 @@
       work correctly both with client-side routing and a non-root public URL.
       Learn how to configure a non-root public URL by running `npm run build`.
     -->
-    <script src = "https://cdn.polyfill.io/v2/polyfill.min.js"></script>
+<!--            <script src = "https://cdn.polyfill.io/v2/polyfill.min.js"></script>-->
+    <script type="text/javascript" src ="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6"></script>
+<!--    <script type="text/javascript" src="../src/utils/browser-polyfill.min.js"/>-->
+<!--    <script type="text/javascript" src="../src/utils/browser.min.js"/>-->
     <script type="text/javascript">
       function GetQueryString (name) {
         let reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)')

+ 62 - 63
uas-office-web/wxuasapproval/src/index.js

@@ -1,63 +1,62 @@
-import React from 'react'
-import ReactDOM from 'react-dom'
-import './index.css'
-import * as serviceWorker from './serviceWorker'
-import { Provider } from 'react-redux'
-import store from './redux/store/store'
-import { persistor } from './redux/store/store'
-import { PersistGate } from 'redux-persist/lib/integration/react'
-import { Routes } from './configs/router.config'
-import zh_CN from 'antd/lib/locale-provider/zh_CN'
-import { ConfigProvider } from 'antd'
-import { LocaleProvider as MoLocaleProvider } from 'antd-mobile'
-import moment from 'moment'
-import 'moment/locale/zh-cn'
-import Promise from 'babel-polyfill'
-
-moment.locale('zh-cn')
-
-//解决在某些内核版本较低的浏览器上会出现的Object.assign is not a function错误
-if (typeof Object.assign != 'function') {
-  // Must be writable: true, enumerable: false, configurable: true
-  Object.defineProperty(Object, 'assign', {
-    value: function assign (target, varArgs) { // .length of function is 2
-      'use strict'
-      if (target == null) { // TypeError if undefined or null
-        throw new TypeError('Cannot convert undefined or null to object')
-      }
-
-      var to = Object(target)
-
-      for (var index = 1; index < arguments.length; index++) {
-        var nextSource = arguments[index]
-
-        if (nextSource != null) { // Skip over if undefined or null
-          for (var nextKey in nextSource) {
-            // Avoid bugs when hasOwnProperty is shadowed
-            if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
-              to[nextKey] = nextSource[nextKey]
-            }
-          }
-        }
-      }
-      return to
-    },
-    writable: true,
-    configurable: true,
-  })
-}
-
-ReactDOM.render(
-  <ConfigProvider locale={zh_CN}>
-    <Provider store={store}>
-      <PersistGate loading={null} persistor={persistor}>
-        <Routes/>
-      </PersistGate>
-    </Provider>
-  </ConfigProvider>
-  , document.getElementById('root'))
-
-// If you want your app to work offline and load faster, you can change
-// unregister() to register() below. Note this comes with some pitfalls.
-// Learn more about service workers: http://bit.ly/CRA-PWA
-serviceWorker.unregister()
+import React from 'react'
+import ReactDOM from 'react-dom'
+import './index.css'
+import * as serviceWorker from './serviceWorker'
+import { Provider } from 'react-redux'
+import store from './redux/store/store'
+import { persistor } from './redux/store/store'
+import { PersistGate } from 'redux-persist/lib/integration/react'
+import { Routes } from './configs/router.config'
+import zh_CN from 'antd/lib/locale-provider/zh_CN'
+import { ConfigProvider } from 'antd'
+import { LocaleProvider as MoLocaleProvider } from 'antd-mobile'
+import moment from 'moment'
+import 'moment/locale/zh-cn'
+
+moment.locale('zh-cn')
+
+//解决在某些内核版本较低的浏览器上会出现的Object.assign is not a function错误
+if (typeof Object.assign != 'function') {
+  // Must be writable: true, enumerable: false, configurable: true
+  Object.defineProperty(Object, 'assign', {
+    value: function assign (target, varArgs) { // .length of function is 2
+      'use strict'
+      if (target == null) { // TypeError if undefined or null
+        throw new TypeError('Cannot convert undefined or null to object')
+      }
+
+      var to = Object(target)
+
+      for (var index = 1; index < arguments.length; index++) {
+        var nextSource = arguments[index]
+
+        if (nextSource != null) { // Skip over if undefined or null
+          for (var nextKey in nextSource) {
+            // Avoid bugs when hasOwnProperty is shadowed
+            if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
+              to[nextKey] = nextSource[nextKey]
+            }
+          }
+        }
+      }
+      return to
+    },
+    writable: true,
+    configurable: true,
+  })
+}
+
+ReactDOM.render(
+  <ConfigProvider locale={zh_CN}>
+    <Provider store={store}>
+      <PersistGate loading={null} persistor={persistor}>
+        <Routes/>
+      </PersistGate>
+    </Provider>
+  </ConfigProvider>
+  , document.getElementById('root'))
+
+// If you want your app to work offline and load faster, you can change
+// unregister() to register() below. Note this comes with some pitfalls.
+// Learn more about service workers: http://bit.ly/CRA-PWA
+serviceWorker.unregister()

File diff suppressed because it is too large
+ 0 - 0
uas-office-web/wxuasapproval/src/utils/browser-polyfill.min.js


File diff suppressed because it is too large
+ 1 - 0
uas-office-web/wxuasapproval/src/utils/browser.min.js


Some files were not shown because too many files changed in this diff