diff --git a/src/api/api.js b/src/api/api.js index 95597c7..ccda07c 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -2,10 +2,10 @@ import axios from 'axios'; import router from '../router'; // 创建axios实例 const service = axios.create({ - // baseURL: "http://39.108.250.202:9000/", // 中台测试服 + baseURL: "http://39.108.250.202:9000/", // 中台测试服 // baseURL: "http://192.168.31.137:9000/", // 赓 // baseURL: "http://192.168.31.151:9000/", // 榕 - baseURL: "http://192.168.31.125:9000/", // 坤 + // baseURL: "http://192.168.31.125:9000/", // 坤 // baseURL: 'http://39.108.250.202:9000', timeout: 30000 // 请求超时时间 }) diff --git a/src/components/case/index.vue b/src/components/case/index.vue index b278eeb..06b23d8 100644 --- a/src/components/case/index.vue +++ b/src/components/case/index.vue @@ -300,9 +300,9 @@ export default { let systemId = sessionStorage.getItem('systemId') let cid = sessionStorage.getItem('cid') let params = { - "accountId": 0, - "classId": 0, - "className":0, + // "accountId": 0, + // "classId": 0, + // "className":0, "curriculumId":+cid, "endTime": this.actEndTime, "lcId": lcld, @@ -313,7 +313,7 @@ export default { "startTime": +startTime, "submitTime": this.actEndTime, "systemId": systemId, - "timeSum": 0 + // "timeSum": 0 } submit(params).then((data)=>{ if(data.status == 200){ diff --git a/src/pages/counter/list/index.vue b/src/pages/counter/list/index.vue index fc28759..15005bf 100644 --- a/src/pages/counter/list/index.vue +++ b/src/pages/counter/list/index.vue @@ -204,7 +204,7 @@ export default { callback(new Error('请输入密码')); } else { if (this.passwordForm.password&&/^[0-9]*$/.test(this.passwordForm.password)&&this.passwordForm.password.length===6) { - this.$refs.passwordForm.validateField('password'); + // this.$refs.passwordForm.validateField('password'); callback(); }else{ callback(new Error('请注意密码格式以及密码长度')) @@ -359,7 +359,17 @@ export default { } }, mounted(){ - this.getQueryVariable() + let token = this.getQueryVariable('token') + let cid = this.getQueryVariable('cid') + let systemId = this.getQueryVariable('systemId') + if (token != null){ + sessionStorage.setItem('token', token) + sessionStorage.setItem('cid', cid) + sessionStorage.setItem('systemId', systemId) + }else{ + + } + // Promise.resolve(2).then(value=>{ // console.log(111,value) // return value @@ -446,22 +456,17 @@ export default { }); }, methods: { - getQueryVariable(variable) { - // var query = window.location.href; - // var vars = query.split("?"); - // if (vars.length <= 0){ - // for (var i=1;i