yujialong 2 months ago
parent 301a77ac63
commit 6aa907d14b
  1. 2
      src/pages/allocationReview/list/index.vue
  2. 20
      src/pages/allocationReview/list/setup.vue
  3. 10
      src/pages/allocationReview/records/allocation.vue
  4. 4
      src/pages/allocationReview/records/index.vue
  5. 64
      src/pages/allocationReview/records/people.vue

@ -305,7 +305,7 @@ export default {
i: 1, i: 1,
url: `${this.$route.path}?${Qs.stringify(this.filter)}&page=${this.page}&pageSize=${this.pageSize}` url: `${this.$route.path}?${Qs.stringify(this.filter)}&page=${this.page}&pageSize=${this.pageSize}`
}) })
localStorage.setItem('review_row', JSON.stringify(row)) localStorage.setItem('reviewRow', JSON.stringify(row))
this.$router.push(`records?competitionId=${row.id}&stageId=${row.stageId}`) this.$router.push(`records?competitionId=${row.id}&stageId=${row.stageId}`)
}, },
} }

@ -36,7 +36,7 @@
</el-form-item> </el-form-item>
<el-form-item prop="name" label="每题的评阅人数"> <el-form-item prop="name" label="每题的评阅人数">
<el-input class="hide-spin" style="width: 200px;" placeholder="请输入" type="number" <el-input class="hide-spin" style="width: 200px;" placeholder="请输入" type="number"
v-model.number="form.reviewersPerQuestion" /> v-model.number="form.reviewersPerQuestion" />&emsp;<span class="fs-12">人工判分题和整体评分表的评阅人数</span>
</el-form-item> </el-form-item>
<el-form-item prop="name" label="人工判分题最终得分"> <el-form-item prop="name" label="人工判分题最终得分">
<el-radio-group v-model="form.scoreAggregationRule"> <el-radio-group v-model="form.scoreAggregationRule">
@ -65,13 +65,14 @@
<el-form class="info" label-width="110px" disabled> <el-form class="info" label-width="110px" disabled>
<h6>答卷信息</h6> <h6>答卷信息</h6>
<el-form-item prop="name" label="答卷信息"> <el-form-item prop="name" label="答卷类型">
<el-radio v-for="(item, i) in types" v-model="row.method" :key="i" :label="item.id">{{ item.name <el-radio v-for="(item, i) in types" v-model="row.method" :key="i" :label="item.id">{{ item.name
}}</el-radio> }}</el-radio>
</el-form-item> </el-form-item>
<el-form-item prop="name" label="题目判分类型"> <el-form-item prop="name" label="判分类型">
<el-checkbox v-model="row.hasAutoScoreType" :true-label="1">自动判分题</el-checkbox> <el-checkbox v-model="row.hasAutoScoreType" :true-label="1">自动判分题</el-checkbox>
<el-checkbox v-model="row.hasManualScoreType" :true-label="1">人工判分题</el-checkbox> <el-checkbox v-model="row.hasManualScoreType" :true-label="1">人工判分题</el-checkbox>
<el-checkbox v-model="row.hasManualScoreType1" :true-label="1">整体评分表评分</el-checkbox>
</el-form-item> </el-form-item>
<el-form-item prop="name" label="成绩是否公布"> <el-form-item prop="name" label="成绩是否公布">
<el-radio v-model="row.resultsDetails" :label="0"></el-radio> <el-radio v-model="row.resultsDetails" :label="0"></el-radio>
@ -198,6 +199,7 @@ export default {
await this.$post(this.api.evaluationSave, form) await this.$post(this.api.evaluationSave, form)
this.submiting = false this.submiting = false
if (this.$route.path === '/allocationReview/list') {
try { try {
await this.$confirm('保存成功!', '提示', { await this.$confirm('保存成功!', '提示', {
confirmButtonText: '前往任务分配', confirmButtonText: '前往任务分配',
@ -205,15 +207,21 @@ export default {
type: 'warning', type: 'warning',
closeOnClickModal: false, closeOnClickModal: false,
}) })
this.$router.push(`records`) this.$router.push(`records?competitionId=${row.id}&stageId=${row.stageId}`)
} catch (e) { } catch (e) {
this.$parent.initData() this.close()
this.setupVisible = false }
} else {
this.close()
} }
} catch (e) { } catch (e) {
this.submiting = false this.submiting = false
} }
}, },
close () {
this.$parent.initData()
this.setupVisible = false
},
// //
closeDia () { closeDia () {
this.$emit('update:visible', false) this.$emit('update:visible', false)

@ -17,9 +17,9 @@
</ul> </ul>
</div> </div>
<!-- <People /> --> <People />
<div> <!-- <div>
<div class="flex a-center m-b-10"> <div class="flex a-center m-b-10">
<h6 class="page-name m-r-10" style="margin-bottom: 0">选择评阅人员</h6> <h6 class="page-name m-r-10" style="margin-bottom: 0">选择评阅人员</h6>
<el-button type="primary" size="mini" @click="batchAlloc">批量分配</el-button> <el-button type="primary" size="mini" @click="batchAlloc">批量分配</el-button>
@ -33,9 +33,9 @@
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-edit-outline"></i> <i class="el-icon-edit-outline"></i>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div> -->
</div> </div>
<div class="btns"> <div class="btns">

@ -153,7 +153,7 @@ export default {
}, },
}, },
mounted () { mounted () {
const row = localStorage.getItem('review_row') const row = localStorage.getItem('reviewRow')
if (row) this.curRow = JSON.parse(row) if (row) this.curRow = JSON.parse(row)
const { referrer1 } = this.$store.state.user const { referrer1 } = this.$store.state.user
this.crumbs = [ this.crumbs = [
@ -232,7 +232,7 @@ export default {
}, },
// //
clearprovince () { clearprovince () {
this.filter.cityId = '', this.filter.cityId = ''
this.filter.realSchoolId = '' this.filter.realSchoolId = ''
}, },
// //

@ -9,7 +9,7 @@
</el-radio-group> </el-radio-group>
<el-tree :data="nakadais" default-expand-all ref="nakadais" node-key="id" highlight-current <el-tree :data="nakadais" default-expand-all ref="nakadais" node-key="id" highlight-current
:expand-on-click-node="false" @node-click="getNakadaiUser" :expand-on-click-node="false" @node-click="depClick"
:props="{ children: 'children', label: 'organizationName', isLeaf: 'leaf' }"></el-tree> :props="{ children: 'children', label: 'organizationName', isLeaf: 'leaf' }"></el-tree>
</div> </div>
<div class="item"> <div class="item">
@ -82,6 +82,7 @@ export default {
data () { data () {
return { return {
nakadais: [], nakadais: [],
curDep: {},
searchTimer: null, searchTimer: null,
userType: 0, userType: 0,
@ -106,11 +107,12 @@ export default {
}, },
}, },
mounted () { mounted () {
this.getNakadais() this.getNakadaiDep()
this.getNakadaiUser()
}, },
methods: { methods: {
// //
async getNakadais () { async getNakadaiDep () {
const res = await this.$post(this.api.treeListArch) const res = await this.$post(this.api.treeListArch)
const list = res.treeList const list = res.treeList
this.handleList(list) this.handleList(list)
@ -126,53 +128,29 @@ export default {
} }
}) })
}, },
async getNakadaiUser (data) { //
console.log(11, data) depClick (data) {
this.curDep = data
this.userCheck = false
this.getNakadaiUser()
},
//
async getNakadaiUser () {
const { page } = await this.$post(this.api.staffList, { const { page } = await this.$post(this.api.staffList, {
type: 1, type: 1,
staffArchitectureId: data.id || '', staffArchitectureId: this.curDep.id || '',
keyWord: this.userKeyword, keyWord: this.userKeyword,
pageNum: 1, pageNum: 1,
pageSize: 1000 pageSize: 1000
}) })
this.users = page.records const list = page.records
}, const { checked } = this
nakadaiClick () { list.forEach(e => {
e.check = !!checked.find(n => n.userId === e.userId)
},
//
async getQuesBank () {
try {
const type = this.quesBankTypeVal
const res = await this.$post(this.api.questionBankList, {
status: 1,
pageNum: 1,
pageSize: 1000,
questionCategoryId: type.length ? type[type.length - 1] : '',
name: this.quesBankKeyword
}) })
this.quesBanks = res.message.records this.users = list
this.totalQuesBank = res.message.total
} catch (e) { }
},
//
questionBankClick (item) {
this.curQuesBank = item
this.userCheck = false
this.getKnowledgeType()
this.getKnowledge()
}, },
//
handleList (list) {
list.map(e => {
if (e.children && e.children.length) {
this.handleList(e.children)
} else {
delete e.children
}
})
},
// //
userAllCheckChange (val) { userAllCheckChange (val) {
this.users.map(e => { this.users.map(e => {
@ -195,10 +173,6 @@ export default {
cur >= 0 && this.checked.splice(cur, 1) cur >= 0 && this.checked.splice(cur, 1)
} }
}, },
//
handleQuesList () {
this.list = _.cloneDeep(this.$parent.form.paperOutline)
},
// //
checkedAllCheckChange (val) { checkedAllCheckChange (val) {
this.checked.map(e => e.check = val) this.checked.map(e => e.check = val)

Loading…
Cancel
Save