jinlin
2024-07-15 134c06beb2b6b7f7025fb030a9e52bcceebbfc98
web/src/views/modules/basicInfo/XhProductModel.vue
@@ -37,7 +37,7 @@
              <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>
@@ -85,7 +85,8 @@
    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') {
@@ -121,7 +122,7 @@
        }
      },
      importData(row) {
        this.$refs.ProductImport.$refs.dialog.init(row.id)
        this.$refs.ProductImport.$refs.dialog.init(row)
      }
    }
  }