更新问卷列表导出问卷bug
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
</a-modal>
|
</a-modal>
|
||||||
<!-- 下载中心 -->
|
<!-- 下载中心 -->
|
||||||
<DownloadCenter
|
<DownloadCenter
|
||||||
|
:sn="sn"
|
||||||
:isView="true"
|
:isView="true"
|
||||||
v-model:visible="downloadVisible"
|
v-model:visible="downloadVisible"
|
||||||
v-if="downloadVisible"
|
v-if="downloadVisible"
|
||||||
|
|||||||
@@ -83,11 +83,12 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
groupId: { type: Number, value: 0 },
|
groupId: { type: Number, value: 0 },
|
||||||
|
questionSn: { type: String, default: '' }
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const sn = route.query.sn;
|
const sn = route.query.sn || props.questionSn;
|
||||||
const tableData = ref([]);
|
const tableData = ref([]);
|
||||||
const page = ref(1);
|
const page = ref(1);
|
||||||
const pageSize = ref(10);
|
const pageSize = ref(10);
|
||||||
@@ -220,7 +221,7 @@ export default defineComponent({
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// console.log('skipPath',skipPath);
|
// 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
|
if(store.state?.downloadCenter?.centerUrl?.includes('analyse')) module = 3
|
||||||
getList();
|
getList();
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<GroupList @change-group="changeGroup"></GroupList>
|
<GroupList @change-group="changeGroup"></GroupList>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<TableList :group-id="activeDroupId"></TableList>
|
<TableList :question-sn="sn" :group-id="activeDroupId"></TableList>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -40,6 +40,10 @@ export default defineComponent({
|
|||||||
isView: {
|
isView: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
|
},
|
||||||
|
sn: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: { GroupList, TableList },
|
components: { GroupList, TableList },
|
||||||
@@ -79,8 +83,8 @@ export default defineComponent({
|
|||||||
// context.emit("update:visible", val);
|
// context.emit("update:visible", val);
|
||||||
// });
|
// });
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// console.log("store.state?.downloadCenter?.centerUrl?.includes('preview')",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')) {
|
if(store.state?.downloadCenter?.centerUrl?.includes('planet')||store.state?.downloadCenter?.centerUrl?.includes('preview')||store.state?.downloadCenter?.centerUrl==='/home/project') {
|
||||||
store.dispatch('groupName/changeDownloadGroupId',1)
|
store.dispatch('groupName/changeDownloadGroupId',1)
|
||||||
} else if(store.state?.downloadCenter?.centerUrl?.includes('analyse')) {
|
} else if(store.state?.downloadCenter?.centerUrl?.includes('analyse')) {
|
||||||
store.dispatch('groupName/changeDownloadGroupId',3)
|
store.dispatch('groupName/changeDownloadGroupId',3)
|
||||||
|
|||||||
Reference in New Issue
Block a user