| | |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="workingNum" |
| | | label="同时作业车辆数" |
| | | label="同时叫号数量" |
| | | min-width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | | <el-table-column |
| | | prop="callReadyNum" |
| | | label="同时准备数量" |
| | | min-width="100" |
| | | show-overflow-tooltip |
| | | /> |
| | |
| | | @current-change="getList" |
| | | :pagination="pagination" |
| | | /> |
| | | <el-dialog |
| | | <GlobalWindow |
| | | :title="param.id ? '编辑月台配置' : '新增月台配置'" |
| | | :visible.sync="isShowEdit" |
| | | width="600px" |
| | | :confirm-working="subLoading" |
| | | @confirm="handleSub" |
| | | > |
| | | <el-form |
| | | :model="param" |
| | |
| | | format="HH:mm" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="同时作业车辆数"> |
| | | <el-form-item label="同时叫号数量"> |
| | | <el-input v-model="param.workingNum" class="w300"></el-input> |
| | | <span class="ml10">个</span> |
| | | </el-form-item> |
| | | <el-form-item label="同时准备数量"> |
| | | <el-input v-model="param.callReadyNum" class="w300"></el-input> |
| | | <span class="ml10">个</span> |
| | | </el-form-item> |
| | | <el-form-item label="停留超时报警时间"> |
| | |
| | | <span class="ml10">分钟</span> |
| | | </el-form-item> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="isShowEdit = false">取消</el-button> |
| | | <el-button type="primary" @click="handleSub">确定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </GlobalWindow> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Pagination from '@/components/common/Pagination' |
| | | import QueryForm from '@/components/common/QueryForm' |
| | | import { getPlatform, PlatformEdit, PlatformDel } from '@/api' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | // import { getPlatform, PlatformEdit, PlatformDel } from '@/api' |
| | | import { PlatformEdit, PlatformDel } from '@/api' |
| | | export default { |
| | | components: { |
| | | Pagination, |
| | | QueryForm |
| | | QueryForm, |
| | | GlobalWindow |
| | | }, |
| | | data () { |
| | | return { |
| | | filters: {}, |
| | | loading: false, |
| | | subLoading: false, |
| | | queryFormConfig: { |
| | | formItems: [ |
| | | { |
| | |
| | | getList (page) { |
| | | const { filters, pagination } = this |
| | | pagination.page = page || pagination.page |
| | | getPlatform({ |
| | | model: { ...filters }, |
| | | ...pagination |
| | | }).then(res => { |
| | | this.dataList = res.records |
| | | }) |
| | | // getPlatform({ |
| | | // model: { ...filters }, |
| | | // ...pagination |
| | | // }).then(res => { |
| | | // this.dataList = res.records |
| | | // }) |
| | | }, |
| | | handleDel (item) { |
| | | this.$confirm('确定删除该月台吗, 是否继续?', '提示', { |
| | |
| | | this.getList() |
| | | this.$tip.success('删除成功') |
| | | }) |
| | | }) |
| | | }, |
| | | handleSub () { |
| | | const { param } = this |
| | | PlatformEdit({ |
| | | ...param |
| | | }).then(res => { |
| | | this.isShowEdit = false |
| | | this.$tip.success('提交成功') |
| | | this.getList() |
| | | }) |
| | | }, |
| | | changeStatus (item) { |
| | |
| | | }, |
| | | handleSizeChange (capacity) { |
| | | this.pagination.capacity = capacity |
| | | this.getList(1) |
| | | } |
| | | } |
| | | } |