Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
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
Administrator
bkunyun
Commits
dd3b18d9
Commit
dd3b18d9
authored
Jul 28, 2022
by
wuyongsheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 任务列表样式修改
parent
845efb6d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
60 deletions
+35
-60
index.tsx
src/views/Project/ProjectSetting/BaseInfo/index.tsx
+21
-45
AddMember.tsx
...ct/ProjectSetting/ProjectMembers/components/AddMember.tsx
+10
-13
index.tsx
src/views/Project/ProjectWorkbench/workbenchList/index.tsx
+0
-0
index.tsx
src/views/Project/components/AddProject/index.tsx
+4
-2
No files found.
src/views/Project/ProjectSetting/BaseInfo/index.tsx
View file @
dd3b18d9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-05-31 10:18:13
* @Date: 2022-05-31 10:18:13
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-07-2
6 20:39:32
* @LastEditTime: 2022-07-2
8 18:32:03
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -318,7 +318,8 @@ const BaseInfo = observer(() => {
...
@@ -318,7 +318,8 @@ const BaseInfo = observer(() => {
>
>
项目名称
项目名称
</
div
>
</
div
>
<
TextField
<
MyInput
required
required
error=
{
nameCheck
.
error
}
error=
{
nameCheck
.
error
}
id=
"name"
id=
"name"
...
@@ -326,21 +327,8 @@ const BaseInfo = observer(() => {
...
@@ -326,21 +327,8 @@ const BaseInfo = observer(() => {
value=
{
projectInfo
.
name
}
value=
{
projectInfo
.
name
}
onChange=
{
nameChange
}
onChange=
{
nameChange
}
helperText=
{
nameCheck
.
help
}
helperText=
{
nameCheck
.
help
}
size=
"small"
style=
{
{
width
:
"560px"
}
}
sx=
{
{
width
:
"560px"
,
"& .MuiOutlinedInput-root"
:
{
height
:
"36px"
,
},
}
}
/>
/>
{
/* <input
value={projectInfo.name}
className={style.projectInfoListLiValue}
onChange={nameChange}
maxLength={30}
placeholder="请输入项目名称"
></input> */
}
</
div
>
</
div
>
<
div
className=
{
style
.
projectInfoListLi
}
>
<
div
className=
{
style
.
projectInfoListLi
}
>
<
div
className=
{
style
.
projectInfoListLiLabel
}
>
项目描述
</
div
>
<
div
className=
{
style
.
projectInfoListLiLabel
}
>
项目描述
</
div
>
...
@@ -354,6 +342,13 @@ const BaseInfo = observer(() => {
...
@@ -354,6 +342,13 @@ const BaseInfo = observer(() => {
placeholder=
"项目描述限制100字以内"
placeholder=
"项目描述限制100字以内"
maxLength=
{
100
}
maxLength=
{
100
}
></
textarea
>
></
textarea
>
{
/* <MyInput
value={projectInfo.desc}
multiline
rows={4}
placeholder="项目描述限制100字以内"
onChange={descChange}
/> */
}
</
div
>
</
div
>
<
div
className=
{
style
.
projectInfoListLi
}
>
<
div
className=
{
style
.
projectInfoListLi
}
>
<
div
className=
{
style
.
projectInfoListLiLabel
}
>
计算区
</
div
>
<
div
className=
{
style
.
projectInfoListLiLabel
}
>
计算区
</
div
>
...
@@ -375,42 +370,26 @@ const BaseInfo = observer(() => {
...
@@ -375,42 +370,26 @@ const BaseInfo = observer(() => {
</
div
>
</
div
>
<
div
className=
{
style
.
projectInfoListLi
}
>
<
div
className=
{
style
.
projectInfoListLi
}
>
<
div
className=
{
style
.
projectInfoListLiLabel
}
>
创建人
</
div
>
<
div
className=
{
style
.
projectInfoListLiLabel
}
>
创建人
</
div
>
<
i
nput
<
MyI
nput
value=
{
projectInfo
.
owner
}
value=
{
projectInfo
.
owner
}
disabled
disabled
className=
{
classnames
({
style=
{
{
width
:
"560px"
}
}
[
style
.
projectInfoListLiValue
]:
true
,
/>
[
style
.
disable
]:
true
,
})
}
></
input
>
</
div
>
</
div
>
<
div
className=
{
style
.
projectInfoListLi
}
>
<
div
className=
{
style
.
projectInfoListLi
}
>
<
div
className=
{
style
.
projectInfoListLiLabel
}
>
项目预算
</
div
>
<
div
className=
{
style
.
projectInfoListLiLabel
}
>
项目预算
</
div
>
{
/* <MyInput
<
MyInput
sx={{
width: "560px",
'& .MuiOutlinedInput-root': {
height: '36px'
}
}}
/> */
}
<
TextField
required
required
error=
{
budgetCheck
.
error
}
error=
{
budgetCheck
.
error
}
disabled=
{
currentUserName
!==
projectInfo
.
tenantUser
}
disabled=
{
currentUserName
!==
projectInfo
.
tenantUser
}
id=
"projectBudget"
//
id="projectBudget"
variant=
"outlined"
variant=
"outlined"
value=
{
projectInfo
.
projectBudget
}
value=
{
projectInfo
.
projectBudget
}
onChange=
{
budgetChange
}
onChange=
{
budgetChange
}
onBlur=
{
budgetBlur
}
onBlur=
{
budgetBlur
}
helperText=
{
budgetCheck
.
help
}
helperText=
{
budgetCheck
.
help
}
size=
"small"
// size="small"
sx=
{
{
style=
{
{
width
:
"560px"
}
}
width
:
"560px"
,
"& .MuiOutlinedInput-root"
:
{
height
:
"36px"
,
},
}
}
InputProps=
{
{
InputProps=
{
{
startAdornment
:
(
startAdornment
:
(
<
InputAdornment
position=
"start"
>
¥
</
InputAdornment
>
<
InputAdornment
position=
"start"
>
¥
</
InputAdornment
>
...
@@ -420,14 +399,11 @@ const BaseInfo = observer(() => {
...
@@ -420,14 +399,11 @@ const BaseInfo = observer(() => {
</
div
>
</
div
>
<
div
className=
{
style
.
projectInfoListLi
}
>
<
div
className=
{
style
.
projectInfoListLi
}
>
<
div
className=
{
style
.
projectInfoListLiLabel
}
>
扣费账号
</
div
>
<
div
className=
{
style
.
projectInfoListLiLabel
}
>
扣费账号
</
div
>
<
i
nput
<
MyI
nput
value=
{
projectInfo
.
tenantUser
}
value=
{
projectInfo
.
tenantUser
}
disabled
disabled
className=
{
classnames
({
style=
{
{
width
:
"560px"
}
}
[
style
.
projectInfoListLiValue
]:
true
,
/>
[
style
.
disable
]:
true
,
})
}
></
input
>
</
div
>
</
div
>
<
div
className=
{
style
.
projectInfoListLi
}
>
<
div
className=
{
style
.
projectInfoListLi
}
>
<
LoadingButton
<
LoadingButton
...
...
src/views/Project/ProjectSetting/ProjectMembers/components/AddMember.tsx
View file @
dd3b18d9
...
@@ -2,23 +2,24 @@
...
@@ -2,23 +2,24 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-05-31 10:18:13
* @Date: 2022-05-31 10:18:13
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-07-2
6 11:13:10
* @LastEditTime: 2022-07-2
8 18:10:42
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
import
{
toJS
}
from
"mobx"
;
import
{
toJS
}
from
"mobx"
;
import
{
observer
}
from
"mobx-react-lite"
;
import
{
observer
}
from
"mobx-react-lite"
;
import
_
from
"lodash"
;
import
_
from
"lodash"
;
import
Dialog
from
"@/components/mui/MyDialog"
;
import
{
memo
,
useCallback
,
useEffect
,
useMemo
,
useState
}
from
"react"
;
import
{
memo
,
useCallback
,
useEffect
,
useMemo
,
useState
}
from
"react"
;
import
{
Box
,
OutlinedInput
}
from
"@mui/material"
;
import
{
Box
,
OutlinedInput
}
from
"@mui/material"
;
import
SearchIcon
from
"@mui/icons-material/Search"
;
import
Dialog
from
"@/components/mui/MyDialog"
;
import
{
IResponse
,
useHttp
}
from
"@/api/http"
;
import
{
IResponse
,
useHttp
}
from
"@/api/http"
;
import
{
useStores
}
from
"@/store"
;
import
{
useStores
}
from
"@/store"
;
import
{
useMessage
}
from
"@/components/MySnackbar"
;
import
{
useMessage
}
from
"@/components/MySnackbar"
;
import
MySelect
,
{
IOption
}
from
"@/components/mui/MySelect"
;
import
MySelect
,
{
IOption
}
from
"@/components/mui/MySelect"
;
import
MyTable
from
"@/components/mui/MyTable"
;
import
MyTable
from
"@/components/mui/MyTable"
;
import
SearchInput
from
"@/components/BusinessComponents/SearchInput"
;
interface
IProps
{
interface
IProps
{
setAddMemberDialog
:
(
val
:
boolean
)
=>
void
;
setAddMemberDialog
:
(
val
:
boolean
)
=>
void
;
addMemberDialog
:
boolean
;
addMemberDialog
:
boolean
;
...
@@ -158,19 +159,15 @@ const AddMember = observer((props: IProps) => {
...
@@ -158,19 +159,15 @@ const AddMember = observer((props: IProps) => {
title=
"添加成员"
title=
"添加成员"
>
>
<
Box
>
<
Box
>
<
Box
sx=
{
{
mb
:
2
}
}
>
<
SearchInput
<
OutlinedInput
onKeyUp=
{
(
e
:
any
)
=>
{
onChange=
{
(
e
:
any
)
=>
{
if
(
e
.
keyCode
===
13
)
{
_
.
debounce
(()
=>
{
setProjectMember
(
e
.
target
.
value
);
setProjectMember
(
e
.
target
.
value
);
},
200
)();
}
}
}
}
}
placeholder=
"搜索项目成员"
placeholder=
"搜索项目成员"
size=
"small"
sx=
{
{
mb
:
2
}
}
sx=
{
{
width
:
"100%"
,
height
:
32
}
}
endAdornment=
{
<
SearchIcon
style=
{
{
color
:
"#8A9099"
}
}
/>
}
/>
/>
</
Box
>
<
div
style=
{
{
overflowY
:
"scroll"
,
maxHeight
:
400
}
}
>
<
div
style=
{
{
overflowY
:
"scroll"
,
maxHeight
:
400
}
}
>
<
MyTable
<
MyTable
checkboxData=
{
(
val
:
string
[])
=>
setCheckData
(
val
)
}
checkboxData=
{
(
val
:
string
[])
=>
setCheckData
(
val
)
}
...
...
src/views/Project/ProjectWorkbench/workbenchList/index.tsx
View file @
dd3b18d9
This diff is collapsed.
Click to expand it.
src/views/Project/components/AddProject/index.tsx
View file @
dd3b18d9
import
style
from
"./index.module.css"
;
import
{
MenuItem
}
from
"@mui/material"
;
import
{
MenuItem
}
from
"@mui/material"
;
import
React
,
{
useState
,
useEffect
}
from
"react"
;
import
MyInput
from
"@/components/mui/MyInput"
;
import
MyInput
from
"@/components/mui/MyInput"
;
import
MyDialog
from
"@/components/mui/MyDialog"
;
import
MyDialog
from
"@/components/mui/MyDialog"
;
import
React
,
{
useState
,
useEffect
}
from
"react"
;
import
useMyRequest
from
"@/hooks/useMyRequest"
;
import
useMyRequest
from
"@/hooks/useMyRequest"
;
import
{
hpczone
,
addProject
}
from
"@/api/project_api"
;
import
{
hpczone
,
addProject
}
from
"@/api/project_api"
;
import
{
useMessage
}
from
"@/components/MySnackbar"
;
import
{
useMessage
}
from
"@/components/MySnackbar"
;
...
@@ -14,6 +14,8 @@ import {
...
@@ -14,6 +14,8 @@ import {
getFiletokenAccordingToId
,
getFiletokenAccordingToId
,
}
from
"@/views/Project/project"
;
}
from
"@/views/Project/project"
;
import
style
from
"./index.module.css"
;
type
zoneIdOption
=
{
type
zoneIdOption
=
{
id
:
string
;
id
:
string
;
name
:
string
;
name
:
string
;
...
...
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