更新问卷列表导出问卷bug

This commit is contained in:
王博冉
2022-10-25 13:44:00 +08:00
parent 90551b58bf
commit de57199ec9
3 changed files with 11 additions and 5 deletions

View File

@@ -83,11 +83,12 @@ export default defineComponent({
},
props: {
groupId: { type: Number, value: 0 },
questionSn: { type: String, default: '' }
},
setup(props) {
const { proxy } = getCurrentInstance();
const route = useRoute();
const sn = route.query.sn;
const sn = route.query.sn || props.questionSn;
const tableData = ref([]);
const page = ref(1);
const pageSize = ref(10);
@@ -220,7 +221,7 @@ export default defineComponent({
onMounted(() => {
// console.log('skipPath',skipPath);
// 下载中心列表
if(store.state?.downloadCenter?.centerUrl?.includes('planet')||store.state?.downloadCenter?.centerUrl?.includes('preview')) module = 1
if(store.state?.downloadCenter?.centerUrl?.includes('planet')||store.state?.downloadCenter?.centerUrl?.includes('preview')||store.state?.downloadCenter?.centerUrl==='/home/project') module = 1
if(store.state?.downloadCenter?.centerUrl?.includes('analyse')) module = 3
getList();
})