|
@@ -26,6 +26,11 @@
|
|
<van-button type="default" size="small" @click="submitClear">清空</van-button>
|
|
<van-button type="default" size="small" @click="submitClear">清空</van-button>
|
|
</div>
|
|
</div>
|
|
</van-grid>
|
|
</van-grid>
|
|
|
|
+ <van-cell title="总时长(h)" v-if="reportTimeType.type == 3">
|
|
|
|
+ <template>
|
|
|
|
+ <van-stepper style="float:left;" :disabled="user.timeType.lockWorktime == 1" v-model="reportTimeType.allday" @change="changeAllTime" min="0.5" max="12" step="0.5" button-size="24px" :decimal-length="1" />
|
|
|
|
+ </template>
|
|
|
|
+ </van-cell>
|
|
|
|
|
|
|
|
|
|
<div class="form_domains" v-for="(item,index) in currentForm.domains" :key="item.id">
|
|
<div class="form_domains" v-for="(item,index) in currentForm.domains" :key="item.id">
|
|
@@ -150,7 +155,7 @@
|
|
<template >
|
|
<template >
|
|
<div>
|
|
<div>
|
|
<span>用时占比</span>
|
|
<span>用时占比</span>
|
|
- <van-slider :min="10" :step="10" style="width:120px;display:inline-block;margin-left:50px;" v-model="item.progress" :value="100" @change="item.workingTime = (reportTimeType.allday*item.progress/100).toFixed(1)" >
|
|
|
|
|
|
+ <van-slider :min="5" :step="5" style="width:120px;display:inline-block;margin-left:50px;" v-model="item.progress" :value="100" @change="item.workingTime = (reportTimeType.allday*item.progress/100).toFixed(1)" >
|
|
<template #button>
|
|
<template #button>
|
|
<div class="custom-button">{{ item.progress }}%</div>
|
|
<div class="custom-button">{{ item.progress }}%</div>
|
|
</template>
|
|
</template>
|
|
@@ -365,7 +370,7 @@
|
|
inbtn: 0,
|
|
inbtn: 0,
|
|
weekIndex: 5,
|
|
weekIndex: 5,
|
|
weekSwitchIndex: 1,
|
|
weekSwitchIndex: 1,
|
|
- kaoqinText: false
|
|
|
|
|
|
+ kaoqinText: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -448,6 +453,7 @@
|
|
projectName: "",
|
|
projectName: "",
|
|
workingTime: this.user.timeType.allday,
|
|
workingTime: this.user.timeType.allday,
|
|
content: "",
|
|
content: "",
|
|
|
|
+ progress: 100,
|
|
state: 2,
|
|
state: 2,
|
|
multiWorktime:0,
|
|
multiWorktime:0,
|
|
worktimeList:{},
|
|
worktimeList:{},
|
|
@@ -859,7 +865,7 @@
|
|
case 'h': return _this.padding(date.getHours(), $0.length);
|
|
case 'h': return _this.padding(date.getHours(), $0.length);
|
|
case 'm': return _this.padding(date.getMinutes(), $0.length);
|
|
case 'm': return _this.padding(date.getMinutes(), $0.length);
|
|
case 's': return _this.padding(date.getSeconds(), $0.length);
|
|
case 's': return _this.padding(date.getSeconds(), $0.length);
|
|
- }
|
|
|
|
|
|
+ }getReport
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
|