首页数据提交

20240205
e 3 years ago
parent 98e1655647
commit 1be55e5016
  1. 4
      src/api/api.js
  2. 8
      src/components/case/index.vue
  3. 57
      src/pages/counter/list/index.vue

@ -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 // 请求超时时间
})

@ -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){

@ -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<vars.length;i++) {
// var pair = vars[i].split("&");
// if(pair[0] == variable){return pair[1];}
// }
// for (var j=0;j<pair.length;j++){
// var index=pair[j].lastIndexOf("=");
// pair[j]=pair[j].substring(index+1,pair[j].length);
// }
// sessionStorage.setItem('token', pair[0])
// sessionStorage.setItem('cid', pair[1])
// sessionStorage.setItem('systemId', pair[2])
// }
getQueryVariable(name) {
var reg = new RegExp('(^|&)'+name+'=([^&]*)(&|$)')
if( window.location.href.split('?')[1]){
var r = window.location.href.split('?')[1].match(reg)
if (r != null){
return (r[2])
}else{
return null
}
}
},
toggleGoods() {
this.showGoods = !this.showGoods;
@ -577,12 +582,18 @@ export default {
}else{
if (this.id == '62'){
this.goodsShelfTotalData = this.auditGoodsShelf
let formExternalData = {
openAccount:{
voucherNumber:this.receptionList,
paymentCode:this.passwordForm.passwordAgain,
let formExternalData = {
openAccount:{
voucherNumber:[],
paymentCode: '',
}
}
if (this.receptionList.length){
formExternalData.openAccount.voucherNumber = this.receptionList
}
if (this.paymentCode.length){
formExternalData.openAccount.paymentCode = this.passwordForm.passwordAgain
}
}
sessionStorage.setItem('formExternalData', JSON.stringify(formExternalData))
}
}

Loading…
Cancel
Save