Commit 3e3c5ca2ace3b08c578e6e489357d26795d71fc0
1 parent
9f0f8d50
🎃 feat(*): 待办配置新增类型筛选
Showing
4 changed files
with
26 additions
and
8 deletions
build.sh
package.json
... | ... | @@ -42,7 +42,7 @@ |
42 | 42 | "@ant-design/pro-descriptions": "^1.9.10", |
43 | 43 | "@ant-design/pro-layout": "^6.24.1", |
44 | 44 | "@antv/data-set": "^0.10.2", |
45 | - "@feewee/helper-wasm": "^0.2.5", | |
45 | + "@feewee/helper-wasm": "^0.2.7", | |
46 | 46 | "antd": "~4.23.0", |
47 | 47 | "array-move": "^4.0.0", |
48 | 48 | "await-to-js": "^2.1.1", | ... | ... |
pnpm-lock.yaml
src/pages/backlog/TaskConfig/index.tsx
... | ... | @@ -101,14 +101,20 @@ export default function TaskConfig() { |
101 | 101 | justifyContent: 'space-between', |
102 | 102 | alignItems: 'center', |
103 | 103 | marginBottom: 20, |
104 | + flexWrap: 'wrap', | |
104 | 105 | }} |
105 | 106 | > |
106 | 107 | <div style={{ display: 'flex' }}> |
107 | - <Search allowClear placeholder="搜索待办名" onChange={(e) => _onChange(e.target.value)} style={{ maxWidth: 260, marginRight: 15 }} /> | |
108 | + <Search | |
109 | + allowClear | |
110 | + placeholder="搜索待办名" | |
111 | + onChange={(e) => _onChange(e.target.value)} | |
112 | + style={{ maxWidth: 260, marginRight: 15, marginBottom: 10 }} | |
113 | + /> | |
108 | 114 | <Select |
109 | 115 | allowClear |
110 | 116 | placeholder="选择归属系统" |
111 | - style={{ width: 260, marginRight: 5 }} | |
117 | + style={{ width: 260, marginRight: 5, marginBottom: 10 }} | |
112 | 118 | onChange={(value: any) => _onChangeSys({ sysId: value })} |
113 | 119 | showSearch |
114 | 120 | optionFilterProp="children" |
... | ... | @@ -122,7 +128,7 @@ export default function TaskConfig() { |
122 | 128 | <Select |
123 | 129 | allowClear |
124 | 130 | placeholder="选择工作类型" |
125 | - style={{ width: 260, marginRight: 5 }} | |
131 | + style={{ width: 260, marginRight: 5, marginBottom: 10 }} | |
126 | 132 | onChange={(value: number) => _onChangeSys({ workType: value })} |
127 | 133 | showSearch |
128 | 134 | optionFilterProp="children" |
... | ... | @@ -133,6 +139,20 @@ export default function TaskConfig() { |
133 | 139 | </Select.Option> |
134 | 140 | ))} |
135 | 141 | </Select> |
142 | + <Select | |
143 | + allowClear | |
144 | + placeholder="选择类型" | |
145 | + style={{ width: 260, marginRight: 5, marginBottom: 10 }} | |
146 | + onChange={(value: number) => _onChangeSys({ itemType: value })} | |
147 | + showSearch | |
148 | + optionFilterProp="children" | |
149 | + > | |
150 | + {[1, 2].map((t) => ( | |
151 | + <Select.Option value={t} key={`${t}`}> | |
152 | + {TodoTypeEnum[t]} | |
153 | + </Select.Option> | |
154 | + ))} | |
155 | + </Select> | |
136 | 156 | </div> |
137 | 157 | <Button type="primary" icon={<PlusOutlined rev="" />} onClick={() => triggerModal()}> |
138 | 158 | 新增配置 | ... | ... |