From 7ea2a2cfe922c9b2d5c09c737d10a7f1ab5b50d1 Mon Sep 17 00:00:00 2001
From: zhaoxiaohao <279049017@qq.com>
Date: Mon, 01 Mar 2021 14:14:35 +0800
Subject: [PATCH] Merge branch 'dev1.1' into dev

---
 kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctorTemplete.html |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctorTemplete.html b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctorTemplete.html
index 10d0e88..0604d12 100644
--- a/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctorTemplete.html
+++ b/kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/doctorTemplete.html
@@ -68,8 +68,8 @@
             <div class="layui-input-block">
                 <select id="publicType-add" name="publicType" placeholder="开放类型" lay-verify="required" required>
                     <option value="">-请选择-</option>
-                    <option value="1">公开</option>
-                    <option value="0">私有</option>
+                    <option value="0">公开</option>
+                    <option value="1">私有</option>
                 </select>
             </div>
         </div>
@@ -114,15 +114,14 @@
             headers: { 'Authorization': 'Bearer ' + config.getToken().access_token },
             page: true,
             cols: [[
-                { type: 'numbers' },
-                { field: 'templeteTitle', width: 180, sort: true, title: '标题' },
+                { field: 'templeteTitle',align:'center', width: 300, title: '标题' },
                 {
-                    field: 'publicType', width: 200, sort: true, title: '开放类型', templet: function (d) {
+                    field: 'publicType',align:'center', width: 100, title: '开放类型', templet: function (d) {
                         return d.publicType ==true ? "私有" : "公开"
                     }
                 },
                 {
-                    field: 'templeteType', 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', width: 300, sort: true, title: '创建者' },
-                { field: 'createTime', width: 250, sort: true, title: '创建时间', templet: "<div>{{layui.util.toDateString(d.createTime, 'yyyy/MM/dd HH:mm')}}</div>" },
-                { field: 'enabled', width: 100, sort: true, templet: '#doctor-templete-tpl-state', title: '状态' },
-                { field: 'recordTitle', width: 300, 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状态

--
Gitblit v1.8.0