Merge remote-tracking branch 'origin/dev' into test
# Conflicts: # src/router/index.js
This commit is contained in:
commit
a250d54cb4
File diff suppressed because one or more lines are too long
@ -186,7 +186,6 @@ class IbpPan {
|
|||||||
}
|
}
|
||||||
setDeviceStatus(list) {
|
setDeviceStatus(list) {
|
||||||
const deviceList = Object.values(this.ibpDevice);
|
const deviceList = Object.values(this.ibpDevice);
|
||||||
console.log(list, deviceList);
|
|
||||||
deviceList.forEach(elem =>{
|
deviceList.forEach(elem =>{
|
||||||
(list || []).forEach(it =>{
|
(list || []).forEach(it =>{
|
||||||
if (elem.model.linkDevice === it.code) {
|
if (elem.model.linkDevice === it.code) {
|
||||||
|
@ -3,9 +3,9 @@ export function getBaseUrl() {
|
|||||||
let BASE_API;
|
let BASE_API;
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
// BASE_API = 'https://joylink.club/jlcloud';
|
// BASE_API = 'https://joylink.club/jlcloud';
|
||||||
// BASE_API = 'https://test.joylink.club/jlcloud';
|
BASE_API = 'https://test.joylink.club/jlcloud';
|
||||||
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
||||||
BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
||||||
// BASE_API = 'http://192.168.3.41:9000'; // 王兴杰
|
// BASE_API = 'http://192.168.3.41:9000'; // 王兴杰
|
||||||
} else {
|
} else {
|
||||||
BASE_API = process.env.VUE_APP_BASE_API;
|
BASE_API = process.env.VUE_APP_BASE_API;
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
import { createLesson, updateLesson, getLessonDetail } from '@/api/jmap/lessondraft';
|
import { createLesson, updateLesson, getLessonDetail } from '@/api/jmap/lessondraft';
|
||||||
import { getCommodityMapProduct } from '@/api/management/mapprd';
|
import { getCommodityMapProduct } from '@/api/management/mapprd';
|
||||||
import { getSkinCodeList } from '@/api/management/mapskin';
|
import { getSkinCodeList } from '@/api/management/mapskin';
|
||||||
import { UrlConfig } from '@/router/index';
|
// import { UrlConfig } from '@/router/index';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CourseEdit',
|
name: 'CourseEdit',
|
||||||
@ -187,7 +187,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
back() {
|
back() {
|
||||||
this.$router.push({ path: `${UrlConfig.design.lessonHome}/${this.$route.query.mapId}/${this.$route.query.skinCode}`, query: {cityCode: this.$route.query.cityCode} });
|
// this.$router.push({ path: `${UrlConfig.design.lessonHome}/${this.$route.query.mapId}/${this.$route.query.skinCode}`, query: {cityCode: this.$route.query.cityCode} });
|
||||||
|
this.$router.go(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -2,37 +2,13 @@
|
|||||||
<el-dialog v-dialogDrag :title="title" :visible.sync="dialogShow" :before-close="handleCancel" :close-on-click-modal="false">
|
<el-dialog v-dialogDrag :title="title" :visible.sync="dialogShow" :before-close="handleCancel" :close-on-click-modal="false">
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="140px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="140px">
|
||||||
<el-form-item :label="$t('publish.trainingType')" prop="course">
|
<el-form-item :label="$t('publish.trainingType')" prop="course">
|
||||||
<el-select
|
<el-select v-model="form.course" :placeholder="$t('publish.selectTypeScope')" :disabled="editOk" style="width:240px;" @change="changeCourse(form.course)">
|
||||||
v-model="form.course"
|
<el-option v-for="nor in options" :key="nor.id" :label="nor.name" :value="nor.code" :disabled="nor.disabled" />
|
||||||
:placeholder="$t('publish.selectTypeScope')"
|
|
||||||
:disabled="editOk"
|
|
||||||
style="width:240px;"
|
|
||||||
@change="changeCourse(form.course)"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="nor in options"
|
|
||||||
:key="nor.id"
|
|
||||||
:label="nor.name"
|
|
||||||
:value="nor.code"
|
|
||||||
:disabled="nor.disabled"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('publish.operationType')">
|
<el-form-item :label="$t('publish.operationType')">
|
||||||
<el-select
|
<el-select v-model="form.operateType" clearable :placeholder="$t('publish.selectScope')" :disabled="editOk" @change="changeOperation(form.operateType)">
|
||||||
v-model="form.operateType"
|
<el-option v-for="nor in operationTypeList" :key="nor.id" :label="nor.name" :value="nor.code" :disabled="nor.disabled" />
|
||||||
clearable
|
|
||||||
:placeholder="$t('publish.selectScope')"
|
|
||||||
:disabled="editOk"
|
|
||||||
@change="changeOperation(form.operateType)"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="nor in operationTypeList"
|
|
||||||
:key="nor.id"
|
|
||||||
:label="nor.name"
|
|
||||||
:value="nor.code"
|
|
||||||
:disabled="nor.disabled"
|
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('publish.questionNumbers')" prop="number">
|
<el-form-item :label="$t('publish.questionNumbers')" prop="number">
|
||||||
|
@ -1,27 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="exam-rule">
|
<div class="exam-rule">
|
||||||
<el-scrollbar wrap-class="scrollbar-wrapper" :style="{height: height + 'px'}">
|
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px" class="demo-form">
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px" class="demo-form">
|
||||||
<el-form-item :label="$t('publish.testName')" prop="name">
|
<el-form-item :label="$t('publish.testName')" prop="name">
|
||||||
<el-input v-model="form.name" :placeholder="$t('publish.inputTestName')" />
|
<el-input v-model="form.name" :placeholder="$t('publish.inputTestName')" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('publish.testScope')" prop="region">
|
<el-form-item :label="$t('publish.testScope')" prop="region">
|
||||||
<el-select
|
<el-select v-model="form.region" :placeholder="$t('publish.selectTestScope')" style="width: 100%;" :disabled="isEdit || selectDisable">
|
||||||
v-model="form.region"
|
|
||||||
:placeholder="$t('publish.selectTestScope')"
|
|
||||||
style="width: 100%;"
|
|
||||||
:disabled="isEdit || selectDisable"
|
|
||||||
>
|
|
||||||
<el-option v-for="nor in options" :key="nor.id" :label="nor.name" :value="nor.id" />
|
<el-option v-for="nor in options" :key="nor.id" :label="nor.name" :value="nor.id" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('publish.testDuration')" prop="duration">
|
<el-form-item :label="$t('publish.testDuration')" prop="duration">
|
||||||
<el-input
|
<el-input v-model="form.duration" placeholder="90" style="float: left; width: calc(100% - 80px);" :disabled="isEdit" />
|
||||||
v-model="form.duration"
|
|
||||||
placeholder="90"
|
|
||||||
style="float: left; width: calc(100% - 80px);"
|
|
||||||
:disabled="isEdit"
|
|
||||||
/>
|
|
||||||
<span style="width:80px; display: block;float: left; text-align: center;"> {{ $t('publish.durationMinutes') }}</span>
|
<span style="width:80px; display: block;float: left; text-align: center;"> {{ $t('publish.durationMinutes') }}</span>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('publish.testDate')">
|
<el-form-item :label="$t('publish.testDate')">
|
||||||
@ -71,7 +60,6 @@
|
|||||||
<el-button type="primary" @click="submitForm" v-else>{{ $t('error.nextStep') }}</el-button>
|
<el-button type="primary" @click="submitForm" v-else>{{ $t('error.nextStep') }}</el-button>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-scrollbar>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -81,12 +69,6 @@ import { getExamLessonDetail, updateExamRules } from '@/api/management/exam';
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ExamFrom',
|
name: 'ExamFrom',
|
||||||
props: {
|
|
||||||
height: {
|
|
||||||
type: Number,
|
|
||||||
default: 800
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
var fullMark = (rule, value, callback) => {
|
var fullMark = (rule, value, callback) => {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
@ -284,7 +266,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
.exam-rule {
|
.exam-rule {
|
||||||
overflow-y: auto;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.line {
|
.line {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- <el-card> -->
|
<div class="joylink-card" :class="lessonName ? 'card-box' : ''">
|
||||||
<!-- <div v-if="lessonName" slot="header" style="text-align: center;">
|
<div v-if="lessonName" class="card-title">
|
||||||
<b>{{ $t('publish.lessonName') }}: {{ lessonName }}</b>
|
<b>{{ $t('publish.lessonName') }}: {{ lessonName }}</b>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="exam-box">
|
<div class="exam-box" :style="{ 'height': lessonName ? 'calc(100% - 47px)' : '' }">
|
||||||
<el-steps class="steps" :active="display">
|
<el-steps class="steps" :active="display">
|
||||||
<el-step :title="$t('publish.testDefinitionMaking')" icon="el-icon-edit" />
|
<el-step :title="$t('publish.testDefinitionMaking')" icon="el-icon-edit" />
|
||||||
<el-step :title="$t('publish.examRuleMaking')" icon="el-icon-setting" />
|
<el-step :title="$t('publish.examRuleMaking')" icon="el-icon-setting" />
|
||||||
@ -26,7 +26,7 @@
|
|||||||
</el-button-group>
|
</el-button-group>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- </el-card> -->
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -44,7 +44,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
display: 1,
|
display: 1,
|
||||||
course: {},
|
course: {},
|
||||||
// lessonName: '',
|
lessonName: '',
|
||||||
formData: {}
|
formData: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -69,11 +69,11 @@ export default {
|
|||||||
loadInitData() {
|
loadInitData() {
|
||||||
getPublishLessonList().then(response => {
|
getPublishLessonList().then(response => {
|
||||||
this.OrganizationList = response.data;
|
this.OrganizationList = response.data;
|
||||||
// this.OrganizationList.forEach(elem => {
|
this.OrganizationList.forEach(elem => {
|
||||||
// if (elem.id == this.$route.params.lessonId) {
|
if (elem.id == this.$route.params.lessonId) {
|
||||||
// this.lessonName = elem.name;
|
this.lessonName = elem.name;
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
definition(data) {
|
definition(data) {
|
||||||
@ -109,9 +109,21 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
|
.joylink-card{
|
||||||
|
.card-title{
|
||||||
|
text-align: center;
|
||||||
|
height: 47px;
|
||||||
|
line-height: 47px;
|
||||||
|
border-bottom: 1px solid #e6e6e6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.card-box{
|
||||||
|
overflow: hidden;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
.exam-box {
|
.exam-box {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
height: 100%;
|
overflow: auto;
|
||||||
|
|
||||||
/deep/ {
|
/deep/ {
|
||||||
.el-step__icon.is-icon {
|
.el-step__icon.is-icon {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="exam-rule">
|
<div class="exam-rule">
|
||||||
<span>{{ $t('publish.fullScoreTips') }} {{ course.fullMark }} {{ $t('publish.scorePoints') }}</span>
|
<span>{{ $t('publish.fullScoreTips') }} {{ course.fullMark }} {{ $t('publish.scorePoints') }}</span>
|
||||||
<el-button class="addList" size="small" @click="handleAdd">{{ $t('publish.addRules') }}</el-button>
|
<el-button class="addList" size="small" @click="handleAdd">{{ $t('publish.addRules') }}</el-button>
|
||||||
<el-table :data="ruleList" border show-summary style="width: 100%" :height="height">
|
<el-table :data="ruleList" border show-summary style="width: 100%; min-height: 300px;">
|
||||||
<el-table-column prop="name" :label="$t('publish.trainingType')" />
|
<el-table-column prop="name" :label="$t('publish.trainingType')" />
|
||||||
<el-table-column prop="num" :label="$t('publish.questionsNumber')" width="100" />
|
<el-table-column prop="num" :label="$t('publish.questionsNumber')" width="100" />
|
||||||
<el-table-column prop="point" :label="$t('publish.eachScore')" width="100" />
|
<el-table-column prop="point" :label="$t('publish.eachScore')" width="100" />
|
||||||
@ -14,10 +14,6 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!-- <div class="btn-footer">
|
|
||||||
<el-button @click="regulation">上一步</el-button>
|
|
||||||
<el-button type="primary" @click="creatOk">新增</el-button>
|
|
||||||
</div> -->
|
|
||||||
<edit-rule
|
<edit-rule
|
||||||
ref="addRule"
|
ref="addRule"
|
||||||
:course-id="courseId"
|
:course-id="courseId"
|
||||||
@ -43,10 +39,6 @@ export default {
|
|||||||
course: {
|
course: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: null
|
default: null
|
||||||
},
|
|
||||||
height: {
|
|
||||||
type: Number,
|
|
||||||
default: 800
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -1,20 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-card>
|
<div class="joylink-card">
|
||||||
<div v-if="lessonName" slot="header" style="text-align: center;">
|
<div v-if="lessonName" class="card-title">
|
||||||
<b>{{ $t('publish.lessonName') }}: {{ lessonName }}</b>
|
<b>{{ $t('publish.lessonName') }}: {{ lessonName }}</b>
|
||||||
</div>
|
</div>
|
||||||
<div :style="{ height: height +'px' }">
|
<div :style="{ 'height': lessonName ? 'calc(100% - 47px)' : '100%' }">
|
||||||
<el-scrollbar wrap-class="scrollbar-wrapper" style="">
|
<el-scrollbar wrap-class="scrollbar-wrapper">
|
||||||
<QueryListPage
|
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
||||||
ref="queryListPage"
|
|
||||||
:pager-config="pagerConfig"
|
|
||||||
:query-form="queryForm"
|
|
||||||
:query-list="queryList"
|
|
||||||
style="height: 100%;"
|
|
||||||
/>
|
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -182,11 +176,6 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
height() {
|
|
||||||
return /\/exam\//.test(`${this.$route.path}`)? this.$store.state.app.height - 92: this.$store.state.app.height - 65;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
created() {
|
||||||
this.loadInitData();
|
this.loadInitData();
|
||||||
},
|
},
|
||||||
@ -324,6 +313,15 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style rel="stylesheet/scss" lang="scss" scoped>
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||||||
|
.joylink-card {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.card-title{
|
||||||
|
text-align: center;
|
||||||
|
height: 47px;
|
||||||
|
line-height: 47px;
|
||||||
|
border-bottom: 1px solid #e6e6e6;
|
||||||
|
}
|
||||||
/deep/ {
|
/deep/ {
|
||||||
.is-always-shadow {
|
.is-always-shadow {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
Loading…
Reference in New Issue
Block a user