Commit 616ed302 authored by lixinglin's avatar lixinglin

后台管理编辑园区信息

parent 6810ef4e
...@@ -13,14 +13,11 @@ ...@@ -13,14 +13,11 @@
一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适的。于是利用空闲休息时间开始自己写了一套后台系统。如此有了立业云。她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA。所有前端后台代码封装过后十分精简易上手,出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。 一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适的。于是利用空闲休息时间开始自己写了一套后台系统。如此有了立业云。她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA。所有前端后台代码封装过后十分精简易上手,出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。
性别男,立业云是给女儿取的名字(寓意:立业云)
立业云是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。 立业云是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。
* 前后端分离版本,请移步[RuoYi-Vue](https://gitee.com/y_project/RuoYi-Vue),微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud) * 前后端分离版本,请移步[RuoYi-Vue](https://gitee.com/y_project/RuoYi-Vue),微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud)
* 感谢 [hplus](https://gitee.com/hplus_admin/hplus) 后台主题 UI 框架。 * 感谢 [hplus](https://gitee.com/hplus_admin/hplus) 后台主题 UI 框架。
* 阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)  
* 阿里云优惠券:[点我领取](https://www.aliyun.com/minisite/goods?userCode=brki8iof&share_source=copy_link),腾讯云优惠券:[点我领取](https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console)  
## 内置功能 ## 内置功能
...@@ -42,61 +39,3 @@ ...@@ -42,61 +39,3 @@
16. 缓存监控:对系统的缓存查询,删除、清空等操作。 16. 缓存监控:对系统的缓存查询,删除、清空等操作。
17. 在线构建器:拖动表单元素生成相应的HTML代码。 17. 在线构建器:拖动表单元素生成相应的HTML代码。
18. 连接池监视:监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。 18. 连接池监视:监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。
## 在线体验
- admin/admin123
- 陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。
演示地址:http://ruoyi.vip
文档地址:http://doc.ruoyi.vip
## 演示图
<table>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-42e518aa72a24d228427a1261cb3679f395.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-7f20dd0edba25e5187c5c4dd3ec7d3d9797.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-2dae3d87f6a8ca05057db059cd9a411d51d.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-ea4d98423471e55fba784694e45d12bd4bb.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-7f6c6e9f5873efca09bd2870ee8468b8fce.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-c708b65f2c382a03f69fe1efa8d341e6cff.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-9ab586c47dd5c7b92bca0d727962c90e3b8.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-ef954122a2080e02013112db21754b955c6.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-088edb4d531e122415a1e2342bccb1a9691.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-f886fe19bd820c0efae82f680223cac196c.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-c7a2eb71fa65d6e660294b4bccca613d638.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-e60137fb0787defe613bd83331dc4755a70.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-7c51c1b5758f0a0f92ed3c60469b7526f9f.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-15181aed45bb2461aa97b594cbf2f86ea5f.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-83326ad52ea63f67233d126226738054d98.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-3bd6d31e913b70df00107db51d64ef81df7.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-70a2225836bc82042a6785edf6299e2586a.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-0184d6ab01fdc6667a14327fcaf8b46345d.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-64d8086dc2c02c8f71170290482f7640098.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-5e4daac0bb59612c5038448acbcef235e3a.png"/></td>
</tr>
</table>
## 立业云交流群
QQ群: [![加入QQ群](https://img.shields.io/badge/已满-1389287-blue.svg)](https://jq.qq.com/?_wv=1027&k=5HBAaYN) [![加入QQ群](https://img.shields.io/badge/已满-1679294-blue.svg)](https://jq.qq.com/?_wv=1027&k=5cHeRVW) [![加入QQ群](https://img.shields.io/badge/已满-1529866-blue.svg)](https://jq.qq.com/?_wv=1027&k=53R0L5Z) [![加入QQ群](https://img.shields.io/badge/已满-1772718-blue.svg)](https://jq.qq.com/?_wv=1027&k=5g75dCU) [![加入QQ群](https://img.shields.io/badge/已满-1366522-blue.svg)](https://jq.qq.com/?_wv=1027&k=58cPoHA) [![加入QQ群](https://img.shields.io/badge/已满-1382251-blue.svg)](https://jq.qq.com/?_wv=1027&k=5Ofd4Pb) [![加入QQ群](https://img.shields.io/badge/已满-1145125-blue.svg)](https://jq.qq.com/?_wv=1027&k=5yugASz) [![加入QQ群](https://img.shields.io/badge/已满-86752435-blue.svg)](https://jq.qq.com/?_wv=1027&k=5Rf3d2P) [![加入QQ群](https://img.shields.io/badge/已满-134072510-blue.svg)](https://jq.qq.com/?_wv=1027&k=5ZIjaeP) [![加入QQ群](https://img.shields.io/badge/已满-210336300-blue.svg)](https://jq.qq.com/?_wv=1027&k=5CJw1jY) [![加入QQ群](https://img.shields.io/badge/已满-339522636-blue.svg)](https://jq.qq.com/?_wv=1027&k=5omzbKc) [![加入QQ群](https://img.shields.io/badge/已满-130035985-blue.svg)](https://jq.qq.com/?_wv=1027&k=qPIKBb7s) [![加入QQ群](https://img.shields.io/badge/已满-143151071-blue.svg)](https://jq.qq.com/?_wv=1027&k=4NsjKbtU) [![加入QQ群](https://img.shields.io/badge/已满-158781320-blue.svg)](https://jq.qq.com/?_wv=1027&k=VD2pkz2G) [![加入QQ群](https://img.shields.io/badge/已满-201531282-blue.svg)](https://jq.qq.com/?_wv=1027&k=HlshFwkJ) [![加入QQ群](https://img.shields.io/badge/已满-101526938-blue.svg)](https://jq.qq.com/?_wv=1027&k=0ARRrO9V) [![加入QQ群](https://img.shields.io/badge/已满-264355400-blue.svg)](https://jq.qq.com/?_wv=1027&k=up9k3ZXJ) [![加入QQ群](https://img.shields.io/badge/已满-298522656-blue.svg)](https://jq.qq.com/?_wv=1027&k=540WfdEr) [![加入QQ群](https://img.shields.io/badge/已满-139845794-blue.svg)](https://jq.qq.com/?_wv=1027&k=ss91fC4t) [![加入QQ群](https://img.shields.io/badge/已满-185760789-blue.svg)](https://jq.qq.com/?_wv=1027&k=Cqd66IKe) [![加入QQ群](https://img.shields.io/badge/175104288-blue.svg)](https://jq.qq.com/?_wv=1027&k=7FplYUnR)
\ No newline at end of file
...@@ -111,11 +111,19 @@ public class ParkInfoController extends BaseController { ...@@ -111,11 +111,19 @@ public class ParkInfoController extends BaseController {
/** /**
* 修改保存parkinfo * 修改保存parkinfo
*/ */
@RequiresPermissions("parkinfo:info:edit")
@Log(title = "changeParkStatus", businessType = BusinessType.UPDATE)
@PostMapping("/changeParkStatus")
@ResponseBody
public AjaxResult changeParkStatus(ParkInfo parkInfo) {
return toAjax(parkInfoService.changeParkStatus(parkInfo));
}
@RequiresPermissions("parkinfo:info:edit") @RequiresPermissions("parkinfo:info:edit")
@Log(title = "parkinfo", businessType = BusinessType.UPDATE) @Log(title = "parkinfo", businessType = BusinessType.UPDATE)
@PostMapping("/edit") @PostMapping("/edit")
@ResponseBody @ResponseBody
public AjaxResult editSave(ParkInfo parkInfo) { public AjaxResult edit(ParkInfo parkInfo) {
return toAjax(parkInfoService.updateParkInfo(parkInfo)); return toAjax(parkInfoService.updateParkInfo(parkInfo));
} }
......
...@@ -46,6 +46,7 @@ public interface IParkInfoService { ...@@ -46,6 +46,7 @@ public interface IParkInfoService {
* @param parkInfo parkinfo * @param parkInfo parkinfo
* @return 结果 * @return 结果
*/ */
public int changeParkStatus(ParkInfo parkInfo);
public int updateParkInfo(ParkInfo parkInfo); public int updateParkInfo(ParkInfo parkInfo);
/** /**
......
...@@ -100,7 +100,7 @@ public class ParkInfoServiceImpl implements IParkInfoService { ...@@ -100,7 +100,7 @@ public class ParkInfoServiceImpl implements IParkInfoService {
*/ */
@Override @Override
@Transactional @Transactional
public int updateParkInfo(ParkInfo parkInfo) { public int changeParkStatus(ParkInfo parkInfo) {
parkInfo.setUpdateTime(DateUtils.getNowDate()); parkInfo.setUpdateTime(DateUtils.getNowDate());
Long id = parkInfo.getId(); Long id = parkInfo.getId();
Integer status = parkInfo.getStatus(); Integer status = parkInfo.getStatus();
...@@ -148,6 +148,14 @@ public class ParkInfoServiceImpl implements IParkInfoService { ...@@ -148,6 +148,14 @@ public class ParkInfoServiceImpl implements IParkInfoService {
return 1; return 1;
} }
@Override
@Transactional
public int updateParkInfo(ParkInfo parkInfo) {
parkInfo.setUpdateTime(DateUtils.getNowDate());
parkInfoMapper.updateParkInfo(parkInfo);
return 1;
}
public int updateOtherUserParkInfo(Map<String, Long> map) { public int updateOtherUserParkInfo(Map<String, Long> map) {
return parkInfoMapper.updateOtherUserParkInfo(map); return parkInfoMapper.updateOtherUserParkInfo(map);
} }
......
...@@ -111,7 +111,7 @@ public class SubmitExamineLogServiceImpl implements ISubmitExamineLogService { ...@@ -111,7 +111,7 @@ public class SubmitExamineLogServiceImpl implements ISubmitExamineLogService {
@Override @Override
public int updateSubmitParkExamineLog(SubmitExamineLog submitExamineLog, ParkInfo parkInfo) { public int updateSubmitParkExamineLog(SubmitExamineLog submitExamineLog, ParkInfo parkInfo) {
if (submitExamineLog.getType() == 2) { if (submitExamineLog.getType() == 2) {
parkInfoService.updateParkInfo(parkInfo); parkInfoService.changeParkStatus(parkInfo);
//作废初始数据 //作废初始数据
ParkInfo parkInfoNew = parkInfoService.selectParkInfoById(parkInfo.getId()); ParkInfo parkInfoNew = parkInfoService.selectParkInfoById(parkInfo.getId());
System.out.println(parkInfoNew.toString()); System.out.println(parkInfoNew.toString());
...@@ -119,7 +119,7 @@ public class SubmitExamineLogServiceImpl implements ISubmitExamineLogService { ...@@ -119,7 +119,7 @@ public class SubmitExamineLogServiceImpl implements ISubmitExamineLogService {
if (ObjectUtils.isNotEmpty(mirrorId)) { if (ObjectUtils.isNotEmpty(mirrorId)) {
ParkInfo parkInfoOld = parkInfoService.selectParkInfoById(mirrorId); ParkInfo parkInfoOld = parkInfoService.selectParkInfoById(mirrorId);
parkInfoOld.setStatus(ParkInfoStatusEnum.USELESS.getCode()); parkInfoOld.setStatus(ParkInfoStatusEnum.USELESS.getCode());
parkInfoService.updateParkInfo(parkInfoOld); parkInfoService.changeParkStatus(parkInfoOld);
//作废其他用户数据 //作废其他用户数据
Map<String, Long> map = new HashMap<>(); Map<String, Long> map = new HashMap<>();
map.put("id", parkInfo.getId()); map.put("id", parkInfo.getId());
......
...@@ -824,7 +824,7 @@ ...@@ -824,7 +824,7 @@
}); });
function clickValid(id, status, mirrorId) { function clickValid(id, status, mirrorId) {
url = "/parkInfo/info/edit"; url = "/parkInfo/info/changeParkStatus";
// 1=-未认证;2-认证中;3-已认证;4-已拒绝;9-作废 // 1=-未认证;2-认证中;3-已认证;4-已拒绝;9-作废
$.post(url, {id: id, status: status, mirrorId: mirrorId}, function (result) { $.post(url, {id: id, status: status, mirrorId: mirrorId}, function (result) {
if (result.code == web_status.SUCCESS) { if (result.code == web_status.SUCCESS) {
......
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > <html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head> <head>
<th:block th:include="include :: header('修改园区信息')" /> <th:block th:include="include :: header('修改园区信息')"/>
<th:block th:include="include :: datetimepicker-css" /> <th:block th:include="include :: datetimepicker-css"/>
<th:block th:include="include :: bootstrap-fileinput-css"/> <th:block th:include="include :: bootstrap-fileinput-css"/>
</head> </head>
<body class="white-bg"> <body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-info-edit" th:object="${parkInfo}"> <form class="form-horizontal m" id="form-info-edit" th:object="${parkInfo}">
<input name="id" th:field="*{id}" type="hidden"> <input name="id" th:field="*{id}" type="hidden">
<div class="form-group"> <div class="form-group">
...@@ -15,73 +16,72 @@ ...@@ -15,73 +16,72 @@
<input name="name" th:field="*{name}" class="form-control" type="text" required> <input name="name" th:field="*{name}" class="form-control" type="text" required>
</div> </div>
</div> </div>
<div class="form-group"> <!-- <div class="form-group">-->
<label class="col-sm-3 control-label">所属集团id(1-产业新城;2-幸福产城):</label> <!-- <label class="col-sm-3 control-label">所属集团id(1-产业新城;2-幸福产城):</label>-->
<div class="col-sm-8"> <!-- <div class="col-sm-8">-->
<input name="groupId" th:field="*{groupId}" class="form-control" type="text"> <!-- <input name="groupId" th:field="*{groupId}" class="form-control" type="text">-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<div class="form-group"> <!-- <div class="form-group">-->
<label class="col-sm-3 control-label">所属集团:</label> <!-- <label class="col-sm-3 control-label">所属集团:</label>-->
<div class="col-sm-8"> <!-- <div class="col-sm-8">-->
<input name="groupName" th:field="*{groupName}" class="form-control" type="text"> <!-- <input name="groupName" th:field="*{groupName}" class="form-control" type="text">-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<div class="form-group"> <div class="form-group" style="display: none">
<label class="col-sm-3 control-label">所属片区id:</label> <label class="col-sm-3 control-label">所属片区id:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="zoneId" th:field="*{zoneId}" class="form-control" type="text"> <input id="zoneId" name="zoneId" th:field="*{zoneId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">所属片区:</label>
<div class="col-sm-8">
<input name="zoneName" th:field="*{zoneName}" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">园区级别</label> <label class="col-sm-3 control-label">所属开发区</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="levelCode" th:field="*{levelCode}" class="form-control" type="text"> <input name="zoneName" id="zoneName" th:field="*{zoneName}" class="form-control" type="text" onclick="selectType()">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">园区级别:</label> <label class="col-sm-3 control-label">园区级别:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="levelName" th:field="*{levelName}" class="form-control" type="text"> <!-- <input name="levelName" th:field="*{levelName}" class="form-control" type="text">-->
<select name="levelName" th:with="type=${@dict.getType('park_level')}" class="form-control m-b">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
th:value="${dict.dictValue}" th:field="*{levelName}"></option>
</select>
</div> </div>
</div> </div>
<div class="form-group"> <!-- <div class="form-group">-->
<label class="col-sm-3 control-label">省份code:</label> <!-- <label class="col-sm-3 control-label">省份code:</label>-->
<div class="col-sm-8"> <!-- <div class="col-sm-8">-->
<input name="provinceCode" th:field="*{provinceCode}" class="form-control" type="text"> <!-- <input name="provinceCode" th:field="*{provinceCode}" class="form-control" type="text">-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">省份:</label> <label class="col-sm-3 control-label">省份:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="provinceName" th:field="*{provinceName}" class="form-control" type="text"> <input name="provinceName" th:field="*{provinceName}" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group"> <!-- <div class="form-group">-->
<label class="col-sm-3 control-label">城市code:</label> <!-- <label class="col-sm-3 control-label">城市code:</label>-->
<div class="col-sm-8"> <!-- <div class="col-sm-8">-->
<input name="cityCode" th:field="*{cityCode}" class="form-control" type="text"> <!-- <input name="cityCode" th:field="*{cityCode}" class="form-control" type="text">-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">城市:</label> <label class="col-sm-3 control-label">城市:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="cityName" th:field="*{cityName}" class="form-control" type="text"> <input name="cityName" th:field="*{cityName}" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group"> <!-- <div class="form-group">-->
<label class="col-sm-3 control-label">区/县code:</label> <!-- <label class="col-sm-3 control-label">区/县code:</label>-->
<div class="col-sm-8"> <!-- <div class="col-sm-8">-->
<input name="regionCode" th:field="*{regionCode}" class="form-control" type="text"> <!-- <input name="regionCode" th:field="*{regionCode}" class="form-control" type="text">-->
</div> <!-- </div>-->
</div> <!-- </div>-->
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">区/县:</label> <label class="col-sm-3 control-label">区/县:</label>
<div class="col-sm-8"> <div class="col-sm-8">
...@@ -133,12 +133,12 @@ ...@@ -133,12 +133,12 @@
<input name="ownershipProperty" th:field="*{ownershipProperty}" class="form-control" type="text"> <input name="ownershipProperty" th:field="*{ownershipProperty}" class="form-control" type="text">
</div> </div>
</div> </div>
<!-- <div class="form-group"> --> <!-- <div class="form-group"> -->
<!-- <label class="col-sm-3 control-label">产品数量:</label>--> <!-- <label class="col-sm-3 control-label">产品数量:</label>-->
<!-- <div class="col-sm-8">--> <!-- <div class="col-sm-8">-->
<!-- <input name="productQuantity" th:field="*{productQuantity}" class="form-control" type="text">--> <!-- <input name="productQuantity" th:field="*{productQuantity}" class="form-control" type="text">-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<div class="form-group"> <div class="form-group">
...@@ -149,18 +149,18 @@ ...@@ -149,18 +149,18 @@
</div> </div>
<!-- <div class="form-group"> --> <!-- <div class="form-group"> -->
<!-- <label class="col-sm-3 control-label">所属行业:</label>--> <!-- <label class="col-sm-3 control-label">所属行业:</label>-->
<!-- <div class="col-sm-8">--> <!-- <div class="col-sm-8">-->
<!-- <input name="industryIds" th:field="*{industryIds}" class="form-control" type="text">--> <!-- <input name="industryIds" th:field="*{industryIds}" class="form-control" type="text">-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- <div class="form-group"> --> <!-- <div class="form-group"> -->
<!-- <label class="col-sm-3 control-label">招商方向:</label>--> <!-- <label class="col-sm-3 control-label">招商方向:</label>-->
<!-- <div class="col-sm-8">--> <!-- <div class="col-sm-8">-->
<!-- <input name="investmentDirection" th:field="*{investmentDirection}" class="form-control" type="text">--> <!-- <input name="investmentDirection" th:field="*{investmentDirection}" class="form-control" type="text">-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">投资强度:</label> <label class="col-sm-3 control-label">投资强度:</label>
...@@ -183,7 +183,8 @@ ...@@ -183,7 +183,8 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">环评要求:</label> <label class="col-sm-3 control-label">环评要求:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="environmentalEquirements" th:field="*{environmentalEquirements}" class="form-control" type="text"> <input name="environmentalEquirements" th:field="*{environmentalEquirements}" class="form-control"
type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
...@@ -223,7 +224,8 @@ ...@@ -223,7 +224,8 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">环评指标:</label> <label class="col-sm-3 control-label">环评指标:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="environmentalIndicators" th:field="*{environmentalIndicators}" class="form-control" type="text"> <input name="environmentalIndicators" th:field="*{environmentalIndicators}" class="form-control"
type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
...@@ -235,7 +237,8 @@ ...@@ -235,7 +237,8 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">产业服务平台:</label> <label class="col-sm-3 control-label">产业服务平台:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="industrialServicePlatform" th:field="*{industrialServicePlatform}" class="form-control" type="text"> <input name="industrialServicePlatform" th:field="*{industrialServicePlatform}" class="form-control"
type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
...@@ -247,7 +250,8 @@ ...@@ -247,7 +250,8 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">双回路电:</label> <label class="col-sm-3 control-label">双回路电:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="doubleCircuitElectricity" th:field="*{doubleCircuitElectricity}" class="form-control" type="text"> <input name="doubleCircuitElectricity" th:field="*{doubleCircuitElectricity}" class="form-control"
type="text">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
...@@ -280,7 +284,8 @@ ...@@ -280,7 +284,8 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">经营服务用水:</label> <label class="col-sm-3 control-label">经营服务用水:</label>
<div class="col-sm-7"> <div class="col-sm-7">
<input name="businessServicesWater" th:field="*{businessServicesWater}" class="form-control" type="text"> <input name="businessServicesWater" th:field="*{businessServicesWater}" class="form-control"
type="text">
</div> </div>
<label class="col-sm-1 control-label">元/吨</label> <label class="col-sm-1 control-label">元/吨</label>
</div> </div>
...@@ -298,15 +303,15 @@ ...@@ -298,15 +303,15 @@
</div> </div>
<label class="col-sm-1 control-label">元/m³</label> <label class="col-sm-1 control-label">元/m³</label>
</div> </div>
<!-- <div class="form-group">-->
<!-- <label class="col-sm-3 control-label">居民用暖价格:</label>-->
<!-- <div class="col-sm-7">-->
<!-- <input name="residentsHeating" th:field="*{residentsHeating}" class="form-control" type="text">-->
<!-- </div>-->
<!-- <label class="col-sm-1 control-label">元/㎡</label>-->
<!-- </div>-->
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">居民用暖价格:</label> <label class="col-sm-3 control-label">供暖价格:</label>
<div class="col-sm-7">
<input name="residentsHeating" th:field="*{residentsHeating}" class="form-control" type="text">
</div>
<label class="col-sm-1 control-label">元/㎡</label>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">非居民用暖价格:</label>
<div class="col-sm-7"> <div class="col-sm-7">
<input name="nresidentsHeating" th:field="*{nresidentsHeating}" class="form-control" type="text"> <input name="nresidentsHeating" th:field="*{nresidentsHeating}" class="form-control" type="text">
</div> </div>
...@@ -315,9 +320,10 @@ ...@@ -315,9 +320,10 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">餐厅:</label> <label class="col-sm-3 control-label is-required">餐厅:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<!-- <input name="restaurant" th:field="*{restaurant}" class="form-control" type="text" required>--> <!-- <input name="restaurant" th:field="*{restaurant}" class="form-control" type="text" required>-->
<div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}"> <div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}">
<input type="radio" th:id="${dict.dictCode}" name="restaurant" th:value="${dict.dictValue}" th:field="*{restaurant}" required> <input type="radio" th:id="${dict.dictCode}" name="restaurant" th:value="${dict.dictValue}"
th:field="*{restaurant}" required>
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label> <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div> </div>
</div> </div>
...@@ -325,9 +331,10 @@ ...@@ -325,9 +331,10 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">公寓:</label> <label class="col-sm-3 control-label is-required">公寓:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<!-- <input name="apartment" th:field="*{apartment}" class="form-control" type="text" required>--> <!-- <input name="apartment" th:field="*{apartment}" class="form-control" type="text" required>-->
<div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}"> <div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}">
<input type="radio" th:id="${dict.dictCode}" name="apartment" th:value="${dict.dictValue}" th:field="*{apartment}" required> <input type="radio" th:id="${dict.dictCode}" name="apartment" th:value="${dict.dictValue}"
th:field="*{apartment}" required>
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label> <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div> </div>
</div> </div>
...@@ -335,9 +342,10 @@ ...@@ -335,9 +342,10 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">便利店:</label> <label class="col-sm-3 control-label is-required">便利店:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<!-- <input name="convenienceStore" th:field="*{convenienceStore}" class="form-control" type="text" required>--> <!-- <input name="convenienceStore" th:field="*{convenienceStore}" class="form-control" type="text" required>-->
<div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}"> <div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}">
<input type="radio" th:id="${dict.dictCode}" name="convenienceStore" th:value="${dict.dictValue}" th:field="*{convenienceStore}" required> <input type="radio" th:id="${dict.dictCode}" name="convenienceStore" th:value="${dict.dictValue}"
th:field="*{convenienceStore}" required>
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label> <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div> </div>
</div> </div>
...@@ -345,9 +353,10 @@ ...@@ -345,9 +353,10 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">公共空间:</label> <label class="col-sm-3 control-label is-required">公共空间:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<!-- <input name="publicSpace" th:field="*{publicSpace}" class="form-control" type="text" required>--> <!-- <input name="publicSpace" th:field="*{publicSpace}" class="form-control" type="text" required>-->
<div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}"> <div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}">
<input type="radio" th:id="${dict.dictCode}" name="publicSpace" th:value="${dict.dictValue}" th:field="*{publicSpace}" required> <input type="radio" th:id="${dict.dictCode}" name="publicSpace" th:value="${dict.dictValue}"
th:field="*{publicSpace}" required>
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label> <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div> </div>
</div> </div>
...@@ -355,9 +364,10 @@ ...@@ -355,9 +364,10 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">公共交通:</label> <label class="col-sm-3 control-label is-required">公共交通:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<!-- <input name="publicTransit" th:field="*{publicTransit}" class="form-control" type="text" required>--> <!-- <input name="publicTransit" th:field="*{publicTransit}" class="form-control" type="text" required>-->
<div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}"> <div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}">
<input type="radio" th:id="${dict.dictCode}" name="publicTransit" th:value="${dict.dictValue}" th:field="*{publicTransit}" required> <input type="radio" th:id="${dict.dictCode}" name="publicTransit" th:value="${dict.dictValue}"
th:field="*{publicTransit}" required>
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label> <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div> </div>
</div> </div>
...@@ -365,9 +375,10 @@ ...@@ -365,9 +375,10 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">车位:</label> <label class="col-sm-3 control-label is-required">车位:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<!-- <input name="parkingSpace" th:field="*{parkingSpace}" class="form-control" type="text" required>--> <!-- <input name="parkingSpace" th:field="*{parkingSpace}" class="form-control" type="text" required>-->
<div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}"> <div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}">
<input type="radio" th:id="${dict.dictCode}" name="parkingSpace" th:value="${dict.dictValue}" th:field="*{parkingSpace}" required> <input type="radio" th:id="${dict.dictCode}" name="parkingSpace" th:value="${dict.dictValue}"
th:field="*{parkingSpace}" required>
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label> <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div> </div>
</div> </div>
...@@ -375,9 +386,10 @@ ...@@ -375,9 +386,10 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">充电桩:</label> <label class="col-sm-3 control-label is-required">充电桩:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<!-- <input name="chargingStation" th:field="*{chargingStation}" class="form-control" type="text" required>--> <!-- <input name="chargingStation" th:field="*{chargingStation}" class="form-control" type="text" required>-->
<div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}"> <div class="radio-box" th:each="dict : ${@dict.getType('sys_has_no')}">
<input type="radio" th:id="${dict.dictCode}" name="chargingStation" th:value="${dict.dictValue}" th:field="*{chargingStation}" required> <input type="radio" th:id="${dict.dictCode}" name="chargingStation" th:value="${dict.dictValue}"
th:field="*{chargingStation}" required>
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label> <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div> </div>
</div> </div>
...@@ -385,9 +397,10 @@ ...@@ -385,9 +397,10 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">出租率:</label> <label class="col-sm-3 control-label">出租率:</label>
<div class="col-sm-8"> <div class="col-sm-7">
<input name="rentalRate" th:field="*{rentalRate}" class="form-control" type="text"> <input name="rentalRate" th:field="*{rentalRate}" class="form-control" type="text">
</div> </div>
<label class="col-sm-1 control-label">%</label>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">联系人:</label> <label class="col-sm-3 control-label">联系人:</label>
...@@ -403,17 +416,17 @@ ...@@ -403,17 +416,17 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">租金单价:</label> <label class="col-sm-3 control-label">租金单价:</label>
<div class="col-sm-8"> <div class="col-sm-6">
<input name="rentPrice" th:field="*{rentPrice}" class="form-control" type="text"> <input name="rentPrice" th:field="*{rentPrice}" class="form-control" type="text">
</div> </div>
<label class="col-sm-3 control-label">元/㎡/月</label> <label class="col-sm-2 control-label">元/㎡/天</label>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">物业费单价:</label> <label class="col-sm-3 control-label">物业费单价:</label>
<div class="col-sm-8"> <div class="col-sm-6">
<input name="propertyPrice" th:field="*{propertyPrice}" class="form-control" type="text"> <input name="propertyPrice" th:field="*{propertyPrice}" class="form-control" type="text">
</div> </div>
<label class="col-sm-3 control-label">元/㎡/月</label> <label class="col-sm-2 control-label">元/㎡/天</label>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">开发区id:</label> <label class="col-sm-3 control-label">开发区id:</label>
...@@ -433,49 +446,50 @@ ...@@ -433,49 +446,50 @@
<textarea name="enterprise" class="form-control">[[*{enterprise}]]</textarea> <textarea name="enterprise" class="form-control">[[*{enterprise}]]</textarea>
</div> </div>
</div> </div>
<!-- <div class="form-group"> --> <!-- <div class="form-group"> -->
<!-- <label class="col-sm-3 control-label">问卷星id:</label>--> <!-- <label class="col-sm-3 control-label">问卷星id:</label>-->
<!-- <div class="col-sm-8">--> <!-- <div class="col-sm-8">-->
<!-- <input name="wenjuanxingid" th:field="*{wenjuanxingid}" class="form-control" type="text">--> <!-- <input name="wenjuanxingid" th:field="*{wenjuanxingid}" class="form-control" type="text">-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- <div class="form-group"> --> <!-- <div class="form-group"> -->
<!-- <label class="col-sm-3 control-label">用户id:</label>--> <!-- <label class="col-sm-3 control-label">用户id:</label>-->
<!-- <div class="col-sm-8">--> <!-- <div class="col-sm-8">-->
<!-- <input name="userId" th:field="*{userId}" class="form-control" type="text">--> <!-- <input name="userId" th:field="*{userId}" class="form-control" type="text">-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- <div class="form-group"> --> <!-- <div class="form-group"> -->
<!-- <label class="col-sm-3 control-label">提交时间:</label>--> <!-- <label class="col-sm-3 control-label">提交时间:</label>-->
<!-- <div class="col-sm-8">--> <!-- <div class="col-sm-8">-->
<!-- <div class="input-group date">--> <!-- <div class="input-group date">-->
<!-- <input name="submitTime" th:value="${#dates.format(parkInfo.submitTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">--> <!-- <input name="submitTime" th:value="${#dates.format(parkInfo.submitTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
<!-- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>--> <!-- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- <div class="form-group"> --> <!-- <div class="form-group"> -->
<!-- <label class="col-sm-3 control-label">以入园企业数量:</label>--> <!-- <label class="col-sm-3 control-label">以入园企业数量:</label>-->
<!-- <div class="col-sm-8">--> <!-- <div class="col-sm-8">-->
<!-- <input name="enterpriseNumber" th:field="*{enterpriseNumber}" class="form-control" type="text">--> <!-- <input name="enterpriseNumber" th:field="*{enterpriseNumber}" class="form-control" type="text">-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<!-- <div class="form-group"> --> <!-- <div class="form-group"> -->
<!-- <label class="col-sm-3 control-label is-required">是否为系统提前预录入:</label>--> <!-- <label class="col-sm-3 control-label is-required">是否为系统提前预录入:</label>-->
<!-- <div class="col-sm-8">--> <!-- <div class="col-sm-8">-->
<!-- <input name="isSystem" th:field="*{isSystem}" class="form-control" type="text" required>--> <!-- <input name="isSystem" th:field="*{isSystem}" class="form-control" type="text" required>-->
<!-- </div>--> <!-- </div>-->
<!-- </div>--> <!-- </div>-->
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">是否为热点园区:</label> <label class="col-sm-3 control-label">是否为热点园区:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="isHotPark" th:field="*{isHotPark}" class="form-control" type="text"> <!-- <input name="isHotPark" th:field="*{isHotPark}" class="form-control" type="text">-->
<input type="radio" value="0" th:text="否" th:field="*{isHotPark}">
<input type="radio" value="1" th:text="是" th:field="*{isHotPark}">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">封面图片:</label> <label class="col-sm-3 control-label">封面图片:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input type="hidden" name="imgUrl" th:field="*{imgUrl}"> <input type="hidden" name="imgUrl" th:field="*{imgUrl}">
<div class="file-loading"> <div class="file-loading">
<input class="form-control img-upload" id="imgUrl" name="file" type="file"> <input class="form-control img-upload" id="imgUrl" name="file" type="file">
...@@ -484,13 +498,53 @@ ...@@ -484,13 +498,53 @@
</div> </div>
</div> </div>
<h1>在这里加新增字段</h1>
</form> </form>
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js" /> <th:block th:include="include :: datetimepicker-js"/>
<th:block th:include="include :: bootstrap-fileinput-js"/> <th:block th:include="include :: bootstrap-fileinput-js"/>
<script th:src="@{/js/jquery.tmpl.js}"></script> <script th:src="@{/js/jquery.tmpl.js}"></script>
<script th:inline="javascript"> <script th:inline="javascript">
var carouselPrefix = ctx + "carousel/info"
// 根据当前激活的选项卡获取(方式一)
function selectType() {
// $.modal.open("选择", prefix + "/selectType?type="+$("#type").val());
var options = {
title: '选择',
url: carouselPrefix + "/selectType?type=1",
callBack: doSubmit2
};
$.modal.openOptions(options);
}
function doSubmit2(index, layero) {
var rows = layero.find("iframe")[0].contentWindow.getSelections();
if (rows.length == 0) {
$.modal.alertWarning("请至少选择一条记录");
return;
}
// $('#userids').html('我是通过方式二来的:' + rows.join())
$('#zoneName').val(rows.name);
$('#zoneId').val(rows.id);
$.modal.close(index);
}
var prefix = ctx + "parkInfo/info"; var prefix = ctx + "parkInfo/info";
...@@ -545,7 +599,7 @@ ...@@ -545,7 +599,7 @@
}) })
$(this).fileinput('_initFileActions'); $(this).fileinput('_initFileActions');
}); });
</script> </script>
</body> </body>
</html> </html>
......
...@@ -16,7 +16,11 @@ ...@@ -16,7 +16,11 @@
</li> </li>
<li> <li>
<label>园区级别:</label> <label>园区级别:</label>
<input type="text" name="levelCode"/> <select name="levelCode" th:with="type=${@dict.getType('park_level')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
th:value="${dict.dictValue}"></option>
</select>
</li> </li>
<li> <li>
<label>审核状态:</label> <label>审核状态:</label>
...@@ -104,7 +108,7 @@ ...@@ -104,7 +108,7 @@
// title: '所属片区' // title: '所属片区'
// }, // },
{ {
field: 'level', field: 'levelName',
title: '园区级别' title: '园区级别'
}, },
// { // {
...@@ -377,7 +381,15 @@ ...@@ -377,7 +381,15 @@
// }, // },
{ {
field: 'isHotPark', field: 'isHotPark',
title: '是否为热点园区' title: '是否为热点园区',
formatter: function (value, row, index) {
if (value == 1) {
return "是";
} else if (value == 0) {
return "否"
}
}
}, },
// { // {
// field: 'imgUrl', // field: 'imgUrl',
...@@ -390,17 +402,19 @@ ...@@ -390,17 +402,19 @@
var actions = []; var actions = [];
let id = row.id; let id = row.id;
actions.push('<a class="btn btn-primary btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.modal.openTab(\'详情信息\',\'/parkInfo/info/detail/' + id + '\')"><i class="fa fa-edit"></i>详情信息</a> '); actions.push('<a class="btn btn-primary btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.modal.openTab(\'详情信息\',\'/parkInfo/info/detail/' + id + '\')"><i class="fa fa-edit"></i>详情信息</a> ');
// actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.operate.edit(\'' + id + '\')"><i class="fa fa-edit"></i>编辑园区详情</a> ');
// actions.push('<a class="btn btn-primary btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.modal.openTab(\'区位交通信息\',\'/parkinfo/traffic?parkId=' + id + '\')"><i class="fa fa-edit"></i>编辑区位交通信息</a> '); actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.operate.edit(\'' + id + '\')"><i class="fa fa-edit"></i>编辑园区详情</a> ');
// actions.push('<a class="btn btn-info btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.modal.openTab(\'污水处理能力\',\'/parkinfo/sewage?parkId=' + id + '\')"><i class="fa fa-edit"></i>编辑污水处理能力</a> <br>');
// actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.modal.openTab(\'物流资源信息\',\'/parkinfo/resources?parkId=' + id + '\')"><i class="fa fa-edit"></i>编辑物流资源信息</a> '); actions.push('<a class="btn btn-primary btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.modal.openTab(\'区位交通信息\',\'/parkinfo/traffic?parkId=' + id + '\')"><i class="fa fa-edit"></i>编辑区位交通信息</a> ');
// actions.push('<a class="btn btn-defaule btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.modal.openTab(\'招商方向信息\',\'/parkinfo/investmentdirection?parkId=' + id + '\')"><i class="fa fa-edit"></i>编辑招商方向信息</a> '); actions.push('<a class="btn btn-info btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.modal.openTab(\'污水处理能力\',\'/parkinfo/sewage?parkId=' + id + '\')"><i class="fa fa-edit"></i>编辑污水处理能力</a> <br>');
// actions.push('<a class="btn btn-warning btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.modal.openTab(\'政策信息\',\'/parkinfo/policy?parkId=' + id + '\')"><i class="fa fa-edit"></i>编辑政策信息</a> '); actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.modal.openTab(\'物流资源信息\',\'/parkinfo/resources?parkId=' + id + '\')"><i class="fa fa-edit"></i>编辑物流资源信息</a> ');
// actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.operate.remove(\'' + id + '\')"><i class="fa fa-remove"></i>删除</a>'); actions.push('<a class="btn btn-defaule btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.modal.openTab(\'招商方向信息\',\'/parkinfo/investmentdirection?parkId=' + id + '\')"><i class="fa fa-edit"></i>编辑招商方向信息</a> ');
actions.push('<a class="btn btn-warning btn-xs ' + editFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.modal.openTab(\'政策信息\',\'/parkinfo/policy?parkId=' + id + '\')"><i class="fa fa-edit"></i>编辑政策信息</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" style="margin-top:5px" href="javascript:void(0)" onclick="$.operate.remove(\'' + id + '\')"><i class="fa fa-remove"></i>删除</a>');
let status = row.status; let status = row.status;
if (status == 2) { if (status == 2) {
actions.push('<a class="btn btn-primary btn-xs" href="javascript:void(0)" onclick="clickValid(' + row.id + ',3,'+row.mirrorId+')">通过</a> '); actions.push('<a class="btn btn-primary btn-xs" href="javascript:void(0)" onclick="clickValid(' + row.id + ',3,' + row.mirrorId + ')">通过</a> ');
actions.push('<a class="btn btn-primary btn-xs" href="javascript:void(0)" onclick="clickValid(' + row.id + ',4,'+row.mirrorId+')">拒绝</a> '); actions.push('<a class="btn btn-primary btn-xs" href="javascript:void(0)" onclick="clickValid(' + row.id + ',4,' + row.mirrorId + ')">拒绝</a> ');
} }
return actions.join(''); return actions.join('');
...@@ -410,10 +424,10 @@ ...@@ -410,10 +424,10 @@
$.table.init(options); $.table.init(options);
}); });
function clickValid(id, status,mirrorId) { function clickValid(id, status, mirrorId) {
url = "/parkInfo/info/edit"; url = "/parkInfo/info/changeParkStatus";
// 1=-未认证;2-认证中;3-已认证;4-已拒绝 // 1=-未认证;2-认证中;3-已认证;4-已拒绝
$.post(url, {id: id, status: status,mirrorId: mirrorId}, function (result) { $.post(url, {id: id, status: status, mirrorId: mirrorId}, function (result) {
if (result.code == web_status.SUCCESS) { if (result.code == web_status.SUCCESS) {
if (status == 3) { if (status == 3) {
alert("通过"); alert("通过");
......
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