forked from kidgrow-microservices-platform

zhaoxiaohao
2021-03-03 f5df017deac69032a31b6f637c3ce80cd1c414cb
kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctorTemplete.html
@@ -19,7 +19,7 @@
                <option value="0">公开-</option>
                <option value="1">私有</option>
            </select>
            <input name="templeteTitle" id="templeteTitle" placeholder="按标题" type="text"
            <input name="templeteTitle" id="templeteTitle" autocomplete="off" placeholder="按标题" type="text"
                class="layui-input search-input" maxlength="20" />
            <button id="app-btn-search" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
            <button id="docto-templete-btn-add" class="layui-btn icon-btn permissions" permissions="doctortemplete-edit"><i class="layui-icon">&#xe654;</i>添加</button>
@@ -48,7 +48,7 @@
        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-block">
                <input name="templeteTitle" type="text" class="layui-input" maxlength="20"
                <input name="templeteTitle" autocomplete="off" type="text" class="layui-input" maxlength="20"
                       lay-verify="required" required/>
            </div>
        </div>
@@ -114,15 +114,14 @@
            headers: { 'Authorization': 'Bearer ' + config.getToken().access_token },
            page: true,
            cols: [[
                { type: 'numbers' },
                { field: 'templeteTitle',align:'center', width: 180, sort: true, title: '标题' },
                { field: 'templeteTitle',align:'center', width: 300, title: '标题' },
                {
                    field: 'publicType',align:'center', width: 200, sort: true, title: '开放类型', templet: function (d) {
                    field: 'publicType',align:'center', width: 100, title: '开放类型', templet: function (d) {
                        return d.publicType ==true ? "私有" : "公开"
                    }
                },
                {
                    field: 'templeteType',align:'center', width: 180, sort: true, title: '话术类型', templet: function (d) {
                    field: 'templeteType',align:'center', width: 100, title: '话术类型', templet: function (d) {
                        if (d.templeteType == 0) {
                            return "结论";
                        } else if (d.templeteType == 1) {
@@ -132,10 +131,10 @@
                        }
                    }
                },
                { field: 'createUserName',align:'center', width: 300, sort: true, title: '创建者' },
                { field: 'createTime',align:'center', width: 250, sort: true, title: '创建时间', templet: "<div>{{layui.util.toDateString(d.createTime, 'yyyy/MM/dd HH:mm')}}</div>" },
                { field: 'enabled',align:'center', width: 100, sort: true, templet: '#doctor-templete-tpl-state', title: '状态' },
                { field: 'recordTitle',align:'center', width: 150, toolbar: '#doctor-templete-table-bar', sort: true, title: '操作' },
                { field: 'createUserName',align:'center', width: 180, title: '创建者' },
                { field: 'createTime',align:'center', width: 150, sort: true, title: '创建时间', templet: "<div>{{layui.util.toDateString(d.createTime, 'yyyy/MM/dd HH:mm')}}</div>" },
                { field: 'enabled',align:'center', width: 100, templet: '#doctor-templete-tpl-state', title: '状态' ,fixed: 'right' },
                { field: 'recordTitle',align:'center', width: 150, toolbar: '#doctor-templete-table-bar', title: '操作',fixed: 'right' },
            ]],
            done:function(res){
                permissionsInput(res,config);
@@ -170,7 +169,7 @@
            var templeteType = $('#templeteType').val();
            var publicType = $('#publicType').val();
            var templeteTitle = $('#templeteTitle').val();
            table.reload('app-table', { where: { templeteType: templeteType, publicType: publicType, templeteTitle: templeteTitle } });
            table.reload('app-table', { where: { templeteType: templeteType, publicType: publicType, templeteTitle: templeteTitle },page: {curr: 1  } });
        });
        // 修改user状态