|
@@ -13,17 +13,19 @@
|
|
|
</view>
|
|
|
<view class="row2">
|
|
|
<text class="TobeDistributed">剩余1个单位待分配</text>
|
|
|
- <text class="startEndTime">起止时间:2020-12-26 ~ 2020-12-18</text>
|
|
|
+ <text class="startEndTime">起止时间:{{item.startDate}} ~ {{item.endDate}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
<view class="btn-distribution" @click="gotoCheckList(true, planList[0])" v-if="isShowDistribution">
|
|
|
<text class="btn-text">批量分配</text>
|
|
|
</view>
|
|
|
+ <modal ref="modal" ></modal>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import modal from './components/modal.vue'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -65,12 +67,9 @@
|
|
|
toDistribute:item.toDistribute,
|
|
|
}
|
|
|
});
|
|
|
+ console.log(this.firstFlag,'1111111')
|
|
|
if(this.firstFlag==1){
|
|
|
- uni.showModal({
|
|
|
- title:'提示',
|
|
|
- content:'您的分配工作量较大,建议使用批量分配功能',
|
|
|
- showCancel:false
|
|
|
- })
|
|
|
+ this.$refs.modal.show();
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -98,6 +97,9 @@
|
|
|
url: `/pages/editCheckList/editCheckList?situationId=${type ? this.situationID : 0}&checkId=${id}&checkGroupId=${this.checkGroupId}&startDate=${startDate}&endDate=${endDate}`
|
|
|
});
|
|
|
}
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+ modal,
|
|
|
}
|
|
|
}
|
|
|
</script>
|