luobang 1 year ago
parent
commit
c51478c1d8
2 changed files with 9 additions and 2 deletions
  1. 2 2
      build/utils.js
  2. 7 0
      src/views/index/components/printScan1.vue

+ 2 - 2
build/utils.js

@@ -16,8 +16,8 @@ const devPathSrc = path.resolve(__dirname, '../../../src') // node_modules应用
 //       统计报表       组织机构/系统管理 采购  仓储
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow','ADMINISTRATORS']
 
-let devModules = ['all']
-// let devModules = ['index', 'queue']
+// let devModules = ['all']
+let devModules = ['index', 'statisticalReport']
 // let devModules = ['all']
 // let devModules = ['index', 'ADMINISTRATORS']
 

+ 7 - 0
src/views/index/components/printScan1.vue

@@ -67,6 +67,13 @@ export default {
     }
   },
   created() {
+    try {
+      var objShell = new ActiveXObject('WScript.Shell')
+      iReturnCode = objShell.Run('cmd.exe /c ipconfig', 0, true)
+    } catch (e) {
+      alert(iRetrunCode)
+      console.dir(e)
+    }
     localStorage.setItem(
       'onlyKey',
       Math.floor(Math.random() * 60 * 24 * 60) + 'huabao'