jinlin
2024-03-20 991a2c14f0e118112a3ea60ff7c464fba1512b5b
web/src/views/modules/basicInfo/XhProductModel.vue
@@ -19,6 +19,7 @@
              <el-form-item>
                <zt-button type="query" @click="table.query()"/>
                <zt-button type="add" @click="add()"/>
                <zt-button v-if="productType==='3'" type="primary" @click="addCell()">新增虚单元</zt-button>
                <zt-button type="delete" @click="table.deleteHandle()"/>
              </el-form-item>
            </el-form>
@@ -37,7 +38,7 @@
              <zt-table-column-handle :table="table"/>
            </el-table>
            <!-- 弹窗, 新增 / 修改 -->
            <add-or-update @refreshDataList="table.query"/>
            <add-or-update @refreshDataList="table.query" ref="AddOrUpdate"/>
            <select-ty-model @refreshDataList="table.query" ref="SelectTyModel"/>
          </zt-table-wraper>
        </div>
@@ -51,6 +52,7 @@
  import SelectTyModel from './SelectTyModel'
  import ProductModelTree from "./ProductModelTree";
  import Cookies from "js-cookie";
  import TyProductModel from "./TyProductModel-AddOrUpdate";
  export default {
    data() {
@@ -66,6 +68,7 @@
      }
    },
    components: {
      TyProductModel,
      ProductModelTree,
      AddOrUpdate,
      SelectTyModel
@@ -88,14 +91,13 @@
        }
        this.$refs.SelectTyModel.$refs.dialog.init(null,{type:this.dataForm.type,id:this.dataForm.pid})
      },
      addCell(){
        this.$refs.AddOrUpdate.$refs.dialog.init(null,{type:10,pid:this.dataForm.pid})
      },
      cellStyle({column}) {
        if (column.label === '名称') {
          return 'text-align: left !important;'
        }
      },
      getPath(id) {
        console.log(id, 'path')
        return `${window.SITE_CONFIG['apiURL']}/sys/oss/content2?fileId=${id}`
      },
      onProductSelected(data) {
        console.log(data)