| | |
| | | <el-divider /> |
| | | <div style="margin-left: 10px;display: flex"> |
| | | <el-button type="primary" icon="el-icon-circle-plus-outline" @click="add('add')">新增</el-button> |
| | | <el-button type="primary" icon="el-icon-upload2" @click="upload">导入</el-button> |
| | | <!-- <el-button type="primary" icon="el-icon-upload2" @click="upload">导入</el-button>--> |
| | | </div> |
| | | <el-divider /> |
| | | <div class="elTableDiv"> |
| | |
| | | <el-dialog |
| | | :title="operation==='add'?'新增':(operation==='edit'?'编辑':'查看')" |
| | | :visible.sync="dialogVisible" |
| | | width="800" |
| | | top="15vh" |
| | | width="800px" |
| | | :top="isIpad?'5vh':'15vh'" |
| | | :close-on-click-modal="false" |
| | | @closed="handleClose" |
| | | @close="handleClose" |
| | |
| | | |
| | | <script> |
| | | import Pagination from '@/components/Pagination' |
| | | import { DeleteOrganization } from '@/api/jcsz' |
| | | import { |
| | | AddUpdateStepCheckStaned, DeleteStepCheckStaned, |
| | | EditStepCheckStanedSearch, |
| | |
| | | } |
| | | } |
| | | return { |
| | | isIpad: false, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.getStepCheckStanedSearch() |
| | | this.getStepCheckItemSelect() |
| | | this.handleRequest() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | handleRequest() { |
| | | this.getStepCheckStanedSearch().then(res => { |
| | | if (res.code === '200') { |
| | | this.getStepCheckItemSelect() |
| | | } |
| | | }) |
| | | }, |
| | | async getStepCheckStanedSearch() { |
| | | const res = await StepCheckStanedSearch(this.form) |
| | | this.tableData = res.data |
| | | this.total = res.count |
| | | return { code: res.code } |
| | | }, |
| | | // 排序改变时 |
| | | sortChange({ column, prop, order }) { |
| | |
| | | getHeight() { |
| | | this.$nextTick(() => { |
| | | this.mainHeight = window.innerHeight - 250 |
| | | this.tableHeight = this.mainHeight - 100 |
| | | this.tableHeight = this.mainHeight - 50 |
| | | this.isIpad = window.innerHeight < 769 |
| | | // if (window.innerHeight < 769) { |
| | | // this.tableHeight = this.tableHeight - 50 |
| | | // } |
| | | }) |
| | | }, |
| | | // 获取检验项目下拉列表 |