11 changed files with 324 additions and 225 deletions
@ -0,0 +1,94 @@ |
|||
|
|||
<template> |
|||
<div class='' style="padding: 0 10px;"> |
|||
<title-small text="同地点同类型事件重复投诉问题"> |
|||
<template v-slot:time> |
|||
<el-select v-model="typeCondition" popper-class="selectPopClass" placeholder="请选择" class="select" @change="timeChange"> |
|||
<el-option v-for="item in typeConditionList" :key="item.value" :label="item.label" :value="item.value"> </el-option> |
|||
</el-select> |
|||
</template> |
|||
<template v-slot:info> |
|||
<span class="infoColor">更多></span> |
|||
</template> |
|||
</title-small> |
|||
|
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import titleSmall from "@/views/dataBoard/satisfactionEval/components/Title/titleSmall.vue"; |
|||
|
|||
export default { |
|||
data() { |
|||
return { |
|||
typeCondition:'', |
|||
startTime:'', |
|||
endTime:'', |
|||
typeConditionList: [ |
|||
{ |
|||
label: "本月", |
|||
value: 1, |
|||
}, |
|||
{ |
|||
label: "上月", |
|||
value: 2, |
|||
}, |
|||
{ |
|||
label: "近三月", |
|||
value: 3, |
|||
}, |
|||
{ |
|||
label: "近半年", |
|||
value: 4, |
|||
}, |
|||
{ |
|||
label: "近一年", |
|||
value: 5, |
|||
}, |
|||
], |
|||
}; |
|||
}, |
|||
created() {}, |
|||
methods: { |
|||
timeChange() { |
|||
let startTime = "", |
|||
endTime = ""; |
|||
if (this.typeCondition === 1) { |
|||
startTime = this.$moment().startOf("month").format("YYYY-MM-DD"); |
|||
} |
|||
if (this.typeCondition === 2) { |
|||
startTime = this.$moment().subtract(1, "months").startOf("month").format("YYYY-MM-DD"); |
|||
} |
|||
if (this.typeCondition === 3) { |
|||
startTime = this.$moment().subtract(2, "months").startOf("month").format("YYYY-MM-DD"); |
|||
} |
|||
if (this.typeCondition === 4) { |
|||
startTime = this.$moment().subtract(5, "months").startOf("month").format("YYYY-MM-DD"); |
|||
} |
|||
if (this.typeCondition === 5) { |
|||
startTime = this.$moment().subtract(11, "months").startOf("month").format("YYYY-MM-DD"); |
|||
} |
|||
|
|||
if (this.typeCondition === 2) { |
|||
endTime = this.$moment().subtract(1, "months").endOf("month").format("YYYY-MM-DD"); |
|||
} else { |
|||
endTime = this.$moment().endOf("month").format("YYYY-MM-DD"); |
|||
} |
|||
this.startTime = startTime; |
|||
this.endTime = endTime; |
|||
// this.getData(); |
|||
}, |
|||
}, |
|||
components:{ |
|||
titleSmall |
|||
}, |
|||
computed:{}, |
|||
watch: {}, |
|||
} |
|||
</script> |
|||
|
|||
<style lang='scss' scoped> |
|||
.infoColor{ |
|||
color: #A3B9DA ; |
|||
} |
|||
</style> |
Loading…
Reference in new issue