From f6225d7f1c4cdec0e8a0ca6edb6596f4d18e2947 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 19 七月 2022 08:49:23 +0800
Subject: [PATCH] 工作中心动态列
---
WebTM/views/Baseset/基础资料/Gy_GetProductionTeamList.html | 42 +++++++++++++++++++++---------------------
1 files changed, 21 insertions(+), 21 deletions(-)
diff --git "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_GetProductionTeamList.html" "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_GetProductionTeamList.html"
index 0393db2..a80a22f 100644
--- "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_GetProductionTeamList.html"
+++ "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_GetProductionTeamList.html"
@@ -29,7 +29,7 @@
</div>
</div>
</div>
- <table class="layui-hide" id="ck-table"></table>
+ <table class="layui-hide" id="mainTable"></table>
<script src="../../../layuiadmin/layui/layui.js"></script>
<script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
<script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
@@ -37,41 +37,41 @@
<script>
layui.use(['table', 'form', 'layer'], function () {
var table = layui.table
- , form = layui.form
- , layer = layui.layer;
+ , form = layui.form
+ , layer = layui.layer;
//蹇�熸煡璇�
form.on('submit(HQuery)', function () {
- //var sMainStr = JSON.stringify(table.cache['ck-table']);
+ //var sMainStr = JSON.stringify(table.cache['mainTable']);
RoadQuery($('#Value').val());
});
//杩斿洖
form.on('submit(FH)', function () {//閫夋嫨浠撳簱
- //var sMainStr = JSON.stringify(table.cache['ck-table']);
- var checkStatus = table.checkStatus('ck-table')
- , data = checkStatus.data;
+ //var sMainStr = JSON.stringify(table.cache['mainTable']);
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
parent.GetProductionTeamValue(data);
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
});
RoadQuery($('#Value').val());
table.render({
- elem: '#ck-table'
+ elem: '#mainTable'
// , url: '/demo/table/user/'
- , data: []
- //, cellMinWidth: 80 //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
- , cols: [[
- { type: 'radio' }
- , { field: 'HItemID', title: '鐝粍ID', hide: true }
- , { field: '鐝粍浠g爜', width:110, title: '鐝粍浠g爜' }
- , { field: '鐝粍', width: 110, title: '鐝粍', sort: true }
- ]]
- , page: true
+ , data: []
+ //, cellMinWidth: 80 //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
+ , cols: [[
+ { type: 'radio' }
+ , { field: 'HItemID', title: '鐝粍ID', hide: true }
+ , { field: '鐝粍浠g爜', title: '鐝粍浠g爜' }
+ , { field: '鐝粍', title: '鐝粍', sort: true }
+ ]]
+ , page: true
});
///鍔犺浇鏄剧ず鏁版嵁
function RoadQuery(Where) {
- var Value = " and HNumber like '%" + Where + "%' or HName like '%" + Where + "%'";
- if (!Where) {
- Value = '';
+ var Value = " and HUSEORGID = " + sessionStorage["OrganizationID"] + "";
+ if (Where) {
+ Value += " and (鐝粍浠g爜 like '%" + Where + "%' or 鐝粍鍚嶇О like '%" + Where + "%')";
}
$.ajax({
type: "get",
@@ -80,7 +80,7 @@
data: { "sWhere": Value },
success: function (result) {
ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
- table.reload('ck-table', {
+ table.reload('mainTable', {
data: ajaxReturnData
//, height: 'full-10'
, loading: false
--
Gitblit v1.9.1