Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
524601d5
Commit
524601d5
authored
Oct 12, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import/index
parent
4466a9f2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
453 additions
and
466 deletions
+453
-466
index.vue
pages/bug/index.vue
+447
-465
index.vue
pages/import/index.vue
+6
-1
No files found.
pages/bug/index.vue
View file @
524601d5
<
template
>
<div
class=
"myBug"
>
<div
class=
"myBug"
>
<Tabs
:animated=
"false"
@
on-click=
"tab"
>
<TabPane
label=
"我的"
></TabPane>
<TabPane
label=
"所有"
></TabPane>
</Tabs>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
@
on-selection-change=
"selectInfo"
:height=
"gridHeight"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
@
on-selection-change=
"selectInfo"
:height=
"gridHeight"
>
<template
slot=
"easySearch"
>
<Form
inline
>
<Form
inline
>
<FormItem>
<dictionary
code=
"Test.bug.status"
v-model=
"easySearch.status.value"
style=
"width:400px;"
multiple
></dictionary>
<dictionary
code=
"Test.bug.status"
v-model=
"easySearch.status.value"
style=
"width:400px;"
multiple
></dictionary>
</FormItem>
<FormItem>
<Input
search
enter-button
placeholder=
"请输入bug标题或地址"
@
on-search=
"search"
v-model=
"easySearch.keys.value"
/>
<Input
search
enter-button
placeholder=
"请输入bug标题或地址"
@
on-search=
"search"
v-model=
"easySearch.keys.value"
/>
</FormItem>
</Form>
</
template
>
...
...
@@ -39,13 +21,7 @@
<
template
slot=
"batch"
>
<Form
:model=
"formMyCheck"
:label-width=
"5"
:rules=
"ruleValidate"
inline
ref=
"formValidate"
>
<FormItem>
<dictionary
code=
"Test.but.statusOper"
v-model=
"selectBatch"
type=
"radio"
@
on-change=
"statuChange"
ref=
"dicradio"
></dictionary>
<dictionary
code=
"Test.but.statusOper"
v-model=
"selectBatch"
type=
"radio"
@
on-change=
"statuChange"
ref=
"dicradio"
></dictionary>
</FormItem>
<FormItem
v-if=
"selectBatch == 5"
label
prop=
"selectAlloter"
>
<UserSelect
ref=
"userSelected"
v-model=
"alloter"
@
on-change=
"changeUserSelect"
/>
...
...
@@ -78,8 +54,9 @@
<Button
type=
"primary"
@
click=
"upSave"
>
确定
</Button>
</div>
</Modal>
</div>
</div>
</template>
<
script
>
import
Api
from
"@/libs/bug"
;
import
edit
from
"./component/add"
;
...
...
@@ -97,8 +74,14 @@ export default {
return
{
action
:
Api
.
index
,
easySearch
:
{
keys
:
{
op
:
"title,pagePath"
,
value
:
""
},
status
:
{
op
:
"In"
,
value
:
[
1
,
5
,
0
]
},
keys
:
{
op
:
"title,pagePath"
,
value
:
""
},
status
:
{
op
:
"In"
,
value
:
[
1
,
5
,
0
]
},
creatorUserId
:
{
op
:
"Equal"
,
value
:
userInfo
.
userId
...
...
@@ -113,8 +96,7 @@ export default {
pageSizeOpts
:
[
20
,
50
,
100
],
pageSize
:
20
,
tabIndex
:
1
,
columns
:
[
{
columns
:
[{
type
:
"selection"
,
width
:
60
,
align
:
"center"
...
...
@@ -136,8 +118,7 @@ export default {
tooltip
:
true
,
render
:
(
h
,
params
)
=>
h
(
"a"
,
{
"a"
,
{
style
:
{},
on
:
{
click
:
()
=>
{
...
...
@@ -154,8 +135,7 @@ export default {
tooltip
:
true
,
render
:
(
h
,
params
)
=>
h
(
"a"
,
{
"a"
,
{
style
:
{},
on
:
{
click
:
()
=>
{
...
...
@@ -170,15 +150,7 @@ export default {
title
:
this
.
l
(
"status"
),
key
:
"status"
,
width
:
100
,
render
:
(
h
,
params
)
=>
{
return
h
(
"state"
,
{
props
:
{
code
:
"Test.bug.status"
,
type
:
"text"
,
value
:
params
.
row
.
status
+
""
}
});
}
code
:
'Test.bug.status'
,
},
{
title
:
this
.
l
(
"creationTime"
),
...
...
@@ -209,15 +181,14 @@ export default {
width
:
120
},
{
key
:
"action"
,
key
:
"action"
,
title
:
"操作"
,
align
:
"center"
,
width
:
180
,
render
:
(
h
,
params
)
=>
h
(
"div"
,
[
h
(
"Button"
,
{
"Button"
,
{
props
:
{
type
:
"text"
,
size
:
"small"
...
...
@@ -234,8 +205,7 @@ export default {
"解决"
),
h
(
"Button"
,
{
"Button"
,
{
props
:
{
type
:
"text"
,
size
:
"small"
...
...
@@ -255,11 +225,22 @@ export default {
}
],
statusList
:
[
{
name
:
"确认"
,
value
:
"1"
},
{
name
:
"解决"
,
value
:
"2"
},
{
name
:
"冻结"
,
value
:
"4"
},
{
name
:
"关闭"
,
value
:
"3"
}
statusList
:
[{
name
:
"确认"
,
value
:
"1"
},
{
name
:
"解决"
,
value
:
"2"
},
{
name
:
"冻结"
,
value
:
"4"
},
{
name
:
"关闭"
,
value
:
"3"
}
],
modalEdit
:
false
,
modalDetail
:
false
,
...
...
@@ -284,19 +265,20 @@ export default {
selectAlloter
:
null
},
ruleValidate
:
{
selectAlloter
:
[
{
selectAlloter
:
[{
required
:
true
,
message
:
"请选择驳指派人"
,
type
:
"number"
,
trigger
:
"change"
}
]
}]
}
};
},
computed
:
{},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
methods
:
{
...
...
pages/import/index.vue
View file @
524601d5
...
...
@@ -18,7 +18,7 @@
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
:fullscreen=
"full"
footer-hide
>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
:fullscreen=
"full"
:footer-hide=
"initBtn"
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
</div>
...
...
@@ -48,6 +48,7 @@ export default {
},
modal
:
false
,
full
:
false
,
initBtn
:
true
,
title
:
"新增"
,
detail
:
null
,
curId
:
0
,
...
...
@@ -213,6 +214,7 @@ export default {
add
()
{
this
.
curId
=
0
;
this
.
full
=
false
;
this
.
initBtn
=
true
;
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
...
...
@@ -227,6 +229,7 @@ export default {
this
.
curId
=
id
;
this
.
title
=
"详情"
;
this
.
full
=
false
;
this
.
initBtn
=
false
;
this
.
detail
=
()
=>
import
(
"./detail"
);
this
.
modal
=
true
;
},
...
...
@@ -234,6 +237,7 @@ export default {
this
.
curId
=
id
;
this
.
title
=
"编辑"
;
this
.
full
=
false
;
this
.
initBtn
=
true
;
this
.
detail
=
()
=>
import
(
"./edit"
);
this
.
modal
=
true
;
},
...
...
@@ -241,6 +245,7 @@ export default {
this
.
curId
=
row
.
id
;
this
.
title
=
"处理文件:"
+
row
.
name
;
this
.
full
=
true
;
this
.
initBtn
=
true
;
this
.
detail
=
()
=>
import
(
"./process"
);
this
.
modal
=
true
;
},
...
...
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