yujialong 2 months ago
parent 730fb9ddd3
commit ba51245493
  1. 1
      src/api/index.js
  2. 2
      src/pages/allocationReview/list/index.vue
  3. 4
      src/pages/allocationReview/records/allocation.vue
  4. 25
      src/pages/allocationReview/records/index.vue
  5. 31
      src/pages/allocationReview/records/people.vue
  6. 2
      src/pages/myReview/list/index.vue
  7. 11
      src/pages/myReview/theoryReview/index.vue

@ -27,4 +27,5 @@ export default {
setComments: `/nakadai/evaluation/setComments`, setComments: `/nakadai/evaluation/setComments`,
getTheLabReportIdUpAndDown: `/nakadai/evaluation/getTheLabReportIdUpAndDown`, getTheLabReportIdUpAndDown: `/nakadai/evaluation/getTheLabReportIdUpAndDown`,
deleteComments: `/nakadai/evaluation/deleteComments`, deleteComments: `/nakadai/evaluation/deleteComments`,
assignedPersonnelList: `/nakadai/evaluationAssignments/assignedPersonnelList`,
} }

@ -200,7 +200,7 @@ export default {
this.loading = true this.loading = true
const { pageList } = await this.$post(this.api.reviewSettingsList, { const { pageList } = await this.$post(this.api.reviewSettingsList, {
...this.filter, ...this.filter,
isTimed: this.month === 0 ? 1 : 0, isTimed: this.month === 0 ? 0 : '',
pageNum: this.page, pageNum: this.page,
pageSize: this.pageSize, pageSize: this.pageSize,
platformSource: 0, platformSource: 0,

@ -20,7 +20,7 @@
</div> </div>
<div v-show="taskType === 'whole_report'"> <div v-show="taskType === 'whole_report'">
<People ref="people" /> <People ref="people" :key="peopleKey" :row.sync="row" :curRecords.sync="curRecords" />
<Outline :outlines.sync="outlines" /> <Outline :outlines.sync="outlines" />
</div> </div>
@ -111,6 +111,7 @@ export default {
submiting: false, submiting: false,
peopleVisible: false, peopleVisible: false,
peopleKey: 1,
outlineVisible: false, outlineVisible: false,
curOutlines: [], curOutlines: [],
}; };
@ -135,6 +136,7 @@ export default {
// this.checkAllQues = true // this.checkAllQues = true
const el = this.$refs.outline const el = this.$refs.outline
// el && el.setCheckedKeys(this.allQuesIds) // el && el.setCheckedKeys(this.allQuesIds)
this.peopleKey++
this.getOutline() this.getOutline()
}, },
// //

@ -28,14 +28,14 @@
</li> </li>
<li> <li>
<label>评阅状态</label> <label>评阅状态</label>
<el-select v-model="filter.status" clearable placeholder="请选择评阅状态" @change="initData"> <el-select v-model="filter.evaluationStatus" clearable placeholder="请选择评阅状态" @change="initData">
<el-option v-for="(item, i) in status" :key="i" :label="item.name" :value="item.id"></el-option> <el-option v-for="(item, i) in evaluationStatus" :key="i" :value="item.name"></el-option>
</el-select> </el-select>
</li> </li>
<li> <li>
<label>是否完成分配</label> <label>是否完成分配</label>
<el-select v-model="filter.status" clearable placeholder="请选择是否完成分配" @change="initData"> <el-select v-model="filter.isDistribution" clearable placeholder="请选择是否完成分配" @change="initData">
<el-option v-for="(item, i) in status" :key="i" :label="item.name" :value="item.id"></el-option> <el-option v-for="(item, i) in distributions" :key="i" :label="item.name" :value="item.id"></el-option>
</el-select> </el-select>
</li> </li>
<li> <li>
@ -124,14 +124,22 @@ export default {
provinces: [], provinces: [],
cities: [], cities: [],
schools: [], schools: [],
status: [ evaluationStatus: [
{
name: '待评阅'
},
{
name: '已评阅'
},
],
distributions: [
{ {
id: 1, id: 1,
name: '启用' name: ''
}, },
{ {
id: 0, id: 0,
name: '禁用' name: ''
}, },
], ],
date: [], date: [],
@ -139,7 +147,8 @@ export default {
cityId: '', cityId: '',
provinceId: '', provinceId: '',
realSchoolId: '', realSchoolId: '',
status: '', evaluationStatus: '',
isDistribution: '',
keyword: '', keyword: '',
}, },
list: [], list: [],

@ -86,7 +86,7 @@ import Util from '@/libs/util'
import _ from 'lodash' import _ from 'lodash'
import Decimal from 'decimal.js' import Decimal from 'decimal.js'
export default { export default {
props: ['dia'], props: ['dia', 'row', 'curRecords'],
data () { data () {
return { return {
nakadaiDeps: [], nakadaiDeps: [],
@ -116,9 +116,33 @@ export default {
}, },
mounted () { mounted () {
this.getNakadaiDep() this.getNakadaiDep()
this.getNakadaiUser() this.users.length ? this.getDetail(1) : this.getNakadaiUser(1)
}, },
methods: { methods: {
//
async getDetail (init) {
if (init === 1) {
try {
const { row, curRecords } = this
if (curRecords.length === 1) {
this.checked = []
const res = await this.$post(`${this.api.assignedPersonnelList}?evaluationId=${row.evaluationId}&reportId=${curRecords[0].reportId}`)
const ids = res.accountIds
if (ids && ids.length) {
const { users, checked } = this
ids.forEach(e => {
const cur = users.find(n => n.accountId === e)
if (cur) {
cur.check = true
checked.push(cur)
}
})
}
}
this.loaded = true
} catch (e) { }
}
},
// //
async getNakadaiDep () { async getNakadaiDep () {
const res = await this.$post(this.api.treeListArch) const res = await this.$post(this.api.treeListArch)
@ -154,7 +178,7 @@ export default {
this.getNakadaiUser() this.getNakadaiUser()
}, },
// //
async getNakadaiUser () { async getNakadaiUser (init) {
const { page } = await this.$post(this.api.staffList, { const { page } = await this.$post(this.api.staffList, {
type: 1, type: 1,
staffArchitectureId: this.curDep.id || '', staffArchitectureId: this.curDep.id || '',
@ -168,6 +192,7 @@ export default {
e.check = !!checked.find(n => n.accountId === e.accountId) e.check = !!checked.find(n => n.accountId === e.accountId)
}) })
this.users = list this.users = list
this.getDetail(init)
}, },
// //

@ -168,7 +168,7 @@ export default {
this.loading = true this.loading = true
const { page } = await this.$post(this.api.myReviewTask, { const { page } = await this.$post(this.api.myReviewTask, {
...this.filter, ...this.filter,
isTimed: this.month === 0 ? 1 : 0, isTimed: this.month === 0 ? 0 : '',
pageNum: this.page, pageNum: this.page,
pageSize: this.pageSize, pageSize: this.pageSize,
}) })

@ -355,7 +355,7 @@ export default {
} else if (type === 'essay') { // } else if (type === 'essay') { //
if (!n.userScore) n.userScore = '' if (!n.userScore) n.userScore = ''
if (isNaN(n.reviewScore)) n.reviewScore = '' if (isNaN(n.reviewScore)) n.reviewScore = ''
this.handleEssayScore(n) this.handleIsCorrect(n)
} }
n.originUserScore = n.reviewScore n.originUserScore = n.reviewScore
n.newComments = n.comments || '' n.newComments = n.comments || ''
@ -376,8 +376,8 @@ export default {
this.loading = false this.loading = false
} }
}, },
// //
handleEssayScore (n) { handleIsCorrect (n) {
n.isCorrect = n.reviewScore === '' ? 4 : (n.reviewScore === n.questionScore ? 1 : n.reviewScore ? 3 : 2) // reviewScore 0 n.isCorrect = n.reviewScore === '' ? 4 : (n.reviewScore === n.questionScore ? 1 : n.reviewScore ? 3 : 2) // reviewScore 0
}, },
scrollToSmooth (position, duration) { scrollToSmooth (position, duration) {
@ -439,7 +439,7 @@ export default {
reviewScore: ques.reviewScore, reviewScore: ques.reviewScore,
}]) }])
ques.originUserScore = ques.reviewScore ques.originUserScore = ques.reviewScore
this.handleEssayScore(ques) this.handleIsCorrect(ques)
Util.successMsg('保存成功') Util.successMsg('保存成功')
}, },
// //
@ -455,6 +455,7 @@ export default {
jsonText: ques.jsonText jsonText: ques.jsonText
}]) }])
ques.originUserScore = ques.reviewScore ques.originUserScore = ques.reviewScore
this.handleIsCorrect(ques)
Util.successMsg('保存成功') Util.successMsg('保存成功')
}, },
// //
@ -541,7 +542,7 @@ export default {
reviewScore: n.reviewScore, reviewScore: n.reviewScore,
}) })
n.originUserScore = n.reviewScore n.originUserScore = n.reviewScore
this.handleEssayScore(n) this.handleIsCorrect(n)
}) })
}) })
if (params.length) await this.$post(this.api.reviewPaper, params) if (params.length) await this.$post(this.api.reviewPaper, params)

Loading…
Cancel
Save