Commit 6bcdc2e0 authored by lixinglin's avatar lixinglin

detail.html

parent 9db64cc0
......@@ -7,8 +7,9 @@
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-info-edit" th:object="${developmentInfoDetailVO.developmentInfo}">
<input name="id" th:field="*{id}" type="hidden">
<input name="status" th:field="*{status}" type="hidden">
<input id="id" name="id" th:field="*{id}" type="hidden">
<input id="status" th:field="*{status}" type="hidden">
<input id="mirrorId" th:field="*{mirrorId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">片区名称:</label>
<div class="col-sm-8">
......@@ -447,7 +448,7 @@
<div class="col-sm-8">
<!-- <input name="imgUrl" th:field="*{imgUrl}" class="form-control" type="text">-->
<!-- <input type="hidden" name="imgUrl" th:field="*{imgUrl}">-->
<img th:src="*{imgUrl}" style="width: 100px;height: 100px" >
<img th:src="*{imgUrl}" style="width: 100px;height: 100px">
<!-- <div class="file-loading">-->
<!-- <input class="form-control img-upload" id="imgUrl" name="file" type="file">-->
<!-- </div>-->
......@@ -549,7 +550,8 @@
</th>
<th style="" data-field="levelName">
<div class="th-inner ">
城市名称</div>
城市名称
</div>
<div class="fht-cell"></div>
</th>
<th style="" data-field="status">
......@@ -674,8 +676,7 @@
</div>
<div>
<div id="lastDiv">
</div>
......@@ -686,19 +687,36 @@
<script th:inline="javascript">
$(function () {
$("input[type=text]").attr("readonly", "readonly");
$("textarea").attr("readonly", true);
debugger;
let value = $("#status").value();
alert(value);
if (value==2){
var tongguo = '<a class="btn btn-primary btn-xs" href="javascript:void(0)" onclick="clickValid(' + row.id + ',3,'+row.mirrorId+')">通过</a> ';
var jujue = '<a class="btn btn-primary btn-xs" href="javascript:void(0)" onclick="clickValid(' + row.id + ',4,'+row.mirrorId+')">拒绝</a> '
$("form").append($(tongguo));
$("form").append($(jujue));
let value = $("#status").val();
let id = $("#id").val();
let mirrorId = $("#mirrorId").val();
if (value == 2) {
var tongguo = $('<a class="btn btn-primary btn-xs" href="javascript:void(0)" onclick="clickValid(' + id + ',3,' + mirrorId + ')">通过</a>');
var jujue = $('<a class="btn btn-primary btn-xs" href="javascript:void(0)" onclick="clickValid(' + id + ',4,' + mirrorId + ')">拒绝</a>');
$("#lastDiv").append(tongguo);
$("#lastDiv").append(jujue);
}
});
function clickValid(id, status, mirrorId) {
url = "/developmentInfo/info/edit";
// 1=-未认证;2-认证中;3-已认证;4-已拒绝;9-作废
$.post(url, {id: id, status: status, mirrorId: mirrorId}, function (result) {
if (result.code == web_status.SUCCESS) {
if (status == 3) {
alert("通过");
} else {
alert("拒绝");
}
} else {
alert("保存状态,出现异常");
}
});
}
//
// var prefix = ctx + "developmentInfo/info";
// $("#form-info-edit").validate({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment