| | |
| | | :before-open="beforeOpen" |
| | | v-model="form" |
| | | ref="crud" |
| | | :row-style="rowStyle" |
| | | :search.sync="search" |
| | | @row-update="rowUpdate" |
| | | @row-save="rowSave" |
| | | @row-del="rowDel" |
| | |
| | | >本月 |
| | | </el-button> |
| | | </template> |
| | | |
| | | |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | |
| | | return { |
| | | form: {}, |
| | | query: {}, |
| | | search:{}, |
| | | loading: true, |
| | | page: { |
| | | pageSize: 10, |
| | |
| | | menu:false, |
| | | height:'auto', |
| | | calcHeight: 30, |
| | | border: false, |
| | | stripe:true, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | activeClass: 3, |
| | | border: true, |
| | | activeClass: 0, |
| | | index: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | |
| | | { |
| | | label: "健康码颜色", |
| | | search: true, |
| | | searchLabelWidth:100, |
| | | searchLabelWidth:120, |
| | | prop: "type", |
| | | searchSpan: 3, |
| | | searchSpan: 4, |
| | | searchValue: this.getHealthcodeType(), |
| | | width:210, |
| | | type: "select", |
| | | dicData: [ |
| | |
| | | } |
| | | ] |
| | | }, |
| | | data: [] |
| | | data: [], |
| | | isActive: false, |
| | | recorder: null, |
| | | }; |
| | | }, |
| | | mounted:{ |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission"]), |
| | |
| | | return ids.join(","); |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | beforeOpen(done, type) { |
| | | }, |
| | |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | rowStyle({row, column, rowIndex}){ |
| | | if(row.type=="3"){ |
| | | return { |
| | | color:"#fe1515" |
| | | } |
| | | } |
| | | }, |
| | | getHealthcodeType(){ |
| | | if (this.$route.query.type != undefined) { |
| | | var type = this.$route.query.type+""; |
| | | this.$route.query = {}; |
| | | return type; |
| | | } |
| | | }, |
| | | getHealthcodeData(e) { |
| | | this.activeClass = e; |
| | | var that = this; |
| | | that.activeClass = e; |
| | | //status 0:本日 1:本月 2:本年 type: 1:绿色 2:黄色 3:红色 |
| | | var params = { |
| | | status: e |
| | |
| | | ...params, |
| | | }; |
| | | |
| | | if (this.$route.query.status && this.$route.query != undefined && this.$route.query != null && this.$route.query != "" ) { |
| | | if (this.$route.query.type != undefined && this.$route.query.type != null && this.$route.query.type != "" ) { |
| | | if (this.$route.query.status!=undefined && this.$route.query != undefined && this.$route.query != null && this.$route.query != "" ) { |
| | | if (this.$route.query.type != undefined) { |
| | | this.activeClass = this.$route.query.status; |
| | | this.page.currentPage = 1; |
| | | params = { |
| | |
| | | type:this.$route.query.status |
| | | }; |
| | | } |
| | | }else if(this.$route.query.type != undefined && this.$route.query.type != null && this.$route.query.type != "" ){ |
| | | }else if(this.$route.query.type != undefined){ |
| | | params = { |
| | | type: this.$route.query.type, |
| | | beginTime: this.$route.query.startTime, |
| | | begTime: this.$route.query.startTime, |
| | | endTime: this.$route.query.endTime |
| | | } |
| | | }else{ |
| | |
| | | status:this.$route.query.status, |
| | | type:this.$route.query.type |
| | | } |
| | | |
| | | } |
| | | |
| | | if (dateTime) { |
| | |
| | | } |
| | | }; |
| | | </script> |
| | | <style scoped> |
| | | .el-button.btn-color { |
| | | color: rgb(255, 255, 255); |
| | | background-color: rgb(64, 158, 255); |
| | | border-color: rgb(64, 158, 255); |
| | | } |
| | | </style> |