| | |
| | | label: "体温状态", |
| | | search: true, |
| | | searchLabelWidth: 120, |
| | | searchValue: this.getAnimalType(), |
| | | prop: "status", |
| | | searchSpan: 5, |
| | | width:110, |
| | |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | }, |
| | | //体温状态回填 |
| | | getAnimalType(){ |
| | | if (this.$route.query.status != undefined) { |
| | | return this.$route.query.status |
| | | } |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | const { dateTime } = this.query; |
| | | let values = { |
| | |
| | | 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> |
| | |
| | | @row-update="rowUpdate" |
| | | @row-save="rowSave" |
| | | @row-del="rowDel" |
| | | @row-click="rowClick" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @selection-change="selectionChange" |
| | |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <!-- <template slot-scope="{ type, size, row }" slot="menu"> |
| | | |
| | | <el-button |
| | | v-if="row.imgUrl != null || row.imgUrl != ''" |
| | |
| | | @click.stop="handleParcelPic(row)" |
| | | >查看包裹图片 |
| | | </el-button> |
| | | </template> |
| | | </template> --> |
| | | |
| | | </avue-crud> |
| | | <template> |
| | |
| | | }, |
| | | selectionList: [], |
| | | option: { |
| | | menu:false, |
| | | height:'auto', |
| | | calcHeight: 30, |
| | | tip: false, |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | rowClick(row){ |
| | | var that=this; |
| | | getParcelPic(row.imgUrl).then(res => { |
| | | that.imgUrl = res.data.data.imgBase64; |
| | | this.showViewer = true |
| | | }); |
| | | }, |
| | | selectionChange(list) { |
| | | this.selectionList = list; |
| | | }, |
| | |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |
| | | }, |
| | | handleParcelPic(row) { |
| | | var that=this; |
| | | getParcelPic(row.imgUrl).then(res => { |
| | | that.imgUrl = res.data.data.imgBase64; |
| | | //that.$refs.preview.clickHandler(); |
| | | this.showViewer = true |
| | | }); |
| | | }, |
| | | // 关闭查看器 |
| | | closeViewer() { |
| | |
| | | @row-update="rowUpdate" |
| | | @row-save="rowSave" |
| | | @row-del="rowDel" |
| | | @row-click="rowClick" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @selection-change="selectionChange" |
| | |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <!-- <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | v-if="row.imgUrl != null || row.imgUrl != ''" |
| | | icon="el-icon-view" |
| | |
| | | @click.stop="handleParcelPic(row)" |
| | | >查看包裹图片 |
| | | </el-button> |
| | | </template> |
| | | </template> --> |
| | | </avue-crud> |
| | | <template> |
| | | <div> |
| | | <!-- style="display:none" --> |
| | | <!-- <el-image |
| | | ref="preview" |
| | | :src="'data:image/png;base64,'+imgUrl" |
| | | :preview-src-list="['data:image/png;base64,'+imgUrl]" |
| | | z-index=9999></el-image> --> |
| | | <el-image-viewer |
| | | class="img" |
| | | v-if="showViewer" |
| | |
| | | }, |
| | | selectionList: [], |
| | | option: { |
| | | menu:false, |
| | | height:'auto', |
| | | calcHeight: 30, |
| | | tip: false, |
| | |
| | | this.selectionList = []; |
| | | this.$refs.crud.toggleSelection(); |
| | | }, |
| | | rowClick(row){ |
| | | var that=this; |
| | | getParcelPic(row.imgUrl).then(res => { |
| | | that.imgUrl = res.data.data.imgBase64; |
| | | this.showViewer = true |
| | | }); |
| | | }, |
| | | currentChange(currentPage){ |
| | | this.page.currentPage = currentPage; |
| | | }, |
| | |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |
| | | }, |
| | | handleParcelPic(row) { |
| | | var that = this; |
| | | getParcelPic(row.imgUrl).then(res => { |
| | | that.imgUrl = res.data.data.imgBase64; |
| | | //that.$refs.preview.clickHandler(); |
| | | this.showViewer = true |
| | | }); |
| | | }, |
| | | // 关闭查看器 |
| | | closeViewer() { |