# survey-admin **Repository Path**: chain-stock/survey-admin ## Basic Information - **Project Name**: survey-admin - **Description**: 基于ant design of vue组件库搭建的PC端问卷系统管理后台 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-07-14 - **Last Updated**: 2021-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # survey-admin ## 项目框架 参考问卷星的问卷题型,基于 ` Vue2.6.11 + Ant Design of Vue1.7.6 + Vue Router3.2.0 + Axios0.21.1 + Less3.0.4`开发的PC端问卷模板。 ## 快速运行 ### 安装依赖 ``` npm install ``` ### 开发模式 ``` npm run serve ``` ### 生产打包 ``` npm run build ``` ### 运行单元测试 ``` npm run test:unit ``` ### ESlint检测 ``` npm run lint ``` ## 支持的题型有 ![img](./assets/README/1126c2164acfebbbb2b72b601087bfa55eff) 每一种题型对应`src/views/home/components/`目录下的一个组件文件,如单选题对应`src/views/home/components/radio.vue`,具体参考: | 序号 | 题型 | 组件 | `questionType`字段 | | ---- | ---- | --------------------------------------------- | ------------------ | | 1 | 填空 | `src/views/home/components/blank.vue` | blank | | 2 | 单选 | `src/views/home/components/radio.vue` | radio | | 3 | 多选 | `src/views/home/components/checkbox.vue` | checkbox | | 4 | 排序 | `src/views/home/components/sort.vue` | sort | | 5 | 迫选 | `src/views/home/components/forcedChoice.vue` | forced-choice | | 6 | 表格 | `src/views/home/components/tableQuestion.vue` | table-question | ## 如何扩展题型 如何扩展一种新的题型,如other题型? 答:仅需要在`src/views/home/components/`目录下增加一个组件`other.vue`即可生效,项目会根据题目类型字段`questionType`动态加载`src/views/home/components/`下的组件文件。 ## 问卷系统完整介绍 [问卷系统的设计和框架.md](./assets/README/问卷系统的设计和框架.md)