|
@@ -38,8 +38,8 @@
|
|
|
</view>
|
|
|
<view style='position:relative;' class="wrap no-boder">
|
|
|
<u-input class='textarea' v-model="detailData.reasonForLeave" :type="type" :border="border"
|
|
|
- :height="height" :auto-height="autoHeight" />
|
|
|
- <view style='position:absolute;right:10px;bottom:20px;color:#AFB3BF;'>
|
|
|
+ :height="height" :auto-height="autoHeight" maxlength="100"/>
|
|
|
+ <view style='position:absolute;right:10px;bottom:20px;color:#AFB3BF;' >
|
|
|
{{detailData.reasonForLeave.length}}/100个字
|
|
|
</view>
|
|
|
</view>
|
|
@@ -261,7 +261,7 @@
|
|
|
// this.endDate1 = e.year + "-" + e.month + "-" + e.day + "-" + e.hour + "-" + e.minute + "-" + e.second
|
|
|
},
|
|
|
submit() {
|
|
|
- if (!this.detailData.leaveType) {
|
|
|
+ if (!this.detailData.leaveType || this.detailData.leaveType == '选择请假类型') {
|
|
|
this.$api.msg('请假类型不能为空')
|
|
|
return
|
|
|
}
|
|
@@ -269,7 +269,7 @@
|
|
|
this.$api.msg('请选择请假开始时间')
|
|
|
return
|
|
|
}
|
|
|
- if (!this.detailData.endDate) {
|
|
|
+ if (!this.detailData.endDate || this.detailData.endDate == '选择结束时间') {
|
|
|
this.$api.msg('请选择请假结束时间')
|
|
|
return
|
|
|
}
|