luobang il y a 2 ans
Parent
commit
6d0ef25a24

+ 3 - 2
src/views/index/components/login.vue

@@ -108,10 +108,11 @@ export default {
           let form = JSON.parse(JSON.stringify(this.loginForm))
           form.app_code = 'web' //终端code暂时写死
           //传递密码明文进去
-          this.shaObj.update(form.password)
+          const shaObj = new JsSHA('SHA-1', 'TEXT', { encoding: 'UTF8' })
+          shaObj.update(form.password)
+          form.password = shaObj.getHash('HEX')
           console.log(form)
           //获得密码的哈希值
-          form.password = this.shaObj.getHash('HEX')
           console.log(form.password)
           this.store
             .dispatch('index/login/login', form)

+ 0 - 14
src/views/queue/components/qmsEnFacotory/queueFStart.vue

@@ -802,20 +802,6 @@ export default {
           .then(res => {
             this.tableData1 = res.data.data
           })
-      } else if (this.activeName == 'second') {
-        this.axios
-          .post('/api/v1/qms/getQueueListByQueueUp?apiId=473&isSpelling=1', map)
-          .then(res => {
-            this.tableData = res.data.data
-            this.getSpanArr(this.tableData)
-          })
-      } else if (this.activeName == 'fourth') {
-        this.axios
-          .post('/api/v1/qms/getQueueListByQueueUp?apiId=473&isSpelling=2', map)
-          .then(res => {
-            this.tableData2 = res.data.data
-            this.getSpanArr1(this.tableData2)
-          })
       }
       this.table1 = false
     },