Forráskód Böngészése

今天代码完成,修改

任翠亮 5 éve
szülő
commit
e632ec5065
2 módosított fájl, 36 hozzáadás és 3 törlés
  1. 19 0
      meib/logs/hwj.log
  2. 17 3
      meib/meib/templates/dep_ps.html

+ 19 - 0
meib/logs/hwj.log

@@ -25928,3 +25928,22 @@ WARNING 2020-02-19 17:34:17,320 basehttp 154 "GET /static/js/axios.min.map HTTP/
 INFO 2020-02-19 17:34:17,357 basehttp 154 "GET /static/css/bootstrap.min.css.map HTTP/1.1" 200 542194
 INFO 2020-02-19 17:34:17,419 basehttp 154 "GET /dept/ HTTP/1.1" 200 44338
 INFO 2020-02-19 17:34:25,633 basehttp 154 "GET /odd/ HTTP/1.1" 200 86
+INFO 2020-02-19 21:36:30,475 autoreload 597 Watching for file changes with StatReloader
+INFO 2020-02-19 21:36:58,780 basehttp 154 "GET /depps/ HTTP/1.1" 200 19011
+WARNING 2020-02-19 21:36:59,003 log 228 Not Found: /favicon.ico
+WARNING 2020-02-19 21:36:59,005 basehttp 154 "GET /favicon.ico HTTP/1.1" 404 4184
+INFO 2020-02-19 21:36:59,205 basehttp 154 "GET /dept/ HTTP/1.1" 200 44338
+INFO 2020-02-19 21:39:53,213 basehttp 154 "GET /depps/ HTTP/1.1" 200 19115
+INFO 2020-02-19 21:39:53,314 basehttp 154 "GET /dept/ HTTP/1.1" 200 44338
+INFO 2020-02-19 21:44:40,924 basehttp 154 "GET /depps/ HTTP/1.1" 200 19233
+INFO 2020-02-19 21:44:41,033 basehttp 154 "GET /dept/ HTTP/1.1" 200 44338
+INFO 2020-02-19 21:44:48,365 basehttp 154 "GET /odd/ HTTP/1.1" 200 86
+INFO 2020-02-19 21:46:31,635 basehttp 154 "GET /depps/ HTTP/1.1" 200 19634
+INFO 2020-02-19 21:46:31,735 basehttp 154 "GET /dept/ HTTP/1.1" 200 44338
+INFO 2020-02-19 21:46:43,217 basehttp 154 "GET /odd/ HTTP/1.1" 200 86
+INFO 2020-02-19 21:52:33,439 basehttp 154 "GET /depps/ HTTP/1.1" 200 19786
+INFO 2020-02-19 21:52:33,536 basehttp 154 "GET /dept/ HTTP/1.1" 200 44338
+INFO 2020-02-19 21:52:56,382 basehttp 154 "GET /odd/ HTTP/1.1" 200 86
+INFO 2020-02-19 21:52:59,217 basehttp 154 "GET /odd/ HTTP/1.1" 200 86
+INFO 2020-02-19 21:53:00,005 basehttp 154 "GET /odd/ HTTP/1.1" 200 86
+INFO 2020-02-19 21:53:00,715 basehttp 154 "GET /odd/ HTTP/1.1" 200 86

+ 17 - 3
meib/meib/templates/dep_ps.html

@@ -160,6 +160,8 @@
                 </div>
             </div>
             <button class="btn btn-primary abc" @click="add_no()" disabled = "disabled">保存</button>
+            <button class="btn btn-primary update" @click="add_no()" disabled = "disabled">修改</button>
+            <button class="btn btn-primary del" @click="add_no()" disabled = "disabled">删除</button>
             <!-- row这个类是用于设置取消内边距 -->
             <table class="table table-bordered table-hover table-striped">
                 <tbody>
@@ -198,7 +200,7 @@
                         <td width="90px"><input type="text" v-bind:value="Number(item.DEP_QTY)+Number(item.DEP_CN)">
                         </td>
                         <!-- v-bind:value="Number(item.DEP_QTY)+Number(item.DEP_CN)" -->
-                        <td class="btn btn-primary" @click="del()">删除</td>
+                        <td class="btn btn-primary row_del" @click="del()">删除</td>
                     </tr>
                 </tbody>
             </table>
@@ -293,7 +295,12 @@
                         }
                     }
                     console.log(this.add_date)
+                    //设置保存按钮为禁止
                     $(".abc").attr("disabled", "disabled");
+                    //移除修改按钮禁止效果disabled
+                    $('.update').removeAttr('disabled')
+                    //移除删除按钮禁止效果disabled
+                    $('.del').removeAttr('disabled')
                     this.monthly_odd_new = '保存显示'
                     // 
                 },
@@ -329,8 +336,7 @@
                         // 更新 。 这一步很重要
                         $('#field').selectpicker('refresh');
                     }
-                    // 设置保存按钮为不可保存只读模式
-                    // 在这些代码
+                    // 移除禁止按钮disabled效果
                     $('.abc').removeAttr('disabled')
 
 
@@ -338,7 +344,15 @@
                 // 查询单据
                 seek() {
                     console.log('查询单据')
+                    //设置保存按钮为禁止效果
                     $(".abc").attr("disabled", "disabled");
+                    //移除修改按钮禁止效果disabled
+                    $('.update').removeAttr('disabled')
+                    //移除删除按钮禁止效果disabled
+                    $('.del').removeAttr('disabled')
+                    //设置删除行按钮为禁止效果
+                    $(".row_del").attr("disabled", "disabled");
+                    
                     // document.getElementById("def").disabled=""
                     // $("#def").attr("disabled",false);
                     // $("#def").removeAttribute('disabled');