Commit ae40736a authored by 罗超's avatar 罗超

no message

parent 39e90515
...@@ -344,6 +344,11 @@ export default { ...@@ -344,6 +344,11 @@ export default {
}, },
data() { data() {
return { return {
pickerOptions: {
disabledDate: time => {
return time.getTime() < Date.now() - 8.64e7;
}
},
date:'', date:'',
value: new Date(), value: new Date(),
calendarData:[], calendarData:[],
......
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
</div> --> </div> -->
<q-btn-group <q-btn-group
outline outline
style="position: fixed;top: 15px;right:20px;z-index: 666666;" style="position: fixed;top: 75px;right:20px;z-index: 666666;"
> >
<q-btn <q-btn
dense dense
......
...@@ -271,7 +271,7 @@ export default { ...@@ -271,7 +271,7 @@ export default {
.sub-header { .sub-header {
position: fixed; position: fixed;
height: 56px; height: 56px;
top: 0; top: 60px;
left: 0; left: 0;
right: 0; right: 0;
transition: top 0.3s ease; transition: top 0.3s ease;
......
<style scoped> <style scoped>
@import "../css/cssReset.css"; @import "../css/cssReset.css";
.January{
background-color: #B3E5FC;
}
.February{
background-color: #C8E6C9;
}
.March{
background-color: #FFCCD2;
}
.April{
background-color: #F8DDE0;
}
.May{
background-color: #E1BEE7;
}
.June{
background-color: #D1C4E9;
}
.July{
background-color: #C5CAE9;
}
.August{
background-color: #F0F4C3;
}
.September{
background-color: #FFF9C4;
}
.October{
background-color: #FFECB3;
}
.November{
background-color: #FFE0B2;
}
.December{
background-color: #FFCCBC;
}
.singeRowTable tr:nth-child(2n + 1) { .singeRowTable tr:nth-child(2n + 1) {
background: none; background: none;
} }
...@@ -85,17 +121,18 @@ ...@@ -85,17 +121,18 @@
<div class="col-3"> <div class="col-3">
<q-field filled dense> <q-field filled dense>
<template v-slot:control> <template v-slot:control>
<el-date-picker <el-date-picker v-model="dateArray[0]" style="width:100%" value-format="yyyy-MM" @change="resetSearch()"
v-model="dateArray" size="small" type="month" placeholder="选择开始年月">
size="mini" </el-date-picker>
@change="resetSearch" </template>
value-format="yyyy-MM" </q-field>
type="daterange" </div>
style="border:none;" <div class="col-3">
range-separator="至" <q-field filled dense>
start-placeholder="跟进开始时间" <template v-slot:control>
end-placeholder="跟进结束时间" <el-date-picker v-model="dateArray[1]" style="width:100%" value-format="yyyy-MM" @change="resetSearch()"
/> size="small" type="month" placeholder="选择结束年月">
</el-date-picker>
</template> </template>
</q-field> </q-field>
</div> </div>
...@@ -129,11 +166,23 @@ ...@@ -129,11 +166,23 @@
style="min-width: 500px;" style="min-width: 500px;"
v-for="(item, index) in RListlength" v-for="(item, index) in RListlength"
:key="index" :key="index"
:class="item.Month.slice(6)==1?'January':
(item.Month.slice(6)==2?'February':
(item.Month.slice(6)==3?'March':
(item.Month.slice(6)==4?'April':
(item.Month.slice(6)==5?'May':
(item.Month.slice(6)==6?'June':
(item.Month.slice(6)==7?'July':
(item.Month.slice(6)==7?'August':
(item.Month.slice(6)==7?'September':
(item.Month.slice(5)==10?'October':
(item.Month.slice(5)==11?'November':
(item.Month.slice(5)==12?'December':'')))))))))))"
> >
<span v-if="item.Month.slice(5) < 10">{{ <span v-if="item.Month.slice(5) < 10">{{
item.Month.slice(6) item.Month.slice(6)
}}</span> }}</span>
<span v-else>{{ item.Month.slice(6) }}</span <span v-else>{{ item.Month.slice(5) }}</span
> >
</th> </th>
<th width="120" rowspan="2" style="min-width: 110px;">提成合计</th> <th width="120" rowspan="2" style="min-width: 110px;">提成合计</th>
...@@ -541,6 +590,14 @@ export default { ...@@ -541,6 +590,14 @@ export default {
}); });
}, },
resetSearch() { resetSearch() {
if(!this.dateArray[0]||!this.dateArray[1]){
this.$q.notify({
type: 'negative',
position: "top",
message: `请选择开始和结束时间`
})
return
}
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.getList(); this.getList();
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment