v2_system
This commit is contained in:
@@ -26,7 +26,9 @@
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-form-label">上级</div>
|
||||
<div class="layui-input-inline" id="ParentID" style="width: 300px;"></div>
|
||||
<div class="layui-input-inline" style="width:300px;">
|
||||
<ul id="categoryTree" class="dtree organizationTree"></ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
@@ -185,13 +187,13 @@
|
||||
|
||||
function getCategory() {
|
||||
$.ajax({
|
||||
url: "/system/category/xmselect",
|
||||
url: "/system/category/tree?type=xmselect",
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
headers: { 'X-CSRF-Token': $('#csrf_token').val() },
|
||||
success: function (res) {
|
||||
xmSelect.render({
|
||||
el: '#ParentID',
|
||||
el: '#categoryTree',
|
||||
// 工具栏
|
||||
toolbar: {
|
||||
show: true
|
||||
|
||||
@@ -278,14 +278,14 @@
|
||||
|
||||
function getCategory() {
|
||||
$.ajax({
|
||||
url: "/system/category/dtree",
|
||||
url: "/system/category/tree",
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
headers: { 'X-CSRF-Token': $('#csrf_token').val() },
|
||||
success: function (res) {
|
||||
tree.render({
|
||||
elem: '#departTree',
|
||||
data: res.data,
|
||||
data: res,
|
||||
onlyIconControl: true, // 是否仅允许节点左侧图标控制展开收缩
|
||||
showLine: true,
|
||||
click: function (obj) {
|
||||
|
||||
Reference in New Issue
Block a user