| | |
| | | <div class="header-content"> |
| | | <div class="search"> |
| | | <span style="padding-right: 20px">筛选条件:</span> |
| | | <el-select |
| | | v-model="context" |
| | | placeholder="请选择" |
| | | @change="getBayonetListData" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | <el-input v-model="context" placeholder="请输入" @change="getBayonetListData"></el-input> |
| | | </div> |
| | | </div> |
| | | </header> |
| | |
| | | <div class="main-content"> |
| | | <div class="main-title"> |
| | | <el-button |
| | | class="el-icon-plus" |
| | | class="el-icon-plus button-addition" |
| | | type="primary" |
| | | @click="showDialog(false, null)" |
| | | >添加</el-button |
| | |
| | | <el-button @click="handleExport">导出卡口</el-button> |
| | | </div> |
| | | <!-- 数据展示 --> |
| | | <MyTable :tableOption="tableOption" :tableData="list" :pageShow="false"> |
| | | <MyTable :tableOption="tableOption" :get-table-list="getBayonetListData" :tableData="list" :pageShow="false"> |
| | | <template #operation="info"> |
| | | <el-link |
| | | :underline="false" |
| | |
| | | data() { |
| | | return { |
| | | isShowDialog: false, |
| | | context: 0, |
| | | context: "", |
| | | options: [ |
| | | { |
| | | value: 0, |
| | |
| | | getBayonetListData() { |
| | | bayonet |
| | | .getBayonetList({ |
| | | bayonetName: "", |
| | | bayonetName: this.context, |
| | | current: this.current, |
| | | size: this.size, |
| | | }) |
| | |
| | | .exportBayonetList({ |
| | | bayonetName: this.context, |
| | | current: this.current, |
| | | size: this.size, |
| | | size: this.size |
| | | }) |
| | | .then((res) => { |
| | | downloadFile(res); |