refactor: refactor
This commit is contained in:
parent
b2088df062
commit
d3adab8adc
@ -79,7 +79,7 @@ VALUES (2, '您觉得大模型可以做到下面哪些事?', 'MULTIPLE_CHOICE'
|
|||||||
|
|
||||||
INSERT INTO `option` (`question_id`, `code`, `content`, `requires_text`) VALUES
|
INSERT INTO `option` (`question_id`, `code`, `content`, `requires_text`) VALUES
|
||||||
(LAST_INSERT_ID(), 'A', '精准知识问答', FALSE),
|
(LAST_INSERT_ID(), 'A', '精准知识问答', FALSE),
|
||||||
(LAST_INSERT_ID(), 'B', '文档撰写/报告生成/代码编写/图片视频生成等', FALSE),
|
(LAST_INSERT_ID(), 'B', '文档生成/代码编写/图片生成', FALSE),
|
||||||
(LAST_INSERT_ID(), 'C', '数据清洗与分析', FALSE),
|
(LAST_INSERT_ID(), 'C', '数据清洗与分析', FALSE),
|
||||||
(LAST_INSERT_ID(), 'D', '客户沟通与服务', FALSE),
|
(LAST_INSERT_ID(), 'D', '客户沟通与服务', FALSE),
|
||||||
(LAST_INSERT_ID(), 'E', '风险识别与预警', FALSE),
|
(LAST_INSERT_ID(), 'E', '风险识别与预警', FALSE),
|
||||||
@ -100,24 +100,24 @@ INSERT INTO `question` (`number`, `content`, `type`, `is_required`, `is_last`)
|
|||||||
VALUES (4, '您的主要工作内容是:', 'SINGLE_CHOICE', TRUE, FALSE);
|
VALUES (4, '您的主要工作内容是:', 'SINGLE_CHOICE', TRUE, FALSE);
|
||||||
|
|
||||||
INSERT INTO `option` (`question_id`, `code`, `content`) VALUES
|
INSERT INTO `option` (`question_id`, `code`, `content`) VALUES
|
||||||
(LAST_INSERT_ID(), 'A', '研发(产品、开发、算法、测试、运维等)'),
|
(LAST_INSERT_ID(), 'A', '研发(产品/开发/算法/测试/运维)'),
|
||||||
(LAST_INSERT_ID(), 'B', '项目管理(项目立项、进度跟踪、风险管理等)'),
|
(LAST_INSERT_ID(), 'B', '项目管理(项目立项/进度跟踪/风险管理)'),
|
||||||
(LAST_INSERT_ID(), 'C', '保险(产品、核保、理赔、精算等)'),
|
(LAST_INSERT_ID(), 'C', '保险(产品/核保/理赔/精算)'),
|
||||||
(LAST_INSERT_ID(), 'D', '财务(会计、税务、审计等)'),
|
(LAST_INSERT_ID(), 'D', '财务(会计/税务/审计)'),
|
||||||
(LAST_INSERT_ID(), 'E', '客服(咨询、投诉、回访等)'),
|
(LAST_INSERT_ID(), 'E', '客服(咨询/投诉/回访)'),
|
||||||
(LAST_INSERT_ID(), 'F', '运营(新媒体运营、广告宣传、活动策划、数据分析等)'),
|
(LAST_INSERT_ID(), 'F', '运营(新媒体运营/广告宣传/活动策划/数据分析)'),
|
||||||
(LAST_INSERT_ID(), 'G', '市场拓展(渠道拓展、商务沟通、产品推广等)'),
|
(LAST_INSERT_ID(), 'G', '市场拓展(渠道拓展/商务沟通/产品推广)'),
|
||||||
(LAST_INSERT_ID(), 'H', '人力资源(招聘、培训、绩效、薪酬等)'),
|
(LAST_INSERT_ID(), 'H', '人力资源(招聘/培训/绩效/薪酬)'),
|
||||||
(LAST_INSERT_ID(), 'I', '综合事务(行政、法务等)'),
|
(LAST_INSERT_ID(), 'I', '综合事务(行政/法务)'),
|
||||||
(LAST_INSERT_ID(), 'J', '公司高管(战略规划、组织架构、制度建设等)');
|
(LAST_INSERT_ID(), 'J', '公司高管(战略规划/组织架构/制度建设)');
|
||||||
|
|
||||||
-- 研发部门专属问题
|
-- 研发部门专属问题
|
||||||
INSERT INTO `question` (`number`, `content`, `type`, `is_required`, `is_last`)
|
INSERT INTO `question` (`number`, `content`, `type`, `is_required`, `is_last`)
|
||||||
VALUES (5, '您在开发过程中最耗时的重复性工作:', 'MULTIPLE_CHOICE', TRUE, FALSE);
|
VALUES (5, '您在开发过程中最耗时的重复性工作:', 'MULTIPLE_CHOICE', TRUE, FALSE);
|
||||||
|
|
||||||
INSERT INTO `option` (`question_id`, `code`, `content`, `requires_text`) VALUES
|
INSERT INTO `option` (`question_id`, `code`, `content`, `requires_text`) VALUES
|
||||||
(LAST_INSERT_ID(), 'A', '文档编写(如需求文档、技术文档等)', FALSE),
|
(LAST_INSERT_ID(), 'A', '文档编写', FALSE),
|
||||||
(LAST_INSERT_ID(), 'B', '产品原型、界面设计(如使用图片生成模型自动生成等)', FALSE),
|
(LAST_INSERT_ID(), 'B', '产品原型、界面设计', FALSE),
|
||||||
(LAST_INSERT_ID(), 'C', '代码编写', FALSE),
|
(LAST_INSERT_ID(), 'C', '代码编写', FALSE),
|
||||||
(LAST_INSERT_ID(), 'D', '调试与测试', FALSE),
|
(LAST_INSERT_ID(), 'D', '调试与测试', FALSE),
|
||||||
(LAST_INSERT_ID(), 'E', '系统监控与维护', FALSE),
|
(LAST_INSERT_ID(), 'E', '系统监控与维护', FALSE),
|
||||||
@ -128,12 +128,12 @@ VALUES (6, '您希望大模型如何与现有系统集成:', 'MULTIPLE_CHOICE'
|
|||||||
|
|
||||||
INSERT INTO `option` (`question_id`, `code`, `content`, `requires_text`) VALUES
|
INSERT INTO `option` (`question_id`, `code`, `content`, `requires_text`) VALUES
|
||||||
(LAST_INSERT_ID(), 'A', '回答技术问题', FALSE),
|
(LAST_INSERT_ID(), 'A', '回答技术问题', FALSE),
|
||||||
(LAST_INSERT_ID(), 'B', '自动生成代码片段(如 Github Copilot等)', FALSE),
|
(LAST_INSERT_ID(), 'B', '自动生成代码片段', FALSE),
|
||||||
(LAST_INSERT_ID(), 'C', '智能测试用例生成', FALSE),
|
(LAST_INSERT_ID(), 'C', '智能测试用例生成', FALSE),
|
||||||
(LAST_INSERT_ID(), 'D', '生成需求文档、技术文档', FALSE),
|
(LAST_INSERT_ID(), 'D', '生成需求文档、技术文档', FALSE),
|
||||||
(LAST_INSERT_ID(), 'E', '完整项目生成(如Cursor等)', FALSE),
|
(LAST_INSERT_ID(), 'E', '完整项目生成(如Cursor等)', FALSE),
|
||||||
(LAST_INSERT_ID(), 'F', '代码重构与优化', FALSE),
|
(LAST_INSERT_ID(), 'F', '代码重构与优化', FALSE),
|
||||||
(LAST_INSERT_ID(), 'G', '辅助设计算法(如DeepSeek等)', FALSE),
|
(LAST_INSERT_ID(), 'G', '辅助设计算法', FALSE),
|
||||||
(LAST_INSERT_ID(), 'H', '其他', TRUE);
|
(LAST_INSERT_ID(), 'H', '其他', TRUE);
|
||||||
|
|
||||||
-- 项目管理专属问题
|
-- 项目管理专属问题
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="home-view">
|
<div class="home-view">
|
||||||
<van-nav-bar title="LLM 问卷调查" />
|
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<van-image
|
<van-image
|
||||||
class="logo"
|
class="logo"
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="register-view">
|
<div class="register-view">
|
||||||
<van-nav-bar title="用户登录" />
|
<van-nav-bar title="用户登录" />
|
||||||
|
|
||||||
<van-form @submit="onSubmit" class="register-form">
|
<van-form @submit="onSubmit" class="register-form">
|
||||||
<van-cell-group inset>
|
<van-cell-group inset>
|
||||||
<van-field
|
<van-field
|
||||||
|
|||||||
@ -1,16 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="survey-view">
|
<div class="survey-view">
|
||||||
<van-nav-bar
|
|
||||||
title="问卷调查"
|
|
||||||
left-text="返回"
|
|
||||||
left-arrow
|
|
||||||
@click-left="onBack"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div class="survey-content">
|
<div class="survey-content">
|
||||||
<div v-if="surveyStore.currentQuestion" class="question-container">
|
<div v-if="surveyStore.currentQuestion" class="question-container">
|
||||||
<h2 class="question-title">
|
<h2 class="question-title">
|
||||||
{{ surveyStore.currentQuestionNumber }}. {{ surveyStore.currentQuestion.content }}
|
{{ surveyStore.currentQuestion.content }}
|
||||||
<span v-if="surveyStore.currentQuestion.type === 'MULTIPLE_CHOICE'" class="question-type">(多选)</span>
|
<span v-if="surveyStore.currentQuestion.type === 'MULTIPLE_CHOICE'" class="question-type">(多选)</span>
|
||||||
</h2>
|
</h2>
|
||||||
<van-checkbox-group v-if="surveyStore.currentQuestion.type === 'MULTIPLE_CHOICE'" v-model="selectedOptions" class="options-container">
|
<van-checkbox-group v-if="surveyStore.currentQuestion.type === 'MULTIPLE_CHOICE'" v-model="selectedOptions" class="options-container">
|
||||||
@ -142,11 +135,6 @@ function toggleOption(code) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 返回上一页
|
|
||||||
function onBack() {
|
|
||||||
router.back();
|
|
||||||
}
|
|
||||||
|
|
||||||
// 获取下一个问题
|
// 获取下一个问题
|
||||||
async function onNextQuestion() {
|
async function onNextQuestion() {
|
||||||
const questionType = surveyStore.currentQuestion.type;
|
const questionType = surveyStore.currentQuestion.type;
|
||||||
@ -277,6 +265,7 @@ onMounted(() => {
|
|||||||
.survey-view {
|
.survey-view {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background-color: #f7f8fa;
|
background-color: #f7f8fa;
|
||||||
|
padding-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.survey-content {
|
.survey-content {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user