zhangwencui
2 天以前 55a05b8dfe9a760feb8f6fb6f8b4e0089d88b111
src/views/productionManagement/productStructure/index.vue
@@ -15,14 +15,14 @@
            type="primary"
            text
            @click="() =>{
              currentRowId = row.id;
              currentRow = row;
              showEdit = true;
            }"
        >{{ row.productName }}
        </el-button>
      </template>
    </PIMTable>
    <StructureEdit v-if="showEdit" v-model:show-model="showEdit" :product-model-id="currentRowId"/>
    <StructureEdit v-if="showEdit" v-model:show-model="showEdit" :record="currentRow"/>
  </div>
</template>
@@ -33,6 +33,11 @@
const StructureEdit = defineAsyncComponent(() => import('@/views/productionManagement/productStructure/StructureEdit.vue'))
const tableColumn = ref([
  {
    label: "产品编码",
    prop: "productCode",
    slot: "detail"
  },
  {
    label: "产品名称",
    prop: "productName",
@@ -52,7 +57,7 @@
const tableLoading = ref(false);
const showEdit = ref(false);
const selectedRows = ref([]);
const currentRowId = ref(0);
const currentRow = ref({});
const page = reactive({
  current: 1,
  size: 10,