|
|
|
@ -50,7 +50,7 @@ |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6"> |
|
|
|
|
<el-form-item label="系统"> |
|
|
|
|
<el-select v-model="systemId" placeholder="请选择"> |
|
|
|
|
<el-select v-model="systemId" placeholder="请选择" @change="systemChange"> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in systemList" |
|
|
|
|
:key="item.value" |
|
|
|
@ -147,7 +147,7 @@ |
|
|
|
|
</el-table> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" class="mgb20" v-if="!isHh"> |
|
|
|
|
<div class="mgb20 flex-between"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
@ -203,7 +203,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" class="mgb20" v-if="!isHh"> |
|
|
|
|
<div class="mgb20 flex-between"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
@ -223,7 +223,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
|
<el-card shadow="hover" class="mgb20"> |
|
|
|
|
<el-card shadow="hover" class="mgb20" v-if="!isHh"> |
|
|
|
|
<div class="mgb20 flex-between"> |
|
|
|
|
<div class="flex-center"> |
|
|
|
|
<p class="addhr_tag"></p> |
|
|
|
@ -309,11 +309,13 @@ |
|
|
|
|
export default { |
|
|
|
|
data (){ |
|
|
|
|
return { |
|
|
|
|
host: location.host.includes('liuwanr.cn') ? 'http://www.liuwanr.cn/' : 'http://www.occupationlab.com/', |
|
|
|
|
host: this.$config.host, |
|
|
|
|
isHh: this.$config.isHh, |
|
|
|
|
id: this.$route.query.id, |
|
|
|
|
systemList: this.$config.systemList, |
|
|
|
|
token: this.$store.state.token, |
|
|
|
|
token: btoa(this.$store.state.token), |
|
|
|
|
systemId: this.$store.state.systemId, |
|
|
|
|
lastSystemId: this.$store.state.systemId, |
|
|
|
|
isDetail: Boolean(this.$route.query.show), |
|
|
|
|
roleId: this.$store.state.userRoleId.split('_').join(), |
|
|
|
|
newroleArray: [], |
|
|
|
@ -586,6 +588,18 @@ |
|
|
|
|
this.projectNameRepeat = false |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
systemChange(){ |
|
|
|
|
if(this.experimentData.length && this.isHh){ |
|
|
|
|
this.$confirm('更换系统会清空实验任务,确认更换?', '提示', { |
|
|
|
|
type: 'warning' |
|
|
|
|
}).then(() => { |
|
|
|
|
this.experimentData = [] |
|
|
|
|
this.lastSystemId = this.systemId |
|
|
|
|
}).catch(() => { |
|
|
|
|
this.systemId = this.lastSystemId |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
flag01_switch(){}, |
|
|
|
|
updateRole() { |
|
|
|
|
this.dialogVisible = true; |
|
|
|
@ -636,7 +650,7 @@ |
|
|
|
|
this.$message.warning("判分点分数已超过100"); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
if (this.experimentalData.length == 0 && this.flag01) { |
|
|
|
|
if (this.experimentalData.length == 0 && this.flag01 && !isHh) { |
|
|
|
|
this.$message.warning("请添加实验数据"); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -646,12 +660,12 @@ |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (this.knowledgePoints == "" && this.knowledgePointsIsEnable) { |
|
|
|
|
if (this.knowledgePoints == "" && this.knowledgePointsIsEnable && !isHh) { |
|
|
|
|
this.$message.warning("请输入知识点"); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (this.experimentIntroduction == "" && this.experimentIntroductionIsEnable) { |
|
|
|
|
if (this.experimentIntroduction == "" && this.experimentIntroductionIsEnable && !isHh) { |
|
|
|
|
this.$message.warning("请输入实验介绍"); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -1037,12 +1051,7 @@ |
|
|
|
|
toJudgePoint(row){ |
|
|
|
|
let host = this.host |
|
|
|
|
let systemId = this.systemId |
|
|
|
|
// if(systemId == 4 || systemId == 5) systemId = 1 |
|
|
|
|
this.handleCacheData() |
|
|
|
|
this.setCookie("systemId",systemId) |
|
|
|
|
this.setCookie("userId",this.userLoginId) |
|
|
|
|
this.setCookie("projectId",this.id) |
|
|
|
|
this.setCookie("token",this.token) |
|
|
|
|
let href = '' |
|
|
|
|
if(row){ |
|
|
|
|
if(systemId == 2){ |
|
|
|
@ -1050,15 +1059,15 @@ |
|
|
|
|
}if(systemId == 3){ |
|
|
|
|
href = `${host}jdTrials/#/programOptions?id=${row.judgmentPointsId}` |
|
|
|
|
}else{ |
|
|
|
|
href = `${host}jdTrials/#/program?judgmentPointsId=${row.judgmentPointsId}` |
|
|
|
|
href = `${host}jdTrials/#/program?judgmentPointsId=${row.judgmentPointsId}&systemId=${systemId}&userId=${this.userLoginId}&token=${this.token}&referrer=${btoa(location.href)}` |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
if(systemId == 2 || systemId == 3){ |
|
|
|
|
href = `${host}jdTrials/#/list` |
|
|
|
|
}else{ |
|
|
|
|
href = `${host}jdTrials` |
|
|
|
|
href = `${host}jdTrials/#/?systemId=${systemId}&userId=${this.userLoginId}&token=${this.token}&referrer=${btoa(location.href)}` |
|
|
|
|
} |
|
|
|
|
// if(process.env.NODE_ENV === 'development') href = 'http://192.168.31.154:8080/#/' |
|
|
|
|
if(process.env.NODE_ENV === 'development') href = `http://192.168.31.154:8087/#/?systemId=${systemId}&userId=${this.userLoginId}&token=${this.token}&referrer=${btoa(location.href)}` |
|
|
|
|
} |
|
|
|
|
location.href = href |
|
|
|
|
}, |
|
|
|
|