| | |
| | | plain |
| | | icon="el-icon-refresh" |
| | | size="mini" |
| | | @click="resetQuery" |
| | | @click="getAsyncData" |
| | | v-hasPermi="['system:experts:add']" |
| | | >同步数据</el-button> |
| | | </el-col> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getCertificatePage } from "@/api/notCoalMine/certifiate"; |
| | | import {getCertificatePage, getCertificateSync} from "@/api/notCoalMine/certifiate"; |
| | | import certificateDialog from "@/views/notCoalMine/nCertificateList/components/certificateDialog"; |
| | | export default { |
| | | name: "nCertificateManage", |
| | |
| | | this.getPage() |
| | | }, |
| | | methods: { |
| | | async getAsyncData(){ |
| | | const t = this |
| | | t.loading = true |
| | | if(t.queryParams.idcardNum !== ''){ |
| | | t.queryParams.idcardTypeCode = '01' |
| | | const {pageNum,pageSize,...data} = t.queryParams |
| | | const res = await getCertificateSync(data) |
| | | if(res.code == 200){ |
| | | await t.getPage() |
| | | }else{ |
| | | t.$message({ |
| | | message: res.msg, |
| | | type: 'warning' |
| | | }) |
| | | } |
| | | }else{ |
| | | t.$message({ |
| | | message: '请输入身份证号', |
| | | type: 'warning' |
| | | }) |
| | | } |
| | | t.loading = false |
| | | }, |
| | | |
| | | async getPage(){ |
| | | const t = this |
| | | t.loading = true |