Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hel-guide
app
Commits
615a554e
Commit
615a554e
authored
Sep 13, 2017
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates angular/hlsUtil.md
Auto commit by GitBook Editor
parent
e7871926
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
hlsUtil.md
angular/hlsUtil.md
+26
-0
No files found.
angular/hlsUtil.md
View file @
615a554e
...
@@ -275,6 +275,32 @@ vm.test = {}
...
@@ -275,6 +275,32 @@ vm.test = {}
![](/img/selectList.png);
![](/img/selectList.png);
##### 17.带搜索条件下拉框 `selectSearchList`
- 参数1 `list`下拉框数据来源,必须包含`code`与`code_name`
- 参数2 `code`下拉框对弈的code
- 参数3 `object`当前下拉框的父对象
- 参数4 `function`回调函数function,返回index 选择的list集合的index和下拉框的父对象,会在对象中插入code和code_n字段
- 调用实例如下
```
javascript
vm.test = {}
vm.selectBpType = function () {
var list =
[
{
"code": "NP",
"code_name": "个人"
}, {
"code": "ORG",
"code_name": "企业"
}
];
var ttile = '客户分类';
hlsUtil.selectList(list, ttile, 'bp_type', vm.test, function (index, result) {
console.log(angular.toJson(list
[
index
]
));
console.log(angular.toJson(result));//{"bp_type":"NP","bp_type_n":"个人"}
vm.test = result;
});
}
```
...
...
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