jinlin
2024-10-08 7351c1260470e9348ed6d33047ce18370d906d54
web/src/views/modules/basicInfo/XhProductModel.vue
@@ -45,6 +45,9 @@
                  <zt-table-button v-if="productType==='1'" size="small" type="primary"
                                   @click="importData(row)">导入
                  </zt-table-button>
                  <zt-table-button v-if="productType==='1'" size="small" type="primary"
                                   @click="exportData(row)">导出
                  </zt-table-button>
                </template>
              </zt-table-column-handle>
            </el-table>
@@ -142,6 +145,14 @@
      importData(row) {
        this.$refs.ProductImport.$refs.dialog.init(row)
      },
      async exportData(row) {
        let params = {
          shipId:row.id
        }
        let res = await this.$http.get(`/basicInfo/XhProductModel/exportData`,{params:params})
      },
      exportProduct() {
        window.location.href = './产品结构树导入模板.xlsx'
      },