no msg
This commit is contained in:
parent
3ebc720934
commit
b870f5f4d1
@ -46,10 +46,22 @@
|
|||||||
</ETooltip>
|
</ETooltip>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div v-if="taskDays > 0" class="advanced-time">
|
<DatePicker
|
||||||
<Icon type="ios-clock-outline" />
|
v-if="taskDays > 0"
|
||||||
<em type="primary" :style="addData.p_color ? {backgroundColor:addData.p_color} : {}">{{taskDays}}</em>
|
:open="taskTimeOpen"
|
||||||
</div>
|
v-model="addData.times"
|
||||||
|
:options="timeOptions"
|
||||||
|
:placeholder="$L('选择计划范围')"
|
||||||
|
format="yyyy-MM-dd HH:mm"
|
||||||
|
type="datetimerange"
|
||||||
|
placement="bottom"
|
||||||
|
@on-change="taskTimeChange(addData.times)"
|
||||||
|
@on-open-change="taskTimeOpenChange">
|
||||||
|
<div class="advanced-time" @click="taskTimeOpenChange(!taskTimeOpen)">
|
||||||
|
<Icon type="ios-clock-outline" />
|
||||||
|
<em type="primary" :style="addData.p_color ? {backgroundColor:addData.p_color} : {}">{{taskDays}}</em>
|
||||||
|
</div>
|
||||||
|
</DatePicker>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -197,6 +209,8 @@ export default {
|
|||||||
toolbar: 'uploadImages | uploadFiles | bold italic underline forecolor backcolor | codesample | preview screenload'
|
toolbar: 'uploadImages | uploadFiles | bold italic underline forecolor backcolor | codesample | preview screenload'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
taskTimeOpen: false,
|
||||||
|
|
||||||
timeOptions: {
|
timeOptions: {
|
||||||
shortcuts: []
|
shortcuts: []
|
||||||
},
|
},
|
||||||
@ -231,6 +245,8 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.input.focus()
|
this.$refs.input.focus()
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
this.taskTimeOpen = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'addData.project_id'(id) {
|
'addData.project_id'(id) {
|
||||||
@ -355,6 +371,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
taskTimeOpenChange(val) {
|
||||||
|
this.taskTimeOpen = val;
|
||||||
|
},
|
||||||
|
|
||||||
taskTimeChange(times) {
|
taskTimeChange(times) {
|
||||||
let tempc = $A.date2string(times, "Y-m-d H:i");
|
let tempc = $A.date2string(times, "Y-m-d H:i");
|
||||||
if (tempc[0] && tempc[1]) {
|
if (tempc[0] && tempc[1]) {
|
||||||
|
@ -115,6 +115,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
cursor: pointer;
|
||||||
.ivu-icon {
|
.ivu-icon {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user