模板列表

简要描述
  • 模板列表
  • 搜索字段:标题,编号
请求URL
  • http://192.168.2.107:8080/ops/itsm/questionnaire/template/getList
请求方式
  • POST
参数
参数名 必选 类型 说明
keyword string 搜索关键字
page int 页数
limit int 每页显示条数
调用示例
{
    "keyword":"",
    "page":1,
    "limit":10
}
返回示例

supervise字段为true时,拥有查看、修改、删除权限,为false时只有查看权限

  {
    "errorCode": 0,
    "message": "成功",
    "time": 1648518547242,
    "responseBody": {
        "result": [
            {
                "uuid": "d21e72b8e9bf44b990f65a4440cb4ef5",
                "name": "测试",
                "templateJson": "[{\"name\":\"问卷标题\",\"options\":{\"defaultValue\":\"\",\"title\":\"测试\"},\"model\":\"title\",\"type\":\"title\",\"key\":\"title\"}]",
                "remark": "",
                "createUser": "882ce84a363f4e0c8bcea5ec95072607",
                "createUserName": "A",
                "updateUser": null,
                "updateUserName": null,
                "createTime": "2022-03-29 09:38:26",
                "updateTime": "2022-03-29 09:38:26",
                "state": 0,
                "supervise": true
            },
            {
                "uuid": "65cecefd5b3344aaba4a5a71a0e625e8",
                "name": "问卷数据导入模板",
                "templateJson": "[{\"name\":\"问卷标题\",\"options\":{\"defaultValue\":\"\",\"title\":\"问卷数据导入模板\"},\"model\":\"title\",\"type\":\"title\",\"key\":\"title\"},{\"name\":\"单选题\",\"options\":{\"inline\":false,\"defaultValue\":\"\",\"options\":[\"男\",\"女\",\"保密\"],\"title\":\"您的性别是?\",\"required\":false},\"model\":\"kf_radio_0XDG1EPJ\",\"type\":\"radio\",\"key\":\"radio_0XDG1EPJ\"},{\"name\":\"多选题\",\"options\":{\"inline\":false,\"defaultValue\":[],\"options\":[\"苹果\",\"菠萝\",\"水蜜桃\",\"橘子\",\"其他\"],\"title\":\"您喜欢的水果有?\",\"required\":false},\"model\":\"kf_checkbox_hhT4Nm0l\",\"type\":\"checkbox\",\"key\":\"checkbox_hhT4Nm0l\"},{\"name\":\"下拉框\",\"options\":{\"inline\":false,\"defaultValue\":\"\",\"multiple\":false,\"options\":[\"10000以下\",\"10000-20000\",\"20000以上\"],\"title\":\"您的月收入是?\",\"required\":false},\"model\":\"kf_select_nzhqeJ6F\",\"type\":\"select\",\"key\":\"select_nzhqeJ6F\"},{\"name\":\"评分\",\"options\":{\"defaultValue\":0,\"title\":\"您对公司的满意度是?\",\"maxCount\":5,\"required\":false},\"model\":\"kf_rate_w4a3t4ha\",\"type\":\"rate\",\"key\":\"rate_w4a3t4ha\"},{\"name\":\"单行填空\",\"options\":{\"defaultValue\":\"\",\"title\":\"您最想去的一个地方?\",\"required\":false},\"model\":\"kf_input_7MJRVPV7\",\"type\":\"input\",\"key\":\"input_7MJRVPV7\"},{\"name\":\"多行填空\",\"options\":{\"minHeight\":3,\"maxHeight\":4,\"defaultValue\":\"\",\"title\":\"您对我们有哪些意见和建议?\",\"required\":false},\"model\":\"kf_textarea_t9MH96lY\",\"type\":\"textarea\",\"key\":\"textarea_t9MH96lY\"},{\"name\":\"单选矩阵\",\"options\":{\"remarkContent\":{},\"defaultValue\":\"\",\"options\":[\"非常满意\",\"满意\",\"一般\",\"不满意\"],\"remark\":false,\"title\":\"请给以下部门评价\",\"required\":false,\"rowOptions\":[\"营业部\",\"信息部\",\"客服部\"]},\"model\":\"kf_radioSquad_aCyF27QC\",\"type\":\"radioSquad\",\"key\":\"radioSquad_aCyF27QC\"},{\"name\":\"多选矩阵\",\"options\":{\"remarkContent\":{},\"defaultValue\":[],\"options\":[\"浏览速度快\",\"搜索准确率高\",\"界面设计美观\"],\"remark\":false,\"title\":\"请您评价以下搜索引擎\",\"required\":false,\"rowOptions\":[\"Google\",\"搜狗\",\"百度\"]},\"model\":\"kf_checkboxSquad_bND3bpZe\",\"type\":\"checkboxSquad\",\"key\":\"checkboxSquad_bND3bpZe\"},{\"name\":\"文件上传\",\"options\":{\"defaultValue\":\"\",\"title\":\"请上传6月份个人月报\",\"required\":false,\"fileList\":[],\"fileType\":[\"txt\",\"doc\"]},\"model\":\"kf_fileUpload_QmhGekDJ\",\"type\":\"fileUpload\",\"key\":\"fileUpload_QmhGekDJ\"},{\"name\":\"图片上传\",\"options\":{\"defaultValue\":[],\"title\":\"请上传白底1寸登记照\",\"required\":false,\"fileList\":[],\"maxUpload\":1},\"model\":\"kf_imageUpload_c5Tjak0h\",\"type\":\"imageUpload\",\"key\":\"imageUpload_c5Tjak0h\"}]",
                "remark": null,
                "createUser": "372205e2e0db460980e02ddd74429eca",
                "createUserName": "超级管理员",
                "updateUser": null,
                "updateUserName": null,
                "createTime": "2022-01-04 17:11:41",
                "updateTime": "2022-01-04 17:11:41",
                "state": 0,
                "supervise": true
            },
            {
                "uuid": "c8b231884b704989b72251d01ae87e2e",
                "name": "附件和图片上传",
                "templateJson": "[{\"name\":\"问卷标题\",\"options\":{\"defaultValue\":\"测试附件和图片上传\",\"title\":\"附件和图片上传\"},\"model\":\"title\",\"type\":\"title\",\"key\":\"title\"},{\"name\":\"文件上传\",\"options\":{\"defaultValue\":\"\",\"title\":\"请上传文件\",\"fileList\":[],\"fileType\":[\"\"],\"required\":true},\"model\":\"kf_fileUpload_9715b\",\"type\":\"fileUpload\",\"key\":\"fileUpload_9715b\"},{\"name\":\"图片上传\",\"options\":{\"defaultValue\":[],\"title\":\"请上传图片\",\"fileList\":[],\"required\":false,\"maxUpload\":1},\"model\":\"kf_imageUpload_ufubk\",\"type\":\"imageUpload\",\"key\":\"imageUpload_ufubk\"}]",
                "remark": "测试附件和图片上传",
                "createUser": "372205e2e0db460980e02ddd74429eca",
                "createUserName": "超级管理员",
                "updateUser": null,
                "updateUserName": null,
                "createTime": "2022-02-16 16:13:19",
                "updateTime": "2022-02-16 16:13:19",
                "state": 0,
                "supervise": true
            }
        ],
        "pageInfo": {
            "page": 1,
            "limit": 10,
            "total": 3
        }
    }
}
返回参数说明
参数名 类型 说明
result JSON 列表数据
pageInfo JSON 分页栏数据
备注
  • 更多返回错误代码请看首页的错误代码描述