优化若干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://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: 本地
|
// 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://124.71.178.44:9500/'; // 星璇
|
||||||
// axios.defaults.baseURL = 'http://120.196.217.6:7000/';
|
// axios.defaults.baseURL = 'http://120.196.217.6:7000/';
|
||||||
// axios.defaults.baseURL = 'http://139.9.66.234:8/';
|
// axios.defaults.baseURL = 'http://139.9.66.234:8/';
|
||||||
|
|||||||
@ -15,14 +15,12 @@ import { autoLogin } from '@/assets/js/api/autoLogin-xingXuan'
|
|||||||
|
|
||||||
|
|
||||||
if (COMPANY == 'xingxuan') {
|
if (COMPANY == 'xingxuan') {
|
||||||
// tag: 测试功能
|
|
||||||
if(window.location.href.indexOf('?project_id=') != -1) {
|
if(window.location.href.indexOf('?project_id=') != -1) {
|
||||||
const projectId = window.location.href.split('?project_id=')[1].split('&')[0];
|
const projectId = window.location.href.split('?project_id=')[1].split('&')[0];
|
||||||
login(projectId)
|
login(projectId)
|
||||||
}
|
}
|
||||||
|
|
||||||
function login(projectNumber) {
|
function login(projectNumber) {
|
||||||
// TODO: 对接登录接口
|
|
||||||
autoLogin({ projectNumber }).then(res => {
|
autoLogin({ projectNumber }).then(res => {
|
||||||
if (res.code != 200) return
|
if (res.code != 200) return
|
||||||
parseLoginData(res.result);
|
parseLoginData(res.result);
|
||||||
|
|||||||
@ -29,14 +29,12 @@ Vue.component('Pagination', Pagination)
|
|||||||
Vue.prototype.resetForm = resetForm
|
Vue.prototype.resetForm = resetForm
|
||||||
|
|
||||||
if (COMPANY == 'xingxuan') {
|
if (COMPANY == 'xingxuan') {
|
||||||
// tag: 测试功能
|
|
||||||
if(window.location.href.indexOf('?project_id=') != -1) {
|
if(window.location.href.indexOf('?project_id=') != -1) {
|
||||||
const projectId = window.location.href.split('?project_id=')[1].split('&')[0];
|
const projectId = window.location.href.split('?project_id=')[1].split('&')[0];
|
||||||
login(projectId)
|
login(projectId)
|
||||||
}
|
}
|
||||||
|
|
||||||
function login(projectNumber) {
|
function login(projectNumber) {
|
||||||
// TODO: 对接登录接口
|
|
||||||
autoLogin({ projectNumber }).then(res => {
|
autoLogin({ projectNumber }).then(res => {
|
||||||
if (res.code != 200) return
|
if (res.code != 200) return
|
||||||
parseLoginData(res.result);
|
parseLoginData(res.result);
|
||||||
|
|||||||
@ -605,7 +605,6 @@ export default {
|
|||||||
submitNucleicAcidForm: function() {
|
submitNucleicAcidForm: function() {
|
||||||
this.$refs['nucleicAcidForm'].validate(valid => {
|
this.$refs['nucleicAcidForm'].validate(valid => {
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
// TODO: 提交表单
|
|
||||||
addWorkerNucleicAcidDetection(this.nucleicAcidForm).then(res => {
|
addWorkerNucleicAcidDetection(this.nucleicAcidForm).then(res => {
|
||||||
this.$message.success('提交成功');
|
this.$message.success('提交成功');
|
||||||
this.getList();
|
this.getList();
|
||||||
@ -617,7 +616,6 @@ export default {
|
|||||||
submitVaccineForm: function() {
|
submitVaccineForm: function() {
|
||||||
this.$refs['vaccineForm'].validate(valid => {
|
this.$refs['vaccineForm'].validate(valid => {
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
// TODO: 提交表单
|
|
||||||
console.log('this.vaccineForm: ', this.vaccineForm);
|
console.log('this.vaccineForm: ', this.vaccineForm);
|
||||||
addWorkerVaccineInfo(this.vaccineForm).then(res => {
|
addWorkerVaccineInfo(this.vaccineForm).then(res => {
|
||||||
this.$message.success('提交成功');
|
this.$message.success('提交成功');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user