|
@@ -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 || "" : "",
|