From eacd4c4f0581f1c4b55f7f0c7f1092b3f965a6f8 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 29 三月 2023 14:04:58 +0800
Subject: [PATCH] 提交
---
zhengcaioa/zhengcaioa/Views/Zhuanjiahuida/Index.cshtml | 77 ++++++++++++++++++++++++++++++++++----
1 files changed, 69 insertions(+), 8 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/Zhuanjiahuida/Index.cshtml b/zhengcaioa/zhengcaioa/Views/Zhuanjiahuida/Index.cshtml
index 496c7c0..a2406b7 100644
--- a/zhengcaioa/zhengcaioa/Views/Zhuanjiahuida/Index.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/Zhuanjiahuida/Index.cshtml
@@ -1,6 +1,9 @@
-锘緻{
+锘緻using DTO;
+@{
ViewBag.Title = "Zhuanjiahuida";
Layout = "~/Views/Shared/_Layout_Search.cshtml";
+
+ List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
}
@section headerStyle{
<script type="text/javascript">
@@ -15,18 +18,28 @@
// label: '鎻愰棶浜�', name: 'Username', labtype: 'txt', hidden: false, width: 100
//},
{
- label: '闂', name: 'Question', labtype: 'txt', hidden: false, width: 200,
- formatter: function (cellvalue, options, rowObject) {
- return "<a onclick=\"OpenWindow('鍥炵瓟闂','98%','100%', '/Zhuanjiahuida/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>";
- }
+ label: '闂', name: 'Question', labtype: 'txt', hidden: false, width: 200
+ //,
+ //formatter: function (cellvalue, options, rowObject) {
+ // return "<a onclick=\"OpenWindow('鍥炵瓟闂','98%','100%', '/Zhuanjiahuida/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>";
+ //}
},
-
+ {
+ label: '鎻愰棶鏃堕棿', name: 'CreatetimeName', labtype: 'txt', hidden: false, width: 100
+
+ },
{
label: '鍥炵瓟', name: 'Anwser', labtype: 'txt', hidden: false, width: 300
},
-
+ {
+ label: '鎿嶄綔', name: 'caozuo', labtype: 'txt', hidden: false, width: 50,
+ formatter: function (cellvalue, options, rowObject) {
+ return "<a class=\"Huida\" style=\"display: none;\" onclick=\"OpenWindow('鍥炵瓟','98%','100%', '/Zhuanjiahuida/Edit?id=" + rowObject.Id + "')\" >鍥炵瓟</a> <a class=\"Shanchu\" style=\"display: none;\" onclick=\"_pagedel('" + rowObject.Id + "')\" >鍒犻櫎</a>";
+ }
+ },
+
];
dataUrl = "/Zhuanjiahuida/GetList";
searchCol = [
@@ -48,7 +61,41 @@
// OpenWindow("鏂板鍩烘湰宸ヨ祫", "98%", "100%", "/Zhuanjiahuida/Edit/");
//}
+ var _pagedel = function (id) {
+ if (confirm('鏄惁鍒犻櫎璁板綍')) {
+ $.ajax({
+ type: "GET",
+ url: "/Zhuanjiahuida/Nullify?Id=" + id,
+ dataType: "json",
+ global: false,
+ data: '',
+ success: function (data) {
+
+ if (data.Result) {
+
+ layer.msg('鍒犻櫎鎴愬姛', { icon: 6 });
+ window._reloadPageData();
+ }
+ else {
+ // toastr.error("");
+ layer.msg('鍒犻櫎澶辫触', { icon: 5 });
+ }
+
+ },
+ error: function () {
+ if ($.isNumber(imgLoad)) {
+ layer.close(imgLoad);
+ }
+ //toastr.error("淇濆瓨澶辫触");
+
+ layer.msg('淇濆瓨澶辫触', { icon: 5 });
+ }
+ });
+ }
+
+
+ }
var _afterSave = function (result) {
@@ -67,7 +114,21 @@
toastr.error("鍒犻櫎鎴愬姛");
/**/
}
-}
+ }
+
+ var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
+ var _afterLoadDataload = function (xhr) {
+ var data = JSON.parse(ActionInfo22);
+ for (var o in data) {
+ //alert(o);
+ //alert(data[o]);
+ /* alert("PageShortcut:" + data[o].PageShortcut + " PageName:" + data[o].PageName);*/
+ $("." + data[o].PageShortcut).show();
+
+ }
+
+
+ };
</script>
}
--
Gitblit v1.9.1