v2_system

This commit is contained in:
2025-03-31 15:06:32 +08:00
parent 6fb06c456c
commit 490630d4c9
17 changed files with 972 additions and 206 deletions

View File

@@ -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

View File

@@ -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) {