|
@@ -0,0 +1,162 @@
|
|
|
+<!DOCTYPE HTML>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
|
|
|
+ <meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
|
+<#include "/base/add_base.ftl">
|
|
|
+ <title>标记列表</title>
|
|
|
+ <style>
|
|
|
+ .my-title{font-weight: 500;padding-left: 15px;position: relative;}
|
|
|
+ .my-title:after{content: '';position: absolute;left: 0;top:12%;width: 3px;height: 80%;background: #32a3d8;}
|
|
|
+ .my-input{padding: 8px 5px;width: 80%;border:1px solid rgba(0,0,0,.1);}
|
|
|
+ .my-input-date{padding: 8px 10px;border:1px solid rgba(0,0,0,.1);width: 80%;background: url(http://s.iamberry.com/images/rili-1.png) 98.5% center no-repeat; background-size:auto 50%;}
|
|
|
+ .input-box{margin: 18px 0;}
|
|
|
+ .input-dic{float: left;margin:5px 10px 0 0;font-size: 12px;}
|
|
|
+ .add-list{list-style-type: none;padding: 10px;background-color: #f5f5f5;width: 60%;float: left;margin: 0;}
|
|
|
+ .add-list>li{margin: 10px 0;}
|
|
|
+ .my-textarea{padding: 5px 10px;width: 80%;border:1px solid rgba(0,0,0,.1);}
|
|
|
+ .my-btn-reset{padding: 10px 20px;width: 150px; background-color: #fff;color: #32a3d8;border: 1px solid #32a3d8;cursor:pointer;margin: 10px 10px 0 10px;}
|
|
|
+ .my-btn-submit{padding: 10px 20px;width: 150px; background-color: #32a3d8;color: #fff;border: 1px solid #32a3d8;cursor:pointer;margin: 10px 10px 0 10px;}
|
|
|
+ .my-select{border: 1px solid rgba(0,0,0,.1);padding:6px 50px 6px 15px;height: 34px; -webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/select-11.png) right center no-repeat;background-size:auto 100%;}
|
|
|
+ input[type=radio]{-webkit-appearance:none;appearance:none;background: url(/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
|
|
|
+ .radio-box{display: inline-block;
|
|
|
+ box-sizing: border-box;
|
|
|
+ cursor: pointer;
|
|
|
+ position: relative;
|
|
|
+ padding-left: 20px;
|
|
|
+ padding-right: 20px;}
|
|
|
+ </style>
|
|
|
+ <meta name="keywords" content="${path}">
|
|
|
+ <meta name="description" content="H-ui.admin v3.0,是一款由国人开发的轻量级扁平化网站后台模板,完全免费开源的网站后台管理系统模版,适合中小型CMS后台系统。">
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<article class="page-container">
|
|
|
+ <table class="table table-border table-bg table-bordered" style="margin-top: 10px;">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th width="40">标记人</th>
|
|
|
+ <th width="80">标记时间</th>
|
|
|
+ <th width="40">标记旗帜</th>
|
|
|
+ <th width="80">标记内容</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <#if listTag?? && (listTag?size > 0) >
|
|
|
+ <#list listTag as list>
|
|
|
+ <tr>
|
|
|
+ <td>${list.adminName!''}</td>
|
|
|
+ <td>${(list.tagCreateTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td>
|
|
|
+ <td>
|
|
|
+ <#if list.tagFlag??>
|
|
|
+ <#if list.tagFlag == 1>
|
|
|
+ <img style="width: 20px;height: 20px;" src="/common/images/cm/hong.png">
|
|
|
+ </#if>
|
|
|
+ <#if list.tagFlag == 2>
|
|
|
+ <img style="width: 20px;height: 20px;" src="/common/images/cm/huang.png">
|
|
|
+ </#if>
|
|
|
+ <#if list.tagFlag == 3>
|
|
|
+ <img style="width: 20px;height: 20px;" src="/common/images/cm/lv.png">
|
|
|
+ </#if>
|
|
|
+ <#if list.tagFlag == 4>
|
|
|
+ <img style="width: 20px;height: 20px;" src="/common/images/cm/lan.png">
|
|
|
+ </#if>
|
|
|
+ <#if list.tagFlag == 5>
|
|
|
+ <img style="width: 20px;height: 20px;" src="/common/images/cm/zi.png">
|
|
|
+ </#if>
|
|
|
+ </#if>
|
|
|
+ </td>
|
|
|
+ <td>${list.tagDesc!''}</td>
|
|
|
+ <tr>
|
|
|
+ </#list>
|
|
|
+ <#else>
|
|
|
+ <td colspan="4" class="td-manage text-c" >暂时没有标记信息,请添加!</td></tr>
|
|
|
+ </#if>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <form class="form form-horizontal" id="form-admin-add">
|
|
|
+ <div style="text-align:center;">
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-2 col-sm-2"><span class="c-red">*</span>旗帜:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9">
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" value="1" id="tel-1" checked="checked" name="tagFlag">
|
|
|
+ <label for="tel-1"><img style="width: 20px;height: 20px;" src="/common/images/cm/hong.png"></label>
|
|
|
+ </div>
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" value="2" id="tel-2" name="tagFlag">
|
|
|
+ <label for="tel-2"><img style="width: 20px;height: 20px;" src="/common/images/cm/huang.png"></label>
|
|
|
+ </div>
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" value="3" id="tel-3" name="tagFlag">
|
|
|
+ <label for="tel-3"><img style="width: 20px;height: 20px;" src="/common/images/cm/lv.png"></label>
|
|
|
+ </div>
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" value="4" id="tel-4" name="tagFlag">
|
|
|
+ <label for="tel-4"><img style="width: 20px;height: 20px;" src="/common/images/cm/lan.png"></label>
|
|
|
+ </div>
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" value="5" id="tel-5" name="tagFlag">
|
|
|
+ <label for="tel-5"><img style="width: 20px;height: 20px;" src="/common/images/cm/zi.png"></label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-2 col-sm-2"><span class="c-red">*</span>标记内容:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9">
|
|
|
+ <textarea rows="5" cols="20" name="tagDesc" id="tagDesc" class="my-textarea" placeholder="请填写标记内容"></textarea>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl">
|
|
|
+ <div class="col-4 col-sm-4 col-offset-3">
|
|
|
+ <button onClick="add();" class="btn btn-block btn-primary size-XL" type="button">确认添加</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <input type="hidden" value="${customerId!''}" id="tagCustomerId" name="tagCustomerId">
|
|
|
+ </form>
|
|
|
+</article>
|
|
|
+<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
|
+<script type="text/javascript">
|
|
|
+
|
|
|
+
|
|
|
+ function add() {
|
|
|
+ var tagDesc = $("#tagDesc").val();
|
|
|
+ if( tagDesc != null){
|
|
|
+ if( tagDesc.length > 200 ){
|
|
|
+ layer.msg('标记内容不得大于200个字符',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ layer.msg('标记内容不能为空',{icon: 5,time:1000});
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ cache: true,
|
|
|
+ type: "POST",
|
|
|
+ url: "${path}/admin/customer/add_Tag",
|
|
|
+ data:$('#form-admin-add').serialize(),// 你的formid
|
|
|
+ async: false,
|
|
|
+ success: function(data){
|
|
|
+ if (data.returnCode == 200) {
|
|
|
+ layer.msg('添加成功',{icon: 1,time:1000},function () {
|
|
|
+ window.parent.location.reload();
|
|
|
+ var index = parent.layer.getFrameIndex(window.name);
|
|
|
+ parent.layer.close(index)
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ layer.msg('添加失败',{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
|
+ layer.msg('添加错误',{icon: 5,time:1000});
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|