From fe1a4ed8d3a161bc555d4b3fbbce3a7e10a5fbcd Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期四, 21 八月 2025 11:12:07 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI
---
WebTM/views/Baseset/基础资料/Gy_GetProductionTeamList.html | 47 ++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 40 insertions(+), 7 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 a80a22f..3252ad9 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"
@@ -35,6 +35,18 @@
<script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script src="../../../layuiadmin/Scripts/webConfig.js"></script>
<script>
+ function getUrlVars() {
+ var vars = [], hash;
+ var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
+ for (var i = 0; i < hashes.length; i++) {
+ hash = hashes[i].split('=');
+ vars.push(hash[0]);
+ vars[hash[0]] = hash[1];
+ }
+ return vars;
+ }
+ var params = getUrlVars();
+ var Type = params[params[0]];
layui.use(['table', 'form', 'layer'], function () {
var table = layui.table
, form = layui.form
@@ -46,14 +58,29 @@
});
//杩斿洖
form.on('submit(FH)', function () {//閫夋嫨浠撳簱
- //var sMainStr = JSON.stringify(table.cache['mainTable']);
+ var index = parent.layer.getFrameIndex(window.name);
var checkStatus = table.checkStatus('mainTable')
, data = checkStatus.data;
- parent.GetProductionTeamValue(data);
- var index = parent.layer.getFrameIndex(window.name);
+ if (data.length == 0) {
+ parent.layer.close(index);
+ return;
+ }
+ switch (Type) {
+ case "HGroupID1":
+ parent.GetHGroupID1(data);
+ break;
+ case "HGroupID2":
+ parent.GetHGroupID2(data);
+ break;
+ case "HGroupID3":
+ parent.GetHGroupID3(data);
+ break;
+ default:
+ parent.GetProductionTeamValue(data);
+ break;
+ }
parent.layer.close(index);
});
- RoadQuery($('#Value').val());
table.render({
elem: '#mainTable'
// , url: '/demo/table/user/'
@@ -66,7 +93,11 @@
, { field: '鐝粍', title: '鐝粍', sort: true }
]]
, page: true
+ , limits: [50, 500, 5000, 50000],
+ limit: 50
});
+ RoadQuery($('#Value').val());
+
///鍔犺浇鏄剧ず鏁版嵁
function RoadQuery(Where) {
var Value = " and HUSEORGID = " + sessionStorage["OrganizationID"] + "";
@@ -75,9 +106,11 @@
}
$.ajax({
type: "get",
- url: GetWEBURL() + "/Web/GetProductionTeamList_Json",
- async: true,
- data: { "sWhere": Value },
+ //url: GetWEBURL() + "/Web/GetProductionTeamList_Json", //鍘熻繑鍥炴暟鎹皟鐢ㄦ柟娉�
+ url: GetWEBURL() + "/Web/GetGroupListByUser_Json",
+ async: false,
+ //data: { "sWhere": Value },
+ data: { "sWhere": Value, "user": sessionStorage["HUserName"] },
success: function (result) {
ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
table.reload('mainTable', {
--
Gitblit v1.9.1