瀏覽代碼

清单精度,提交后,只读编辑框

MaiXinRong 6 年之前
父節點
當前提交
b0ed945f6d
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 2
      app/public/js/global.js
  2. 1 1
      app/public/js/tender.js

+ 1 - 2
app/public/js/global.js

@@ -92,8 +92,7 @@ $(function(){
  * @param string icon
  * @return void
  */
-function toast(message, type, icon)
-{
+function toast(message, type, icon) {
     var toast = $(".toast");
     toast.addClass(type);
     toast.children('.message').html(message);

+ 1 - 1
app/public/js/tender.js

@@ -291,7 +291,7 @@ $(document).ready(function() {
         prop.precision.other.value = _.toNumber($('#unit-other').val());
         const tenderId = window.location.pathname.split('/')[2];
         postData('/tender/' + tenderId + '/save', prop, function (data) {
-            setReadOnly('#v-pills-count', true);
+            setReadOnly('#v-pills-3', true);
             property.precision = data.precision;
             $('#post-3').parent().hide();
             $('#edit-3').parent().show();