更新问卷列表导出问卷bug
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
</a-modal>
|
||||
<!-- 下载中心 -->
|
||||
<DownloadCenter
|
||||
:sn="sn"
|
||||
:isView="true"
|
||||
v-model:visible="downloadVisible"
|
||||
v-if="downloadVisible"
|
||||
|
||||
@@ -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();
|
||||
})
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user