From 5b86c3ad3f575374ba828c5176e5078da8ff6c7a Mon Sep 17 00:00:00 2001
From: zzr99 <1940172413@qq.com>
Date: 星期一, 11 十月 2021 17:58:50 +0800
Subject: [PATCH] 器具档案和器具分类的查看删除权限
---
WebTM/views/index.html | 3 ++-
WebTM/views/基础资料/公用基础资料/Gy_MouldType.html | 13 ++++++++++---
WebTM/views/模治具管理/模治具管理/Gy_MouldFileList.html | 9 +++++----
3 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/WebTM/views/index.html b/WebTM/views/index.html
index fbbc168..aed0574 100644
--- a/WebTM/views/index.html
+++ b/WebTM/views/index.html
@@ -458,7 +458,8 @@
<dd>
<a>鍩虹寤烘ā</a>
<dl class="layui-nav-child">
- <dd><a lay-href="鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_MouldType.html">鍣ㄥ叿鍒嗙被</a></dd>
+ <dd><a lay-href="鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Add_Edit_Gy_MouldType.html">鍣ㄥ叿鍒嗙被</a></dd>
+ <dd><a lay-href="鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_MouldType.html">鍣ㄥ叿鍒嗙被缁存姢</a></dd>
<dd><a lay-href="妯℃不鍏风鐞�/妯℃不鍏风鐞�/Gy_MouldFile.html">鍣ㄥ叿涓绘。</a></dd>
<dd><a lay-href="妯℃不鍏风鐞�/妯℃不鍏风鐞�/Gy_MouldFileList.html">鍣ㄥ叿涓绘。缁存姢</a></dd>
</dl>
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldType.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldType.html"
index 4ab6a34..4649630 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldType.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_MouldType.html"
@@ -216,12 +216,13 @@
}
//鏌ヨ
function get_Display(sWhere) {
+ var ModRightNameSelect = 'Gy_MouldTypeList';
var ajaxLoad = layer.load();
//杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
$.ajax({
url: GetWEBURL() + '/Gy_ModelType/list',
type: "GET",
- data: { "sWhere": sWhere },
+ data: { "sWhere": sWhere, "ModRightNameSelect": ModRightNameSelect, "user": sessionStorage["HUserName"] },
success: function (data1) {
if (data1.count == 1) {
option.data = data1.data;
@@ -276,14 +277,20 @@
area: ['80%', '80%'],
maxmin: true,
content: ['../鍏敤鍩虹璧勬枡/Add_Edit_Gy_MouldType.html?hID=' + TagId + '&Level=' + Level + ''],
-
+ end: function () {
+ //鍒锋柊椤甸潰,
+ location.reload();
+ },
+ success: function (layero, index) {
+
+ }
});
}
//鍒犻櫎
function set_DeleteBill() {
- var ModRightNameDelete = 'Gy_QCCheckItem_Delete'
+ var ModRightNameDelete = 'Gy_MouldType_Delete';
if (TagId != "") {
layer.confirm('鎮ㄧ‘瀹氳鍒犻櫎鍚楋紵', {
btn: ['纭畾', '鍙栨秷'] //鎸夐挳
diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_MouldFileList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_MouldFileList.html"
index 1e9161f..7b43180 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_MouldFileList.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Gy_MouldFileList.html"
@@ -225,11 +225,12 @@
//鏌ヨ
function get_Display(sWhere) {
var index = layer.load(0, { shade: false });
+ var ModRightNameSelect = 'Gy_MouldFileList';
//杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
$.ajax({
url: GetWEBURL() + '/Gy_Mould/list1',
type: "GET",
- data: { "sWhere": sWhere },
+ data: { "sWhere": sWhere, "ModRightNameSelect": ModRightNameSelect, "user": sessionStorage["HUserName"] },
success: function (data1) {
if (data1.count == 1) {
option.data = data1.data;
@@ -319,13 +320,13 @@
, data = checkStatus.data;
if (checkStatus.data.length === 1) {
var HInterID = data[0].hmainid.toString();
-
+ var ModRightNameDelete = 'Gy_MouldFile_Delete';
//閫昏緫鍒犻櫎鏂规硶
layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
$.ajax({
type: "GET",
url: GetWEBURL() + '/Gy_Mould_Edit/Delete_Json',
- data: { "hmainid": HInterID },
+ data: { "hmainid": HInterID, "ModRightNameDelete": ModRightNameDelete, "user": sessionStorage["HUserName"] },
success: function (result) {
if (result.count == 1) {
layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -366,7 +367,7 @@
$.ajax({
type: "GET",
url: GetWEBURL() + "/Gy_Mould/AuditProcessReportList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
- data: { "HInterID": HInterID, "IsAudit": 0, "CurUserName": sessionStorage["HUserName"] },
+ data: { "HInterID": HInterID,"IsAudit": 0, "CurUserName": sessionStorage["HUserName"] },
success: function (result) {
if (result.count == 1) {
layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
--
Gitblit v1.9.1