2025-08-14 14:58:42 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
import {computed, onMounted, reactive, ref} from 'vue';
|
|
|
|
import {useVbenModal} from '@vben/common-ui';
|
|
|
|
import {cloneDeep} from '@vben/utils';
|
|
|
|
import {
|
|
|
|
Form,
|
|
|
|
FormItem,
|
|
|
|
Input,
|
|
|
|
Row,
|
|
|
|
Col,
|
|
|
|
Switch,
|
|
|
|
DatePicker,
|
|
|
|
Empty,
|
|
|
|
Divider,
|
|
|
|
Rate,
|
|
|
|
Popover,
|
2025-08-18 17:22:09 +08:00
|
|
|
Badge,
|
|
|
|
message
|
2025-08-14 14:58:42 +08:00
|
|
|
} from 'ant-design-vue'
|
|
|
|
import {PlusOutlined, DeleteOutlined} from '@ant-design/icons-vue';
|
|
|
|
import {renderDictValue} from "#/utils/render";
|
|
|
|
import {getDictOptions} from "#/utils/dict";
|
2025-08-18 17:22:09 +08:00
|
|
|
import type {
|
|
|
|
QuestionnaireForm
|
|
|
|
} from "#/api/property/customerService/questionnaire/questionnaire/model";
|
|
|
|
import type {QuestionForm} from "#/api/property/customerService/questionnaire/question/model";
|
|
|
|
import {
|
|
|
|
questionnaireAdd,
|
|
|
|
questionnaireUpdate,
|
|
|
|
questionnaireInfo
|
|
|
|
} from '#/api/property/customerService/questionnaire/questionnaire';
|
|
|
|
import type {
|
|
|
|
QuestionItemForm
|
|
|
|
} from "#/api/property/customerService/questionnaire/questionItem/model";
|
2025-08-14 14:58:42 +08:00
|
|
|
|
|
|
|
const emit = defineEmits<{ reload: [] }>();
|
|
|
|
const isUpdate = ref(false);
|
|
|
|
const title = computed(() => {
|
|
|
|
return isUpdate.value ? '编辑问卷' : '新增问卷';
|
|
|
|
});
|
|
|
|
|
|
|
|
const [BasicModal, modalApi] = useVbenModal({
|
|
|
|
fullscreenButton: false,
|
|
|
|
fullscreen: true,
|
|
|
|
onClosed: handleClosed,
|
|
|
|
onOpenChange: async (isOpen) => {
|
|
|
|
if (!isOpen) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
modalApi.modalLoading(true);
|
|
|
|
const {id} = modalApi.getData() as { id?: number | string };
|
|
|
|
isUpdate.value = !!id;
|
|
|
|
|
|
|
|
if (isUpdate.value && id) {
|
2025-08-18 17:22:09 +08:00
|
|
|
const record = await questionnaireInfo(id);
|
|
|
|
Object.assign(counts, badgeCounts);
|
|
|
|
let questions: QuestionForm[] = [];
|
|
|
|
if (record.questionnaireQuestionVos) {
|
|
|
|
questions = record.questionnaireQuestionVos.map(item => {
|
|
|
|
const question: QuestionForm = { ...item };
|
|
|
|
switch (item.type) {
|
|
|
|
case '1': counts.inputCount++; break;
|
|
|
|
case '2': counts.textareaCount++; break;
|
|
|
|
case '3': counts.radioCount++; break;
|
|
|
|
case '4': counts.checkboxCount++; break;
|
|
|
|
case '5': counts.rateCount++; break;
|
|
|
|
case '6': counts.datePickerCount++; break;
|
|
|
|
}
|
|
|
|
if (item.questionnaireQuestionItemVos) {
|
|
|
|
question.questionnaireQuestionItems = item.questionnaireQuestionItemVos.map(
|
|
|
|
option => ({ ...option } as QuestionItemForm)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
return question;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
Object.assign(formState, {
|
|
|
|
...record,
|
|
|
|
questionnaireQuestions: questions,
|
|
|
|
});
|
2025-08-14 14:58:42 +08:00
|
|
|
}
|
|
|
|
modalApi.modalLoading(false);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
async function handleClosed() {
|
2025-08-18 17:22:09 +08:00
|
|
|
formRef.value.clearValidate();
|
|
|
|
Object.assign(formState, initialState);
|
|
|
|
Object.assign(counts, badgeCounts);
|
|
|
|
formState.questionnaireQuestions = [];
|
2025-08-14 14:58:42 +08:00
|
|
|
}
|
|
|
|
|
2025-08-18 17:22:09 +08:00
|
|
|
const initialState: QuestionnaireForm = {
|
|
|
|
id: '',
|
|
|
|
head: '',
|
|
|
|
depict: '',
|
|
|
|
isAnonyCollec: '1',
|
|
|
|
isCommit: '1',
|
|
|
|
deadline: '',
|
|
|
|
status: '',
|
|
|
|
questionnaireQuestions: [] as Array<QuestionForm>
|
2025-08-14 14:58:42 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
const badgeCounts = {
|
|
|
|
inputCount: 0,
|
|
|
|
textareaCount: 0,
|
|
|
|
radioCount: 0,
|
|
|
|
checkboxCount: 0,
|
|
|
|
rateCount: 0,
|
|
|
|
datePickerCount: 0,
|
|
|
|
}
|
|
|
|
|
|
|
|
const counts = reactive({...badgeCounts})
|
2025-08-18 17:22:09 +08:00
|
|
|
const formState = reactive({...initialState});
|
2025-08-14 14:58:42 +08:00
|
|
|
|
|
|
|
async function handleCancel() {
|
2025-08-18 17:22:09 +08:00
|
|
|
formRef.value.clearValidate();
|
2025-08-14 14:58:42 +08:00
|
|
|
Object.assign(formState, initialState);
|
|
|
|
Object.assign(counts, badgeCounts);
|
2025-08-18 17:22:09 +08:00
|
|
|
formState.questionnaireQuestions = [];
|
2025-08-14 14:58:42 +08:00
|
|
|
await modalApi.close();
|
|
|
|
}
|
|
|
|
|
2025-08-18 17:22:09 +08:00
|
|
|
function handleAddQuestion(type: string) {
|
|
|
|
let question: QuestionForm = {
|
|
|
|
type,
|
|
|
|
questionnaireQuestionItems: [],
|
|
|
|
isRequired: '1',
|
|
|
|
}
|
2025-08-14 14:58:42 +08:00
|
|
|
switch (type) {
|
2025-08-18 17:22:09 +08:00
|
|
|
case '1':
|
2025-08-14 14:58:42 +08:00
|
|
|
counts.inputCount++;
|
|
|
|
break;
|
2025-08-18 17:22:09 +08:00
|
|
|
case '2':
|
2025-08-14 14:58:42 +08:00
|
|
|
counts.textareaCount++;
|
|
|
|
break;
|
2025-08-18 17:22:09 +08:00
|
|
|
case '3':
|
2025-08-14 14:58:42 +08:00
|
|
|
counts.radioCount++;
|
2025-08-18 17:22:09 +08:00
|
|
|
question.questionnaireQuestionItems.push({itemContent: ''});
|
2025-08-14 14:58:42 +08:00
|
|
|
break;
|
2025-08-18 17:22:09 +08:00
|
|
|
case '4':
|
2025-08-14 14:58:42 +08:00
|
|
|
counts.checkboxCount++;
|
2025-08-18 17:22:09 +08:00
|
|
|
question.questionnaireQuestionItems.push({itemContent: ''});
|
2025-08-14 14:58:42 +08:00
|
|
|
break;
|
2025-08-18 17:22:09 +08:00
|
|
|
case '5':
|
2025-08-14 14:58:42 +08:00
|
|
|
counts.rateCount++;
|
|
|
|
break;
|
2025-08-18 17:22:09 +08:00
|
|
|
case '6':
|
2025-08-14 14:58:42 +08:00
|
|
|
counts.datePickerCount++;
|
|
|
|
break;
|
|
|
|
}
|
2025-08-18 17:22:09 +08:00
|
|
|
formState.questionnaireQuestions.push(question);
|
2025-08-14 14:58:42 +08:00
|
|
|
}
|
|
|
|
|
2025-08-18 17:22:09 +08:00
|
|
|
function addOptions(index: number) {
|
|
|
|
formState.questionnaireQuestions[index]?.questionnaireQuestionItems.push({itemContent: ''})
|
2025-08-14 14:58:42 +08:00
|
|
|
}
|
|
|
|
|
2025-08-18 17:22:09 +08:00
|
|
|
function deleteOptions(index: number, type: string) {
|
|
|
|
formState.questionnaireQuestions.splice(index, 1)
|
2025-08-14 14:58:42 +08:00
|
|
|
switch (type) {
|
2025-08-18 17:22:09 +08:00
|
|
|
case '1':
|
2025-08-14 14:58:42 +08:00
|
|
|
counts.inputCount--;
|
|
|
|
break;
|
2025-08-18 17:22:09 +08:00
|
|
|
case '2':
|
2025-08-14 14:58:42 +08:00
|
|
|
counts.textareaCount--;
|
|
|
|
break;
|
2025-08-18 17:22:09 +08:00
|
|
|
case '3':
|
2025-08-14 14:58:42 +08:00
|
|
|
counts.radioCount--;
|
|
|
|
break;
|
2025-08-18 17:22:09 +08:00
|
|
|
case '4':
|
2025-08-14 14:58:42 +08:00
|
|
|
counts.checkboxCount--;
|
|
|
|
break;
|
2025-08-18 17:22:09 +08:00
|
|
|
case '5':
|
2025-08-14 14:58:42 +08:00
|
|
|
counts.rateCount--;
|
|
|
|
break;
|
2025-08-18 17:22:09 +08:00
|
|
|
case '6':
|
2025-08-14 14:58:42 +08:00
|
|
|
counts.datePickerCount--;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-08-18 17:22:09 +08:00
|
|
|
const formRef = ref();
|
|
|
|
|
|
|
|
async function handleSave(type: string) {
|
|
|
|
try {
|
|
|
|
await formRef.value.validate();
|
|
|
|
const data = cloneDeep(formState);
|
|
|
|
if (!data.questionnaireQuestions.length) {
|
|
|
|
message.error('还没有问题,请添加');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
modalApi.lock(true);
|
|
|
|
data.status = type;
|
|
|
|
data.questionnaireQuestions.forEach((item, index) => {
|
|
|
|
item.sort = index + 1;
|
|
|
|
item.questionnaireQuestionItems.forEach((option, i) => {
|
|
|
|
option.sort = i + 1;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
await (isUpdate.value ? questionnaireUpdate(data) : questionnaireAdd(data));
|
|
|
|
emit('reload');
|
|
|
|
await modalApi.close();
|
|
|
|
} catch (error: any) {
|
|
|
|
if (error.errorFields) {
|
|
|
|
const firstErrorField = error.errorFields[0].name[0];
|
|
|
|
formRef.value.scrollToField(firstErrorField);
|
|
|
|
message.error('请完善问卷');
|
|
|
|
} else {
|
|
|
|
console.error(error);
|
|
|
|
}
|
|
|
|
} finally {
|
|
|
|
modalApi.lock(false);
|
|
|
|
}
|
2025-08-14 14:58:42 +08:00
|
|
|
}
|
|
|
|
|
2025-08-18 17:22:09 +08:00
|
|
|
onMounted(() => {
|
2025-08-14 14:58:42 +08:00
|
|
|
getDictOptions('wy_wtsjlx')
|
|
|
|
})
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<BasicModal :title="title" :footer="false" class="modal-container">
|
|
|
|
<Row :gutter="24">
|
|
|
|
<Col class="gutter-row" :span="3">
|
|
|
|
<div class="left-options">
|
|
|
|
<div class="header-title">问题设计</div>
|
|
|
|
<Badge :count="counts.inputCount" :number-style="{ backgroundColor: '#3996f3' }">
|
2025-08-18 17:22:09 +08:00
|
|
|
<a-button size="large" @click="handleAddQuestion('1')">单行文本</a-button>
|
2025-08-14 14:58:42 +08:00
|
|
|
</Badge>
|
|
|
|
<Badge :count="counts.textareaCount" :number-style="{ backgroundColor: '#3996f3' }">
|
2025-08-18 17:22:09 +08:00
|
|
|
<a-button size="large" @click="handleAddQuestion('2')">多行文本</a-button>
|
2025-08-14 14:58:42 +08:00
|
|
|
</Badge>
|
|
|
|
<Badge :count="counts.radioCount" :number-style="{ backgroundColor: '#3996f3' }">
|
2025-08-18 17:22:09 +08:00
|
|
|
<a-button size="large" @click="handleAddQuestion('3')">单选题</a-button>
|
2025-08-14 14:58:42 +08:00
|
|
|
</Badge>
|
|
|
|
<Badge :count="counts.checkboxCount" :number-style="{ backgroundColor: '#3996f3' }">
|
2025-08-18 17:22:09 +08:00
|
|
|
<a-button size="large" @click="handleAddQuestion('4')">多选题</a-button>
|
2025-08-14 14:58:42 +08:00
|
|
|
</Badge>
|
|
|
|
<Badge :count="counts.rateCount" :number-style="{ backgroundColor: '#3996f3' }">
|
2025-08-18 17:22:09 +08:00
|
|
|
<a-button size="large" @click="handleAddQuestion('5')">评分题</a-button>
|
2025-08-14 14:58:42 +08:00
|
|
|
</Badge>
|
|
|
|
<Badge :count="counts.datePickerCount" :number-style="{ backgroundColor: '#3996f3' }">
|
2025-08-18 17:22:09 +08:00
|
|
|
<a-button size="large" @click="handleAddQuestion('6')">日期选择</a-button>
|
2025-08-14 14:58:42 +08:00
|
|
|
</Badge>
|
|
|
|
</div>
|
|
|
|
</Col>
|
|
|
|
<Col class="gutter-row" :span="21">
|
|
|
|
<div class="right-question">
|
|
|
|
<div class="header-title">基本信息</div>
|
|
|
|
<Form
|
|
|
|
:model="formState"
|
|
|
|
name="basic"
|
2025-08-18 17:22:09 +08:00
|
|
|
ref="formRef"
|
2025-08-14 14:58:42 +08:00
|
|
|
>
|
|
|
|
<FormItem
|
|
|
|
label="问卷标题"
|
2025-08-18 17:22:09 +08:00
|
|
|
name="head"
|
|
|
|
:rules="[{ required: true, }]"
|
2025-08-14 14:58:42 +08:00
|
|
|
>
|
2025-08-18 17:22:09 +08:00
|
|
|
<Input v-model:value="formState.head" placeholder="请输入"/>
|
2025-08-14 14:58:42 +08:00
|
|
|
</FormItem>
|
|
|
|
|
|
|
|
<FormItem
|
|
|
|
label="问卷描述"
|
2025-08-18 17:22:09 +08:00
|
|
|
name="depict"
|
|
|
|
:rules="[{ required: true, }]"
|
2025-08-14 14:58:42 +08:00
|
|
|
>
|
2025-08-18 17:22:09 +08:00
|
|
|
<Input v-model:value="formState.depict" placeholder="请输入"/>
|
2025-08-14 14:58:42 +08:00
|
|
|
</FormItem>
|
2025-08-18 17:22:09 +08:00
|
|
|
<div v-if="formState.questionnaireQuestions.length">
|
|
|
|
<div v-for="(item,index) in formState.questionnaireQuestions">
|
2025-08-14 14:58:42 +08:00
|
|
|
<Divider orientation="left">
|
|
|
|
问题{{ (index + 1) + '\xa0' + renderDictValue(item.type, 'wy_wtsjlx') }}
|
|
|
|
<Popover placement="top">
|
|
|
|
<template #content>
|
|
|
|
<p>删除当前问题</p>
|
|
|
|
</template>
|
|
|
|
<a-button type="link" @click="deleteOptions(index,item.type)">
|
|
|
|
<template #icon>
|
|
|
|
<DeleteOutlined style="color: red"/>
|
|
|
|
</template>
|
|
|
|
</a-button>
|
|
|
|
</Popover>
|
|
|
|
</Divider>
|
|
|
|
<FormItem
|
|
|
|
label="问题标题"
|
2025-08-18 17:22:09 +08:00
|
|
|
:name="['questionnaireQuestions',index,'head']"
|
2025-08-14 14:58:42 +08:00
|
|
|
:rules="[{ required: true }]"
|
|
|
|
>
|
2025-08-18 17:22:09 +08:00
|
|
|
<Input v-model:value="item.head" placeholder="请输入"/>
|
2025-08-14 14:58:42 +08:00
|
|
|
</FormItem>
|
|
|
|
<FormItem
|
2025-08-18 17:22:09 +08:00
|
|
|
:label="'\xa0\xa0\xa0问题描述'"
|
|
|
|
:name="['questionnaireQuestions',index,'depict']"
|
2025-08-14 14:58:42 +08:00
|
|
|
>
|
2025-08-18 17:22:09 +08:00
|
|
|
<Input v-model:value="item.depict" placeholder="请输入"/>
|
2025-08-14 14:58:42 +08:00
|
|
|
</FormItem>
|
2025-08-18 17:22:09 +08:00
|
|
|
<Row :gutter="24" v-if="item.type=='3'||item.type=='4'">
|
2025-08-14 14:58:42 +08:00
|
|
|
<Col class="gutter-row" :span="12">
|
|
|
|
<FormItem
|
|
|
|
label="选项设置"
|
2025-08-18 17:22:09 +08:00
|
|
|
:name="['questionnaireQuestions',index,'questionnaireQuestionItems']"
|
2025-08-14 14:58:42 +08:00
|
|
|
:rules="[{ required: true }]"
|
|
|
|
>
|
2025-08-18 17:22:09 +08:00
|
|
|
<div v-for="(option, i) in item.questionnaireQuestionItems" :key="i"
|
|
|
|
class="option-item">
|
|
|
|
<FormItem
|
|
|
|
:name="['questionnaireQuestions', index, 'questionnaireQuestionItems', i, 'itemContent']"
|
|
|
|
:rules="[{ required: true, message: '' }]"
|
|
|
|
>
|
|
|
|
<Input
|
|
|
|
style="margin-bottom: 10px"
|
|
|
|
v-model:value="option.itemContent"
|
|
|
|
:placeholder="`选项${i + 1}`"
|
|
|
|
/>
|
|
|
|
</FormItem>
|
|
|
|
</div>
|
|
|
|
|
2025-08-14 14:58:42 +08:00
|
|
|
</FormItem>
|
|
|
|
</Col>
|
|
|
|
<Col class="gutter-row" :span="12">
|
2025-08-18 17:22:09 +08:00
|
|
|
<a-button @click="addOptions(index)">
|
2025-08-14 14:58:42 +08:00
|
|
|
<template #icon>
|
|
|
|
<PlusOutlined/>
|
|
|
|
</template>
|
|
|
|
添加选项
|
|
|
|
</a-button>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
<FormItem
|
2025-08-18 17:22:09 +08:00
|
|
|
v-if="item.type=='5'"
|
2025-08-14 14:58:42 +08:00
|
|
|
label="评分预览"
|
2025-08-18 17:22:09 +08:00
|
|
|
:name="['questionnaireQuestions',index,'rate']"
|
2025-08-14 14:58:42 +08:00
|
|
|
>
|
2025-08-18 17:22:09 +08:00
|
|
|
<Rate v-model:value="item.rate"/>
|
2025-08-14 14:58:42 +08:00
|
|
|
</FormItem>
|
|
|
|
<FormItem
|
2025-08-18 17:22:09 +08:00
|
|
|
v-if="item.type=='6'"
|
2025-08-14 14:58:42 +08:00
|
|
|
label="日期选择预览"
|
2025-08-18 17:22:09 +08:00
|
|
|
:name="['questionnaireQuestions',index,'dateTime']"
|
2025-08-14 14:58:42 +08:00
|
|
|
>
|
2025-08-18 17:22:09 +08:00
|
|
|
<DatePicker style="width: 180px" v-model:value="item.dateTime"/>
|
2025-08-14 14:58:42 +08:00
|
|
|
</FormItem>
|
|
|
|
<FormItem
|
|
|
|
label="是否必填"
|
2025-08-18 17:22:09 +08:00
|
|
|
:name="['questionnaireQuestions',index,'isRequired']"
|
|
|
|
:rules="[{ required: true}]"
|
2025-08-14 14:58:42 +08:00
|
|
|
>
|
2025-08-18 17:22:09 +08:00
|
|
|
<Switch v-model:checked="item.isRequired" checkedValue="1" unCheckedValue="2"/>
|
2025-08-14 14:58:42 +08:00
|
|
|
</FormItem>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="empty-box" v-else>
|
|
|
|
<Empty description="还没有添加问题,点击左侧按钮开始创建"/>
|
|
|
|
</div>
|
|
|
|
<div class="header-title">发布设计</div>
|
|
|
|
<Row :gutter="24">
|
|
|
|
<Col class="gutter-row" :span="6">
|
|
|
|
<FormItem
|
|
|
|
label="匿名收集"
|
2025-08-18 17:22:09 +08:00
|
|
|
name="isAnonyCollec"
|
2025-08-14 14:58:42 +08:00
|
|
|
:rules="[{ required: true, message: '匿名收集不能为空' }]"
|
|
|
|
>
|
2025-08-18 17:22:09 +08:00
|
|
|
<Switch v-model:checked="formState.isAnonyCollec" checkedValue="1"
|
|
|
|
unCheckedValue="2"/>
|
2025-08-14 14:58:42 +08:00
|
|
|
</FormItem>
|
|
|
|
</Col>
|
|
|
|
<Col class="gutter-row" :span="6">
|
|
|
|
<FormItem
|
|
|
|
label="允许多次提交"
|
2025-08-18 17:22:09 +08:00
|
|
|
name="isCommit"
|
|
|
|
:rules="[{ required: true }]"
|
2025-08-14 14:58:42 +08:00
|
|
|
>
|
2025-08-18 17:22:09 +08:00
|
|
|
<Switch v-model:checked="formState.isCommit" checkedValue="1"
|
|
|
|
unCheckedValue="2"/>
|
2025-08-14 14:58:42 +08:00
|
|
|
</FormItem>
|
|
|
|
</Col>
|
|
|
|
<Col class="gutter-row" :span="12">
|
|
|
|
<FormItem
|
|
|
|
label="截至日期"
|
2025-08-18 17:22:09 +08:00
|
|
|
name="deadline"
|
|
|
|
:rules="[{ required: true }]"
|
2025-08-14 14:58:42 +08:00
|
|
|
>
|
2025-08-18 17:22:09 +08:00
|
|
|
<DatePicker style="width: 180px" v-model:value="formState.deadline" format="YYYY-MM-DD" value-format="YYYY-MM-DD"/>
|
2025-08-14 14:58:42 +08:00
|
|
|
</FormItem>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</Form>
|
|
|
|
</div>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
<div class="footer-button">
|
2025-08-18 17:22:09 +08:00
|
|
|
<a-button type="primary" @click="handleSave('2')">保存并发布</a-button>
|
|
|
|
<a-button @click="handleSave('1')">保存为草稿</a-button>
|
2025-08-14 14:58:42 +08:00
|
|
|
<a-button @click="handleCancel">取消</a-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</BasicModal>
|
|
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.modal-container {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.header-title {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
font-size: 17px;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.left-options {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
:deep(.ant-badge .ant-badge-count) {
|
|
|
|
position: absolute;
|
|
|
|
top: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-btn {
|
|
|
|
width: 150px;
|
|
|
|
margin-top: 40px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.right-question {
|
|
|
|
max-height: 87vh;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2025-08-18 17:22:09 +08:00
|
|
|
|
|
|
|
.option-item {
|
|
|
|
:deep(.ant-form-item .ant-form-item-control-input) {
|
|
|
|
margin-bottom: -20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.empty-box {
|
|
|
|
height: 50vh;
|
|
|
|
border: 2px dashed #dce0e6;
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
|
|
:deep(.ant-empty .ant-empty-image) {
|
|
|
|
margin-top: 15vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
margin-left: 80px;
|
|
|
|
}
|
2025-08-14 14:58:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.footer-button {
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.ant-btn {
|
|
|
|
float: right;
|
|
|
|
margin: 0 15px 10px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 100;
|
|
|
|
background-color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|