| xqd
@@ -15,15 +15,16 @@
|
|
|
{{--@php(dd($item->user_id))--}}
|
|
|
<input type="hidden" name="id" value="{{ $item->id }}">
|
|
|
<input type="hidden" name="user_id" value="{{ $item->user_id }}">
|
|
|
+ <input type="hidden" name="project_id" value="{{ $item->project_id }}">
|
|
|
{{-- @include('share.layui-form-item', ['type' => 'select', 'name' => 'project_id', 'label' => '项目', 'selected_id' => $item->project_id, 'options' => $project_options])--}}
|
|
|
{{-- @include('share.layui-form-item', ['type' => 'select', 'name' => 'project_role_id', 'label' => '角色', 'selected_id' => $item->project_role_id, 'options' => $role_options])--}}
|
|
|
|
|
|
<div class="layui-form-item">
|
|
|
<label class="layui-form-label" style="padding: 0px;">项目</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <select name="project_id" required lay-verify="required" disabled lay-filter="project_id" utocomplete="off" >
|
|
|
+ <select name="project" required lay-verify="required" disabled lay-filter="project_id" utocomplete="off" >
|
|
|
@foreach($project_options as $option)
|
|
|
- <option value="{{ $option['id'] }}" {{ $option['id'] == $item->project_id ? 'selected' : ''}} >{{ $option['name'] }}</option>
|
|
|
+ <option value="{{ $option['id'] }}" {{ $option['id'] == intval($item->project_id) ? 'selected' : ''}} >{{ $option['name'] }}</option>
|
|
|
@endforeach
|
|
|
</select>
|
|
|
</div>
|