Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -244,6 +244,41 @@
|
|||||||
<div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0">
|
<div style="position: absolute;bottom: 55px;top: 0;right: 0;left: 0">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<el-form :modal="projectSearch" :inline="true" class="label-input-form" style="margin-left:10px">
|
<el-form :modal="projectSearch" :inline="true" class="label-input-form" style="margin-left:10px">
|
||||||
|
<el-form-item label="管理主体" class="search-item search-item-last">
|
||||||
|
<el-select v-model="projectSearch.managementHostName"
|
||||||
|
@change="optionsChange(projectSearch)"
|
||||||
|
placeholder="请选择管理主体" filterable clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="(item, index) in managementHostName"
|
||||||
|
:key="index"
|
||||||
|
:value="item"
|
||||||
|
:label="item"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="开发主体" class="search-item search-item-last">
|
||||||
|
<el-select v-model="projectSearch.developmentHostName" @change="optionsChange(projectSearch)" placeholder="请选择开发主体" filterable clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="(item, index) in developmentHostName"
|
||||||
|
:key="index"
|
||||||
|
:value="item"
|
||||||
|
:label="item"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="项目细分类" class="search-item search-item-last">
|
||||||
|
<el-select v-model="projectSearch.categoryName" @change="optionsChange(projectSearch)" placeholder="请选择项目细分类" filterable clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="(item, index) in categoryName"
|
||||||
|
:key="index"
|
||||||
|
:value="item"
|
||||||
|
:label="item"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="项目编号" class="search-item search-item-last">
|
<el-form-item label="项目编号" class="search-item search-item-last">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="projectSearch.projectNumber"
|
v-model="projectSearch.projectNumber"
|
||||||
@@ -418,6 +453,9 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
managementHostName: [], //管理主体名称下拉框
|
||||||
|
developmentHostName: [], //开发主体名称下拉框
|
||||||
|
categoryName: [], //项目细分类下拉框
|
||||||
foldFormFlag: false,
|
foldFormFlag: false,
|
||||||
standModel: false,
|
standModel: false,
|
||||||
addShow: true,
|
addShow: true,
|
||||||
@@ -477,7 +515,10 @@ export default {
|
|||||||
//项目检索条件
|
//项目检索条件
|
||||||
projectSearch: {
|
projectSearch: {
|
||||||
projectNumber: "",
|
projectNumber: "",
|
||||||
projectName: ""
|
projectName: "",
|
||||||
|
managementHostName: "", //管理主体
|
||||||
|
developmentHostName: "", //开发主体
|
||||||
|
categoryName: "" //项目细分类
|
||||||
},
|
},
|
||||||
//项目数据
|
//项目数据
|
||||||
ProjectDatas: [],
|
ProjectDatas: [],
|
||||||
@@ -492,6 +533,32 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
optionsChange(){
|
||||||
|
/**
|
||||||
|
* 获取项目群筛选项的值
|
||||||
|
*/
|
||||||
|
this.$http.post("sarStandProjectLibrary/querySelect", {
|
||||||
|
...this.projectSearch
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
res.data.managementHostList.forEach(item => {
|
||||||
|
if (item) {
|
||||||
|
this.managementHostName.push(item); //管理主体
|
||||||
|
}
|
||||||
|
});
|
||||||
|
res.data.developmentHostList.forEach(item => {
|
||||||
|
if (item) {
|
||||||
|
this.developmentHostName.push(item); //开发主体
|
||||||
|
}
|
||||||
|
});
|
||||||
|
res.data.categoryList.forEach(item => {
|
||||||
|
if (item) {
|
||||||
|
this.categoryName.push(item); //项目细分类
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
fileTypeChange(type){
|
fileTypeChange(type){
|
||||||
this.fileType = type
|
this.fileType = type
|
||||||
let ids = [];
|
let ids = [];
|
||||||
@@ -562,7 +629,10 @@ export default {
|
|||||||
clearSearch() {
|
clearSearch() {
|
||||||
this.projectSearch = {
|
this.projectSearch = {
|
||||||
projectName: "",
|
projectName: "",
|
||||||
projectNumber: ""
|
projectNumber: "",
|
||||||
|
managementHostName: "", //管理主体
|
||||||
|
developmentHostName: "", //开发主体
|
||||||
|
categoryName: "" //项目细分类
|
||||||
};
|
};
|
||||||
this.getProjectData();
|
this.getProjectData();
|
||||||
},
|
},
|
||||||
@@ -646,7 +716,7 @@ export default {
|
|||||||
this.$http.get("sarStandProjectLibrary/queryStandInfo", {
|
this.$http.get("sarStandProjectLibrary/queryStandInfo", {
|
||||||
id: this.projectId,
|
id: this.projectId,
|
||||||
current: this.pageNo,
|
current: this.pageNo,
|
||||||
PageSize: this.pageSizeNo
|
PageSize: this.pageSizeNo,
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
@@ -852,6 +922,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.optionsChange()
|
||||||
this.bpnId = this.$route.query.bpnId
|
this.bpnId = this.$route.query.bpnId
|
||||||
if (this.bpnId !== undefined) {
|
if (this.bpnId !== undefined) {
|
||||||
this.getData()
|
this.getData()
|
||||||
|
|||||||
Reference in New Issue
Block a user