a95c922c by fanguang Committed by lihua

fix

1 parent d6403da5
......@@ -583,23 +583,7 @@ const getTreeData = (needClick = false, currData = {}) => {
})
treeInfo.value.data = data
standardOptions.value = data
// 默认展开第一个
if (data.length === 0) return
let params = {
pageIndex: 1,
pageSize: 50,
standardTypeCode: data[0].value,
// codeName: '标准类型'
}
getStandardCodeList(params).then((res:any) => {
if (res.code === proxy.$passCode) {
let data = res.data
tableInfo.value.data = data.records
tableInfo.value.page.limit = data.pageSize
tableInfo.value.page.curr = data.pageIndex
tableInfo.value.page.rows = data.totalRows
}
})
}
})
}
......@@ -1300,6 +1284,8 @@ const saveData = async (params, btnValue) => {
if (btnValue === 'saveAndAdd') {
// 跳转代码详情
toStandardCodeDetail(res.data)
} else {
getFirstPageData()
}
})
} else {
......@@ -1399,7 +1385,26 @@ const radioGroupChange = async (val, info) => {
onBeforeMount(() => {
// getDataType()
getTreeData()
getTreeData().then(() => {
// 默认展开第一个
let data = treeInfo.value.data
if (data.length === 0) return
let params = {
pageIndex: 1,
pageSize: 50,
standardTypeCode: data[0].value,
// codeName: '标准类型'
}
getStandardCodeList(params).then((res:any) => {
if (res.code === proxy.$passCode) {
let data = res.data
tableInfo.value.data = data.records
tableInfo.value.page.limit = data.pageSize
tableInfo.value.page.curr = data.pageIndex
tableInfo.value.page.rows = data.totalRows
}
})
})
getParamsList({ dictType: '发布单位' }).then((res:any) => {
if (res.code === proxy.$passCode) {
const data = res.data || []
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!