maxiaoshan 4 years ago
parent
commit
b4dd67fdce
2 changed files with 14 additions and 4 deletions
  1. 10 1
      src/web/templates/index.html
  2. 4 3
      src/web/templates/spideredit.html

+ 10 - 1
src/web/templates/index.html

@@ -178,6 +178,8 @@ $(function(){
               text = 9
             }else if (text=="已删除"){
               text = 10
+            }else if (text=="已上线"){
+              text = 11
             }
             ttable.cell(cell).data(text);
             cellData = text;
@@ -212,7 +214,10 @@ $(function(){
               text = 9
             }else if (text=="已删除"){
               text = 10
+            }else if (text=="已上线"){
+              text = 11
             }
+            
             ttable.cell(cell).data(text);
             cellData = text;
           });
@@ -291,6 +296,8 @@ $(function(){
 					val="<span class='text-danger text-bold'>无法处理</span>"
 				}else if(state==10){
 					val="<span class='text-danger text-bold'>已删除</span>"
+				}else if(state==11){
+					val="<span class='text-danger text-bold'>已上线</span>"
 				}
 				return val
 			}},
@@ -410,7 +417,8 @@ $(function(){
 		var opt4="<option value='7'>无发布</option>"+
 			"<option value='8'>需登录</option>"+
 			"<option value='9'>无法处理</option>"+
-			"<option value='10'>已删除</option>";
+			"<option value='10'>已删除</option>"+
+      "<option value='11'>已上线</option>";
 		{{if eq (session "auth") 3}}
 			opt=opt+opt1+opt2+opt3+opt4
 		{{else if eq (session "auth") 2}}
@@ -660,6 +668,7 @@ $(function(){
       			"<option disabled value='8'>需登录</option>"+
       			"<option disabled value='9'>无法处理</option>"+
       			"<option disabled value='10'>已删除</option>"+
+            "<option disabled value='10'>已上线</option>"+
           +"</select>"
   };
   function createComboxPlatform(id){

+ 4 - 3
src/web/templates/spideredit.html

@@ -68,7 +68,8 @@
   						<option value=7>无发布</option> 
   						<option value=8>需登录</option> 
   						<option value=9>无法处理</option> 
-  						<option value=10>需删除</option> 
+  						<option value=10>需删除</option>
+              <option value=11>已上线</option> 
   					</select> 
   					<button id="ok" class="btn btn-success btn-sm">确定</button>
   				</div>
@@ -103,11 +104,11 @@
     							},
 			       			success: function(r){
                     if(r.upresult){
-                      showMsg("下架成功",function(){
+                      showMsg("更新成功",function(){
                         	window.location.href="/center"
                       })
                     }else{
-                      showMsg("下架失败",function(){
+                      showMsg("更新失败",function(){
                         	window.location.href="/center"
                       })
                     }