8
0
Ver Fonte

编辑元素修改

duy há 8 meses atrás
pai
commit
317504f5c8
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      src/views/project/list/edit-element.vue

+ 4 - 2
src/views/project/list/edit-element.vue

@@ -382,8 +382,10 @@ const excelClick = async (item) => {
     const data = await getDomAttribute(item)
     const arr = getArrValue(formDataArr.value)
     const index = arrIndex(arr, 'key', data.key)
-    // const colName = data.name || data.text || data.key
-    const colName = data.text
+    console.log(data, 'data')
+    
+    const colName = data.text || data.key
+    // const colName = data.text
     const htmlType = index !== -1 ? arr[index].htmlType : ''
     const htmlName = index !== -1 ? arr[index].htmlName : ''
     const type = index !== -1 ? arr[index].type : ''