| | |
| | | <el-table-column prop="sort" label="排序" width="100px"/> |
| | | <zt-table-column-handle :table="table" width="180px"> |
| | | <template v-slot="{ row }"> |
| | | <zt-table-button v-if="productType==='5'" size="small" type="primary" |
| | | <zt-table-button v-if="productType==='1'" size="small" type="primary" |
| | | @click="importData(row)">导入 |
| | | </zt-table-button> |
| | | </template> |
| | |
| | | methods: { |
| | | add() { |
| | | this.dataForm.type = this.productType |
| | | if (this.dataForm.type !== '5') { |
| | | alert(this.dataForm.type ) |
| | | if (this.dataForm.type !== '1') { |
| | | if (this.dataForm.type !== '3') { |
| | | this.dataForm.type = this.dataForm.type - 1 |
| | | } else if (this.dataForm.type === '3') { |
| | |
| | | } |
| | | }, |
| | | importData(row) { |
| | | this.$refs.ProductImport.$refs.dialog.init(row.id) |
| | | this.$refs.ProductImport.$refs.dialog.init(row) |
| | | } |
| | | } |
| | | } |