跳转域名

dev
4 years ago
parent 4b0994ec32
commit dbbc129f5e
  1. 4
      src/components/page/AddCustomer.vue
  2. 42
      src/components/page/AddUser.vue
  3. 4
      src/components/page/Configure.vue
  4. 3
      src/utils/api.js
  5. 4
      src/utils/core.js

@ -384,7 +384,9 @@ export default {
// /
getSchoolData(){
let data = {
schoolName: ''
schoolName: '',
provinceId: '',
cityId: ''
}
this.$get(this.api.querySchoolData,data).then(res => {
this.schoolList = res.message

@ -505,7 +505,7 @@
<div class="card" :class="{isie: isIE()}">
<!-- 管理员 -->
<el-card shadow="hover" class="card_m" v-show="item.roleIds.indexOf(2) > -1">
<el-card shadow="hover" class="card_m" v-show="item.roleIds.indexOf(13) > -1">
<div class="flex-between jobNumber">
<span>管理员</span>
<div class="numberInput">
@ -556,7 +556,7 @@
</div>
</el-card>
<!-- 教师 -->
<el-card shadow="hover" class="card_m" v-show="item.roleIds.indexOf(3) > -1">
<el-card shadow="hover" class="card_m" v-show="item.roleIds.indexOf(14) > -1">
<div class="flex-between jobNumber">
<span>教师</span>
<div class="numberInput">
@ -783,11 +783,11 @@ export default {
region: '', //
checkList: [{
label: '管理员',
id: 2
id: 13
},
{
label: '教师',
id: 3
id: 14
},
{
label: '学生',
@ -1213,7 +1213,11 @@ export default {
},
//
getSchoolData(){
this.$get(this.api.querySchoolData,{schoolName: ''}).then(res => {
this.$get(this.api.querySchoolData,{
schoolName: '',
provinceId: '',
cityId: ''
}).then(res => {
this.schoolList = res.message
}).catch(res => {});
},
@ -1419,11 +1423,11 @@ export default {
let student = {}
this.saveList.forEach( e =>{
//
if(e.roleIds.indexOf(2) > -1){
if(e.roleIds.indexOf(13) > -1){
staffLIst.push({
platformId: e.platformId,
workNumber: e.staworkNumber,
roleId: 2,
roleId: 13,
schoolId: e.schoolId,
customerId: e.customerId,
schoolName: e.customerName,
@ -1434,11 +1438,11 @@ export default {
})
}
//
if(e.roleIds.indexOf(3) > -1){
if(e.roleIds.indexOf(14) > -1){
staffLIst.push({
platformId: e.platformId,
workNumber: e.teaworkNumber,
roleId: 3,
roleId: 14,
schoolId: e.schoolId,
customerId: e.customerId,
schoolName: e.customerName,
@ -1538,7 +1542,7 @@ export default {
async worknumberChange(item){
let res = await this.$get(this.api.queryWorkNumberIsExist, {
workNumber: item.staworkNumber,
roleId: 2,
roleId: 13,
schoolId: item.schoolId
});
if(JSON.stringify(res.message) != '{}'){
@ -1551,7 +1555,7 @@ export default {
async teaworknumberChange(item){
let res = await this.$get(this.api.queryWorkNumberIsExist, {
workNumber: item.teaworkNumber,
roleId: 3,
roleId: 14,
schoolId: item.schoolId
});
if(JSON.stringify(res.message) != '{}'){
@ -1737,7 +1741,7 @@ export default {
let isEmpty = false
this.chooseList.forEach(e =>{
//
if(e.roleIds.indexOf(2) > -1){
if(e.roleIds.indexOf(13) > -1){
for(let i in e) {
if(i.startsWith('sta') && e[i] == ''){
isEmpty = true
@ -1747,7 +1751,7 @@ export default {
stuStaffList.staffList.push({
platformId: e.platformId,
workNumber: e.staworkNumber,
roleId: 2,
roleId: 13,
schoolId: e.schoolId,
customerId: e.customerId,
schoolName: e.customerName,
@ -1759,7 +1763,7 @@ export default {
})
}
//
if(e.roleIds.indexOf(3) > -1){
if(e.roleIds.indexOf(14) > -1){
for(let i in e) {
if(i.startsWith('tea') && e[i] == ''){
isEmpty = true
@ -1769,7 +1773,7 @@ export default {
stuStaffList.staffList.push({
platformId: e.platformId,
workNumber: e.teaworkNumber,
roleId: 3,
roleId: 14,
schoolId: e.schoolId,
customerId: e.customerId,
schoolName: e.customerName,
@ -1817,7 +1821,7 @@ export default {
let list = this.saveList
let isEmpty = false
for(let e of list){
if(e.roleIds.includes(2)){
if(e.roleIds.includes(13)){
for(let i in e) {
if(i.startsWith('sta') && e[i] == ''){
isEmpty = true
@ -1825,7 +1829,7 @@ export default {
}
}
}
if(e.roleIds.includes(3)){
if(e.roleIds.includes(14)){
for(let i in e) {
if(i.startsWith('tea') && e[i] == ''){
isEmpty = true
@ -1948,10 +1952,10 @@ export default {
this.$set(e, 'teacherstaffGradeName', '');
if (e.roleId) {
switch (e.roleId) {
case 2:
case 13:
e.staworkNumber = e.workNumber
break;
case 3:
case 14:
e.teaworkNumber = e.workNumber,
e.teacherstaffProId = e.staffProfessionalArchitectureId,
e.teacherstaffProName = e.staffProfessionalArchitectureName,

@ -146,13 +146,13 @@ export default {
this.setCookie("userId",this.$store.state.userLoginId)
this.setCookie("systemId",row.systemId)
this.setCookie("systemName",row.systemName)
window.location.href = "http://www.liuwanr.cn:8080/Projectmanagement/";
window.location.href = "http://39.108.250.202/Projectmanagement/";
},
getIntoJudgement(row){
this.setCookie("userId",this.$store.state.userLoginId)
this.setCookie("systemId",row.systemId)
this.setCookie("systemName",row.systemName)
window.location.href = "http://www.liuwanr.cn:8080/Score/";
window.location.href = "http://39.108.250.202/Score/";
},
 setCookie(name, value) {
      if (value) {

@ -1,6 +1,7 @@
// let host = 'http://192.168.31.117:8080'
let host = 'http://www.huorantech.cn/liuwanr'
// let host = 'http://www.huorantech.cn/liuwanr'
let host = 'http://39.108.250.202/liuwanr'
// let host = 'http://www.liuwanr.cn:8080'
export default {

@ -83,8 +83,8 @@ function hoursStatus (sts) {
function roleStatus (sts) {
const status = {
'1': '超级管理员',
'2': '管理员',
'3': '教师',
'13': '管理员',
'14': '教师',
'4': '学生'
}
return status[sts] || '未知状态'

Loading…
Cancel
Save