Sfoglia il codice sorgente

612修改弹窗表格下拉初始失败bug

tangjunhao 3 mesi fa
parent
commit
57cc18e904
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      src/views/model/vueflow/aside/asideData.vue

+ 6 - 0
src/views/model/vueflow/aside/asideData.vue

@@ -411,6 +411,11 @@ const getbtnvalue = async (pcaId, dataType) => {
           header.unit = "无"
           header.unitoptions = []
         }
+        if(header?.valueType === 1){
+          await getlistopt(header, "value")
+        }else {
+          header.options = []
+        }
       }))
 
       // 设置表格列
@@ -581,6 +586,7 @@ const currentRow = ref(null) // 当前选中行
 const createNewRow = () => {
   const rowIndex = tableData.value.length + 1
   const newRow = {}
+  console.log('tableColumns.value',tableColumns.value)
   tableColumns.value.forEach((col) => {
     newRow[col.code] = {
       value: col.valueType === 1 ? col.options?.[0]?.val || "" : "",