@model DTO.WebCrawler.ZhengfuProjectDTO
|
@using DTO;
|
@using zhengcaioa.Models;
|
@{
|
|
|
|
List<Area> sheng = ViewData["sheng"] as List<Area>; //省
|
List<Area> shi = ViewData["shi"] as List<Area>; //市
|
List<Area> quxian = ViewData["quxian"] as List<Area>; //区县
|
List<SysCodeDtl> gglx = ViewData["gglx"] as List<SysCodeDtl>; //公告类型
|
List<SysCodeDtl> cgfs = ViewData["cgfs"] as List<SysCodeDtl>; //采购方式
|
List<SysCodeDtl> hyfl = ViewData["hyfl"] as List<SysCodeDtl>; //行业分类
|
|
List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
|
}
|
@{
|
Layout = null;
|
}
|
|
<!DOCTYPE html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
<meta name="description" content="">
|
<meta name="author" content="ThemeBucket">
|
<title>@(SiteConfig.SiteName)</title>
|
<link href="~/css/bootstrap.min.css" rel="stylesheet">
|
<link href="~/css/font-awesome.min.css" rel="stylesheet">
|
<link href="~/css/animate.min.css" rel="stylesheet">
|
|
@*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@
|
<link href="~/css/style.min.css" rel="stylesheet">
|
<link href="~/css/plugins/chosen/chosen.css" rel="stylesheet">
|
@*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@
|
@*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@
|
<link href="~/css/style.min.css" rel="stylesheet">
|
<link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
|
<link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" />
|
|
<style type="text/css">
|
.webuploader-pick {
|
position: relative;
|
display: inline-block;
|
cursor: pointer;
|
background: #00b7ee;
|
padding: 8px 14px 7px 14px;
|
color: #fff;
|
text-align: center;
|
border-radius: 3px;
|
overflow: hidden;
|
}
|
|
div.clearfix > label {
|
padding-top: 8px;
|
}
|
|
.chosen-container {
|
border-radius: 1px;
|
border: 1px solid #e5e6e7;
|
}
|
|
.col-md-1.control-label {
|
padding-right: 0px;
|
font-weight: 400;
|
}
|
</style>
|
|
<!-- jqgrid-->
|
@*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@
|
<script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script>
|
<script src="~/js/bootstrap.min.js"></script>
|
@*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@
|
|
<!--容器-->
|
@*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@
|
@*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@
|
@*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@
|
<script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script>
|
@*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@
|
<script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script>
|
@*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@
|
@*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@
|
<script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script>
|
<script src="~/js/plugins/webuploader/webuploader.min.js"></script>
|
|
<script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script>
|
<script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script>
|
@*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@
|
@*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@
|
<script src="~/js/TUJS.js"></script>
|
</head>
|
<body class="gray-bg" style="overflow:auto">
|
<form id="formtest">
|
<div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
|
<div class="row">
|
<div class="col-sm-12">
|
<div class="ibox float-e-margins">
|
<div class="ibox-title">
|
<h5> <i class="fa fa-list"></i> 基本信息</h5>
|
</div>
|
<div id="div_content" class="ibox-content" style="background-color:white;">
|
<div class="row">
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
|
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">所属区域<i class="red">*</i></label>
|
|
<div class="col-sm-1 col-md-1" grouptype="Vdata">
|
<select id="Sheng" class="form-control" name="Sheng" data-placeholder="选择 序列 ..." style="font-weight:normal;">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in sheng)
|
{
|
@if (!item.CodeId.Equals(Model.Sheng))
|
{
|
<option value="@item.CodeId" hassubinfo="true">
|
@item.Name
|
</option>
|
}
|
else
|
{
|
<option value="@item.CodeId" hassubinfo="true" selected="selected">
|
@item.Name
|
</option>
|
}
|
|
}
|
}
|
|
</select>
|
|
</div>
|
<div class="col-sm-1 col-md-1" grouptype="Vdata">
|
<select id="City" class="form-control" name="City" data-placeholder="选择 序列 ..." style="font-weight:normal;">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in shi)
|
{
|
@if (!item.CodeId.Equals(Model.City))
|
{
|
<option value="@item.CodeId" hassubinfo="true">
|
@item.Name
|
</option>
|
}
|
else
|
{
|
<option value="@item.CodeId" hassubinfo="true" selected="selected">
|
@item.Name
|
</option>
|
}
|
|
}
|
}
|
|
</select>
|
|
</div>
|
<div class="col-sm-1 col-md-1" grouptype="Vdata">
|
<select id="AreaId" class="form-control" name="AreaId" data-placeholder="选择 序列 ..." style="font-weight:normal;">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in quxian)
|
{
|
@if (!item.CodeId.Equals(Model.RegionCode))
|
{
|
<option value="@item.CodeId" hassubinfo="true">
|
@item.Name
|
</option>
|
}
|
else
|
{
|
<option value="@item.CodeId" hassubinfo="true" selected="selected">
|
@item.Name
|
</option>
|
}
|
|
}
|
}
|
|
</select>
|
<input type="hidden" id="Id" name="Id" value="@Model.Id" />
|
</div>
|
|
|
|
|
<label class="text-right col-sm-1 col-md-1 control-label">公告类型<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2">
|
<select id="Gglx" class="form-control" name="Gglx" data-placeholder="选择 序列 ...">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in gglx)
|
{
|
@if (!item.CodeSn.Equals(Model.Gglx))
|
{
|
<option value="@item.CodeSn" hassubinfo="true">
|
@item.Comments
|
</option>
|
}
|
else
|
{
|
<option value="@item.CodeSn" hassubinfo="true" selected="selected">
|
@item.Comments
|
</option>
|
}
|
|
}
|
|
|
</select>
|
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label">采购方式<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2">
|
<select id="Cgfs" class="form-control" name="Cgfs" data-placeholder="选择 序列 ...">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in cgfs)
|
{
|
@if (!item.CodeSn.Equals(Model.Cgfs))
|
{
|
<option value="@item.CodeSn" hassubinfo="true">
|
@item.Comments
|
</option>
|
}
|
else
|
{
|
<option value="@item.CodeSn" hassubinfo="true" selected="selected">
|
@item.Comments
|
</option>
|
}
|
|
}
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">品目<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2">
|
<select id="Pingmu" class="form-control" name="Pingmu" data-placeholder="选择 序列 ...">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in hyfl)
|
{
|
@if (!item.CodeSn.Equals(Model.Pingmu))
|
{
|
<option value="@item.CodeSn" hassubinfo="true">
|
@item.Comments
|
</option>
|
}
|
else
|
{
|
<option value="@item.CodeSn" hassubinfo="true" selected="selected">
|
@item.Comments
|
</option>
|
}
|
|
}
|
|
|
</select>
|
|
|
</div>
|
|
<label class="text-right col-sm-1 col-md-1 control-label">公告日期<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2">
|
<input id="NoticeTime" class="form-control" label="公告日期" name="NoticeTime" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.NoticeTime.ToString("yyyy-MM-dd HH:mm:ss")" readonly="readonly">
|
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label">项目编号<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2">
|
<input id="OpenTenderCode" class="form-control" label="项目编号" name="OpenTenderCode" labtype="txt" addvisible="true" maxlength="100" editvisible="true" reg="" ismust="true" type="text" value="@Model.OpenTenderCode">
|
|
</div>
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">项目名称(长)<i class="red">*</i></label>
|
<div class="col-sm-8 col-md-8">
|
<input id="Title" class="form-control" label="项目名称" name="Title" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Title">
|
|
</div>
|
|
</div>
|
@*<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">项目名称(短)<i class="red">*</i></label>
|
<div class="col-sm-8 col-md-8">
|
<input id="Shorttitle" class="form-control" label="项目名称" name="Shorttitle" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Shorttitle">
|
|
</div>
|
|
</div>*@
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label class="text-right col-sm-1 col-md-1 control-label">网页地址<i class="red">*</i></label>
|
<div class="col-sm-8 col-md-8">
|
<input id="Pageurl" class="form-control" label="网页地址" name="Pageurl" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Pageurl">
|
|
</div>
|
|
</div>
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
|
|
<label class="text-right col-sm-1 col-md-1 control-label">采购人</label>
|
<div class="col-sm-2 col-md-2">
|
<input id="Purchaser" class="form-control" label="采购人" name="Purchaser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Purchaser">
|
|
</div>
|
|
<label class="text-right col-sm-1 col-md-1 control-label">代理机构</label>
|
<div class="col-sm-2 col-md-2">
|
<input id="Agency" class="form-control" label="代理机构" name="Agency" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Agency">
|
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label">预算金额(元)</label>
|
<div class="col-sm-2 col-md-2">
|
<input id="Budget" class="form-control" label="预算金额" name="Budget" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Budget" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,4})?/)">
|
|
</div>
|
<label class="text-right col-sm-1 col-md-1 control-label">开标日期<i class="red">*</i></label>
|
<div class="col-sm-2 col-md-2">
|
<input id="OpenTenderTime" class="form-control" label="开标日期" name="OpenTenderTime" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@(Model.OpenTenderTime.HasValue? Model.OpenTenderTime.Value.ToString("yyyy-MM-dd HH:mm:ss"):"")" readonly="readonly">
|
|
</div>
|
</div>
|
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">页面内容<i class="red">*</i></label>
|
<div class="col-sm-11 col-md-11">
|
<textarea class="form-control bt" placeholder="通过F12获取的html源代码放置在这里,如需要手动编辑页面请在富文本编辑" id="Content" name="Content" title="页面内容" isempty="" maxlength="900000" length="long" style="resize:none;overflow-y:hidden; min-height:80px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@Model.Content</textarea>
|
</div>
|
</div>
|
|
|
|
<div class="clearfix layer-area" style="padding-bottom:15px;">
|
<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">页面内容<i class="red">*</i></label>
|
<div class="col-sm-5 col-md-5">
|
@*<textarea class="form-control bt" id="DocContent" name="DocContent" title="公文内容" isempty="" maxlength="4000" length="long">@Model.DocContent</textarea>*@
|
<!-- 加载编辑器的容器 -->
|
<script id="DocContent" name="Content1" type="text/plain">
|
@Html.Raw(Model.Content)
|
</script>
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="wrapper wrapper-content" style="margin-top:0px"></div>
|
<div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
|
<div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="功能按钮:“保存”,“删除”">
|
<a class="btn btn-success Delete" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;display:none;">
|
<i class="glyphicon glyphicon-remove"></i> <span class="bold">删除</span>
|
</a>
|
|
<a class="btn btn-success Update" href="javascript:void(0)" onclick="savePosition();" style="margin-left: 4px; border-radius: 4px; display: none;">
|
<i class="glyphicon glyphicon-ok"></i> <span class="bold">提交</span>
|
</a>
|
</div>
|
</div>
|
|
</form>
|
<!-- 配置文件 -->
|
<script type="text/javascript" src="/js/ueditor/ueditor.config.js?v=10"></script>
|
<!-- 编辑器源码文件 -->
|
<script type="text/javascript" src="/js/ueditor/ueditor.all.min.js?v=2"></script>
|
<!-- 实例化编辑器 -->
|
<script type="text/javascript">
|
|
var ue4 = UE.getEditor('DocContent', {
|
initialFrameHeight: 500
|
});
|
@*ue4.ready(function () {
|
//设置编辑器的内容
|
ue4.setContent('@Html.Raw(Model.DocContent)');
|
////获取html内容,返回: <p>hello</p>
|
//var html = ue.getContent();
|
////获取纯文本内容,返回: hello
|
//var txt = ue.getContentTxt();
|
});*@
|
</script>
|
<script type="text/javascript">
|
var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95;
|
$("#div_content").height(hh);
|
|
toastr.options = {
|
"closeButton": true,
|
"debug": false,
|
"progressBar": true,
|
"positionClass": "toast-bottom-right",
|
"onclick": null,
|
"showDuration": "300",
|
"hideDuration": "600",
|
"timeOut": "4500",
|
"extendedTimeOut": "600",
|
"showEasing": "swing",
|
"hideEasing": "linear",
|
"showMethod": "fadeIn",
|
"hideMethod": "fadeOut"
|
};
|
|
$("#Cgfs").chosen();
|
$("#Gglx").chosen();
|
$("#Pingmu").chosen();
|
|
var Content1 = document.getElementById("Content");
|
|
Content1.style.height = Content1.scrollHeight + 'px';
|
|
laydate({ elem: "#NoticeTime", format: 'YYYY-MM-DD hh:mm:ss', istime: true, event: "focus" });
|
laydate({ elem: "#OpenTenderTime", format: 'YYYY-MM-DD hh:mm:ss', istime: true, event: "focus" });
|
|
var id = '@Model.Id';
|
|
var delPosition = function () {
|
if (id == null || id == '') {
|
toastr.warning("请先保存");
|
return;
|
}
|
$.ajax({
|
type: "GET",
|
url: "/AdmDocDoc/Nullify?id=" + id,
|
dataType: "json",
|
global: false,
|
data: '',
|
success: function (data) {
|
|
|
if (data.Result) {
|
// parent._afterSave(true);
|
parent.layer.msg('删除成功', { icon: 6 });
|
_pageAutoClose();//自动关闭页面方法
|
}
|
else {
|
// toastr.error("");
|
parent.layer.msg('删除失败', { icon: 5 });
|
}
|
|
},
|
error: function () {
|
if ($.isNumber(imgLoad)) {
|
parent.layer.close(imgLoad);
|
}
|
//toastr.error("保存失败");
|
|
parent.layer.msg('保存失败', { icon: 5 });
|
}
|
});
|
|
}
|
|
// 保存岗位信息
|
var savePosition = function () {
|
|
var ueue = ue4.getContent();
|
// var ueue = ue4.getPlainTxt();
|
|
if ($("#Sheng").val() == '') {
|
toastr.warning("所属区域不能为空");
|
return;
|
}
|
if ($("#Gglx").val() == '') {
|
toastr.warning("公告类型不能为空");
|
return;
|
}
|
if ($("#Cgfs").val() == '') {
|
toastr.warning("采购方式不能为空");
|
return;
|
}
|
if ($("#Pingmu").val() == '') {
|
toastr.warning("品目不能为空");
|
return;
|
}
|
if ($("#NoticeTime").val() == '') {
|
toastr.warning("公告日期不能为空");
|
return;
|
}
|
|
if ($.trim($("#OpenTenderCode").val() )== '') {
|
toastr.warning("项目编号不能为空");
|
return;
|
}
|
if ($.trim($("#Title").val()) == '') {
|
toastr.warning("项目名称(长)不能为空");
|
return;
|
}
|
if ($.trim($("#Pageurl").val()) == '') {
|
toastr.warning("网页地址不能为空");
|
return;
|
}
|
|
if ($.trim($("#Content").val()) == '' && $.trim(ueue) == '') {
|
toastr.warning("网页类容不能为空");
|
return;
|
}
|
|
|
|
var data = { id: $("#Id").val(), Sheng: $("#Sheng").val(), City: $("#City").val(), RegionCode: $("#AreaId").val(), Gglx: $("#Gglx").val(), Cgfs: $("#Cgfs").val(), Pingmu: $("#Pingmu").val(), NoticeTime: $("#NoticeTime").val(), OpenTenderTime: $("#OpenTenderTime").val(), OpenTenderCode: $("#OpenTenderCode").val(), Title: $("#Title").val(), Pageurl: $("#Pageurl").val(), Purchaser: $("#Purchaser").val(), Agency: $("#Agency").val(), Budget: $("#Budget").val(), Content: $("#Content").val(), Content1: ueue}
|
$.ajax({
|
type: "POST",
|
url: "/Project/SaveZhengfuProject",
|
dataType: "json",
|
global: false,
|
data: data,//$('form').serializeArray(),
|
success: function (data) {
|
|
|
|
if (data.Result) {
|
// parent._afterSave(true);
|
parent.layer.msg('成功保存', { icon: 6 });
|
//window.location = "/Project/add?id=" + data.ReturnID;
|
|
|
try {
|
_pageAutoClose();//自动关闭页面方法
|
}
|
catch (err) {
|
parent._CloseTab1("/Project/ADDZhengfuProject");
|
}
|
|
}
|
else {
|
// toastr.error("失败");
|
parent.layer.msg(data.Message, { icon: 5 });
|
}
|
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
}
|
|
|
|
|
|
function _pageAutoClose() {
|
parent.window._reloadPageData();
|
var index = parent.layer.getFrameIndex(window.name);
|
parent.layer.isRefresh = true;
|
parent.layer.closeAll('loading');
|
parent.layer.close(index);
|
return false;
|
}
|
|
var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
|
|
|
|
$(function () {
|
var data = JSON.parse(ActionInfo22);
|
for (var o in data) {
|
$("." + data[o].PageShortcut).show();
|
|
}
|
});
|
|
|
$("#Sheng").change(function () {
|
|
var sheng = $("#Sheng").val();
|
$.ajax({
|
type: "GET",
|
url: "/Project/getCity?shengid=" + sheng,
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
|
var city = $("#City");
|
city.find('option').remove();
|
var aaa = '<option value="" hassubinfo="true">请选择</option>';
|
city.append(aaa);
|
if (data.length > 0) {
|
for (var i = 0; i < data.length; i++) {
|
|
var o = '<option value="' + data[i].CodeId + '" hassubinfo="true">' + data[i].Name + '</option>';
|
city.append(o);
|
}
|
}
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
});
|
|
|
$("#City").change(function () {
|
|
var city = $("#City").val();
|
$.ajax({
|
type: "GET",
|
url: "/Project/getAreaId?cityid=" + city,
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
|
var quxian = $("#AreaId");
|
quxian.find('option').remove();
|
var aaa = '<option value="" hassubinfo="true">请选择</option>';
|
quxian.append(aaa);
|
if (data.length > 0) {
|
for (var i = 0; i < data.length; i++) {
|
|
var o = '<option value="' + data[i].CodeId + '" hassubinfo="true">' + data[i].Name + '</option>';
|
quxian.append(o);
|
}
|
}
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
});
|
|
$("#Pageurl").change(function () {
|
|
var pageurl = $("#Pageurl").val();
|
$.ajax({
|
type: "GET",
|
url: "/Project/getPageurl?Pageurl=" + pageurl + "&Id=" + $("#Id").val(),
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
|
if (!data.Result) {
|
toastr.warning("该页面已经存在");
|
}
|
|
|
|
|
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
});
|
|
$("#Title").change(function () {
|
|
var title = $("#Title").val();
|
var NoticeTime = $("#NoticeTime").val();
|
$.ajax({
|
type: "GET",
|
url: "/Project/getTitle?Title=" + title + "&Id=" + $("#Id").val() + "&NoticeTime=" + NoticeTime,
|
dataType: "json",
|
global: false,
|
data: "",
|
success: function (data) {
|
|
if (!data.Result) {
|
toastr.warning("该页面已经存在");
|
}
|
|
|
|
|
|
},
|
error: function () {
|
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
});
|
</script>
|
</body>
|
</html>
|