WIN-2308041133\Administrator 6 月之前
父節點
當前提交
1e30275e4b
共有 2 個文件被更改,包括 4 次插入10 次删除
  1. 3 9
      application/admin/view/wechat/plan/edit.html
  2. 1 1
      public/assets/js/backend/wechat/plan.js

+ 3 - 9
application/admin/view/wechat/plan/edit.html

@@ -10,7 +10,7 @@
     <div class="form-group">
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
         <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
         <div class="col-xs-12 col-sm-8">
         <div class="col-xs-12 col-sm-8">
-            <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" value="0">
+            <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" value="{$row.cid}">
         </div>
         </div>
     </div>
     </div>
     <div class="form-group">
     <div class="form-group">
@@ -19,16 +19,10 @@
             <input type="text" name="row[plan_id]" value="{$row.plan_id}"  id="c-plan_id" class="form-control" data-rule="required" />
             <input type="text" name="row[plan_id]" value="{$row.plan_id}"  id="c-plan_id" class="form-control" data-rule="required" />
         </div>
         </div>
     </div>
     </div>
-<!--    <div class="form-group">-->
-<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Plan_id')}:</label>-->
-<!--        <div class="col-xs-12 col-sm-8">-->
-<!--            <input id="c-plan_id" class="form-control" name="row[plan_id]" type="text">-->
-<!--        </div>-->
-<!--    </div>-->
     <div class="form-group">
     <div class="form-group">
-        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
+        <label for="c-price" class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
         <div class="col-xs-12 col-sm-8">
         <div class="col-xs-12 col-sm-8">
-            <input id="c-price" class="form-control" name="row[price]" type="text">
+            <input type="text" name="row[price]" value="{$row.plan_id}"  id="c-price" class="form-control" data-rule="required" />
         </div>
         </div>
     </div>
     </div>
     <div class="form-group">
     <div class="form-group">

+ 1 - 1
public/assets/js/backend/wechat/plan.js

@@ -23,7 +23,7 @@ define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefin
                     [
                     [
                         {field: 'state', checkbox: true, },
                         {field: 'state', checkbox: true, },
                         {field: 'id', title: __('Id')},
                         {field: 'id', title: __('Id')},
-                        {field: 'plan_id', title: __('PlanId')},
+                        {field: 'plan_id', title: __('Plan_id')},
                         {field: 'text', title: __('Text')},
                         {field: 'text', title: __('Text')},
                         {field: 'price', title: __('price')},
                         {field: 'price', title: __('price')},
                         {field: 'createtime', title: __('Create time'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},
                         {field: 'createtime', title: __('Create time'), formatter: Table.api.formatter.datetime, operate: 'RANGE', addclass: 'datetimerange', sortable: true},