fix: bug 【从模板中创建】预览模板-使用模板弹窗在下层,且问卷名称默认不为模板名称

This commit is contained in:
wanganmao
2022-10-21 13:37:39 +08:00
parent 7539ce9916
commit 12836cb5f8
2 changed files with 6 additions and 3 deletions

View File

@@ -74,6 +74,7 @@ export default defineComponent({
const tableSource = ref([])
const preview_visible = ref(false)
const sn = ref('')
const title = ref('')
const is_template = ref('')
function getData() {
@@ -95,6 +96,7 @@ export default defineComponent({
}
function handlePreview(record) {
sn.value = record.sn
title.value = record.title;
is_template.value = new URLSearchParams(record.url).get("is_template")
preview_visible.value = true
}
@@ -106,7 +108,7 @@ export default defineComponent({
// })
}
function handleModalUse() {
emit('tempCreate', sn.value)
emit('tempCreate', sn.value, title.value)
}
const listSubData = {
sn:sn.value,

View File

@@ -99,7 +99,7 @@
</div>
</a-button>
</div>
<a-modal v-model:visible="newvisible" :title="'新建问卷'" :footer="null" :maskClosable="false">
<a-modal v-model:visible="newvisible" :title="'新建问卷'" :footer="null" :maskClosable="false" :zIndex="9999">
<CreateSurvey
ref="createSurveyRef"
:info="groupInfo"
@@ -336,8 +336,9 @@ export default defineComponent({
editLabelVisible.value = false;
createSurveyRef.value.getTagsListRequest();
}
function onTempCreates(val) {
function onTempCreates(val, title) {
temp_sn.value = val;
groupInfo.value.project_name = title;
groupInfo.value.sn = "";
newvisible.value = true;
}