|
@@ -163,30 +163,7 @@
|
|
|
projectApplyPerson:'', //项目申请人
|
|
|
},
|
|
|
departmentOptions: [], //部门下拉框
|
|
|
- sortOptions: [ //选择分类下拉框数据
|
|
|
- {
|
|
|
- value:"",
|
|
|
- label: '',
|
|
|
- children: [{
|
|
|
- value: 0,
|
|
|
- label: '创意组',
|
|
|
- },
|
|
|
- {
|
|
|
- value: 1,
|
|
|
- label: '初创组',
|
|
|
- }
|
|
|
- ]},
|
|
|
- {
|
|
|
- value:"",
|
|
|
- label: '',
|
|
|
- children: [{
|
|
|
- value: 0,
|
|
|
- label: '已建设',
|
|
|
- }, {
|
|
|
- value: 1,
|
|
|
- label: '待建设',
|
|
|
- }]
|
|
|
- }],
|
|
|
+ sortOptions: []//分类下拉框,
|
|
|
|
|
|
},
|
|
|
|
|
@@ -274,7 +251,7 @@
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api+'/SelectAllDepartment',param)
|
|
|
.then(res=>{
|
|
|
- // console.log(res.data[0]);
|
|
|
+ console.log(res.data[0]);
|
|
|
let p=res.data[0]
|
|
|
let a=this.projectApplicationApply1
|
|
|
a.options=p
|
|
@@ -285,19 +262,35 @@
|
|
|
})
|
|
|
},
|
|
|
getProjectTypeData(){ //获取项目立项申请基础信息页面分类数据
|
|
|
+ let TypeList = [];
|
|
|
let param={
|
|
|
uid:this.$store.state.userInfo.userid
|
|
|
}
|
|
|
this.ajax
|
|
|
.get(this.$store.state.api+'/SelectAllType',param)
|
|
|
.then(res=>{
|
|
|
- // console.log(res.data[0]);
|
|
|
- let p=res.data[0]
|
|
|
- let a=this.projectApplicationApply1
|
|
|
- a.sortOptions[0].value=p[0].id
|
|
|
- a.sortOptions[0].label=p[0].name
|
|
|
- a.sortOptions[1].value=p[1].id
|
|
|
- a.sortOptions[1].label=p[1].name
|
|
|
+ //获取主分类
|
|
|
+ let master = res.data[0].filter(item=>item['pid']=='');
|
|
|
+ //获取子分类
|
|
|
+ let minion = res.data[0].filter(item=>item['pid']!='');
|
|
|
+ master.forEach(item=>{
|
|
|
+ let type = {
|
|
|
+ value:item['id'],
|
|
|
+ label:item['name'],
|
|
|
+ children:[],
|
|
|
+ }
|
|
|
+ minion.forEach(min=>{
|
|
|
+ if(min['pid']==item['id']){
|
|
|
+ let minType = {
|
|
|
+ value:min['id'],
|
|
|
+ label:min['name']
|
|
|
+ }
|
|
|
+ type['children'].push(minType);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ TypeList.push(type);
|
|
|
+ })
|
|
|
+ this.projectApplicationApply1.sortOptions = TypeList;
|
|
|
},err=>{
|
|
|
console.log(err);
|
|
|
})
|
|
@@ -576,86 +569,6 @@
|
|
|
}
|
|
|
// 顶部导航区结束
|
|
|
|
|
|
- //提交对话框开始 选择分类
|
|
|
- // .projectApplicationfundAddDialog{
|
|
|
-
|
|
|
- // .el-dialog__header{
|
|
|
- // display: flex;
|
|
|
- // justify-content: center;
|
|
|
- // }
|
|
|
- // .el-dialog{
|
|
|
- // border-radius: 5px;
|
|
|
- // overflow: hidden;
|
|
|
-
|
|
|
- // top: 10%;
|
|
|
- // }
|
|
|
-
|
|
|
- // .deleteContent{
|
|
|
- // width: 100%;
|
|
|
- // text-align: center;
|
|
|
- // font-size: 22px;
|
|
|
- // color: #000;
|
|
|
- // }
|
|
|
- // .addDialogLogo{
|
|
|
- // width: 60px;
|
|
|
- // height: 30px;
|
|
|
- // border-radius: 5px;
|
|
|
- // display: flex;
|
|
|
- // justify-content: center;
|
|
|
- // line-height: 30px;
|
|
|
- // background: #f2f2f2;
|
|
|
- // position: absolute;
|
|
|
- // left: 20px; top: 15px;
|
|
|
- // }
|
|
|
- // .el-dialog__header{
|
|
|
- // background: #32455b;
|
|
|
- // }
|
|
|
- // .el-dialog__title{
|
|
|
- // color:#fff;
|
|
|
- // display: flex;
|
|
|
- // justify-content: center;
|
|
|
- // font-size: 18px;
|
|
|
- // position: relative;
|
|
|
- // top: -2px;
|
|
|
- // }
|
|
|
- // .addDialogMid{
|
|
|
- // box-sizing: border-box;
|
|
|
- // padding:0 60px 0 10px;
|
|
|
- // .addDialogTit{
|
|
|
- // display: flex;
|
|
|
- // span{
|
|
|
- // width: 80px;
|
|
|
- // line-height: 40px;
|
|
|
- // text-align: left;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // .addDialogTit1{
|
|
|
- // display: flex;
|
|
|
- // justify-content: space-between;
|
|
|
- // margin-bottom: 15px;
|
|
|
- // }
|
|
|
- // .addDialogTit2{
|
|
|
- // margin-top: 10px;
|
|
|
- // font-size: 18px;
|
|
|
- // color: #000;
|
|
|
- // text-indent: 2em;
|
|
|
- // }
|
|
|
- // .addDialogCon{
|
|
|
- // margin-top: 20px;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // .dialog-footer{
|
|
|
- // display: flex;
|
|
|
- // justify-content: center;
|
|
|
- // // .btn5{
|
|
|
- // // height: 40px;
|
|
|
- // // font-size: 16px;
|
|
|
- // // background: #0e72e6;
|
|
|
- // // width: 200px;
|
|
|
- // // }
|
|
|
- // }
|
|
|
- // }
|
|
|
- //提交对话框结束
|
|
|
|
|
|
|
|
|
.right{
|