|
@@ -3,9 +3,9 @@
|
|
|
<div v-show="!isSetting" class="publish-status-box">
|
|
|
<Icon type="ios-information-circle-outline" class="tips-icon" />
|
|
|
<p class="status-text">
|
|
|
- <span style="font-size:16px;color:white">暂未发布阅卷任务</span>
|
|
|
+ <span style="font-size:16px;color:white">{{$t('learnActivity.mark.noPublish')}}</span>
|
|
|
</p>
|
|
|
- <span class="setting-btn" @click="isSetting = !isSetting">发布任务</span>
|
|
|
+ <span class="setting-btn" @click="isSetting = !isSetting">{{$t('learnActivity.mark.publish')}}</span>
|
|
|
</div>
|
|
|
<vuescroll v-show="isSetting">
|
|
|
<!-- 基础设置 -->
|
|
@@ -18,51 +18,46 @@
|
|
|
<Row>
|
|
|
<!-- 开始时间 -->
|
|
|
<Col :md="24" :lg="24" :xl="12" :xxl="8">
|
|
|
- <FormItem label="开始时间" class="setting-item-wrap" prop="startTime">
|
|
|
+ <FormItem :label="$t('learnActivity.mark.startTime')" class="setting-item-wrap" prop="startTime">
|
|
|
<DatePicker :options="dateOpt" class="attr-value-wrap" type="datetime" format="yyyy/MM/dd HH:mm" v-model="startTime" split-panels :placeholder="$t('learnActivity.createEv.sTimeHolder')" style="width:100%" @on-change="getDate($event,0)"></DatePicker>
|
|
|
</FormItem>
|
|
|
</Col>
|
|
|
<!-- 结束时间 -->
|
|
|
<Col :md="24" :lg="24" :xl="12" :xxl="8">
|
|
|
- <FormItem label="结束时间" class="setting-item-wrap" prop="endTime">
|
|
|
+ <FormItem :label="$t('learnActivity.mark.endTime')" class="setting-item-wrap" prop="endTime">
|
|
|
<DatePicker :options="dateOpt1" class="attr-value-wrap" type="datetime" format="yyyy/MM/dd HH:mm" v-model="endTime" split-panels :placeholder="$t('learnActivity.createEv.eTimeHolder')" style="width:100%" @on-change="getDate($event,1)"></DatePicker>
|
|
|
</FormItem>
|
|
|
</Col>
|
|
|
<!-- 分配方式 -->
|
|
|
<Col :md="24" :lg="24" :xl="12" :xxl="8">
|
|
|
- <FormItem label="分配方式" class="setting-item-wrap" prop="mode">
|
|
|
+ <FormItem :label="$t('learnActivity.mark.allocation')" class="setting-item-wrap" prop="mode">
|
|
|
<RadioGroup v-model="setting.mode" style="color:white">
|
|
|
- <Radio label="full">按人分配</Radio>
|
|
|
- <Radio disabled label="qu" style="margin-left:20px">按题分配 (开发中)</Radio>
|
|
|
+ <Radio label="full">
|
|
|
+ {{$t('learnActivity.mark.allocationByStu')}}
|
|
|
+ </Radio>
|
|
|
+ <Radio disabled label="qu" style="margin-left:20px">
|
|
|
+ {{$t('learnActivity.mark.allocationByQu')}}(开发中)
|
|
|
+ </Radio>
|
|
|
</RadioGroup>
|
|
|
</FormItem>
|
|
|
</Col>
|
|
|
<!-- 阅卷次数 -->
|
|
|
<Col :md="24" :lg="24" :xl="12" :xxl="8">
|
|
|
- <FormItem label="阅卷次数" class="setting-item-wrap" prop="num">
|
|
|
+ <FormItem :label="$t('learnActivity.mark.markNum')" class="setting-item-wrap" prop="num">
|
|
|
<!-- <InputNumber :max="2" class="attr-value-wrap" :min="1" v-model="setting.point"></InputNumber> -->
|
|
|
<RadioGroup v-model="setting.num" style="color:white">
|
|
|
- <Radio :label="1">单评制</Radio>
|
|
|
- <Radio disabled :label="2" style="margin-left:0px">双评制 (开发中)</Radio>
|
|
|
- <Radio disabled :label="3" style="margin-left:0px">三评制 (开发中)</Radio>
|
|
|
+ <Radio :label="1">{{$t('learnActivity.mark.markNum1')}}</Radio>
|
|
|
+ <Radio disabled :label="2" style="margin-left:0px">{{$t('learnActivity.mark.markNum2')}}(开发中)</Radio>
|
|
|
+ <Radio disabled :label="3" style="margin-left:0px">{{$t('learnActivity.mark.markNum3')}}(开发中)</Radio>
|
|
|
</RadioGroup>
|
|
|
</FormItem>
|
|
|
</Col>
|
|
|
- <!-- 启用异常处理 -->
|
|
|
- <!-- <Col :md="24" :lg="24" :xl="12" :xxl="8">
|
|
|
- <FormItem label="异常申报" class="setting-item-wrap" prop="isErr">
|
|
|
- <RadioGroup v-model="setting.isErr" style="color:white">
|
|
|
- <Radio :label="1">是</Radio>
|
|
|
- <Radio :label="0" style="margin-left:20px">否</Radio>
|
|
|
- </RadioGroup>
|
|
|
- </FormItem>
|
|
|
- </Col> -->
|
|
|
<!-- 启用仲裁 -->
|
|
|
<Col :md="24" :lg="24" :xl="12" :xxl="8" v-show="setting.num > 1">
|
|
|
- <FormItem label="启用仲裁" class="setting-item-wrap" prop="isArb">
|
|
|
+ <FormItem :label="$t('learnActivity.mark.openArb')" class="setting-item-wrap" prop="isArb">
|
|
|
<RadioGroup v-model="setting.isArb" style="color:white">
|
|
|
- <Radio :label="1">是</Radio>
|
|
|
- <Radio :label="0" style="margin-left:20px">否</Radio>
|
|
|
+ <Radio :label="1">{{$t('learnActivity.mark.yes')}}</Radio>
|
|
|
+ <Radio :label="0" style="margin-left:20px">{{$t('learnActivity.mark.no')}}</Radio>
|
|
|
</RadioGroup>
|
|
|
</FormItem>
|
|
|
</Col>
|
|
@@ -108,7 +103,9 @@
|
|
|
<PersonalPhoto :name="row.name" :picture="row.picture" />
|
|
|
</template>
|
|
|
<template slot-scope="{ row,index }" slot="action">
|
|
|
- <Button v-show="setting.mode == 'qu'" type="info" size="small" style="margin-right:10px" @click="setQuStatus = true">题号</Button>
|
|
|
+ <Button v-show="setting.mode == 'qu'" type="info" size="small" style="margin-right:10px" @click="setQuStatus = true">
|
|
|
+ {{$t('learnActivity.mark.quIndex')}}
|
|
|
+ </Button>
|
|
|
<Button type="error" size="small" @click="removeMarker(row,index)">{{$t('learnActivity.mark.remove')}}</Button>
|
|
|
</template>
|
|
|
<template slot-scope="{ row }" slot="count">
|
|
@@ -116,11 +113,11 @@
|
|
|
</template>
|
|
|
<template slot-scope="{ row }" slot="qu">
|
|
|
<span :style="{color:setting.mode == 'full' ? '#2db7f5' : row.qu.length ? '#FFFFFF' : '#ed4014'}">
|
|
|
- {{setting.mode == 'full' ? '所有题目' : row.qu.length ? row.qu.join(',') : '暂未设置'}}
|
|
|
+ {{setting.mode == 'full' ? $t('learnActivity.mark.allQu') : row.qu.length ? row.qu.join(',') : $t('learnActivity.mark.noSet')}}
|
|
|
</span>
|
|
|
</template>
|
|
|
</Table>
|
|
|
- <span class="add-tea-btn" @click="addTeaStatus = true">
|
|
|
+ <span class="add-tea-btn" v-if="$access.can('admin.*|schoolAc-upd')" @click="addTeaStatus = true">
|
|
|
<Icon type="md-add" />
|
|
|
{{$t('learnActivity.mark.addTea')}}
|
|
|
</span>
|
|
@@ -141,7 +138,7 @@
|
|
|
</template>
|
|
|
</Table>
|
|
|
</Modal>
|
|
|
- <Modal v-model="setQuStatus" title="题号设置" class-name="dark-iview-modal dark-iview-table" @on-ok="okSetQu" :width="1000">
|
|
|
+ <Modal v-model="setQuStatus" :title="$t('learnActivity.mark.quNoSet')" class-name="dark-iview-modal dark-iview-table" @on-ok="okSetQu" :width="1000">
|
|
|
|
|
|
</Modal>
|
|
|
</div>
|
|
@@ -174,31 +171,28 @@ export default {
|
|
|
isSetting: false,
|
|
|
ruleValidate: {
|
|
|
startTime: [
|
|
|
- { required: true, type: 'number', message: '请设置阅卷开始时间', trigger: 'blur' }
|
|
|
+ { required: true, type: 'number', message: this.$t('learnActivity.mark.startErr'), trigger: 'blur' }
|
|
|
],
|
|
|
endTime: [
|
|
|
- { required: true, type: 'number', message: '请设置阅卷结束时间', trigger: 'blur' }
|
|
|
+ { required: true, type: 'number', message: this.$t('learnActivity.mark.endErr'), trigger: 'blur' }
|
|
|
],
|
|
|
mode: [
|
|
|
- { required: true, message: '请设置分配方式', trigger: 'change' }
|
|
|
+ { required: true, message: this.$t('learnActivity.mark.typeErr'), trigger: 'change' }
|
|
|
],
|
|
|
num: [
|
|
|
- { required: true, type: 'number', message: '请设置阅卷次数', trigger: 'change' }
|
|
|
- ],
|
|
|
- isErr: [
|
|
|
- { required: true, type: 'number', message: '请设置是否有异常申报功能', trigger: 'change' }
|
|
|
- ],
|
|
|
- isArb: [
|
|
|
- { required: true, type: 'number', message: '请设置分差超过1/6的题目是否需要仲裁', trigger: 'change' }
|
|
|
- ],
|
|
|
- arb: [
|
|
|
- { required: true, type: 'array', message: '请设置仲裁老师', trigger: 'change' }
|
|
|
- ],
|
|
|
- err: [
|
|
|
- { required: true, type: 'array', message: '请设置异常处理老师', trigger: 'change' }
|
|
|
+ { required: true, type: 'number', message: this.$t('learnActivity.mark.numErr'), trigger: 'change' }
|
|
|
],
|
|
|
+ // isArb: [
|
|
|
+ // { required: true, type: 'number', message: '请设置分差超过1/6的题目是否需要仲裁', trigger: 'change' }
|
|
|
+ // ],
|
|
|
+ // arb: [
|
|
|
+ // { required: true, type: 'array', message: '请设置仲裁老师', trigger: 'change' }
|
|
|
+ // ],
|
|
|
+ // err: [
|
|
|
+ // { required: true, type: 'array', message: '请设置异常处理老师', trigger: 'change' }
|
|
|
+ // ],
|
|
|
markers: [
|
|
|
- { required: true, type: 'array', message: '请设置阅卷老师', trigger: 'change' }
|
|
|
+ { required: true, type: 'array', message: this.$t('learnActivity.mark.markerErr'), trigger: 'change' }
|
|
|
],
|
|
|
},
|
|
|
setQuStatus: false,
|
|
@@ -291,7 +285,7 @@ export default {
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
- title: '批阅题号',
|
|
|
+ title: this.$t('learnActivity.mark.markQuNo'),
|
|
|
slot: 'qu',
|
|
|
align: 'center'
|
|
|
},
|
|
@@ -322,15 +316,20 @@ export default {
|
|
|
methods: {
|
|
|
//移除阅卷老师
|
|
|
removeMarker(row, index) {
|
|
|
- this.$Modal.confirm({
|
|
|
- title: '移除老师',
|
|
|
- content: `是否确认移除${row.name}?`,
|
|
|
- okText: '是',
|
|
|
- cancelText: '否',
|
|
|
- onOk: () => {
|
|
|
- this.markers.splice(index, 1)
|
|
|
- }
|
|
|
- })
|
|
|
+ if (this.$access.can('admin.*|schoolAc-upd')) {
|
|
|
+ this.$Modal.confirm({
|
|
|
+ title: this.$t('learnActivity.mark.rmvTitle'),
|
|
|
+ content: `${this.$t('learnActivity.mark.rmvContent')}${row.name}?`,
|
|
|
+ okText: this.$t('learnActivity.mark.yes'),
|
|
|
+ cancelText: this.$t('learnActivity.mark.no'),
|
|
|
+ onOk: () => {
|
|
|
+ this.markers.splice(index, 1)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$Message.error(this.$t('system.authErr'))
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
},
|
|
|
//确认设置阅卷题号
|
|
@@ -364,7 +363,7 @@ export default {
|
|
|
this.$refs['baseSetting'].validate((valid) => {
|
|
|
if (!valid) {
|
|
|
full = false
|
|
|
- this.$Message.error('请完成阅卷基础设置')
|
|
|
+ this.$Message.error(this.$t('learnActivity.mark.baseErr'))
|
|
|
}
|
|
|
})
|
|
|
if (!full) return
|
|
@@ -372,7 +371,7 @@ export default {
|
|
|
this.$refs['teacherSet'].validate((valid) => {
|
|
|
if (!valid) {
|
|
|
full = false
|
|
|
- this.$Message.error('阅卷和相关老师设置')
|
|
|
+ this.$Message.error(this.$t('learnActivity.mark.teacherErr'))
|
|
|
}
|
|
|
})
|
|
|
if (!full) return
|
|
@@ -381,10 +380,10 @@ export default {
|
|
|
this.setting.code = this.$store.state.userInfo.schoolCode
|
|
|
this.$api.mark.UpsertMarkSet(this.setting).then(
|
|
|
res => {
|
|
|
- this.$Message.success('保存成功!')
|
|
|
+ this.$Message.success(this.$t('learnActivity.mark.saveOk'))
|
|
|
},
|
|
|
err => {
|
|
|
- this.$Message.error('保存失败!')
|
|
|
+ this.$Message.error(this.$t('learnActivity.mark.saveErr'))
|
|
|
}
|
|
|
)
|
|
|
},
|
|
@@ -483,7 +482,7 @@ export default {
|
|
|
if (this.evInfo.id) {
|
|
|
this.findSettingInfo()
|
|
|
} else {
|
|
|
- this.$Message.warning('暂无评测id')
|
|
|
+ this.$Message.warning('no exam id!')
|
|
|
}
|
|
|
|
|
|
},
|