正在显示
3 个修改的文件
包含
28 行增加
和
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 | } |
application/admin/view/order/content.html
0 → 100644
@@ -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':'已完成'}}, |
-
请 注册 或 登录 后发表评论