| | |
| | | <template> |
| | | <el-bus-crud v-bind="tableConfig" /> |
| | | <el-bus-crud ref="crud" v-bind="tableConfig" /> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | el: { |
| | | inputAttrs: { |
| | | min: 1, |
| | | max: 99999999, |
| | | precision: 0, |
| | | controls: false, |
| | | }, |
| | |
| | | el: { |
| | | precision: 0, |
| | | min: 0, |
| | | max: 99999999, |
| | | controls: false, |
| | | }, |
| | | rules: { required: true, message: '请输入库存', trigger: 'blur' }, |
| | |
| | | el: { |
| | | precision: 0, |
| | | min: 1, |
| | | max: 99999999, |
| | | controls: false, |
| | | }, |
| | | rules: { |
| | |
| | | ) |
| | | if (code === 0) { |
| | | this.$message.success('上架成功') |
| | | this.$refs.crud.clearSelection() |
| | | } |
| | | } catch (e) { |
| | | return false |
| | |
| | | ) |
| | | if (code === 0) { |
| | | this.$message.success('下架成功') |
| | | this.$refs.crud.clearSelection() |
| | | } |
| | | } catch (e) { |
| | | return false |