瀏覽代碼

用户名解析代码上传

fangzhen 2 周之前
父節點
當前提交
e28f4c8b7a

File diff suppressed because it is too large
+ 0 - 0
dist/css/app.7c7ce6a5.css


File diff suppressed because it is too large
+ 0 - 0
dist/css/chunk-vendors.10dd4e95.css


二進制
dist/fonts/element-icons.f1a45d74.ttf


二進制
dist/fonts/element-icons.ff18efd1.woff


+ 1 - 0
dist/index.html

@@ -0,0 +1 @@
+<!doctype html><html lang="zh"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>业务流程系统</title><script defer="defer" src="/js/chunk-vendors.17795bb7.js"></script><script defer="defer" src="/js/app.45e98fad.js"></script><link href="/css/chunk-vendors.10dd4e95.css" rel="stylesheet"><link href="/css/app.7c7ce6a5.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

File diff suppressed because it is too large
+ 0 - 0
dist/js/app.45e98fad.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/app.45e98fad.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/js/chunk-vendors.17795bb7.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/chunk-vendors.17795bb7.js.map


+ 11 - 9
public/index.html

@@ -1,17 +1,19 @@
 <!DOCTYPE html>
 <html lang="zh">
-  <head>
+<head>
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <script src="https://g.alicdn.com/dingding/dingtalk-jsapi/3.0.25/dingtalk.open.js"></script>
     <title>业务流程系统</title>
-  </head>
-  <body>
-    <noscript>
-      <strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
-    </noscript>
-    <div id="app"></div>
-    <!-- built files will be auto injected -->
-  </body>
+</head>
+<body>
+<noscript>
+    <strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to
+        continue.</strong>
+</noscript>
+<div id="app"></div>
+<!-- built files will be auto injected -->
+</body>
 </html> 

+ 22 - 1
src/api/user.js

@@ -1,5 +1,5 @@
 import axios from 'axios';
-
+import dd from 'dingtalk-jsapi';
 /**
  * 根据用户ID获取用户信息
  * @param {string} userId - 用户ID
@@ -20,3 +20,24 @@ export const fetchUserInfo = async (userId) => {
     throw new Error('获取用户信息失败,请稍后再试');
   }
 };
+
+
+export const getAuthCode = async (userId) => {
+//alert("开始获取钉钉code");
+  dd.getAuthCode({
+    success: (res) => {
+      const { code } = res;
+      console.log('code=', code);
+      //alert("获取钉钉code"+ code);
+      //alert('http://vqs.tztek.com:8010/#/BreakpointLogin?username=' + code);
+      callApi(code);
+    },
+    fail: (err) => {
+      alert('errMsg:' + JSON.stringify(err));
+    },
+    complete: () => {
+      console.log('done');
+    },
+    corpId: 'ding8ee5c701147645d9',
+  });
+};

+ 9 - 3
src/views/ShippingProcess.vue

@@ -179,7 +179,8 @@ export default {
           label: '开始',
           x: 400,
           y: 50,
-          url: 'http://dlp.tztek.com:3002/OALink.html?LinkId=201&ddtab=true'
+          url: 'http://dlp.tztek.com:3002/OALink.html?LinkId=201&ddtab=true',
+          finishUrl: 'http://oa.tztek.com:8989/spa/workflow/static4form/index.html?_rdm=1744773380522#/main/workflow/req?iscreate=1&workflowid=473102'
         },
         {
           id: 'order_receive',
@@ -187,7 +188,8 @@ export default {
           label: '接收订单',
           x: 400,
           y: 150,
-          url: 'http://dlp.tztek.com:3002/OALink.html?LinkId=202&ddtab=true'
+          url: 'dingtalk://dingtalkclient/page/link?url=http://dlp.tztek.com:3002/ding2SRM.html?ddtab=true',
+          finishUrl: 'http://192.168.2.111:8014/#/PriceAdjustment?key=750fca34'
         },
         {
           id: 'order_verify',
@@ -335,7 +337,11 @@ export default {
     handleNodeClick(node) {
       this.currentNode = node;
       //this.dialogVisible = true;
-      window.open(node.url);
+      const childWindow = window.open(node.url);
+      setTimeout(() => {
+        childWindow.close();
+        // window.open(node.finishUrl);
+      }, 5000);
     },
     getNodeTypeName(type) {
       const types = {

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