产品分化调整

This commit is contained in:
fan 2019-10-12 18:43:41 +08:00
parent 5af0c7e4c9
commit 38f4dc1093
13 changed files with 75 additions and 43 deletions

View File

@ -25,5 +25,10 @@ export default {
passedRunPlan: 'Passed Run Plan',
rejectRunPlan: 'Reject Run Plan',
runPlanPreview: 'RunPlan Preview',
inputRunPlanName: 'Please input run plan name'
inputRunPlanName: 'Please input run plan name',
courseDescription: 'Course description',
lookOver: 'Look over',
courseDetails: 'Course details',
instructions: 'Instructions',
chapterTrainingName:'Chapter/training name'
};

View File

@ -92,5 +92,6 @@ export default {
getStationListFail: 'Failed to get station list',
obtainTrainGroupNumberFailed: 'Failed to obtain train group number',
getTrainListFailed: 'Failed to get train list',
getDraftCourseDataFailed: 'Failed to get draft course data!'
getDraftCourseDataFailed: 'Failed to get draft course data!',
failedToGetCourseData: 'Failed to get course data!'
};

View File

@ -110,5 +110,6 @@ export default {
notRelease: 'Not release',
pendingReview: 'Pending review',
published: 'Published',
rejected: 'Rejected'
rejected: 'Rejected',
review: 'Review'
};

View File

@ -301,5 +301,6 @@ export default {
enterTheElevatorCode: 'Please enter the elevator code',
enterTheElevatorWidth: 'Please enter the elevator width',
enterTheElevatorHeight: 'Please enter the elevator height',
enterTheElevatorColor: 'Please enter the elevator color'
enterTheElevatorColor: 'Please enter the elevator color',
enterRejectReason: 'Please enter reject reason'
};

View File

@ -201,5 +201,8 @@ export default {
createPlanFailed: 'Failed to create plan!',
cancelCoursePublicationHint: 'This action will cancel the course publication application, is it OK?',
cancelTheSuccessfulApplicationOfTheCourseRelease: 'Cancel the successful application of the course release!',
cancellationOfCoursePublicationApplicationFailed: 'Cancellation of course publication application failed!'
cancellationOfCoursePublicationApplicationFailed: 'Cancellation of course publication application failed!',
publishTheCourseHint: 'This operation will publish the course. Are you sure?',
rejectedCourseReleaseApplicationSuccessful: 'Rejected course release application successful!',
rejectedCourseReleaseApplicationFailed: 'Rejected course release application failed!'
};

View File

@ -25,5 +25,10 @@ export default {
passedRunPlan: '通过运行图',
rejectRunPlan: '驳回运行图',
runPlanPreview: '预览',
inputRunPlanName: '请输入运行图名称'
inputRunPlanName: '请输入运行图名称',
courseDescription: '课程说明',
lookOver: '查看',
courseDetails: '课程详情',
instructions: '说明',
chapterTrainingName: '章节/课程名称'
};

View File

@ -92,5 +92,6 @@ export default {
getStationListFail: '获取车站列表失败',
obtainTrainGroupNumberFailed: '获取列车车组号失败',
getTrainListFailed: '获取列车列表失败',
getDraftCourseDataFailed: '获取草稿课程数据失败!'
getDraftCourseDataFailed: '获取草稿课程数据失败!',
failedToGetCourseData: '获取课程数据失败!'
};

View File

@ -109,6 +109,7 @@ export default {
notRelease: '未发布',
pendingReview: '待审核',
published: '已发布',
rejected: '已驳回'
rejected: '已驳回',
review: '查看'
};

View File

@ -303,5 +303,6 @@ export default {
enterTheElevatorCode: '请输入电梯编号',
enterTheElevatorWidth: '请输入电梯宽度',
enterTheElevatorHeight: '请输入电梯高度',
enterTheElevatorColor: '请输入电梯颜色'
enterTheElevatorColor: '请输入电梯颜色',
enterRejectReason: '请输入驳回说明'
};

View File

@ -201,5 +201,8 @@ export default {
createPlanFailed: '创建计划失败!',
cancelCoursePublicationHint: '此操作将撤销课程发布申请,是否确定?',
cancelTheSuccessfulApplicationOfTheCourseRelease: '撤销课程发布申请成功!',
cancellationOfCoursePublicationApplicationFailed: '撤销课程发布申请失败!'
cancellationOfCoursePublicationApplicationFailed: '撤销课程发布申请失败!',
publishTheCourseHint: '此操作将发布课程,是否确定?',
rejectedCourseReleaseApplicationSuccessful: '驳回课程发布申请成功!',
rejectedCourseReleaseApplicationFailed: '驳回课程发布申请失败!'
};

View File

@ -1,6 +1,6 @@
<template>
<el-dialog
:title="课程详情"
:title="this.$t('approval.courseDetails')"
:visible.sync="showDetail"
top="20px"
width="90%"
@ -13,7 +13,7 @@
<b>{{ $t('global.courseName') }}: {{ lessonName }}</b>
</div>
<div style="margin:50px">
<p style="font-size: 14px; margin-bottom: 20px"> 课程说明:
<p style="font-size: 14px; margin-bottom: 20px"> {{ $t('approval.courseDescription')}}:
<span style="color: #808080 !important;">{{ lessonRemark }}</span>
</p>
</div>
@ -29,12 +29,12 @@
<el-table-column
prop="name"
border
label="章节/实训名称">
:label="this.$t('approval.chapterTrainingName')">
</el-table-column>
<el-table-column
prop="remarks"
border
label="说明">
:label="this.$t('approval.instructions')">
</el-table-column>
</el-table>
</el-scrollbar>
@ -90,11 +90,10 @@
this.lessonRemark = response.data[0].remarks;
this.loading = false;
}).catch(error=>{
this.$messageBox('获取课程数据失败!')
this.$messageBox(this.$t('approval.failedToGetCourseData'))
});
},
doClose() {
// this.showDetail = false;
}
}
}

View File

@ -1,17 +1,17 @@
<template>
<div>
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList"></QueryListPage>
<el-dialog title="驳回原因" :visible.sync="dialogFormVisible">
<el-dialog :title="this.$t('approval.explanation')" :visible.sync="dialogFormVisible">
<el-input type="textarea"
:rows="2"
placeholder="请输入驳回原因"
:placeholder="this.$t('rules.enterRejectReason')"
@focus="inputFocus"
@blur="inputBlur"
v-model="textarea"></el-input>
<span v-show="needReason" style="color: red">*请输入驳回原因</span>
<span v-show="needReason" style="color: red">{{'*'+$t('rules.enterRejectReason')}}</span>
<div slot="footer" class="dialog-footer">
<el-button @click="rejectCancel"> </el-button>
<el-button type="primary" @click="rejectConfirm"> </el-button>
<el-button @click="rejectCancel">{{$t('global.cancel')}}</el-button>
<el-button type="primary" @click="rejectConfirm">{{$t('global.confirm')}}</el-button>
</div>
</el-dialog>
<lesson-detail ref="lessonDetail"></lesson-detail>
@ -50,7 +50,7 @@
queryObject: {
mapId: {
type: 'select',
label: '地图:',
label: this.$t('approval.map')+this.$t('global.colon'),
config: {
data: []
}
@ -61,7 +61,7 @@
},
userName: {
type: 'text',
label: '申请人:'
label: this.$t('approval.applicant')+this.$t('global.colon'),
}
}
},
@ -75,22 +75,22 @@
prop: 'name'
},
{
title: '地图',
title: this.$t('approval.map'),
prop: 'mapId ',
type: 'tag',
columnValue: (row) => { return this.$convertField(row.mapId , this.mapList, ['value', 'label']); },
tagType: (row) => { return ''; }
},
{
title: '课程说明',
title: this.$t('approval.courseDescription'),
prop: 'remarks'
},
{
title: '申请人',
title: this.$t('approval.applicant'),
prop: 'userName'
},
{
title: '申请时间',
title: this.$t('approval.applyTime'),
prop: 'uploadTime',
type: 'tag',
columnValue: (row) => { return this.handleTime(row.uploadTime)},
@ -102,17 +102,17 @@
width: '250',
buttons: [
{
name: '查看',
name: this.$t('approval.lookOver'),
handleClick: this.goDetail,
type: ''
},
{
name: '通过',
name: this.$t('approval.applyPassed'),
handleClick: this.pass,
type: ''
},
{
name: '驳回',
name: this.$t('approval.applyReject'),
handleClick: this.noPass,
type: ''
}
@ -141,13 +141,10 @@
},
methods: {
goDetail(index,row) {
console.log(this.$refs.lessonDetail,this.$refs);
// this.$router.push({path:`/apply/lesson/detail/${row.id}`});
this.$refs.lessonDetail.show(row.id);
},
pass(index,row) {
this.$confirm('此操作将发布课程,是否确定?', this.$t('global.tips'), {
this.$confirm(this.$t('tip.publishTheCourseHint'), this.$t('global.tips'), {
confirmButtonText: this.$t('global.confirm'),
cancelButtonText: this.$t('global.cancel'),
type: 'warning'
@ -189,14 +186,14 @@
if (this.rejectId){
rejectedLessonRelease({explanation:this.textarea},this.rejectId).then(rep =>{
this.loading = false;
this.$message.success('驳回课程成功!');
this.$message.success(this.$t('tip.rejectedCourseReleaseApplicationSuccessful'));
this.dialogFormVisible = false;
this.rejectId = '';
this.textarea = '';
this.doClose();
}).catch(error => {
this.loading = false;
this.$messageBox('驳回课程失败!');
this.$messageBox(this.$t('tip.rejectedCourseReleaseApplicationSuccessful'));
this.dialogFormVisible = false;
this.rejectId = '';
this.textarea = '';

View File

@ -28,11 +28,11 @@
<span>{{handlerStatus(scope.row)}}</span>
</template>
</el-table-column>
<el-table-column
prop="explanation"
:label="this.$t('lesson.rejectReason')"
>
</el-table-column>
<!--<el-table-column-->
<!--prop="explanation"-->
<!--:label="this.$t('lesson.rejectReason')"-->
<!--&gt;-->
<!--</el-table-column>-->
<el-table-column
width="500"
:label="this.$t('global.operate')">
@ -43,6 +43,14 @@
v-if="scope.row.status!=='1'"
@click="createChapter(scope.row)"
>{{ scope.row.type==='lesson'? $t('lesson.createChapter'):$t('lesson.updateChapter')}}</el-button>
<el-button
size="mini"
type="primary"
v-if="scope.row.status==='1'"
@click="goDetail(scope.row)"
>
{{$t('lesson.review')}}
</el-button>
<el-button
size="mini"
type="primary" plain
@ -77,6 +85,7 @@
</el-card>
<publish-create @refresh="refresh" ref="publishCreate" />
<publish-lesson ref="publishLesson" @refresh="refresh" />
<lesson-detail ref="lessonDetail"/>
</div>
</template>
@ -86,12 +95,14 @@
import PublishCreate from './lessoncategory/edit/create';
import PublishLesson from './lessoncategory/edit/lesson/publish';
import { delLesson } from '@/api/jmap/lessondraft';
import LessonDetail from '@/views/approval/lesson/detail';
export default {
name: 'LessonHome',
components: {
PublishCreate,
PublishLesson
PublishLesson,
LessonDetail
},
computed: {
mapId() {
@ -161,7 +172,7 @@
lessonStatus = this.$t('lesson.published');
break;
case '3':
lessonStatus = this.$t('lesson.rejected');
lessonStatus = this.$t('lesson.rejected')+`(${this.$t('global.remarks')}${row.explanation})`;
break;
}
return lessonStatus;
@ -230,6 +241,9 @@
this.refuse();
});
});
},
goDetail(row) {
this.$refs.lessonDetail.show(row.id);
}
}
};