作者 郭盛
1 个管道 的构建 通过 耗费 1 秒

添加问题描述页

@@ -232,4 +232,15 @@ class Order extends Backend @@ -232,4 +232,15 @@ class Order extends Backend
232 return $this->view->fetch(); 232 return $this->view->fetch();
233 } 233 }
234 } 234 }
  235 +
  236 + //问题描述
  237 + public function content($ids)
  238 + {
  239 + $data = Db::name('order')
  240 + ->where('id',$ids)
  241 + ->field('id,content')
  242 + ->find();
  243 + $this->assign('data',$data);
  244 + return $this->view->fetch();
  245 + }
235 } 246 }
  1 +<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 + <div class="form-group">
  3 + <label class="control-label col-xs-12 col-sm-2">问题描述:</label>
  4 + <div class="col-xs-12 col-sm-8">
  5 + {$data.content}
  6 + </div>
  7 + </div>
  8 +</form>
@@ -37,7 +37,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -37,7 +37,15 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
37 {field: 'address', title: __('Address'), operate:false}, 37 {field: 'address', title: __('Address'), operate:false},
38 {field: 'product', title: __('Product'), operate:false}, 38 {field: 'product', title: __('Product'), operate:false},
39 {field: 'scale', title: __('Scale'), operate:false}, 39 {field: 'scale', title: __('Scale'), operate:false},
40 - {field: 'content', title: __('Content'), operate:false}, 40 + {field: 'id', title: __('问题描述查看'), table: table, events: Table.api.events.operate, buttons:
  41 + [
  42 + {
  43 + text: '问题描述',
  44 + classname: 'btn btn-xs btn-primary',
  45 + url: 'order/content',
  46 + },
  47 + ], operate:false, formatter: Table.api.formatter.buttons
  48 + },
41 {field: 'commission', title: __('佣金比例(单位%)'), operate:false}, 49 {field: 'commission', title: __('佣金比例(单位%)'), operate:false},
42 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime}, 50 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
43 {field: 'finish_status', title: __('Finish_status'),formatter: Table.api.formatter.label,searchList:{'1': '进行中','2':'待总结','3':'已总结','4':'售后','5':'已完成'}}, 51 {field: 'finish_status', title: __('Finish_status'),formatter: Table.api.formatter.label,searchList:{'1': '进行中','2':'待总结','3':'已总结','4':'售后','5':'已完成'}},