| | |
| | | </main> |
| | | <footer> |
| | | <!-- 添加卡口 --> |
| | | <el-dialog :destroy-on-close="true" :key="dialogType" :title="getDialogTitle" :visible.sync="isShowDialog" width="60%" :before-close="handleClose"> |
| | | <MyCreate @closeDialog="closeDialog" :originalBayonet="originalBayonet" :isEdit="isEdit"></MyCreate> |
| | | <el-dialog :destroy-on-close="true" :title="getDialogTitle" :visible.sync="isShowDialog" width="60%" :before-close="handleClose"> |
| | | <MyCreate v-if="isShowDialog" @closeDialog="closeDialog" :originalBayonet="originalBayonet" :isEdit="isEdit"></MyCreate> |
| | | </el-dialog> |
| | | </footer> |
| | | </div> |
| | |
| | | data() { |
| | | return { |
| | | isShowDialog: false, |
| | | context: 0, |
| | | context: null, |
| | | options: [ |
| | | { |
| | | value: 0, |
| | |
| | | }, |
| | | methods: { |
| | | getBayonetListData() { |
| | | bayonet.getBayonetList({ bayonetName: '', current: this.current, size: this.size }) |
| | | .then(data => { |
| | | this.list = data; |
| | | bayonet.getBayonetList({ bayonetName: this.context, current: this.current, size: this.size }) |
| | | .then(({ records }) => { |
| | | this.list = records; |
| | | }) |
| | | .catch(err => { |
| | | this.$message({ type: 'error', message: err }); |
| | |
| | | |
| | | closeDialog() { |
| | | this.isShowDialog = false; |
| | | this.getBayonetListData(); |
| | | }, |
| | | |
| | | handleExport() { |
| | |
| | | showDialog(isEdit, data) { |
| | | this.isShowDialog = true; |
| | | this.isEdit = isEdit; |
| | | this.originalBayonet = data; |
| | | this.originalBayonet = data.info.row; |
| | | } |
| | | } |
| | | } |