|
@@ -53,35 +53,35 @@
|
|
|
return false;
|
|
|
}
|
|
|
window.onload = function () {
|
|
|
- $.ajax({
|
|
|
- //几个参数需要注意一下
|
|
|
- type: "get",//方法类型
|
|
|
- dataType:"json",
|
|
|
- url: "${ctx}/product/keywordFrequency/getSeacherFrom?trueStatus=1" ,//url
|
|
|
- success: function (data) {
|
|
|
- $('#search').get(0).options.length = 0;
|
|
|
- $('#search').append('<option value="" aria-selected="true">请选择</option>');
|
|
|
- $.each(data, function(i, obj) {
|
|
|
- var option = $('<option />');
|
|
|
- option.val(obj);
|
|
|
- if(obj==1){
|
|
|
- option.text("首页搜索");
|
|
|
- }else if(obj==2){
|
|
|
- option.text("信息中心搜索");
|
|
|
- }else if(obj==3){
|
|
|
- option.text("美业资料搜索");
|
|
|
- }else if(obj==4){
|
|
|
- option.text("采美百科搜索");
|
|
|
- }else if(obj==6){
|
|
|
- option.text("管理员添加");
|
|
|
- }
|
|
|
- $('#search').append(option);
|
|
|
- });
|
|
|
- },
|
|
|
- error : function() {
|
|
|
- alert("服务异常!");
|
|
|
- }
|
|
|
- });
|
|
|
+ <%--$.ajax({--%>
|
|
|
+ <%-- //几个参数需要注意一下--%>
|
|
|
+ <%-- type: "get",//方法类型--%>
|
|
|
+ <%-- dataType:"json",--%>
|
|
|
+ <%-- url: "${ctx}/product/keywordFrequency/getSeacherFrom?trueStatus=1" ,//url--%>
|
|
|
+ <%-- success: function (data) {--%>
|
|
|
+ <%-- $('#search').get(0).options.length = 0;--%>
|
|
|
+ <%-- $('#search').append('<option value="" aria-selected="true">请选择</option>');--%>
|
|
|
+ <%-- $.each(data, function(i, obj) {--%>
|
|
|
+ <%-- var option = $('<option />');--%>
|
|
|
+ <%-- option.val(obj);--%>
|
|
|
+ <%-- if(obj==1){--%>
|
|
|
+ <%-- option.text("首页搜索");--%>
|
|
|
+ <%-- }else if(obj==2){--%>
|
|
|
+ <%-- option.text("信息中心搜索");--%>
|
|
|
+ <%-- }else if(obj==3){--%>
|
|
|
+ <%-- option.text("美业资料搜索");--%>
|
|
|
+ <%-- }else if(obj==4){--%>
|
|
|
+ <%-- option.text("采美百科搜索");--%>
|
|
|
+ <%-- }else if(obj==6){--%>
|
|
|
+ <%-- option.text("管理员添加");--%>
|
|
|
+ <%-- }--%>
|
|
|
+ <%-- $('#search').append(option);--%>
|
|
|
+ <%-- });--%>
|
|
|
+ <%-- },--%>
|
|
|
+ <%-- error : function() {--%>
|
|
|
+ <%-- alert("服务异常!");--%>
|
|
|
+ <%-- }--%>
|
|
|
+ <%--});--%>
|
|
|
}
|
|
|
//选中所有
|
|
|
function allCkbfun(ckb){
|
|
@@ -195,6 +195,12 @@
|
|
|
<form:input path="keyword" htmlEscape="false" maxlength="20" class="input-medium"/>
|
|
|
<label>来源:</label>
|
|
|
<form:select path="fromSearch" class="input-medium" id="search">
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
+ <form:option value="1" label="首页搜索"/>
|
|
|
+ <form:option value="2" label="信息中心搜索"/>
|
|
|
+ <form:option value="3" label="美业资料搜索"/>
|
|
|
+ <form:option value="4" label="采美百科"/>
|
|
|
+ <form:option value="6" label="管理员添加"/>
|
|
|
</form:select>
|
|
|
<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
|
|
|
<%-- <input id="addKeyWord" class="btn btn-primary" type="button" value="加入关键词库" onclick="updateStatus()"/>--%>
|
|
@@ -211,8 +217,8 @@
|
|
|
<th style="width:20px;"><input class="check-all" type="checkbox" onclick="allCkbfun(this);"/></th>
|
|
|
<th>序号</th>
|
|
|
<th>关键词</th>
|
|
|
- <th>搜索来源</th>
|
|
|
- <th>搜索次数</th>
|
|
|
+<%-- <th>搜索来源</th>--%>
|
|
|
+ <th>联动词搜索次数</th>
|
|
|
<th>添加时间</th>
|
|
|
<shiro:hasPermission name="user:newCmClub:edit"><th>操作</th></shiro:hasPermission>
|
|
|
</tr>
|
|
@@ -224,23 +230,23 @@
|
|
|
<td>${status.index+1}</td>
|
|
|
<%--<td>${newCmSp.name}</td>--%>
|
|
|
<td>${newCmSp.keyword}</td>
|
|
|
- <td>
|
|
|
- <c:if test="${newCmSp.fromSearch eq 1}">
|
|
|
- 首页搜索
|
|
|
- </c:if>
|
|
|
- <c:if test="${newCmSp.fromSearch eq 2}">
|
|
|
- 信息中心搜索
|
|
|
- </c:if>
|
|
|
- <c:if test="${newCmSp.fromSearch eq 3}">
|
|
|
- 美业资料搜索
|
|
|
- </c:if>
|
|
|
- <c:if test="${newCmSp.fromSearch eq 4}">
|
|
|
- 采美百科搜索
|
|
|
- </c:if>
|
|
|
- <c:if test="${newCmSp.fromSearch eq 6}">
|
|
|
- 管理员添加
|
|
|
- </c:if>
|
|
|
- </td>
|
|
|
+<%-- <td>--%>
|
|
|
+<%-- <c:if test="${newCmSp.fromSearch eq 1}">--%>
|
|
|
+<%-- 首页搜索--%>
|
|
|
+<%-- </c:if>--%>
|
|
|
+<%-- <c:if test="${newCmSp.fromSearch eq 2}">--%>
|
|
|
+<%-- 信息中心搜索--%>
|
|
|
+<%-- </c:if>--%>
|
|
|
+<%-- <c:if test="${newCmSp.fromSearch eq 3}">--%>
|
|
|
+<%-- 美业资料搜索--%>
|
|
|
+<%-- </c:if>--%>
|
|
|
+<%-- <c:if test="${newCmSp.fromSearch eq 4}">--%>
|
|
|
+<%-- 采美百科搜索--%>
|
|
|
+<%-- </c:if>--%>
|
|
|
+<%-- <c:if test="${newCmSp.fromSearch eq 6}">--%>
|
|
|
+<%-- 管理员添加--%>
|
|
|
+<%-- </c:if>--%>
|
|
|
+<%-- </td>--%>
|
|
|
<td>${newCmSp.frequency}</td>
|
|
|
<td>${newCmSp.serachDate}</td>
|
|
|
<shiro:hasPermission name="user:newCmClub:edit">
|