提交 ea401052 authored 作者: lidongxu's avatar lidongxu

修复:积木报表路由挂载不上问题

上级 c0bfb110
......@@ -51,4 +51,7 @@ onMounted(() => {
<style scoped
lang="scss">
.wm-class{
height: 100%;
}
</style>
......@@ -43,6 +43,7 @@ export let constantRoutes = [{
}]
// PC端 静态路由
export const constantPCRoutes = [
...constantRoutes,
{
path: '/redirect',
component: Layout,
......
......@@ -231,7 +231,7 @@ const getInspectionTaskDetailFn = async () => {
conventionRef.value.init()
scheduleDisplayRef.value.init()
scheduleAdjustmentRef.value.init()
// categoryInfomationRef.value.init()
categoryInfomationRef.value.init()
})
// 一定在这里获取地理位置(保证稽查任务 id 创建完毕)
......@@ -352,7 +352,7 @@ const handleTypeConfirm = async ({ selectedValues }) => {
}
/*************** tabs 组 ***************/
const active = ref(2)
const active = ref(3)
/*************** 其他信息填写 ***************/
// 礼盒礼袋在售
......
......@@ -58,6 +58,12 @@
</template>
<script setup>
const props = defineProps({
form: {
type: Object,
default: () => { }
}
})
// 品类型
const typeOptions = ref([
{
......@@ -250,6 +256,33 @@ const typeOptions = ref([
}
]);
const selectedTypeObj = ref(typeOptions.value[0])
// 创建任务
const createTask = () => {
displayGroup.value.push({
type: selectedTypeObj.value.value,
taste: selectedTypeObj.value.taste.map(item => ({
name: item.name,
value: ''
}))
})
}
const init = () => {
if (props.form.detailMap) {
if (props.form.detailMap['品类信息']) {
checkProperty(props.form.detailMap['品类信息'])
displayGroup.value = props.form.detailMap['品类信息'] || []
return
}
}
// 没传递则自己至少新建 1 个
if (displayGroup.value.length === 0) {
createTask()
}
}
defineExpose({
init
})
</script>
<style lang="scss"
......
......@@ -16,19 +16,19 @@ function parseChangelog(changelogText) {
for (const line of lines) {
const trimmedLine = line.trim();
// 检查是否是版本行
const versionMatch = trimmedLine.match(versionRegex);
if (versionMatch) {
// 保存当前版本对象(如果有)
if (currentVersionObj) {
// 清理空版本
if (currentVersionObj.breakingChanges.length > 0 ||
currentVersionObj.changes.length > 0) {
if (currentVersionObj.breakingChanges.length > 0 ||
currentVersionObj.changes.length > 0) {
result.push(currentVersionObj);
}
}
// 创建新版本对象
currentVersionObj = {
version: versionMatch[1],
......@@ -81,9 +81,9 @@ function parseChangelog(changelogText) {
}
// 添加最后一个版本对象
if (currentVersionObj &&
(currentVersionObj.breakingChanges.length > 0 ||
currentVersionObj.changes.length > 0)) {
if (currentVersionObj &&
(currentVersionObj.breakingChanges.length > 0 ||
currentVersionObj.changes.length > 0)) {
result.push(currentVersionObj);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论