From 45c6d6e44e9e8428718fc635d71e0869556da2c3 Mon Sep 17 00:00:00 2001
From: 移动系统liao <liaoxujun@qq.com>
Date: 星期一, 20 五月 2024 15:36:53 +0800
Subject: [PATCH] no message
---
CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/corecmsproducts/index.html | 33 ++++++++++++++++++++++++++++++---
1 files changed, 30 insertions(+), 3 deletions(-)
diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/corecmsproducts/index.html b/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/corecmsproducts/index.html
index aab9cc2..46a408c 100644
--- a/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/corecmsproducts/index.html
+++ b/CoreCms.Net.Web.Admin/wwwroot/views/baifenbingfa/corecmsproducts/index.html
@@ -30,7 +30,8 @@
<div class="layui-inline">
<label class="layui-form-label" for="category">鍟嗗搧鍒嗙被</label>
<div class="layui-input-inline">
- <input type="text" name="category" placeholder="璇疯緭鍏ュ晢鍝佸垎绫诲叧閿瓧" class="layui-input">
+
+ <div id="sel_category_ptindes555" class="ew-xmselect-tree" lay-reqText="璇烽�夋嫨鍟嗗搧鍒嗙被"></div>
</div>
</div>
<div class="layui-inline">
@@ -200,8 +201,11 @@
//寮�鍚皟璇曟儏鍐典笅鑾峰彇鎺ュ彛璧嬪�兼暟鎹�
if (debug) { console.log(d); }
- indexData = d.data;
- layui.use(['index', 'table', 'laydate', 'util', 'coredropdown', 'coreHelper'],
+ indexData = d.data .data
+
+
+ if (debug) { console.log(indexData); }
+ layui.use(['index', 'table', 'laydate', 'util', 'coredropdown', 'coreHelper','xmSelect'],
function () {
var $ = layui.$
, admin = layui.admin
@@ -210,6 +214,7 @@
, laydate = layui.laydate
, setter = layui.setter
, coreHelper = layui.coreHelper
+ ,xmSelect = layui.xmSelect
, util = layui.util
, view = layui.view;
@@ -223,6 +228,7 @@
//鎵ц閲嶈浇
table.reloadData('LAY-app-CoreCmsbaifenProducts-tableBox',{ where: field });
});
+
//鏁版嵁缁戝畾
table.render({
elem: '#LAY-app-CoreCmsbaifenProducts-tableBox',
@@ -278,6 +284,27 @@
]
]
});
+
+ xmSelect.render({
+ el: '#sel_category_ptindes555',
+ height: '250px',
+ data: indexData,
+ //initValue: mData ? [mData.parentId] : [],
+ //model: { label: { type: 'text' } },
+ name: 'categoryId',
+ prop: {
+ name: 'title',
+ value: 'id'
+ },
+ radio: true,
+ clickClose: true,
+ tree: {
+ show: true,
+ indent: 15,
+ strict: false,
+ expandedKeys: true
+ }
+ });
//鐩戝惉鎺掑簭浜嬩欢
table.on('sort(LAY-app-CoreCmsbaifenProducts-tableBox)', function(obj){
table.reloadData('LAY-app-CoreCmsbaifenProducts-tableBox', {
--
Gitblit v1.9.1