|
@ -68,7 +68,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="item"> |
|
|
<view class="item"> |
|
|
<view class="label">明细:</view> |
|
|
<view class="label">责任明细:</view> |
|
|
<view class="value duty-details-value"> |
|
|
<view class="value duty-details-value"> |
|
|
<!-- <uni-data-select v-model="dutyDetails" :localdata="dutyDetailList" @change="change" placement='top' |
|
|
<!-- <uni-data-select v-model="dutyDetails" :localdata="dutyDetailList" @change="change" placement='top' |
|
|
:clear="true"></uni-data-select> |
|
|
:clear="true"></uni-data-select> |
|
@ -78,7 +78,7 @@ |
|
|
<view class="value1"> |
|
|
<view class="value1"> |
|
|
<view class="" style="line-height: 70rpx;width: 100%;" @click="showDetail"> |
|
|
<view class="" style="line-height: 70rpx;width: 100%;" @click="showDetail"> |
|
|
<span v-if='chooseDetailItem.label'>{{chooseDetailItem.label}}</span> |
|
|
<span v-if='chooseDetailItem.label'>{{chooseDetailItem.label}}</span> |
|
|
<span v-else style="color: rgb(192, 196, 204);">请选择明细</span> |
|
|
<span v-else style="color: rgb(192, 196, 204);">请选择责任明细</span> |
|
|
</view> |
|
|
</view> |
|
|
<u-icon name="arrow-down" color="#acacac" size="24" v-if='!chooseDetailItem.label'></u-icon> |
|
|
<u-icon name="arrow-down" color="#acacac" size="24" v-if='!chooseDetailItem.label'></u-icon> |
|
|
<u-icon name="close-circle-fill" color="#acacac" size="36" @click="clearDetail" v-else></u-icon> |
|
|
<u-icon name="close-circle-fill" color="#acacac" size="36" @click="clearDetail" v-else></u-icon> |
|
@ -136,10 +136,10 @@ |
|
|
dutyDeptList: [],//部门显示列表 |
|
|
dutyDeptList: [],//部门显示列表 |
|
|
showDeptList:false,//是否显示部门列表 |
|
|
showDeptList:false,//是否显示部门列表 |
|
|
chooseDeptItem:{},//选择的部门数据 |
|
|
chooseDeptItem:{},//选择的部门数据 |
|
|
// 明细字段 |
|
|
// 责任明细字段 |
|
|
detailList:[],//明细列表 |
|
|
detailList:[],//责任明细列表 |
|
|
showDetailList:false,//是否显示明细列表 |
|
|
showDetailList:false,//是否显示责任明细列表 |
|
|
chooseDetailItem:{},//选择的明细数据 |
|
|
chooseDetailItem:{},//选择的责任明细数据 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
@ -160,7 +160,7 @@ |
|
|
this.dutyDeptList = res.data |
|
|
this.dutyDeptList = res.data |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
//获取明细列表 |
|
|
//获取责任明细列表 |
|
|
getDetailList() { |
|
|
getDetailList() { |
|
|
this.detailList = getDirectoryInfo('duty_details') |
|
|
this.detailList = getDirectoryInfo('duty_details') |
|
|
this.detailList.forEach(item => item.text = item.label) |
|
|
this.detailList.forEach(item => item.text = item.label) |
|
@ -215,18 +215,18 @@ |
|
|
this.chooseDeptItem ={} |
|
|
this.chooseDeptItem ={} |
|
|
this.showDeptList = false |
|
|
this.showDeptList = false |
|
|
}, |
|
|
}, |
|
|
// 点击明细显示明细列表 |
|
|
// 点击责任明细显示明细列表 |
|
|
showDetail(){ |
|
|
showDetail(){ |
|
|
this.showDutyList = false |
|
|
this.showDutyList = false |
|
|
this.showDeptList = false |
|
|
this.showDeptList = false |
|
|
this.showDetailList = true |
|
|
this.showDetailList = true |
|
|
}, |
|
|
}, |
|
|
// 选择明细回显 |
|
|
// 选择责任明细回显 |
|
|
chooseDetail(item){ |
|
|
chooseDetail(item){ |
|
|
this.chooseDetailItem =item |
|
|
this.chooseDetailItem =item |
|
|
this.showDetailList = false |
|
|
this.showDetailList = false |
|
|
}, |
|
|
}, |
|
|
// 清除明细按钮 |
|
|
// 清除责任明细按钮 |
|
|
clearDetail(){ |
|
|
clearDetail(){ |
|
|
this.chooseDetailItem = {} |
|
|
this.chooseDetailItem = {} |
|
|
this.showDetailList = false |
|
|
this.showDetailList = false |
|
@ -246,7 +246,7 @@ |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if(!obj.dutyDetails){ |
|
|
if(!obj.dutyDetails){ |
|
|
this.$refs.comMessage.showMessage('请选择明细') |
|
|
this.$refs.comMessage.showMessage('请选择责任明细') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
console.log(obj) |
|
|
console.log(obj) |
|
|