選擇款式品類,初始化款式品名
庫結構:
路由:
$router
->
get(
'api'
, ryhpredictcontroller:
:class
.'@api'
);
控制器部分**:
$bulkcategory = pubbulkcategory:
:getselectmapoptions([
'status'
=>0,
'type'
=>0]
);//加工費款式品類
$bulkplace = pubbulkcategory:
:getselectmapoptions([
'status'
=>0,
'type'
=>1]
);//加工費款式品名
public
function api (request $request
)
檢視**:
="panel-body " style=
"padding-bottom: 0px"
>
="form-group"
>
}="col-md-3"
>
>
="bulkcate_id"
class
="asterisk control-label col-sm-5"
>款式品類<
/label>
="col-sm-7"
>
="form-control bulkcate_id " id=
"bulkcate_id" name=
"bulkcate_id" required=
"1" placeholder=
"必填項"
>
"">請選擇<
/option>
@foreach
($bulkcategory
as$k
=>$v)
"}" @if
(isset
($data
->
bulkstyle
->
bulk_cate_id)&&
$data
->
bulkstyle
->
bulk_cate_id
==$k
) selected @endif
>
}<
/option>
@endforeach
<
/select>
<
/div>
<
/div>
<
/div>
}="col-md-3"
>
>
="bulkplace_id"
class
="asterisk control-label col-sm-5"
>款式品名<
/label>
="col-sm-7"
>
="form-control bulkplace_id" id=
"bulkplace_id" name=
"bulkplace_id" required=
"1" placeholder=
"必填項"
>
"">請選擇<
/option>
@foreach
($bulkplace
as$k
=>$v)
option value=
"}" @if
(isset
($data
->
bulk_place_id)&&
$data
->
bulk_place_id
==$k
) selected @endif
>
}<
/option>
@endforeach
<
/select>
<
/div>
<
/div>
<
/div>
<
/div>
<
/div>
省市二級聯動下拉框
doctype html zh utf 8 viewport content width device width,initial scale 1.0 省市二級聯動 title head 省份 id province select 城市 id city select form 將城市資訊新增 var...
python下拉框二級聯動 antd下拉框聯動說明
先說一下效果要求,上面乙個下拉框,下面乙個,要求上面選中的時候,下面的內容要跟著變。因為想到react是資料驅動的,就不打算再用jq的那種隱藏顯示了,而是通過在執行型別下拉框的onchange事件中,去改變下面的下拉框的資料,渲染出不同的下拉選擇。定義資料 modeoptions是各個下拉框的值,由...
Jeesite下拉框的二級聯動
話不多說 首先上 jsp 頁面 截圖 第乙個下拉框jsp class control group class control label 離職型別 label class controls id type name type path type class input xlarge onchange...