Commit 7cd68ff5 authored by wangxl's avatar wangxl
parents a9821b36 0e2a854d
...@@ -102,7 +102,8 @@ export default { ...@@ -102,7 +102,8 @@ export default {
tableData: [], tableData: [],
columns: [ columns: [
{ title: "项目名称", scopedSlots: { customRender: 'projName' } }, { title: "项目名称", scopedSlots: { customRender: 'projName' } },
{ title: "项目编号", dataIndex: "projNo", align: 'center' }, //{ title: "项目编号", dataIndex: "projNo", align: 'center' },
{ title: '申请编号', dataIndex: 'appNo', align: 'center' },
{ title: "开始时间", dataIndex: "startDate", align: 'center' }, { title: "开始时间", dataIndex: "startDate", align: 'center' },
{ title: "结束时间", dataIndex: "endDate", align: 'center' }, { title: "结束时间", dataIndex: "endDate", align: 'center' },
{ title: "申报年度", dataIndex: "reportYear", align: 'center' }, { title: "申报年度", dataIndex: "reportYear", align: 'center' },
......
<template> <template>
<div> <div>
<a-select v-model="selected" showSearch placeholder="学科代码或学科名称" :default-active-first-option="false" <a-select placeholder="输入学科代码名称" :default-active-first-option="false" showSearch
:show-arrow="false" :show-arrow="false" :filter-option="false" @search="onSearch" @change="handleChange" :style="{width: width + 'px'}">
:filter-option="false" @search="onSearch" @change="handleChange" :style="{width: width + 'px'}">
<a-select-option v-for="item in selectArray" :key="item.key" :value="item.key"> <a-select-option v-for="item in selectArray" :key="item.key" :value="item.key">
{{ item.title }} {{ item.title }}
</a-select-option> </a-select-option>
...@@ -30,7 +29,7 @@ export default { ...@@ -30,7 +29,7 @@ export default {
data() { data() {
return { return {
selectArray: [], selectArray: [],
selected: '', selected: null,
defaultValue: { defaultValue: {
title: "--请选择" + this.title + "--", title: "--请选择" + this.title + "--",
key: "", key: "",
...@@ -41,8 +40,7 @@ export default { ...@@ -41,8 +40,7 @@ export default {
}; };
}, },
created() { created() {
this.se //this.loadValue()
this.loadValue()
}, },
methods: { methods: {
onSearch(value) { onSearch(value) {
...@@ -95,11 +93,10 @@ export default { ...@@ -95,11 +93,10 @@ export default {
value: { value: {
handler (value) { handler (value) {
if (!!!value) if (!!!value)
this.selected = '' this.selected = null
else else
this.selected = value + '' this.selected = value + ''
this.$emit("input", this.selected) this.$emit("input", this.selected)
console.log(this.selected)
}, },
}, },
} }
......
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
<a-input placeholder="项目名称" v-model="searchForm.projName" :maxLength="100" style="width: 120px" /> <a-input placeholder="项目名称" v-model="searchForm.projName" :maxLength="100" style="width: 120px" />
</a-form-item> </a-form-item>
<a-form-item> <a-form-item>
<a-input placeholder="项目编号" v-model="searchForm.projNo" :maxLength="100" style="width: 120px" /> <a-input placeholder="申请编号" v-model="searchForm.appNo" :maxLength="100" style="width: 120px" />
</a-form-item> </a-form-item>
<a-form-item> <a-form-item>
<para-multi-select v-model="searchForm.knowledgeId" @parentChange="parChange" :typeId="57" :width="120" /> <!-- <para-multi-select v-model="searchForm.knowledgeId" @parentChange="parChange" :typeId="57" :width="120" /> -->
<knowledge-select v-model="searchForm.knowledgeId"></knowledge-select>
</a-form-item> </a-form-item>
<!-- <br /> --> <!-- <br /> -->
<a-form-item> <a-form-item>
...@@ -22,7 +23,7 @@ ...@@ -22,7 +23,7 @@
</a-form-item> </a-form-item>
<a-form-item> <a-form-item>
<a-button type="primary" icon="search" @click="search">搜索</a-button> <a-button type="primary" icon="search" @click="search">搜索</a-button>
<!-- <a-button icon="reload" style="margin-left: 10px" @click="reset" class="bt-normal">重置</a-button> --> <a-button icon="reload" style="margin-left: 10px" @click="reset" class="bt-normal">重置</a-button>
</a-form-item> </a-form-item>
</a-form> </a-form>
<a-divider style="height: 1px; background-color: #e8e8e8;" /> <a-divider style="height: 1px; background-color: #e8e8e8;" />
...@@ -35,6 +36,7 @@ ...@@ -35,6 +36,7 @@
<script> <script>
import { getType } from '@/views/utils/auth' import { getType } from '@/views/utils/auth'
import { isEmptyParams, hideIdCard } from '@/views/utils/common' import { isEmptyParams, hideIdCard } from '@/views/utils/common'
import knowledgeSelect from '@/views/components/common/knowledgeSelect.vue'
export default { export default {
...@@ -48,7 +50,7 @@ export default { ...@@ -48,7 +50,7 @@ export default {
} }
}, },
components: { components: {
knowledgeSelect
}, },
data() { data() {
return { return {
...@@ -58,13 +60,14 @@ export default { ...@@ -58,13 +60,14 @@ export default {
columns: [ columns: [
// { title: "项目名称", scopedSlots: { customRender: 'projName' } }, // { title: "项目名称", scopedSlots: { customRender: 'projName' } },
{ title: "项目名称", dataIndex: 'projName', align: 'left', width: 200, ellipsis: true }, { title: "项目名称", dataIndex: 'projName', align: 'left', width: 200, ellipsis: true },
{ title: '项目编号', dataIndex: 'projNo', align: 'center', width: 160 }, //{ title: '项目编号', dataIndex: 'projNo', align: 'center', width: 160 },
{ title: '二级学科', dataIndex: 'knowledgeName', align: 'center', width: 100 }, { title: '申请编号', dataIndex: 'appNo', align: 'center', width: 160 },
{ title: '学科', dataIndex: 'knowledgeName', align: 'center', width: 100 },
{ title: '申报单位', dataIndex: 'appUnitName', align: 'center', width: 160, ellipsis: true }, { title: '申报单位', dataIndex: 'appUnitName', align: 'center', width: 160, ellipsis: true },
{ title: '证件号', dataIndex: 'certId', align: 'center', width: 150 }, { title: '证件号', dataIndex: 'certId', align: 'center', width: 150 },
{ title: '申报人', dataIndex: 'appPersonName', align: 'center', width: 80 } { title: '申报人', dataIndex: 'appPersonName', align: 'center', width: 80 }
], ],
searchForm: { groupId: null, appPersonName: null, reportYear: null, knowledgeId: null, knowledgeParentId: null, projName: null, projNo: null, projType: getType(), appUnitName: null }, searchForm: { groupId: null, appPersonName: null, reportYear: null, knowledgeCode: null, knowledgeId: null, knowledgeParentId: null, projName: null, appNo: null, projType: getType(), appUnitName: null },
pagination: { pagination: {
pageIndex: 1, pageIndex: 1,
pageSize: this.$defaultPageSize, pageSize: this.$defaultPageSize,
...@@ -90,6 +93,8 @@ export default { ...@@ -90,6 +93,8 @@ export default {
}, },
getListByPage () { getListByPage () {
this.loading = true this.loading = true
this.searchForm.knowledgeCode = this.searchForm.knowledgeId
this.searchForm.knowledgeId = null
let pars = isEmptyParams(this.searchForm) let pars = isEmptyParams(this.searchForm)
let par = { ...pars, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize } let par = { ...pars, pageIndex: this.pagination.pageIndex, pageSize: this.pagination.pageSize }
this.$api.projectAssign.getUnAssignProjectListByPage(par).then(({ data = {} }) => { this.$api.projectAssign.getUnAssignProjectListByPage(par).then(({ data = {} }) => {
...@@ -110,6 +115,7 @@ export default { ...@@ -110,6 +115,7 @@ export default {
}, },
reset () { reset () {
this.searchForm.projName = '' this.searchForm.projName = ''
this.searchForm.appNo = ''
this.pagination.pageIndex = 1 this.pagination.pageIndex = 1
this.getListByPage() this.getListByPage()
}, },
......
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