Browse Source

更新企业列表交互

hejq 7 years ago
parent
commit
9a391d5e22

+ 3 - 2
src/main/webapp/WEB-INF/views/normal/enterprise.html

@@ -94,12 +94,13 @@
     </div>
 	<table class="table table-striped table-hover">
 		<thead id="enterprise-head">
-            <th class="text-center" width="60">序号</th>
-            <th class="text-center" width="100">UU</th>
+            <th class="text-center" width="50">序号</th>
+            <th class="text-center" width="80">UU</th>
             <th class="text-center" width="200">企业名称</th>
             <th class="text-center" width="300">企业地址</th>
             <th class="text-center" width="150">营业执照</th>
             <th class="text-center" width="120">注册时间</th>
+			<th class="text-center" width="80">操作</th>
 		</thead>
         <tbody id="enterprise-body">
         </tbody>

+ 7 - 2
src/main/webapp/resources/js/account/enterprise.js

@@ -97,8 +97,6 @@ function getDataRow(en, i) {
     var keyword = $('#keyword').val();
 
     var row = document.createElement('tr'); //创建行
-    row.id = "link_b2b_" + i;
-    row.class = "redirect_b2b";
 
     var indexCell = document.createElement('td'); //序号
     indexCell.setAttribute("class", "text-center");
@@ -137,6 +135,13 @@ function getDataRow(en, i) {
         dateCell.innerHTML = '-';
     }
     row.appendChild(dateCell);
+
+    var handleCell = document.createElement('td'); // 操作
+    handleCell.setAttribute('class', 'text-center redirect_b2b');
+    var id = 'link_b2b_' + i;
+    handleCell.setAttribute('id', id);
+    handleCell.innerHTML = '访问>>';
+    row.appendChild(handleCell);
     return row;
 }