joywok-business-components
Advanced tools
Comparing version 0.0.156 to 0.0.157
@@ -616,3 +616,3 @@ import React, { Component } from 'react'; | ||
} | ||
inputSearch(e) { | ||
inputSearch(e, data) { | ||
let self = this; | ||
@@ -632,2 +632,5 @@ const text = e.target.value.trim(); | ||
} | ||
if(data.shield){ | ||
url = '/api/iam/deptslist?pageno=0&pagesize=100&dept_id=' + data.shield + '&s=' + encodeURIComponent(text) | ||
} | ||
request(url, { | ||
@@ -1129,3 +1132,3 @@ method: 'GET' | ||
<i className="icon-content-search"></i> | ||
<Input placeholder={COMPONENT_DICT('label.business.shareobj.search')} onChange={(e) => this.inputSearch(e)} /> | ||
<Input placeholder={COMPONENT_DICT('label.business.shareobj.search')} onChange={(e) => this.inputSearch(e, data)} /> | ||
</div> : '' | ||
@@ -1132,0 +1135,0 @@ } |
{ | ||
"name": "joywok-business-components", | ||
"version": "0.0.156", | ||
"version": "0.0.157", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
1303024
18325