1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
| import request from '@/utils/request'
|
| // 查询问卷问题列表
| export function listQuestion(query) {
| return request({
| url: '/hosp/question/list',
| method: 'get',
| params: query
| })
| }
|
| // 查询问卷问题详细
| export function getQuestion(qid) {
| return request({
| url: '/hosp/question/' + qid,
| method: 'get'
| })
| }
|
| // 问卷详情
| export function getQuestionsByMid(data) {
| return request({
| url: 'hosp/surveyTemplate/getQuestionsByMid',
| method: 'get',
| params: data
| })
| }
|
| // 问卷模板列表
| export function PostTemplentList(data) {
| return request({
| url: '/hosp/surveyTemplate/list',
| method: 'get',
| params: data
| })
| }
|
| // 问卷模板列表
| export function listByDeptId1() {
| return request({
| url: '/hosp/surveyTemplate/listByDeptId1',
| method: 'get',
| })
| }
|
| // 新增问卷问题
| export function addQuestion(data) {
| return request({
| url: '/hosp/question',
| method: 'post',
| data: data
| })
| }
|
| // 修改问卷问题
| export function updateQuestion(data) {
| return request({
| url: '/hosp/question',
| method: 'put',
| data: data
| })
| }
|
| // 删除问卷问题
| export function delQuestion(qid) {
| return request({
| url: '/hosp/question/' + qid,
| method: 'delete'
| })
| }
|
|
| // 根据部门id查问卷模板列表
| export function listByDeptId(deptId) {
| return request({
| url: 'hosp/surveyTemplate/listByDeptId',
| method: 'get',
| params: {deptId:deptId}
| })
| }
|
|