|
@@ -68,7 +68,7 @@
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="wbs_upload_table">
|
|
<HcTooltip keys="wbs_upload_table">
|
|
<el-button
|
|
<el-button
|
|
-
|
|
|
|
|
|
+
|
|
:type="item.tabFileType === 2 ? 'success' : 'primary'" plain
|
|
:type="item.tabFileType === 2 ? 'success' : 'primary'" plain
|
|
@click.stop="uploadClick(item, index)"
|
|
@click.stop="uploadClick(item, index)"
|
|
>
|
|
>
|
|
@@ -627,6 +627,10 @@ const CollapseChange = (name) => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const setCollapseKey = (key) => {
|
|
|
|
+ CollapseChange(key)
|
|
|
|
+}
|
|
|
|
+
|
|
//初始设置
|
|
//初始设置
|
|
const setFormDataNum = (datas) => {
|
|
const setFormDataNum = (datas) => {
|
|
itemRefs.value = []
|
|
itemRefs.value = []
|
|
@@ -670,8 +674,8 @@ const setTableFormMenu = (info) => {
|
|
newArr.push({ label: '清除数据', key: 'clear' })
|
|
newArr.push({ label: '清除数据', key: 'clear' })
|
|
}
|
|
}
|
|
console.log(treenodeDataInfo.value, 'treenodeDataInfo')
|
|
console.log(treenodeDataInfo.value, 'treenodeDataInfo')
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
tableFormMenu.value = newArr
|
|
tableFormMenu.value = newArr
|
|
}
|
|
}
|
|
|
|
|
|
@@ -715,7 +719,7 @@ const handleMenuSelect = async ({ key }) => {
|
|
DragModalTableForm.value[draindex].isTableRender = false
|
|
DragModalTableForm.value[draindex].isTableRender = false
|
|
}
|
|
}
|
|
await refs?.getTableFormInfo(pkeyId)
|
|
await refs?.getTableFormInfo(pkeyId)
|
|
-
|
|
|
|
|
|
+
|
|
nextTick(async ()=>{
|
|
nextTick(async ()=>{
|
|
listDatas.value[index].isTableRender = true
|
|
listDatas.value[index].isTableRender = true
|
|
listDatas.value[index].isTableForm = true
|
|
listDatas.value[index].isTableForm = true
|
|
@@ -723,16 +727,16 @@ const handleMenuSelect = async ({ key }) => {
|
|
let draindex = arrIndex( DragModalTableForm.value, 'pkeyId', pkeyId)
|
|
let draindex = arrIndex( DragModalTableForm.value, 'pkeyId', pkeyId)
|
|
DragModalTableForm.value[draindex].isTableForm = true
|
|
DragModalTableForm.value[draindex].isTableForm = true
|
|
DragModalTableForm.value[draindex].isTableRender = true
|
|
DragModalTableForm.value[draindex].isTableRender = true
|
|
- listDatas.value[index].isWindow = false
|
|
|
|
|
|
+ listDatas.value[index].isWindow = false
|
|
DragModalTableForm.value.splice(draindex, 1)
|
|
DragModalTableForm.value.splice(draindex, 1)
|
|
await refs?.getTableFormInfo(pkeyId)
|
|
await refs?.getTableFormInfo(pkeyId)
|
|
windowClick( listDatas.value[index], index)
|
|
windowClick( listDatas.value[index], index)
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
window.$message.success(msg)
|
|
window.$message.success(msg)
|
|
})
|
|
})
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
window.$message.error(msg)
|
|
window.$message.error(msg)
|
|
}
|
|
}
|
|
@@ -746,7 +750,7 @@ const handleMenuSelect = async ({ key }) => {
|
|
|
|
|
|
} else if (key === 'water') {
|
|
} else if (key === 'water') {
|
|
console.log('含水率')
|
|
console.log('含水率')
|
|
-
|
|
|
|
|
|
+
|
|
const { pkeyId } = tableFormItemNode.value
|
|
const { pkeyId } = tableFormItemNode.value
|
|
const refs = await getFormRef(pkeyId)
|
|
const refs = await getFormRef(pkeyId)
|
|
const formData = refs?.getFormData()
|
|
const formData = refs?.getFormData()
|
|
@@ -757,7 +761,7 @@ const handleMenuSelect = async ({ key }) => {
|
|
} else {
|
|
} else {
|
|
window.$message.warning('请先选择设计强度')
|
|
window.$message.warning('请先选择设计强度')
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1267,8 +1271,8 @@ const uploadClick = (items, index) => {
|
|
}
|
|
}
|
|
//获取文件列表
|
|
//获取文件列表
|
|
getBussFileList(pkeyId)
|
|
getBussFileList(pkeyId)
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
} else if (!isTableForm) {
|
|
} else if (!isTableForm) {
|
|
window?.$message?.warning('暂无表单数据')
|
|
window?.$message?.warning('暂无表单数据')
|
|
}
|
|
}
|
|
@@ -1371,7 +1375,7 @@ const getBussPdfInfo = async ({ pkeyId }, dragItem = null, showTip = true) => {
|
|
|
|
|
|
//通知数据更新
|
|
//通知数据更新
|
|
const renewData = () => {
|
|
const renewData = () => {
|
|
- emit('renew')
|
|
|
|
|
|
+ emit('renew', ActiveKey.value)
|
|
ActiveKey.value = ''
|
|
ActiveKey.value = ''
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1605,9 +1609,9 @@ const HcUploadFileSuccess = async (res) => {
|
|
if (resData) {
|
|
if (resData) {
|
|
refs?.setFormData(resData)
|
|
refs?.setFormData(resData)
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
dataHcUploadFileRef.value[0]?.setModalShow(false)
|
|
dataHcUploadFileRef.value[0]?.setModalShow(false)
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
const downloadLoading = ref(false)
|
|
const downloadLoading = ref(false)
|
|
const getdownloadExcel = async (pKeyId)=>{
|
|
const getdownloadExcel = async (pKeyId)=>{
|
|
@@ -1668,6 +1672,7 @@ defineExpose({
|
|
getFormRegExpJson,
|
|
getFormRegExpJson,
|
|
getActiveKey,
|
|
getActiveKey,
|
|
setActiveKey,
|
|
setActiveKey,
|
|
|
|
+ setCollapseKey,
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
|
|
|