diff --git a/src/api/operation/scroll/index.js b/src/api/operation/scroll/index.js new file mode 100644 index 0000000..11463a1 --- /dev/null +++ b/src/api/operation/scroll/index.js @@ -0,0 +1,73 @@ +import httpService from "@/request" + +// 查询所有问卷调查信息 +export function getQuestionList(params) { + return httpService({ + url: `/user/questionnaire/list`, + method: 'get', + params: params, + }) +} + +// 添加问卷调查表信息 +export function addQuestion(params) { + return httpService({ + url: `/user/questionnaire/insert`, + method: 'post', + data: params, + }) +} + +// 更新问卷调查表信息 +export function updateQuestion(params) { + return httpService({ + url: `/user/questionnaire/update`, + method: 'post', + data: params, + }) +} + +// 删除问卷调查信息 +export function delQuestion(params) { + return httpService({ + url: `/user/questionnaire/delete`, + method: 'post', + data: params, + }) +} + +// 发布下架问卷调查 +export function releaseQuestion(params) { + return httpService({ + url: `/user/questionnaire/isRelease`, + method: 'get', + params: params, + }) +} + +// 根据问卷调查主键ID查询问卷调查信息 +export function findQuestion(params) { + return httpService({ + url: `/user/questionnaire/findById`, + method: 'get', + params: params, + }) +} + +// 根据问卷调查主键id查询报表分析信息 +export function getReport(params) { + return httpService({ + url: `/user/questionnaire/reportAnalysis`, + method: 'get', + params: params, + }) +} + +// 根据题目主键id查询开放题内容信息列表 +export function getAnswerList(params) { + return httpService({ + url: `/user/questionnaire/shortAnswerList`, + method: 'get', + params: params, + }) +} \ No newline at end of file diff --git a/src/router/operation.js b/src/router/operation.js index c3444a5..d39ab48 100644 --- a/src/router/operation.js +++ b/src/router/operation.js @@ -261,4 +261,47 @@ export default [ component: resolve => require(['@/views/Operation/Commission'], resolve), meta: {title: '业委会'}, }, + { + path: '/Scroll', + name: "Scroll", + title: "问卷调查", + icon: 'container', + hide: false, + component: resolve => require(['@/views/Operation/Scroll'], resolve), + meta: {title: '问卷调查'}, + // children: [ + // { + // path: '/Scroll/_addScroll', + // name: "_addScroll", + // title: "新增问卷调查", + // hide: true, + // component: resolve => require(['@/views/Operation/Scroll/_addScroll'], resolve), + // meta: {title: '新增问卷调查'}, + // }, + // ] + }, + { + path: '/Scroll/addScroll', + name: "addScroll", + title: "新增问卷调查", + hide: true, + component: resolve => require(['@/views/Operation/Scroll/addScroll'], resolve), + meta: {title: '新增问卷调查'}, + }, + { + path: '/Scroll/editScroll', + name: "editScroll", + title: "编辑问卷调查", + hide: true, + component: resolve => require(['@/views/Operation/Scroll/editScroll'], resolve), + meta: {title: '编辑问卷调查'}, + }, + { + path: '/Scroll/analyze', + name: "analyze", + title: "问卷调查报表分析", + hide: true, + component: resolve => require(['@/views/Operation/Scroll/analyze'], resolve), + meta: {title: '问卷调查报表分析'}, + }, ] \ No newline at end of file diff --git a/src/views/Operation/Commission/index.vue b/src/views/Operation/Commission/index.vue index 57800cd..c27a504 100644 --- a/src/views/Operation/Commission/index.vue +++ b/src/views/Operation/Commission/index.vue @@ -247,7 +247,7 @@ export default { this.applicantIds = data; }) }, - //添加电话 + //添加 addConfirm() { if(this.mode == 1) { addIndustryCom(this.addForm).then(res => { diff --git a/src/views/Operation/Scroll/addScroll/index.vue b/src/views/Operation/Scroll/addScroll/index.vue new file mode 100644 index 0000000..6e8efee --- /dev/null +++ b/src/views/Operation/Scroll/addScroll/index.vue @@ -0,0 +1,317 @@ + + + + + 新增问卷调查 + + + + 保存 + + 取消 + + + + 题型选择 + 单选题 + 多选题 + 下拉单选 + 判断题 + 开放题 + + + + + + + + + {{index+1}}.{{item.topic}}{{item.type==1?'单选题':item.type==2?'多选题':item.type==3?'下拉单选':item.type==4?'判断题':'开放题'}} + + + {{it.answer}} + + + {{it.answer}} + + + 编辑 + 删除 + + + + + + + + + 添加选项 + + + + + + + + + + {{isEdit==true?'确认编辑':'确认'}} + 取消 + + + + + + + + + + {{isEdit==true?'确认编辑':'确认'}} + 取消 + + + + 请点击左侧按钮添加题目 + + + + + + 单选题 + 多选题 + 下拉单选 + 判断题 + 开放题 + + + + + + + + + + + + + + + + + + + + + + + 无限制 + 业主 + 业主亲属 + 租户 + 租户亲属 + + + + + 发布 + 不发布 + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/Operation/Scroll/analyze/index.vue b/src/views/Operation/Scroll/analyze/index.vue new file mode 100644 index 0000000..ac6704f --- /dev/null +++ b/src/views/Operation/Scroll/analyze/index.vue @@ -0,0 +1,67 @@ + + + + + 问卷调查报表分析 + + + 物业服务满意度调查问卷 + {{reportData.beginDate}} 至 {{reportData.endDate}} + 共收集到 {{reportData.answerNum}} 份问卷 + + + + + + \ No newline at end of file diff --git a/src/views/Operation/Scroll/depend/addType.vue b/src/views/Operation/Scroll/depend/addType.vue new file mode 100644 index 0000000..961975e --- /dev/null +++ b/src/views/Operation/Scroll/depend/addType.vue @@ -0,0 +1,161 @@ + + + + + 职位类型 + + + + + + {{item.name}} + + + + + + + 新增类型 + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/Operation/Scroll/depend/config.js b/src/views/Operation/Scroll/depend/config.js new file mode 100644 index 0000000..bf582fc --- /dev/null +++ b/src/views/Operation/Scroll/depend/config.js @@ -0,0 +1,67 @@ +export const columns = [ + { + title: "问卷标题", + width: "15%", + dataIndex: "title", + }, + { + title: "问卷对象", + width: "9%", + dataIndex: "answerType", + customRender: function(answerType) { + switch(answerType) { + case 1: return '无限制'; + case 2: return '业主'; + case 3: return '业主亲属'; + case 4: return '租户'; + case 5: return '租户亲属'; + } + } + }, + { + title: "状态", + width: "9%", + dataIndex: "status", + customRender: function(status) { + switch(status) { + case 1: return '未开始'; + case 2: return '正在进行'; + case 3: return '已结束'; + } + } + }, + { + title: "开始时间", + width: "15%", + dataIndex: "beginDate", + }, + { + title: "结束时间", + width: "15%", + dataIndex: "endDate", + }, + { + title: "答题人数", + width: "8%", + dataIndex: "answerNum", + }, + { + title: "是否发布", + width: "10%", + dataIndex: "isRelease", + scopedSlots: { customRender: "release" }, + }, + { + title: "操作", + dataIndex: "action", + key: "action", + width: "240", + fixed: "right", + scopedSlots: { customRender: "action" }, + }, +] + +export const rules = { + appUserId: [{ required: true, message: "请选择住户", trigger: "change" }], + industryCommitteeTypeId: [{ required: true, message: "请选择职位", trigger: "change" }], +} \ No newline at end of file diff --git a/src/views/Operation/Scroll/editScroll/index.vue b/src/views/Operation/Scroll/editScroll/index.vue new file mode 100644 index 0000000..017510a --- /dev/null +++ b/src/views/Operation/Scroll/editScroll/index.vue @@ -0,0 +1,363 @@ + + + + + 编辑问卷调查 + + + + 保存 + + 取消 + + + + 题型选择 + 单选题 + 多选题 + 下拉单选 + 判断题 + 开放题 + + + + + + + + + {{index+1}}.{{item.topic}}{{item.type==1?'单选题':item.type==2?'多选题':item.type==3?'下拉单选':item.type==4?'判断题':'开放题'}} + + + {{it.answer}} + + + {{it.answer}} + + + 编辑 + 删除 + + + + + + + + + 添加选项 + + + + + + + + + + {{isEdit==true?'确认编辑':'确认'}} + 取消 + + + + + + + + + + {{isEdit==true?'确认编辑':'确认'}} + 取消 + + + + 请点击左侧按钮添加题目 + + + + + + 单选题 + 多选题 + 下拉单选 + 判断题 + 开放题 + + + + + + + + + + + + + + + + + + + + + + + 无限制 + 业主 + 业主亲属 + 租户 + 租户亲属 + + + + + 发布 + 不发布 + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/Operation/Scroll/index.vue b/src/views/Operation/Scroll/index.vue new file mode 100644 index 0000000..0664d35 --- /dev/null +++ b/src/views/Operation/Scroll/index.vue @@ -0,0 +1,197 @@ + + + + + 问卷调查 + + + + + + + + + 未开始 + 正在进行 + 已结束 + + + 无限制 + 业主 + 业主亲属 + 租户 + 租户亲属 + + 查 询 + 重 置 + + + + + 新增问卷调查 + + + + + + + + 分析报表 + 编辑 + 删除 + + + + + + 批量删除 + + 批量操作 + + + + {{ `已选择 ${selectedRowKeys.length} 条` }} + + + + + + + + + + \ No newline at end of file diff --git a/web.zip b/web.zip index 37fff34..b0fdbd4 100644 Binary files a/web.zip and b/web.zip differ