Commit 1cf7e50b authored by 徐俊's avatar 徐俊

xujun

parent d63c7b26
...@@ -5,7 +5,10 @@ ...@@ -5,7 +5,10 @@
<a-input placeholder="项目名称" v-model="searchForm.projName" :maxLength="100" style="width: 160px" /> <a-input placeholder="项目名称" v-model="searchForm.projName" :maxLength="100" style="width: 160px" />
</a-form-item> </a-form-item>
<a-form-item> <a-form-item>
<a-input placeholder="项目分组" v-model="searchForm.groupId" :maxLength="100" style="width: 160px" /> <a-select v-if="groupList" default-value="" placeholder="项目分组" v-model="searchForm.groupId" style="width: 160px" @change="groupChange">
<a-select-option v-for="item in groupList" :key="item.groupId" :value="item.groupId">{{ item.groupName }}</a-select-option>
</a-select>
<!-- <a-input placeholder="项目分组" v-model="searchForm.groupId" :maxLength="100" style="width: 160px" /> -->
</a-form-item> </a-form-item>
<a-form-item> <a-form-item>
<base-select v-model="searchForm.assignYear" :title="'年度'" :type="8" :isAll="true" :width="160" /> <base-select v-model="searchForm.assignYear" :title="'年度'" :type="8" :isAll="true" :width="160" />
...@@ -74,13 +77,21 @@ import projectView from '@/views/report/project/components/projectView' ...@@ -74,13 +77,21 @@ import projectView from '@/views/report/project/components/projectView'
export default { export default {
name: 'assignDetail', name: 'assignDetail',
props: {
groupList: {
type: Array,
default: () => {
return [{ groupId: "", groupName: "--请选择分组--" }]
}
},
},
components: { components: {
baseSelect, projectView baseSelect, projectView
}, },
data () { data () {
return { return {
form: this.$form.createForm(this, { name: 'assign_search' }), form: this.$form.createForm(this, { name: 'assign_search' }),
searchForm: { projName: null, groupId: null, assignYear: null, appUnitName: null, appPersonName: null, personName: null, auditState: "", projType: getType() }, searchForm: { projName: null, groupId: "", assignYear: null, appUnitName: null, appPersonName: null, personName: null, auditState: "", projType: getType() },
tableData: [], tableData: [],
columns: [ columns: [
{ title: "项目名称", scopedSlots: { customRender: 'projName' }, ellipsis: true, width: 300, }, { title: "项目名称", scopedSlots: { customRender: 'projName' }, ellipsis: true, width: 300, },
...@@ -119,6 +130,7 @@ export default { ...@@ -119,6 +130,7 @@ export default {
if (data) { if (data) {
this.searchForm.assignYear = data.year this.searchForm.assignYear = data.year
this.getListByPage() this.getListByPage()
console.log(this.groupList)
} }
}).catch(() => { }) }).catch(() => { })
}, },
...@@ -159,6 +171,9 @@ export default { ...@@ -159,6 +171,9 @@ export default {
this.pagination.pageIndex = 1 this.pagination.pageIndex = 1
this.getListByPage() this.getListByPage()
}, },
groupChange(value) {
this.searchForm.groupId = value
},
recordClick (record, type) { recordClick (record, type) {
if (type === 'view') { if (type === 'view') {
this.projId = record.projId this.projId = record.projId
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<assign-group-expert-view v-model="evaluationId" @close="closeAssignExpertView" /> <assign-group-expert-view v-model="evaluationId" @close="closeAssignExpertView" />
</a-modal> </a-modal>
<a-modal v-model="assignDetailVisible" title="分配明细" width="90%" :dialog-style="{ top: '5%' }" :footer="null" destroyOnClose> <a-modal v-model="assignDetailVisible" title="分配明细" width="90%" :dialog-style="{ top: '5%' }" :footer="null" destroyOnClose>
<assign-detail /> <assign-detail :groupList="groupList" />
</a-modal> </a-modal>
<a-modal v-model="projectIntoGroupVisible" :title="projectIntoGroupTitle" width="70%" :dialog-style="{ top: '15%' }" :maskClosable="false" destroyOnClose> <a-modal v-model="projectIntoGroupVisible" :title="projectIntoGroupTitle" width="70%" :dialog-style="{ top: '15%' }" :maskClosable="false" destroyOnClose>
<template slot="footer"> <template slot="footer">
...@@ -284,6 +284,11 @@ export default { ...@@ -284,6 +284,11 @@ export default {
this.groupEditVisible = true this.groupEditVisible = true
}, },
onaAssignDetail () { onaAssignDetail () {
this.groupList = []
this.groupList.push({ groupId: "", groupName: "--请选择分组--" })
this.tableData2.forEach(e => {
this.groupList.push({ groupId: e.id, groupName: e.groupName })
})
this.assignDetailVisible = true this.assignDetailVisible = true
}, },
closeWindow (value) { closeWindow (value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment