| | |
| | | <div class="main_app"> |
| | | <QueryForm v-model="filters" :query-form-config="queryFormConfig" @handleQuery="getList(1)" @clear="clear" /> |
| | | <div class="mt20"> |
| | | <el-button type="primary" @click="handleEx()" v-permissions="['business:ywpatrolline:create']">新增</el-button> |
| | | <el-button type="primary" @click="$refs.newWarehouse.open('新建仓库名称')">新增</el-button> |
| | | </div> |
| | | <el-table v-loading="loading" :data="list" stripe> |
| | | <el-table-column prop="platformName" label="仓库名称" min-width="120" show-overflow-tooltip /> |
| | |
| | | <el-table-column prop="param1" label="备注" min-width="120" show-overflow-tooltip /> |
| | | <el-table-column prop="param2" label="状态" min-width="90" show-overflow-tooltip /> |
| | | <el-table-column prop="workTime" label="操作" min-width="100" show-overflow-tooltip> |
| | | <template v-slot="{row}"> |
| | | <template v-slot="{ row }"> |
| | | <span class="primaryColor pointer">查看详情</span> |
| | | <span class="red pointer">删除</span> |
| | | </template> |
| | |
| | | <div class="mt20"> |
| | | <Pagination @size-change="handleSizeChange" @current-change="getList" :pagination="pagination" /> |
| | | </div> |
| | | <newWarehouse ref="newWarehouse" @success="getList" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Pagination from '@/components/common/Pagination' |
| | | import QueryForm from '@/components/common/QueryForm' |
| | | import newWarehouse from './components/newWarehouse' |
| | | import dayjs from 'dayjs' |
| | | import duration from 'dayjs/plugin/duration' |
| | | dayjs.extend(duration) |
| | |
| | | export default { |
| | | components: { |
| | | Pagination, |
| | | QueryForm |
| | | QueryForm, |
| | | newWarehouse |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | total: 0, |
| | | queryFormConfig: { |
| | | formItems: [ |
| | | { |
| | | { |
| | | filed: 'carCodeFront', |
| | | type: 'input', |
| | | label: '仓库名称', |
| | |
| | | }, |
| | | handleSizeChange(capacity) { |
| | | this.pagination.pageSize = capacity |
| | | this.getList() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | </style> |
| | | <style></style> |