udi版本切换
							parent
							
								
									76910d2aca
								
							
						
					
					
						commit
						e0fde36e71
					
				| @ -0,0 +1,27 @@ | |||||||
|  | import axios from "../../utils/axios"; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | export function filterLog(query) { | ||||||
|  |     return axios({ | ||||||
|  |         url: "/spssync/basic/udiinfo/filter", | ||||||
|  |         method: "get", | ||||||
|  |         params: query | ||||||
|  |     }); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | export function deleteLog(query) { | ||||||
|  |     return axios({ | ||||||
|  |         url: "/spssync/basic/udiinfo/deleteByStatus", | ||||||
|  |         method: "post", | ||||||
|  |         data: query | ||||||
|  |     }); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | export function createSchedule(query) { | ||||||
|  |     return axios({ | ||||||
|  |         url: "/spssync/basic/schedule/create", | ||||||
|  |         method: "post", | ||||||
|  |         data: query | ||||||
|  |     }); | ||||||
|  | } | ||||||
											
												Binary file not shown.
											
										
									
								| After Width: | Height: | Size: 19 KiB | 
| @ -0,0 +1,294 @@ | |||||||
|  | <template> | ||||||
|  |     <div> | ||||||
|  |         <el-card class="el-card"> | ||||||
|  |             <div> | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |                 <el-table | ||||||
|  |                     :data="udidlList" | ||||||
|  |                     style="width: 100%" | ||||||
|  |                     v-loading="loading" | ||||||
|  |                     highlight-current-row="true" | ||||||
|  |                     :row-class-name="tableRowClassName" | ||||||
|  |                     @current-change="handleErpChange" | ||||||
|  |                     @selection-change="handleSelectionUdiChange" | ||||||
|  |                 > | ||||||
|  |                     <el-table-column label="序号" type="index"></el-table-column> | ||||||
|  | 
 | ||||||
|  |                     <el-table-column | ||||||
|  |                         label="版本号" | ||||||
|  |                         prop="versionNumber" | ||||||
|  |                         show-overflow-tooltip | ||||||
|  |                     ></el-table-column> | ||||||
|  | 
 | ||||||
|  |                     <el-table-column | ||||||
|  |                         label="产品标识" | ||||||
|  |                         prop="nameCode" | ||||||
|  |                         show-overflow-tooltip | ||||||
|  |                     ></el-table-column> | ||||||
|  |                     <el-table-column | ||||||
|  |                         label="产品名称" | ||||||
|  |                         prop="cpmctymc" | ||||||
|  |                         show-overflow-tooltip | ||||||
|  |                     ></el-table-column> | ||||||
|  |                     <el-table-column | ||||||
|  |                         label="规格型号" | ||||||
|  |                         prop="ggxh" | ||||||
|  |                         show-overflow-tooltip | ||||||
|  |                     ></el-table-column> | ||||||
|  |                     <el-table-column | ||||||
|  |                         label="医疗器械注册人" | ||||||
|  |                         prop="ylqxzcrbarmc" | ||||||
|  |                         show-overflow-tooltip | ||||||
|  |                     ></el-table-column> | ||||||
|  |                     <el-table-column | ||||||
|  |                         label="注册证编号" | ||||||
|  |                         prop="zczbhhzbapzbh" | ||||||
|  |                         show-overflow-tooltip | ||||||
|  |                     ></el-table-column> | ||||||
|  | 
 | ||||||
|  |                     <el-table-column label="操作" fixed="right"> | ||||||
|  |                         <template slot-scope="scope"> | ||||||
|  |                             <el-button | ||||||
|  |                                 type="text" | ||||||
|  |                                 size="small" | ||||||
|  |                                 @click="diDetail(scope.row)" | ||||||
|  |                             >详情 | ||||||
|  |                             </el-button | ||||||
|  |                             > | ||||||
|  |                             <el-button | ||||||
|  |                                 type="text" | ||||||
|  |                                 size="small" | ||||||
|  |                                 :disabled="scope.row.uuid === originUuid" | ||||||
|  |                                 @click="checkCombine(scope.row)" | ||||||
|  |                             >选入 | ||||||
|  |                             </el-button | ||||||
|  |                             > | ||||||
|  |                         </template> | ||||||
|  |                     </el-table-column> | ||||||
|  | 
 | ||||||
|  |                 </el-table> | ||||||
|  |                 <el-pagination | ||||||
|  |                     :page-size="unionQuery.limit" | ||||||
|  |                     @current-change="handleCurrentChange" | ||||||
|  |                     layout="prev, pager, next" | ||||||
|  |                     :total="total" | ||||||
|  |                 ></el-pagination> | ||||||
|  | 
 | ||||||
|  |             </div> | ||||||
|  |         </el-card> | ||||||
|  |         <el-dialog | ||||||
|  |             title="器械信息详情" | ||||||
|  |             :close-on-click-modal="false" | ||||||
|  |             :close-on-press-escape="false" | ||||||
|  |             :visible.sync="selectDialog" | ||||||
|  |             width="65%" | ||||||
|  |             append-to-body | ||||||
|  |             v-if="selectDialog" | ||||||
|  |         > | ||||||
|  |             <selectDiDetail :editQuery="diDetails" | ||||||
|  |             ></selectDiDetail> | ||||||
|  |         </el-dialog> | ||||||
|  | 
 | ||||||
|  |     </div> | ||||||
|  | </template> | ||||||
|  | 
 | ||||||
|  | <script> | ||||||
|  | import {filterByVersion, filterCompany,} from "../../api/basic/udiInfo"; | ||||||
|  | import {changeVersion, checkExitUdi} from "../../api/basic/udiRelevance"; | ||||||
|  | import selectDiDetail from "./SelectDIDetailDialog" | ||||||
|  | 
 | ||||||
|  | export default { | ||||||
|  |     name: "UdiinfoSelectVersion", | ||||||
|  |     props: { | ||||||
|  |         relId: { | ||||||
|  |             type: Object, | ||||||
|  |             required: true, | ||||||
|  |         }, | ||||||
|  |         uuid: { | ||||||
|  |             type: Object, | ||||||
|  |             required: true, | ||||||
|  |         }, | ||||||
|  |         originUuid: { | ||||||
|  |             type: Object, | ||||||
|  |             required: true, | ||||||
|  |         }, | ||||||
|  | 
 | ||||||
|  |         closeDialog: { | ||||||
|  |             type: Function, | ||||||
|  |             required: true, | ||||||
|  |         }, | ||||||
|  |     }, | ||||||
|  | 
 | ||||||
|  |     data() { | ||||||
|  |         return { | ||||||
|  |             unionQuery: { | ||||||
|  |                 uuid: null | ||||||
|  |             }, | ||||||
|  |             combineLoading: false, | ||||||
|  |             combineQuery: { | ||||||
|  |                 idSpliUdi: false, | ||||||
|  |                 thirdId: "", | ||||||
|  |                 relId: "", | ||||||
|  |                 erpName: "", | ||||||
|  |                 thirdName: null, | ||||||
|  |                 keys: [], | ||||||
|  |             }, | ||||||
|  | 
 | ||||||
|  |             checked: true, | ||||||
|  |             udidlList: [], | ||||||
|  |             erpList: [], | ||||||
|  |             pageTotal: 1, | ||||||
|  |             total: 1, | ||||||
|  |             currentRow: null, | ||||||
|  |             fromOptions: [], | ||||||
|  |             loading: false, | ||||||
|  |             erpLloading: false, | ||||||
|  |             multipleUdiSelection: [], | ||||||
|  |             selectDialog: false, | ||||||
|  |             diDetails: null, | ||||||
|  |         }; | ||||||
|  |     }, | ||||||
|  |     methods: { | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |         getList() { | ||||||
|  |             this.loading = true; | ||||||
|  |             filterByVersion(this.unionQuery) | ||||||
|  |                 .then((response) => { | ||||||
|  |                     this.loading = false; | ||||||
|  |                     if (response.code == 20000) { | ||||||
|  |                         this.udidlList = response.data.list || []; | ||||||
|  |                         this.total = response.data.total || 0; | ||||||
|  |                     } else { | ||||||
|  |                         this.$message.error(response.message); | ||||||
|  |                     } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |                 }) | ||||||
|  |                 .catch(() => { | ||||||
|  |                     this.loading = false; | ||||||
|  |                     this.udidlList = []; | ||||||
|  |                     this.total = 0; | ||||||
|  |                 }); | ||||||
|  |         }, | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |         checkSelectable(row) { | ||||||
|  |             return !row.check; | ||||||
|  |         }, | ||||||
|  | 
 | ||||||
|  |         diDetail(row) { | ||||||
|  |             this.diDetails = row; | ||||||
|  |             this.selectDialog = true; | ||||||
|  |         }, | ||||||
|  | 
 | ||||||
|  |         handleCurrentChange(val) { | ||||||
|  |             this.unionQuery.page = val; | ||||||
|  |             this.getList(); | ||||||
|  |         }, | ||||||
|  |         tableRowClassName({row, rowIndex}) { | ||||||
|  |             if (row.check) return "warning-row"; | ||||||
|  |             return ""; | ||||||
|  |         }, | ||||||
|  |         handleErpChange(val) { | ||||||
|  |             console.log(val); | ||||||
|  |             this.currentRow = val; | ||||||
|  |         }, | ||||||
|  |         intentBack() { | ||||||
|  |             this.closeDialog(); | ||||||
|  |         }, | ||||||
|  | 
 | ||||||
|  |         checkCombine(row) { | ||||||
|  | 
 | ||||||
|  |             this.combineQuery.keys = []; | ||||||
|  |             if (this.relId != null) { | ||||||
|  |                 this.combineQuery.relId = this.relId; | ||||||
|  |                 this.combineQuery.keys.push(row.uuid); | ||||||
|  |             } else | ||||||
|  |                 return; | ||||||
|  |             this.combineLoading = true; | ||||||
|  |             checkExitUdi(this.combineQuery) | ||||||
|  |                 .then((response) => { | ||||||
|  |                     this.combineLoading = false; | ||||||
|  |                     if (response.code == 20000) { | ||||||
|  |                         this.combine(); | ||||||
|  |                     } else if (response.code == 499) { | ||||||
|  |                         this.$confirm(response.message, {type: "warning"}) | ||||||
|  |                             .then(_ => { | ||||||
|  |                                 this.combine(); | ||||||
|  |                             }) | ||||||
|  |                             .catch(_ => { | ||||||
|  | 
 | ||||||
|  |                                 this.combineQuery.keys = []; | ||||||
|  |                             }); | ||||||
|  |                     } | ||||||
|  |                 }) | ||||||
|  |                 .catch(() => { | ||||||
|  |                     this.combineLoading = false; | ||||||
|  |                     this.$emit("closeDialog", false); | ||||||
|  |                 }); | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |         }, | ||||||
|  | 
 | ||||||
|  |         combine() { | ||||||
|  |             changeVersion(this.combineQuery) | ||||||
|  |                 .then((response) => { | ||||||
|  |                     this.combineLoading = false; | ||||||
|  |                     if (response.code == 20000) { | ||||||
|  |                         this.$message.success("切换成功!"); | ||||||
|  |                         this.$emit("closeUdi", true); | ||||||
|  |                     } else { | ||||||
|  |                         this.$message.error(response.message); | ||||||
|  |                         this.$emit("closeUdi", false); | ||||||
|  |                     } | ||||||
|  |                 }) | ||||||
|  |                 .catch(() => { | ||||||
|  |                     this.combineLoading = false; | ||||||
|  |                     this.intentBack(); | ||||||
|  |                 }); | ||||||
|  |         }, | ||||||
|  | 
 | ||||||
|  |         handleSelectionUdiChange(val) { | ||||||
|  |             this.multipleUdiSelection = val; | ||||||
|  |         }, | ||||||
|  |     }, | ||||||
|  |     components: { | ||||||
|  |         selectDiDetail, | ||||||
|  |     }, | ||||||
|  |     created() { | ||||||
|  |         this.unionQuery.uuid = this.uuid; | ||||||
|  |         this.getList(); | ||||||
|  |     }, | ||||||
|  | }; | ||||||
|  | </script> | ||||||
|  | 
 | ||||||
|  | <style scoped> | ||||||
|  | .checkitemTag { | ||||||
|  |     float: left; | ||||||
|  |     text-align: left; | ||||||
|  |     margin-top: 5px; | ||||||
|  |     width: 100%; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | div /deep/ .el-table .warning-row { | ||||||
|  |     background: #bebebe; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | div /deep/ .el-table .success-row { | ||||||
|  |     background: #ffffff; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .el-card { | ||||||
|  |     margin-right: 20px; | ||||||
|  |     /*transition: all .5s;*/ | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .query-form-item { | ||||||
|  |     display: block !important; | ||||||
|  |     margin-right: 10px; | ||||||
|  |     margin-bottom: 5px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | </style> | ||||||
| @ -0,0 +1,293 @@ | |||||||
|  | <template> | ||||||
|  |     <div> | ||||||
|  |         <el-form :inline="true" :model="query" class="query-form" size="mini"> | ||||||
|  |             <el-row> | ||||||
|  |                 <el-form-item class="query-form-item"> | ||||||
|  |                     <el-input v-model="filterQuery.genKey" placeholder="记录ID"></el-input> | ||||||
|  |                 </el-form-item> | ||||||
|  | 
 | ||||||
|  |                 <el-form-item class="query-form-item"> | ||||||
|  |                     <el-select v-model="filterQuery.status" placeholder="处理状态"> | ||||||
|  |                         <el-option label="全部" value=""></el-option> | ||||||
|  |                         <el-option label="等待处理" value="0"></el-option> | ||||||
|  |                         <el-option label="已处理" value="1"></el-option> | ||||||
|  |                         <el-option label="异常" value="2"></el-option> | ||||||
|  |                     </el-select> | ||||||
|  |                 </el-form-item> | ||||||
|  | 
 | ||||||
|  |                 <el-form-item> | ||||||
|  |                     <el-button-group style="display:flex;"> | ||||||
|  |                         <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> | ||||||
|  |                         <el-button type="primary" icon="search" @click="getList">查询</el-button> | ||||||
|  |                         <el-button type="primary" icon="search" @click="createSchedule(1)">立即同步已完成单据</el-button> | ||||||
|  |                         <el-button type="primary" icon="search" @click="createSchedule(2)">立即同步单据类型</el-button> | ||||||
|  |                         <el-button type="primary" icon="search" @click="createSchedule(3)">立即同步基础信息</el-button> | ||||||
|  |                         <el-button type="primary" icon="search" @click="createSchedule(4)">立即同步国家库DI数据</el-button> | ||||||
|  |                     </el-button-group> | ||||||
|  |                 </el-form-item> | ||||||
|  |             </el-row> | ||||||
|  |         </el-form> | ||||||
|  | 
 | ||||||
|  |         <el-table | ||||||
|  |             v-loading="loading" | ||||||
|  |             :data="list" | ||||||
|  |             style="width: 100%" | ||||||
|  |         > | ||||||
|  |             <el-table-column label="序号" type="index"></el-table-column> | ||||||
|  |             <el-table-column | ||||||
|  |                 label="任务ID" | ||||||
|  |                 prop="id" | ||||||
|  |                 show-overflow-tooltip | ||||||
|  |             ></el-table-column> | ||||||
|  | 
 | ||||||
|  |             <el-table-column | ||||||
|  |                 label="任务类型" | ||||||
|  |                 prop="idDatas" | ||||||
|  |                 show-overflow-tooltip | ||||||
|  |             > | ||||||
|  | 
 | ||||||
|  |                 <template slot-scope="scope"> | ||||||
|  |                     <span>{{ type[scope.row.idDatas] }}</span> | ||||||
|  |                 </template> | ||||||
|  |             </el-table-column> | ||||||
|  |             <el-table-column | ||||||
|  |                 label="状态" | ||||||
|  |                 prop="status" | ||||||
|  |                 show-overflow-tooltip | ||||||
|  |             > | ||||||
|  |                 <template slot-scope="scope"> | ||||||
|  |                     <el-tag | ||||||
|  |                         :type="statusFilterType(scope.row.status)" | ||||||
|  |                     >{{ status[scope.row.status] }} | ||||||
|  |                     </el-tag | ||||||
|  |                     > | ||||||
|  |                 </template> | ||||||
|  |             </el-table-column> | ||||||
|  |             <el-table-column | ||||||
|  |                 label="开始时间" | ||||||
|  |                 prop="startTime" | ||||||
|  |                 show-overflow-tooltip | ||||||
|  |             ></el-table-column> | ||||||
|  |             <el-table-column | ||||||
|  |                 label="结束时间" | ||||||
|  |                 prop="endTime" | ||||||
|  |                 show-overflow-tooltip | ||||||
|  |                 :formatter="formatterThirdSys" | ||||||
|  |             ></el-table-column> | ||||||
|  | 
 | ||||||
|  |             <el-table-column label="操作" fixed="right" width="160"> | ||||||
|  |                 <template slot-scope="scope"> | ||||||
|  |                     <el-button | ||||||
|  |                         type="text" | ||||||
|  |                         size="small" | ||||||
|  |                         @click.native.stop="deleteDialog(scope.row.id)" | ||||||
|  |                     >删除 | ||||||
|  |                     </el-button | ||||||
|  |                     > | ||||||
|  |                 </template> | ||||||
|  |             </el-table-column> | ||||||
|  |         </el-table> | ||||||
|  |         <el-pagination | ||||||
|  |             :page-size="filterQuery.limit" | ||||||
|  |             @current-change="handleCurrentChange" | ||||||
|  |             layout="prev, pager, next" | ||||||
|  |             :total="total" | ||||||
|  |         ></el-pagination> | ||||||
|  |     </div> | ||||||
|  | </template> | ||||||
|  | 
 | ||||||
|  | <script> | ||||||
|  | import {filterLog, deleteLog, createSchedule} from "../../api/thrsys/spsSyncStatus"; | ||||||
|  | import store from "@/store"; | ||||||
|  | 
 | ||||||
|  | export default { | ||||||
|  |     data() { | ||||||
|  |         return { | ||||||
|  |             filterQuery: { | ||||||
|  |                 id: null, | ||||||
|  |                 status: "1", | ||||||
|  |                 page: 1, | ||||||
|  |                 limit: 20, | ||||||
|  |             }, | ||||||
|  |             list: [], | ||||||
|  |             headers: {}, | ||||||
|  |             detailList: [], | ||||||
|  |             thirdSys: [], | ||||||
|  |             thirdSysDetail: null, | ||||||
|  |             total: 0, | ||||||
|  |             currentRow: null, | ||||||
|  |             editQuery: null, | ||||||
|  |             type: { | ||||||
|  |                 "AutoDownloadOrder": "已完成单据", | ||||||
|  |                 "AutoDownloadBusType": "单据类型", | ||||||
|  |                 "AutoDownloadAllData": "基础信息", | ||||||
|  |                 "AutoDownloadDiProducts": "国家库DI数据" | ||||||
|  |             }, | ||||||
|  |             status: { | ||||||
|  |                 0: "等待处理", | ||||||
|  |                 1: "处理完成", | ||||||
|  |                 2: "处理异常", | ||||||
|  |             }, | ||||||
|  |             uploadFileUrl: null, | ||||||
|  |             uploadData: { | ||||||
|  |                 thirdSys: "thirdId", | ||||||
|  |             }, | ||||||
|  |             templateDlUrl: null, | ||||||
|  |         }; | ||||||
|  |     }, | ||||||
|  | 
 | ||||||
|  |     methods: { | ||||||
|  |         onReset() { | ||||||
|  |             this.$router.push({ | ||||||
|  |                 path: "", | ||||||
|  |             }); | ||||||
|  |             this.filterQuery = { | ||||||
|  |                 id: null, | ||||||
|  |                 status: "1", | ||||||
|  |                 page: 1, | ||||||
|  |                 limit: 20, | ||||||
|  |             }; | ||||||
|  |             this.getList(); | ||||||
|  |         }, | ||||||
|  |         getList() { | ||||||
|  |             this.loading = true; | ||||||
|  |             filterLog(this.filterQuery) | ||||||
|  |                 .then((response) => { | ||||||
|  |                     this.loading = false; | ||||||
|  |                     if (response.code == 20000) { | ||||||
|  |                         this.list = response.data.list || []; | ||||||
|  |                         this.total = response.data.total || 0; | ||||||
|  |                     } else { | ||||||
|  |                         this.$message.error(response.message); | ||||||
|  |                     } | ||||||
|  |                 }) | ||||||
|  |                 .catch(() => { | ||||||
|  |                     this.loading = false; | ||||||
|  |                     this.list = []; | ||||||
|  |                     this.total = 0; | ||||||
|  |                 }); | ||||||
|  |         }, | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |         cancelDialog(val) { | ||||||
|  |             this.udiImportDetailVisible = false; | ||||||
|  |             this.thrCorpSelectVisible = false; | ||||||
|  |             if (val) { | ||||||
|  |                 this.getList(); | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |         , | ||||||
|  |         handleCurrentChange(val) { | ||||||
|  |             this.filterQuery.page = val; | ||||||
|  |             this.getList(); | ||||||
|  |         } | ||||||
|  |         , | ||||||
|  | 
 | ||||||
|  |         createSchedule(type) { | ||||||
|  |             let query = { | ||||||
|  |                 createType: type | ||||||
|  |             } | ||||||
|  | 
 | ||||||
|  |             createSchedule(query) | ||||||
|  |                 .then((response) => { | ||||||
|  |                     this.loading = false; | ||||||
|  |                     if (response.code == 20000) { | ||||||
|  |                         this.$message.success("创建成功!"); | ||||||
|  |                     } else if (response.code == 501) { | ||||||
|  |                         this.$message.warning(response.message); | ||||||
|  |                     } else { | ||||||
|  |                         this.$message.error(response.message); | ||||||
|  |                     } | ||||||
|  |                     this.getList(); | ||||||
|  |                 }) | ||||||
|  |                 .catch(() => { | ||||||
|  |                     this.loading = false; | ||||||
|  |                 }); | ||||||
|  |         }, | ||||||
|  |         deleteDialog(rowId) { | ||||||
|  |             this.$confirm("此操作将删除该任务信息, 是否继续?", "提示", { | ||||||
|  |                 confirmButtonText: "确定", | ||||||
|  |                 cancelButtonText: "取消", | ||||||
|  |                 type: "warning", | ||||||
|  |             }) | ||||||
|  |                 .then(() => { | ||||||
|  |                     let dQuery = { | ||||||
|  |                         id: rowId, | ||||||
|  |                     }; | ||||||
|  |                     deleteLog(dQuery) | ||||||
|  |                         .then((response) => { | ||||||
|  |                             this.loading = false; | ||||||
|  |                             if (response.code == 20000) { | ||||||
|  |                                 this.$message.success("删除成功"); | ||||||
|  |                             } else { | ||||||
|  |                                 this.$message.error(response.message); | ||||||
|  |                             } | ||||||
|  |                             this.getList(); | ||||||
|  |                         }) | ||||||
|  |                         .catch(() => { | ||||||
|  |                             this.loading = false; | ||||||
|  |                         }); | ||||||
|  |                 }) | ||||||
|  |                 .catch(() => { | ||||||
|  |                 }); | ||||||
|  |         } | ||||||
|  |         , | ||||||
|  |         handleChange(response, files, fileList) { | ||||||
|  |             console.log(response); | ||||||
|  |             if (response.code != 20000) { | ||||||
|  |                 this.$message.error(response.message); | ||||||
|  |                 this.getList(); | ||||||
|  |             } else { | ||||||
|  |                 // console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]); | ||||||
|  |                 this.$message.success(response.data); | ||||||
|  |                 this.getList(); | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |         , | ||||||
|  |         statusFilterType(status) { | ||||||
|  |             const statusMap = { | ||||||
|  |                 0: "warning", | ||||||
|  |                 1: "success", | ||||||
|  |                 2: "danger", | ||||||
|  |             }; | ||||||
|  |             return statusMap[status]; | ||||||
|  |         } | ||||||
|  |         , | ||||||
|  |     }, | ||||||
|  | 
 | ||||||
|  |     mounted() { | ||||||
|  |     }, | ||||||
|  |     components: {}, | ||||||
|  |     created() { | ||||||
|  |         this.headers = { | ||||||
|  |             ADMIN_ID: store.getters.adminId, | ||||||
|  |             ADMIN_TOKEN: store.getters.token, | ||||||
|  |         }; | ||||||
|  |         this.getList(); | ||||||
|  |     }, | ||||||
|  | }; | ||||||
|  | </script> | ||||||
|  | <style> | ||||||
|  | .itemTag { | ||||||
|  |     float: left; | ||||||
|  |     text-align: left; | ||||||
|  |     margin-top: 10px; | ||||||
|  |     width: 100px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .text { | ||||||
|  |     font-size: 13px; | ||||||
|  |     font-family: "Microsoft YaHei"; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .el-row { | ||||||
|  |     display: flex; | ||||||
|  |     flex-wrap: wrap; | ||||||
|  | 
 | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | .el-col { | ||||||
|  |     border-radius: 4px; | ||||||
|  |     flex-wrap: wrap; | ||||||
|  | } | ||||||
|  | </style> | ||||||
					Loading…
					
					
				
		Reference in New Issue