|
|
@@ -58,7 +58,7 @@ class CardProject extends AuthController
|
|
|
{
|
|
|
$f = [];
|
|
|
$f[] = Form::hidden('card_id', $id);
|
|
|
- $f[] = Form::select('c_id', '绑定内容', 0)->options(
|
|
|
+ $f[] = Form::selectMultiple('c_id', '绑定内容', [])->options(
|
|
|
DiagnosisCate::field('id as value,name as label')->select()->toArray()
|
|
|
)->filterable(true)->required();
|
|
|
$f[] = Form::select('type', '选择类型', '')->options([
|
|
|
@@ -82,6 +82,7 @@ class CardProject extends AuthController
|
|
|
'type',
|
|
|
'number',
|
|
|
]);
|
|
|
+ $data['c_id'] = implode(',', $data['c_id']);
|
|
|
if ($data['type'] == 2){
|
|
|
if (empty($data['number'])) return Json::successful('选择限次,请输入次数');
|
|
|
}
|
|
|
@@ -100,7 +101,7 @@ class CardProject extends AuthController
|
|
|
{
|
|
|
$data = model::find($id);
|
|
|
$f = [];
|
|
|
- $f[] = Form::select('c_id', '绑定内容', (string)$data['c_id'])->options(
|
|
|
+ $f[] = Form::selectMultiple('c_id', '绑定内容', explode(',', $data['c_id']))->options(
|
|
|
DiagnosisCate::field('id as value,name as label')->select()->toArray()
|
|
|
)->filterable(true)->required();
|
|
|
$f[] = Form::select('type', '选择类型', (string)$data['type'])->options([
|