Browse Source

编辑元素修改

duy 8 months ago
parent
commit
317504f5c8
1 changed files with 4 additions and 2 deletions
  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 : ''