|
@@ -29,14 +29,14 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="form-item adfacjb">
|
|
<view class="form-item adfacjb">
|
|
|
<view class="form-item-title red">团队职能类型</view>
|
|
<view class="form-item-title red">团队职能类型</view>
|
|
|
- <view class="form-item-inp adfac" @click="pickerShow('functionTypeShow')">
|
|
|
|
|
|
|
+ <view class="form-item-inp adfac" @click="turnPage('function')">
|
|
|
<text :class="{'active':functionTypeText!=='请选择'}">{{functionTypeText}}</text>
|
|
<text :class="{'active':functionTypeText!=='请选择'}">{{functionTypeText}}</text>
|
|
|
<u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
|
|
<u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="form-item adfacjb">
|
|
<view class="form-item adfacjb">
|
|
|
<view class="form-item-title red">团队架构类型</view>
|
|
<view class="form-item-title red">团队架构类型</view>
|
|
|
- <view class="form-item-inp adfac" @click="pickerShow('architectureTypeShow')">
|
|
|
|
|
|
|
+ <view class="form-item-inp adfac" @click="turnPage('architecture')">
|
|
|
<text :class="{'active':architectureTypeText!=='请选择'}">{{architectureTypeText}}</text>
|
|
<text :class="{'active':architectureTypeText!=='请选择'}">{{architectureTypeText}}</text>
|
|
|
<u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
|
|
<u-icon name="arrow-right" size="20rpx" color="#B9C0C8"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
@@ -70,10 +70,6 @@
|
|
|
</view>
|
|
</view>
|
|
|
<u-picker :itemHeight="88" :immediateChange="true" :show="industryShow" :columns="industryData" title="所属行业"
|
|
<u-picker :itemHeight="88" :immediateChange="true" :show="industryShow" :columns="industryData" title="所属行业"
|
|
|
@cancel="industryShow=false" @confirm="e=>pickerConfirm(e,'industryId','industryText','industryShow')"></u-picker>
|
|
@cancel="industryShow=false" @confirm="e=>pickerConfirm(e,'industryId','industryText','industryShow')"></u-picker>
|
|
|
- <u-picker :itemHeight="88" :immediateChange="true" :show="functionTypeShow" :columns="functionTypeData" title="团队职能类型"
|
|
|
|
|
- @cancel="functionTypeShow=false" @confirm="e=>pickerConfirm(e,'functionIds','functionTypeText','functionTypeShow')"></u-picker>
|
|
|
|
|
- <u-picker :itemHeight="88" :immediateChange="true" :show="architectureTypeShow" :columns="architectureTypeData" title="团队架构类型"
|
|
|
|
|
- @cancel="architectureTypeShow=false" @confirm="e=>pickerConfirm(e,'orgIds','architectureTypeText','architectureTypeShow')"></u-picker>
|
|
|
|
|
<cus-select :show="teamScaleShow" title="选择团队规模" :list="teamScaleData" @close="teamScaleShow=false" @confirmTeam="e=>selectConfirm(e,'scale','teamScaleText','teamScaleShow')"></cus-select>
|
|
<cus-select :show="teamScaleShow" title="选择团队规模" :list="teamScaleData" @close="teamScaleShow=false" @confirmTeam="e=>selectConfirm(e,'scale','teamScaleText','teamScaleShow')"></cus-select>
|
|
|
<cus-select :show="teamLevelShow" title="选择团队层级" :list="teamLevelData" @close="teamLevelShow=false" @confirmTeam="e=>selectConfirm(e,'hierarchy','teamLevelText','teamLevelShow')"></cus-select>
|
|
<cus-select :show="teamLevelShow" title="选择团队层级" :list="teamLevelData" @close="teamLevelShow=false" @confirmTeam="e=>selectConfirm(e,'hierarchy','teamLevelText','teamLevelShow')"></cus-select>
|
|
|
</view>
|
|
</view>
|
|
@@ -110,11 +106,7 @@
|
|
|
industryShow:false,
|
|
industryShow:false,
|
|
|
industryData:[['行业1','行业2']],
|
|
industryData:[['行业1','行业2']],
|
|
|
industryText:'请选择',
|
|
industryText:'请选择',
|
|
|
- functionTypeShow:false,
|
|
|
|
|
- functionTypeData:[['职能类型1','职能类型2']],
|
|
|
|
|
functionTypeText:'请选择',
|
|
functionTypeText:'请选择',
|
|
|
- architectureTypeShow:false,
|
|
|
|
|
- architectureTypeData:[['架构类型1','架构类型2']],
|
|
|
|
|
architectureTypeText:'请选择',
|
|
architectureTypeText:'请选择',
|
|
|
teamScaleShow:false,
|
|
teamScaleShow:false,
|
|
|
teamScaleData:[],
|
|
teamScaleData:[],
|
|
@@ -151,6 +143,22 @@
|
|
|
pickerShow(key){
|
|
pickerShow(key){
|
|
|
this[key] = true;
|
|
this[key] = true;
|
|
|
},
|
|
},
|
|
|
|
|
+ turnPage(type){
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url:'/pagesPublish/teamTypeMultiple?type='+type,
|
|
|
|
|
+ events:{
|
|
|
|
|
+ selectConfirm:data=>{
|
|
|
|
|
+ if(data.type==='function'){
|
|
|
|
|
+ this.teamInfo.functionIds = data.ids;
|
|
|
|
|
+ this.functionTypeText = data.names.join(',');
|
|
|
|
|
+ }else if(data.type==='architecture'){
|
|
|
|
|
+ this.teamInfo.orgIds = data.ids;
|
|
|
|
|
+ this.architectureTypeText = data.names.join(',');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
selectShow(key){
|
|
selectShow(key){
|
|
|
this[key] = true;
|
|
this[key] = true;
|
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
@@ -170,8 +178,8 @@
|
|
|
},
|
|
},
|
|
|
handleConfirm(){
|
|
handleConfirm(){
|
|
|
// if(!this.teamInfo.industryId) return this.$showToast('请选择所属行业')
|
|
// if(!this.teamInfo.industryId) return this.$showToast('请选择所属行业')
|
|
|
- // if(!this.teamInfo.functionIds) return this.$showToast('请选择团队职能类型')
|
|
|
|
|
- // if(!this.teamInfo.orgIds) return this.$showToast('请选择团队架构类型')
|
|
|
|
|
|
|
+ if(this.teamInfo.functionIds.length===0) return this.$showToast('请选择团队职能类型')
|
|
|
|
|
+ if(this.teamInfo.orgIds.length===0) return this.$showToast('请选择团队架构类型')
|
|
|
|
|
|
|
|
this.$emit('handleConfirm',this.teamInfo)
|
|
this.$emit('handleConfirm',this.teamInfo)
|
|
|
},
|
|
},
|
|
@@ -201,13 +209,14 @@
|
|
|
padding: 28rpx 24rpx;
|
|
padding: 28rpx 24rpx;
|
|
|
box-shadow: inset 0rpx -1rpx 0rpx 0rpx #EFEFEF;
|
|
box-shadow: inset 0rpx -1rpx 0rpx 0rpx #EFEFEF;
|
|
|
&-title{
|
|
&-title{
|
|
|
|
|
+ width: 180rpx;
|
|
|
font-family: PingFangSC, PingFang SC;
|
|
font-family: PingFangSC, PingFang SC;
|
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
|
font-size: 30rpx;
|
|
font-size: 30rpx;
|
|
|
color: #002846;
|
|
color: #002846;
|
|
|
line-height: 42rpx;
|
|
line-height: 42rpx;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
- padding-right: 23rpx;
|
|
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
&.red{
|
|
&.red{
|
|
|
&::after{
|
|
&::after{
|
|
|
content: "*";
|
|
content: "*";
|
|
@@ -217,11 +226,17 @@
|
|
|
color: #FD4F66;
|
|
color: #FD4F66;
|
|
|
line-height: 42rpx;
|
|
line-height: 42rpx;
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
- right: 0;
|
|
|
|
|
|
|
+ left: -16rpx;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
&-inp{
|
|
&-inp{
|
|
|
|
|
+ width: calc(100% - 180rpx);
|
|
|
|
|
+ padding-left: 20rpx;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: flex-end;
|
|
|
text{
|
|
text{
|
|
|
font-family: PingFangSC, PingFang SC;
|
|
font-family: PingFangSC, PingFang SC;
|
|
|
font-weight: 400;
|
|
font-weight: 400;
|