| | |
| | | url: '/system/menu/' + menuId, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | // 查询菜单列表 |
| | | export function shoudongtbjyjcwsxmjg(query) { |
| | | return request({ |
| | | url: '/system/config/shoudongtbjyjcwsxmjg', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
New file |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form |
| | | :model="queryParams" |
| | | ref="queryForm" |
| | | size="small" |
| | | :inline="true" |
| | | label-width="68px" |
| | | > |
| | | <el-form-item label="体检号" prop="tjh"> |
| | | <el-input |
| | | v-model="queryParams.tjh" |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="体检类型" prop="tblx"> |
| | | <el-select |
| | | v-model="queryParams.tblx" |
| | | :popper-append-to-body="false" |
| | | filterable |
| | | placeholder="请选择体检类型" |
| | | clearable |
| | | @change="idFn1" |
| | | > |
| | | <el-option |
| | | v-for="item in CompanyList" |
| | | :key="item.tblx" |
| | | :label="item.tblx" |
| | | :value="item.tblxId" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | size="mini" |
| | | @click="handleManual" |
| | | >手工同步</el-button |
| | | > |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" |
| | | >重置</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { shoudongtbjyjcwsxmjg } from "@/api/system/menu"; |
| | | export default { |
| | | |
| | | name: "Manual", |
| | | dicts: [ |
| | | "dict_user_national", |
| | | |
| | | ], |
| | | data() { |
| | | return{ |
| | | queryParams: { |
| | | tjh: null, |
| | | tblx: null, |
| | | }, |
| | | CompanyList:[ |
| | | { |
| | | tblx:"检验", |
| | | tblxId:"jy" |
| | | |
| | | }, |
| | | { |
| | | tblx:"检查", |
| | | tblxId:"jc" |
| | | |
| | | }, |
| | | { |
| | | tblx:"检验和检查", |
| | | tblxId:"jyjc" |
| | | |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | created() { |
| | | // this.handleManual(); |
| | | }, |
| | | methods: { |
| | | handleManual() { |
| | | shoudongtbjyjcwsxmjg(this.queryParams).then(res => { |
| | | this.$modal.msgSuccess("同步成功"); |
| | | }) |
| | | }, |
| | | resetQuery() { |
| | | this.resetForm("queryForm"); |
| | | }, |
| | | |
| | | idFn1(value) { |
| | | if (value) { |
| | | console.log(value) |
| | | } |
| | | }, |
| | | |
| | | } |
| | | }; |
| | | </script> |
| | | <style scoped> |
| | | .el-select-dropdown{ |
| | | position: absolute !important; |
| | | top: 30px !important; |
| | | left: 0px !important; |
| | | } |
| | | |
| | | </style> |
| | | |