更新问卷列表导出问卷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

@@ -8,6 +8,7 @@
</a-modal>
<!-- 下载中心 -->
<DownloadCenter
:sn="sn"
:isView="true"
v-model:visible="downloadVisible"
v-if="downloadVisible"

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();
})

View File

@@ -15,7 +15,7 @@
<GroupList @change-group="changeGroup"></GroupList>
</div>
<div class="right">
<TableList :group-id="activeDroupId"></TableList>
<TableList :question-sn="sn" :group-id="activeDroupId"></TableList>
</div>
</div>
</div>
@@ -40,6 +40,10 @@ export default defineComponent({
isView: {
type: Boolean,
default: false,
},
sn: {
type: String,
default: '',
}
},
components: { GroupList, TableList },
@@ -79,8 +83,8 @@ export default defineComponent({
// context.emit("update:visible", val);
// });
onMounted(() => {
// console.log("store.state?.downloadCenter?.centerUrl?.includes('preview')",store.state?.downloadCenter?.centerUrl?.includes('preview'));
if(store.state?.downloadCenter?.centerUrl?.includes('planet')||store.state?.downloadCenter?.centerUrl?.includes('preview')) {
// console.log("store.state?.downloadCenter?.centerUrl?.includes('preview')",store.state?.downloadCenter?.centerUrl);
if(store.state?.downloadCenter?.centerUrl?.includes('planet')||store.state?.downloadCenter?.centerUrl?.includes('preview')||store.state?.downloadCenter?.centerUrl==='/home/project') {
store.dispatch('groupName/changeDownloadGroupId',1)
} else if(store.state?.downloadCenter?.centerUrl?.includes('analyse')) {
store.dispatch('groupName/changeDownloadGroupId',3)