Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
23f313ae
authored
May 30, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
组件优化问题
parent
99ae5d21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
app/Presenters/Filter/MultiTransformableSelectPresenter.php
resources/views/web/supplier/SupplierListFilter.blade.php
app/Presenters/Filter/MultiTransformableSelectPresenter.php
View file @
23f313ae
...
...
@@ -14,7 +14,7 @@ class MultiTransformableSelectPresenter
//默认的第一项数据
$firstDataItemKey
=
array_first
(
array_keys
(
$data
));
$html
=
<<<EOF
<div class="layui-row" style="width:268px;margin-bottom: 3px;">
<div class="layui-row" style="width:268px;margin-bottom: 3px;"
id="{$unique}_content"
>
<div class="layui-col-md5">
<div class="layui-input-inline" style="width: 100px;margin-left: 10px">
<select lay-filter="$unique">
...
...
@@ -41,8 +41,7 @@ class MultiTransformableSelectPresenter
//变更渲染
form.on('select($unique)', function(data){
console.log(data.value)
optionsHtml = $('#'+data.value).html();
optionsHtml = $('#{$unique}_content').find('#'+data.value).html();
$('#$selectUnique').html(optionsHtml);
data.othis.parent().parent().parent().find('.value_select').attr('name',data.value);
form.render();
...
...
resources/views/web/supplier/SupplierListFilter.blade.php
View file @
23f313ae
...
...
@@ -238,7 +238,7 @@
<div
class=
"layui-inline"
>
@inject('multiTransformableSelectPresenter','App\Presenters\Filter\MultiTransformableSelectPresenter')
{!! $multiTransformableSelectPresenter->render(['has_sku'=>'SKU上传','sku_tag'=>'SKU标准','sku_mode'=>'SKU模式','uploaded_sku' => '历史SKU合作','outside_contact_type' => 'SKU上传方式','yunxin_channel_uid' => 'SKU采购员'],
['has_sku'=>[1=>'是',-1=>'否'],
'sku_tag'=>config('field.SkuTag'),'sku_mode'=>config('field.SkuMode')
,'outside_contact_type'=>config('field.OutsideContactType'),'yunxin_channel_uid' => $userCodes]) !!}
['has_sku'=>[1=>'是',-1=>'否'],
'sku_tag'=>config('field.SkuTag'),'sku_mode'=>config('field.SkuMode'),'uploaded_sku'=>[1=>'是',-1=>'否']
,'outside_contact_type'=>config('field.OutsideContactType'),'yunxin_channel_uid' => $userCodes]) !!}
</div>
<div
class=
"layui-inline"
>
@inject('multiSelectorPresenter','App\Presenters\MultiSelectorPresenter')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment