|
|
@ -17,17 +17,8 @@ |
|
|
|
<el-radio label="2" border style="margin: 0 20px 0 0">季</el-radio> |
|
|
|
<el-radio label="3" border style="margin: 0 20px 0 0">年</el-radio> |
|
|
|
</el-radio-group> --> |
|
|
|
<el-date-picker |
|
|
|
v-model="pickerValue" |
|
|
|
type="daterange" |
|
|
|
align="right" |
|
|
|
unlink-panels |
|
|
|
range-separator="至" |
|
|
|
start-placeholder="开始日期" |
|
|
|
end-placeholder="结束日期" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
@change="pickerChage" |
|
|
|
> |
|
|
|
<el-date-picker v-model="pickerValue" type="daterange" align="right" unlink-panels range-separator="至" |
|
|
|
start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" @change="pickerChage"> |
|
|
|
</el-date-picker> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -35,9 +26,9 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
// import { deviceType } from "./index.js"; |
|
|
|
// this.$store.commit('headerFun', data) |
|
|
|
export default { |
|
|
|
// import { deviceType } from "./index.js"; |
|
|
|
// this.$store.commit('headerFun', data) |
|
|
|
export default { |
|
|
|
name: "Post", |
|
|
|
props: ["title", "type"], |
|
|
|
data() { |
|
|
@ -46,8 +37,7 @@ export default { |
|
|
|
radioTime: [], |
|
|
|
pickerValue: null, |
|
|
|
pickerOptions: { |
|
|
|
shortcuts: [ |
|
|
|
{ |
|
|
|
shortcuts: [{ |
|
|
|
text: "最近一周", |
|
|
|
onClick(picker) { |
|
|
|
const end = new Date(); |
|
|
@ -143,37 +133,42 @@ export default { |
|
|
|
this.$emit("picker-change", this.pickerValue, this.type, this.timeType); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<style scoped src="@/assets/styles/common.css"></style> |
|
|
|
<style scoped> |
|
|
|
. >>> .el-radio--small.is-bordered { |
|
|
|
.>>>.el-radio--small.is-bordered { |
|
|
|
margin-right: 20px !important; |
|
|
|
margin-left: 0 !important; |
|
|
|
} |
|
|
|
>>> .el-radio__input { |
|
|
|
} |
|
|
|
|
|
|
|
>>>.el-radio__input { |
|
|
|
display: none; |
|
|
|
} |
|
|
|
>>> .el-radio__label { |
|
|
|
} |
|
|
|
|
|
|
|
>>>.el-radio__label { |
|
|
|
padding-left: 5px; |
|
|
|
} |
|
|
|
.app-container { |
|
|
|
} |
|
|
|
|
|
|
|
.app-container { |
|
|
|
padding: 0; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
} |
|
|
|
.title1 { |
|
|
|
} |
|
|
|
|
|
|
|
.title1 { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
font-size: 20px; |
|
|
|
font-weight: 600; |
|
|
|
} |
|
|
|
.title-bor { |
|
|
|
} |
|
|
|
|
|
|
|
.title-bor { |
|
|
|
display: inline-block; |
|
|
|
height: 20px; |
|
|
|
width: 6px; |
|
|
|
background: #4f8bff; |
|
|
|
margin-right: 10px; |
|
|
|
border-radius: 8px; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |