This commit is contained in:
熊成强 2020-11-06 16:22:21 +08:00
parent 1342fb28a9
commit e3cd9db93c
3 changed files with 18 additions and 8 deletions

View File

@ -127,9 +127,9 @@
departmentName:i.departName
}"/>
<div class="chooseManage-item-center">
<el-tag size="mini" type="warning">未确认</el-tag>
<!-- <el-tag>已跳过</el-tag>
<el-tag type="success">已确认</el-tag> -->
<el-tag v-if='i.status===0' size="mini" type="warning">未确认</el-tag>
<el-tag v-if='i.status===4' size="mini" >已跳过</el-tag>
<el-tag v-if='i.status===1' size="mini" type="success">已确认</el-tag>
</div>
<div>
<UseButton :info='i' :formList='formList' :tableInfo.sync='tableInfo'/>
@ -186,7 +186,7 @@ export default {
this.$loadingStart()
let res = await apiResultGetDetail({ id })
this.$loadingEnd()
if (res.code !== 200) return
if (res.code !== 200) return this.$message.error(res.msg)
this.obj = res.data
},
handleRight (item) {

View File

@ -252,12 +252,20 @@ export default {
}
const a = this.$personlGetForm(res.staffs)
const c = this.$departGetForm(res.deps)
this.form.staffIds = a.value
this.form.depIds = c.value
const obj = {
staffIds: a.value,
depIds: c.value,
id: this.$route.query.copy ? '' : res.id,
name: this.$route.query.copy ? '' : res.name
}
// this.form.staffIds = a.value
// this.form.depIds = c.value
this.personnelList = a
this.showData = c
this.form.id = this.$route.query.copy ? '' : res.id
this.form.name = this.$route.query.copy ? '' : res.name
this.form = obj
// this.form.id = this.$route.query.copy ? '' : res.id
// this.form.name = this.$route.query.copy ? '' : res.name
console.log('this.form: ', this.form)
} catch (error) {
this.$message.error(error.msg)
}
@ -292,6 +300,7 @@ export default {
form: {
deep: true,
handler (n, o) {
console.log('n: ', n)
this.$emit('update:basisForm', n)
}
}

View File

@ -74,6 +74,7 @@ export default {
if (!this.basisForm.name) {
return this.$message.error('请输入考评组名称')
}
console.log('!this.basisForm: ', this.basisForm)
if (!this.basisForm.depIds && !this.basisForm.staffIds) {
return this.$message.error('请选择被考核人员')
}