优化若干bug
This commit is contained in:
parent
ffb0b1c3a2
commit
dd991abffd
@ -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/';
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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('提交成功');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user