Merge branch 'master' of http://118.178.224.202:3000/ewide/ewide_core
This commit is contained in:
@@ -82,7 +82,9 @@ WHERE 1=1";
|
||||
|
||||
if (!string.IsNullOrEmpty(input.SysEmpParam.OrgId))
|
||||
{
|
||||
sql += " AND (SO.Id = @OrgId OR SO.Pids Like CONCAT('%[', @OrgId, ']%'))";
|
||||
var filter = " AND (SO.Id = @OrgId {0}) ";
|
||||
filter = String.Format(filter, input.TreeNodeDataScope.GetValueOrDefault(1) == 2 ? " OR SO.Pids Like CONCAT('%[', @OrgId, ']%') " : "");
|
||||
sql += filter;
|
||||
param.Add("OrgId", input.SysEmpParam.OrgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -2674,6 +2674,11 @@
|
||||
查询条件
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Ewide.Core.PageInputBase.TreeNodeDataScope">
|
||||
<summary>
|
||||
树节点数据范围 (1"只看本级" 2"查看本级及以下")
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:Ewide.Core.PageDataResult`1">
|
||||
<summary>
|
||||
小诺分页列表结果
|
||||
|
||||
@@ -76,6 +76,11 @@ namespace Ewide.Core
|
||||
/// 查询条件
|
||||
/// </summary>
|
||||
public virtual SearchInfo[] SearchInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 树节点数据范围 (1"只看本级" 2"查看本级及以下")
|
||||
/// </summary>
|
||||
public virtual int? TreeNodeDataScope { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -256,11 +256,32 @@ export default class form extends Component {
|
||||
</Radio.Button>
|
||||
</Radio.Group>
|
||||
</Form.Item>
|
||||
<Form.Item label="邮箱" name="email">
|
||||
<Form.Item
|
||||
label="邮箱"
|
||||
name="email"
|
||||
rules={[
|
||||
{
|
||||
pattern: /^\w{3,}(\.\w+)*@[A-z0-9]+(\.[A-z]{2,5}){1,2}$/,
|
||||
message: '邮箱格式不正确',
|
||||
trigger: 'blur',
|
||||
},
|
||||
]}
|
||||
>
|
||||
<Input autoComplete="off" placeholder="请输入邮箱" />
|
||||
</Form.Item>
|
||||
<Form.Item label="手机号" name="phone">
|
||||
<Input autoComplete="off" placeholder="请输入手机号" />
|
||||
<Form.Item
|
||||
label="手机号"
|
||||
name="phone"
|
||||
rules={[
|
||||
{
|
||||
pattern:
|
||||
/^((13[0-9])|(14[5,7])|(15[^4,\\D])|(17[0,1,3,6-8])|(18[0-9])|(19[8,9])|(166))[0-9]{8}$/,
|
||||
message: '手机号格式不正确',
|
||||
trigger: 'blur',
|
||||
},
|
||||
]}
|
||||
>
|
||||
<Input autoComplete="off" placeholder="请输入手机号" maxLength={11} />
|
||||
</Form.Item>
|
||||
<Form.Item label="电话" name="tel">
|
||||
<Input autoComplete="off" placeholder="请输入电话" />
|
||||
|
||||
@@ -339,13 +339,27 @@ export default class index extends Component {
|
||||
>
|
||||
{this.state.codes.commonStatus.map(item => {
|
||||
return (
|
||||
<Select.Option key={item.code} item={item.code}>
|
||||
<Select.Option
|
||||
key={item.code}
|
||||
value={item.code}
|
||||
>
|
||||
{item.value}
|
||||
</Select.Option>
|
||||
)
|
||||
})}
|
||||
</Select>
|
||||
</Form.Item>
|
||||
<Form.Item label="区域范围" name="treeNodeDataScope">
|
||||
<Select
|
||||
allowClear
|
||||
placeholder="请选择状态"
|
||||
className="w-200"
|
||||
defaultValue={1}
|
||||
>
|
||||
<Select.Option value={1}>只看本级</Select.Option>
|
||||
<Select.Option value={2}>查看本级及以下</Select.Option>
|
||||
</Select>
|
||||
</Form.Item>
|
||||
</Auth>
|
||||
}
|
||||
operator={
|
||||
|
||||
@@ -350,10 +350,31 @@ export default class form extends Component {
|
||||
</Radio.Button>
|
||||
</Radio.Group>
|
||||
</Form.Item>
|
||||
<Form.Item label="邮箱" name="email">
|
||||
<Form.Item
|
||||
label="邮箱"
|
||||
name="email"
|
||||
rules={[
|
||||
{
|
||||
pattern: /^\w{3,}(\.\w+)*@[A-z0-9]+(\.[A-z]{2,5}){1,2}$/,
|
||||
message: '邮箱格式不正确',
|
||||
trigger: 'blur',
|
||||
},
|
||||
]}
|
||||
>
|
||||
<Input autoComplete="off" placeholder="请输入邮箱" />
|
||||
</Form.Item>
|
||||
<Form.Item label="手机号" name="phone">
|
||||
<Form.Item
|
||||
label="手机号"
|
||||
name="phone"
|
||||
rules={[
|
||||
{
|
||||
pattern:
|
||||
/^((13[0-9])|(14[5,7])|(15[^4,\\D])|(17[0,1,3,6-8])|(18[0-9])|(19[8,9])|(166))[0-9]{8}$/,
|
||||
message: '手机号格式不正确',
|
||||
trigger: 'blur',
|
||||
},
|
||||
]}
|
||||
>
|
||||
<Input autoComplete="off" placeholder="请输入手机号" />
|
||||
</Form.Item>
|
||||
<Form.Item label="电话" name="tel">
|
||||
|
||||
Reference in New Issue
Block a user