This commit is contained in:
zyy 2019-11-15 16:31:55 +08:00
commit 9a82914c11
9 changed files with 53 additions and 72 deletions

View File

@ -14,7 +14,7 @@ export default {
trainingScore: '实训得分', trainingScore: '实训得分',
returnToExamList: '返回考试列表', returnToExamList: '返回考试列表',
totalScore: '总分', totalScore: '总分',
itemList: '试列表', itemList: '试列表',
courseName: '课程名称', courseName: '课程名称',
permissionsDetails: '权限详情', permissionsDetails: '权限详情',
buy: '购买', buy: '购买',

View File

@ -64,7 +64,7 @@ class Jlmap {
loadStyle(lineCode) { loadStyle(lineCode) {
return selectLineCode(lineCode); return selectLineCode(lineCode);
}ine }
loadDefaultState() { loadDefaultState() {
const defaultStateDict = {}; const defaultStateDict = {};

View File

@ -242,18 +242,11 @@ export default {
}); });
}, },
buy() { buy() {
this.$confirm('支付系统正在改进,如需购买请联系客服<br/>客服电话13289398171', this.$t('global.tips'), { this.buttonLoading = true;
confirmButtonText: this.$t('global.confirm'), this.$router.push({
dangerouslyUseHTMLString: true, path: `${UrlConfig.trainingPlatform.pay}/${this.courseModel.id}`,
type: 'warning', query: { permissionType: PermissionType.SIMULATION, prdId: this.courseModel.prdId, mapId: this.courseModel.mapId, subSystem: this.$route.params.subSystem }
showCancelButton: false,
center: true
}); });
// this.buttonLoading = true;
// this.$router.push({
// path: `${UrlConfig.trainingPlatform.pay}/${this.courseModel.id}`,
// query: { permissionType: PermissionType.SIMULATION, prdId: this.courseModel.prdId, mapId: this.courseModel.mapId, subSystem: this.$route.params.subSystem }
// });
}, },
transfer() { transfer() {
this.buttonLoading = false; this.buttonLoading = false;

View File

@ -137,18 +137,11 @@ export default {
}); });
}, },
buy() { buy() {
this.$confirm('支付系统正在改进,如需购买请联系客服<br/>客服电话13289398171', this.$t('global.tips'), { this.loading = true;
confirmButtonText: this.$t('global.confirm'), this.$router.push({
dangerouslyUseHTMLString: true, path: `${UrlConfig.trainingPlatform.pay}/${this.courseModel.id}`,
type: 'warning', query: { permissionType: PermissionType.EXAM, lessonId: this.courseModel.id, prdId: this.courseModel.prdId, mapId: this.courseModel.mapId, subSystem: this.$route.params.subSystem }
showCancelButton: false,
center: true
}); });
// this.loading = true;
// this.$router.push({
// path: `${UrlConfig.trainingPlatform.pay}/${this.courseModel.id}`,
// query: { permissionType: PermissionType.EXAM, lessonId: this.courseModel.id, prdId: this.courseModel.prdId, mapId: this.courseModel.mapId, subSystem: this.$route.params.subSystem }
// });
}, },
checkCourse() { checkCourse() {
this.loading = true; this.loading = true;

View File

@ -12,6 +12,7 @@ import { listPackagePermission, restorePackagePermission, getPackageQrCode, setC
import { UrlConfig } from '@/router/index'; import { UrlConfig } from '@/router/index';
import QrCode from '@/components/QrCode'; import QrCode from '@/components/QrCode';
import Qcode from './Qcode'; import Qcode from './Qcode';
import { getPublishMapListOnline } from '@/api/jmap/map';
export default { export default {
name: 'Author', name: 'Author',
@ -31,11 +32,24 @@ export default {
labelWidth: '140px', labelWidth: '140px',
reset: false, reset: false,
queryObject: { queryObject: {
'userName': { mapId: {
type: 'text', type: 'select',
label: this.$t('orderAuthor.founder') label: this.$t('orderAuthor.mapName'),
config: {
data: []
}
}, },
'status': { canDistribute: {
type: 'select',
label: this.$t('orderAuthor.publicOrPrivate'),
config: {
data: [
{ value: false, label: this.$t('orderAuthor.privateAuthority')},
{ value: true, label: this.$t('orderAuthor.publicAuthority')}
]
}
},
status: {
type: 'select', type: 'select',
label: this.$t('global.status'), label: this.$t('global.status'),
value: '1', value: '1',
@ -179,6 +193,11 @@ export default {
return true; return true;
}); });
}); });
getPublishMapListOnline().then(resp => {
resp.data.forEach(elem => {
this.queryForm.queryObject.mapId.config.data.push({value: elem.id, label: elem.name});
});
});
}, },
formatterDate(row, porpInfo) { formatterDate(row, porpInfo) {
return row[porpInfo.property] ? row[porpInfo.property] : this.$t('global.perpetual'); return row[porpInfo.property] ? row[porpInfo.property] : this.$t('global.perpetual');

View File

@ -533,6 +533,8 @@ export default {
#PlanMenuBar { #PlanMenuBar {
width: 100%; width: 100%;
line-height: $height; line-height: $height;
position: absolute;
z-index: 2;
} }
.nav { .nav {

View File

@ -257,15 +257,18 @@ export default {
const op = this.myChart.getOption(); const op = this.myChart.getOption();
op.series.forEach((item, index) => { op.series.forEach((item, index) => {
item.lineStyle.color = '#000'; item.lineStyle.color = '#000';
if (item.name == serviceNumber) { switch (item.name) {
case serviceNumber: {
item.lineStyle.color = 'red'; item.lineStyle.color = 'red';
break;
} }
if (item.name == 'trainLabel') { case 'trainLabel': {
item.data = [];
op.series.splice(index, 1); op.series.splice(index, 1);
break;
}
} }
}); });
this.myChart.setOption(op); this.myChart.setOption(op, true);
} }
this.$store.dispatch('runPlan/setSelected', { serviceNumber: serviceNumber, tripNumber: null }); this.$store.dispatch('runPlan/setSelected', { serviceNumber: serviceNumber, tripNumber: null });
this.analyticalTripNumber(serviceObj.trainMap || {}); this.analyticalTripNumber(serviceObj.trainMap || {});
@ -278,16 +281,19 @@ export default {
tripNumber = row.tripNumber; tripNumber = row.tripNumber;
const op = this.myChart.getOption(); const op = this.myChart.getOption();
op.series.forEach((item, index) => { op.series.forEach((item, index) => {
if (item.name == serviceNumber) { switch (item.name) {
case serviceNumber: {
item.data.forEach(nor => { item.data.forEach(nor => {
if (nor[3] == tripNumber) { if (nor[3] == tripNumber) {
data.push(nor); data.push(nor);
} }
}); });
break;
} }
if (item.name == 'trainLabel') { case 'trainLabel': {
item.data = [];
op.series.splice(index, 1); op.series.splice(index, 1);
break;
}
} }
}); });
op.series.push({ op.series.push({
@ -298,7 +304,7 @@ export default {
type: 'line', type: 'line',
data: data data: data
}); });
this.myChart && this.myChart.setOption(op); this.myChart && this.myChart.setOption(op, true);
} }
this.$store.dispatch('runPlan/setSelected', { serviceNumber: serviceNumber, tripNumber: tripNumber }); this.$store.dispatch('runPlan/setSelected', { serviceNumber: serviceNumber, tripNumber: tripNumber });
@ -594,6 +600,7 @@ export default {
width: 100%; width: 100%;
height: calc(100% - 45px); height: calc(100% - 45px);
position: relative; position: relative;
margin-top: 45px;
.left { .left {
height: 100%; height: 100%;

View File

@ -144,14 +144,6 @@ export default {
return !this.$route.query.lessonId && row.status == 1; return !this.$route.query.lessonId && row.status == 1;
} }
}, },
{
name: this.$t('publish.lessonDeleteBtn'),
type: 'warning',
handleClick: this.handleDelete,
showControl: (row) => {
return this.$route.query.lessonId && row.status == 1 && row.creatorId == this.userId;
}
},
{ {
name: this.$t('global.putaway'), name: this.$t('global.putaway'),
type: 'primary', type: 'primary',
@ -253,24 +245,6 @@ export default {
}).catch(() => { }); }).catch(() => { });
}, },
// //
handleDelete(index, data) {
this.$confirm(this.$t('publish.wellDelPaper'), this.$t('global.tips'), {
confirmButtonText: this.$t('global.confirm'),
cancelButtonText: this.$t('global.cancel'),
type: 'warning'
}).then(() => {
setExamEfficacy(data).then(res => {
this.queryList.reload();
this.$message({
type: 'success',
message: this.$t('publish.setSuccess')
});
}).catch(res => {
this.$message({ type: 'warning', message: `${this.$t('error.setFailed')}${res.message}` });
});
}).catch(() => { });
},
//
handleEfficacy(index, data) { handleEfficacy(index, data) {
this.$confirm(this.$t('publish.wellSoldOutPaper'), this.$t('global.tips'), { this.$confirm(this.$t('publish.wellSoldOutPaper'), this.$t('global.tips'), {
confirmButtonText: this.$t('global.confirm'), confirmButtonText: this.$t('global.confirm'),

View File

@ -157,17 +157,10 @@ export default {
return data.name.indexOf(value) !== -1; return data.name.indexOf(value) !== -1;
}, },
buy() { buy() {
this.$confirm('支付系统正在改进,如需购买请联系客服<br/>客服电话13289398171', this.$t('global.tips'), { this.$router.push({
confirmButtonText: this.$t('global.confirm'), path: `${UrlConfig.trainingPlatform.pay}/${this.courseModel.id}`, query:
dangerouslyUseHTMLString: true, { permissionType: PermissionType.LESSON, lessonId: this.courseModel.id, prdId: this.$route.query.prdId, mapId: this.$route.query.mapId, subSystem: this.$route.params.subSystem }
type: 'warning',
showCancelButton: false,
center: true
}); });
// this.$router.push({
// path: `${UrlConfig.trainingPlatform.pay}/${this.courseModel.id}`, query:
// { permissionType: PermissionType.LESSON, lessonId: this.courseModel.id, prdId: this.$route.query.prdId, mapId: this.$route.query.mapId, subSystem: this.$route.params.subSystem }
// });
}, },
nodeExpand(obj, node, ele) { nodeExpand(obj, node, ele) {
const key = obj.id; const key = obj.id;