|
@@ -1550,6 +1550,10 @@ const setContractType = (contractType) => {
|
|
|
const getTableDataAll = async (key) => {
|
|
|
await searchNodeAllTable()
|
|
|
await queryNodeStatus()
|
|
|
+ if (isTemplateType.value) {
|
|
|
+ await getFileName()
|
|
|
+ await getnodeBaseData()
|
|
|
+ }
|
|
|
//保存后自动展开到当前表单
|
|
|
if (!isNullES(key)) {
|
|
|
console.log(key)
|
|
@@ -1772,6 +1776,7 @@ const wbsElTreeClick = ({ node, data, keys }) => {
|
|
|
setStoreValue('wbsTreeExpandKeys', keys)
|
|
|
TreeAutoExpandKeys.value = keys || []
|
|
|
saveHistory(keys.join(','))
|
|
|
+
|
|
|
// getTableDataAll()
|
|
|
}
|
|
|
//树加载完成
|
|
@@ -2790,14 +2795,24 @@ const searchNodeAllTable = async () => {
|
|
|
type: authBtnTabKey.value,
|
|
|
})
|
|
|
ListItemDatas.value = getArrValue(data)
|
|
|
- if (ListItemDatas.value?.length > 0) {
|
|
|
- titleInput.value = ListItemDatas.value[0]['fileName']
|
|
|
- } else {
|
|
|
- titleInput.value = ''
|
|
|
- }
|
|
|
+
|
|
|
ListItemLoading.value = false
|
|
|
}
|
|
|
+//获取文件题名
|
|
|
|
|
|
+const getFileName = async () => {
|
|
|
+ const info = nodeDataInfo.value
|
|
|
+ const { error, code, data } = await wbsApi.getDICengNodeName({
|
|
|
+ pKeyId: info['primaryKeyId'],
|
|
|
+ type: authBtnTabKey.value,
|
|
|
+ })
|
|
|
+ //判断状态
|
|
|
+ if (!error && code === 200) {
|
|
|
+ titleInput.value = data
|
|
|
+ } else {
|
|
|
+ titleInput.value = data
|
|
|
+ }
|
|
|
+}
|
|
|
const newlistdata = ref([])
|
|
|
const searchNodeAllTable1 = async () => {
|
|
|
console.log('重新获取表单列表')
|
|
@@ -2920,7 +2935,7 @@ const tableFormSaveClick = async () => {
|
|
|
console.log('保存')
|
|
|
tableFormSaveLoading.value = true
|
|
|
console.log('FormData', FormData)
|
|
|
- const { error, code, msg } = await wbsApi.saveExcelBussData({
|
|
|
+ const { error, code, msg, data } = await wbsApi.saveExcelBussData({
|
|
|
dataInfo: { orderList: FormData },
|
|
|
})
|
|
|
tableFormSaveLoading.value = false
|
|
@@ -3499,7 +3514,13 @@ const nodeBaseDataModalSave = async ()=>{
|
|
|
nodeBaseDataLoad.value = false
|
|
|
if (!error && code === 200) {
|
|
|
window?.$message?.success(msg || '操作成功')
|
|
|
- getnodeBaseData()
|
|
|
+ nodeBaseDataModalDialog.value = false
|
|
|
+ //刷新页面
|
|
|
+ // setTimeout(() => {
|
|
|
+ // window?.location?.reload()
|
|
|
+ // }, 1000)
|
|
|
+ const activeKey = ListItemRef.value?.getActiveKey()
|
|
|
+ getTableDataAll(activeKey)
|
|
|
|
|
|
}
|
|
|
}
|