优化若干bug

This commit is contained in:
Luck-Xiaomi 2022-08-23 15:08:57 +08:00
parent ffb0b1c3a2
commit dd991abffd
4 changed files with 3 additions and 8 deletions

View File

@ -39,9 +39,10 @@ if (process.env.NODE_ENV == 'development') {
// axios.defaults.baseURL = 'http://36.137.53.203:9090/'; // 南昌地铁 17512009894 123456789 gdjt 123456789
axios.defaults.baseURL = 'http://124.71.178.44:100/'
// axios.defaults.baseURL = 'http://124.71.178.44:100/'
// tag: 本地
// axios.defaults.baseURL = 'http://192.168.88.220:6023/'; //本地 http/1.1
axios.defaults.baseURL = 'http://192.168.34.125:6023/'; //本地 http/1.1
// axios.defaults.baseURL = 'http://182.90.224.237:7000' // 五象和悦
// axios.defaults.baseURL = 'http://124.71.178.44:9500/'; // 星璇
// axios.defaults.baseURL = 'http://120.196.217.6:7000/';
// axios.defaults.baseURL = 'http://139.9.66.234:8/';

View File

@ -15,14 +15,12 @@ import { autoLogin } from '@/assets/js/api/autoLogin-xingXuan'
if (COMPANY == 'xingxuan') {
// tag: 测试功能
if(window.location.href.indexOf('?project_id=') != -1) {
const projectId = window.location.href.split('?project_id=')[1].split('&')[0];
login(projectId)
}
function login(projectNumber) {
// TODO: 对接登录接口
autoLogin({ projectNumber }).then(res => {
if (res.code != 200) return
parseLoginData(res.result);

View File

@ -29,14 +29,12 @@ Vue.component('Pagination', Pagination)
Vue.prototype.resetForm = resetForm
if (COMPANY == 'xingxuan') {
// tag: 测试功能
if(window.location.href.indexOf('?project_id=') != -1) {
const projectId = window.location.href.split('?project_id=')[1].split('&')[0];
login(projectId)
}
function login(projectNumber) {
// TODO: 对接登录接口
autoLogin({ projectNumber }).then(res => {
if (res.code != 200) return
parseLoginData(res.result);

View File

@ -605,7 +605,6 @@ export default {
submitNucleicAcidForm: function() {
this.$refs['nucleicAcidForm'].validate(valid => {
if (!valid) return
// TODO:
addWorkerNucleicAcidDetection(this.nucleicAcidForm).then(res => {
this.$message.success('提交成功');
this.getList();
@ -617,7 +616,6 @@ export default {
submitVaccineForm: function() {
this.$refs['vaccineForm'].validate(valid => {
if (!valid) return
// TODO:
console.log('this.vaccineForm: ', this.vaccineForm);
addWorkerVaccineInfo(this.vaccineForm).then(res => {
this.$message.success('提交成功');