| | |
| | | v-model="form" |
| | | ref="crud" |
| | | :row-style="rowStyle" |
| | | :search.sync="search" |
| | | @row-update="rowUpdate" |
| | | @row-save="rowSave" |
| | | @row-del="rowDel" |
| | |
| | | return { |
| | | form: {}, |
| | | query: {}, |
| | | search:{}, |
| | | loading: true, |
| | | page: { |
| | | pageSize: 10, |
| | |
| | | { |
| | | label: "健康码颜色", |
| | | search: true, |
| | | searchLabelWidth:100, |
| | | searchLabelWidth:120, |
| | | prop: "type", |
| | | searchSpan: 3, |
| | | searchSpan: 4, |
| | | searchValue: this.getHealthcodeType(), |
| | | width:210, |
| | | type: "select", |
| | | dicData: [ |
| | |
| | | isActive: false, |
| | | recorder: null, |
| | | }; |
| | | }, |
| | | mounted:{ |
| | | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission"]), |
| | |
| | | } |
| | | } |
| | | }, |
| | | 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 |
| | |
| | | status:this.$route.query.status, |
| | | type:this.$route.query.type |
| | | } |
| | | |
| | | } |
| | | |
| | | if (dateTime) { |
| | |
| | | background-color: rgb(64, 158, 255); |
| | | border-color: rgb(64, 158, 255); |
| | | } |
| | | </style> |
| | | </style> |