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

添加问题描述页

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