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
86183518
Commit
86183518
authored
Jun 15, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料
parent
e4ee2d50
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
20 deletions
+22
-20
index.vue
pages/materiel/classification/index.vue
+2
-1
index.vue
pages/materiel/masterData/index.vue
+20
-19
No files found.
pages/materiel/classification/index.vue
View file @
86183518
...
...
@@ -25,7 +25,7 @@
@
click=
"toggle"
title=
"展开/合并"
></Button>
<Button
icon=
"md-refresh"
title=
"刷新"
@
click=
"loadTree"
></Button>
<Button
icon=
"md-refresh"
title=
"刷新"
@
click=
"loadTree
(model8)
"
></Button>
<Button
icon=
"md-rewind"
title=
"收起"
@
click=
"hide"
></Button>
</ButtonGroup>
</div>
...
...
@@ -128,6 +128,7 @@ export default {
this
.
downName
=
e
.
name
;
}
});
this
.
model8
=
val
;
},
listSlecet
()
{
let
data
=
{
...
...
pages/materiel/masterData/index.vue
View file @
86183518
...
...
@@ -7,7 +7,7 @@
<!--
<Select
v-model=
"model8"
clearable
style=
"width:130px;float:left;margin-top:8px"
@
on-change=
'chnangeClick'
placeholder=
"请选择类型"
>
<Option
v-for=
"item in cityList"
:value=
"item.id"
:key=
"item.id"
>
{{
item
.
name
}}
</Option>
</Select>
</Select>
-->
</Select>
-->
<Dropdown
@
on-click=
"clickItem"
>
<a
href=
"javascript:void(0)"
>
{{
downName
}}
...
...
@@ -29,7 +29,7 @@
@
click=
"toggle"
title=
"展开/合并"
></Button>
<Button
icon=
"md-refresh"
title=
"刷新"
@
click=
"loadTree"
></Button>
<Button
icon=
"md-refresh"
title=
"刷新"
@
click=
"loadTree
(model8)
"
></Button>
<Button
icon=
"md-rewind"
title=
"收起"
@
click=
"hide"
></Button>
</ButtonGroup>
</div>
...
...
@@ -66,10 +66,10 @@ export default {
name
:
"masterData"
,
data
()
{
return
{
model8
:
''
,
model8
:
""
,
type
:
""
,
keys
:
""
,
cityList
:[],
cityList
:
[],
expand
:
false
,
list
:
[],
nodeInfo
:
{
...
...
@@ -84,7 +84,7 @@ export default {
detail
:
null
,
showMenu
:
true
,
dataList
:
[],
codeRuleId
:
''
,
codeRuleId
:
""
};
},
async
fetch
({
store
,
params
})
{
...
...
@@ -97,6 +97,7 @@ export default {
methods
:
{
clickItem
(
val
)
{
this
.
codeRuleId
=
val
;
this
.
model8
=
val
;
this
.
loadTree
(
this
.
codeRuleId
);
this
.
cityList
.
forEach
(
e
=>
{
if
(
val
==
e
.
id
)
{
...
...
@@ -179,7 +180,9 @@ export default {
}
},
loadTree
(
id
)
{
let
conditions
=
[];
let
conditions
=
[
{
fieldName
:
"codeRuleId"
,
fieldValue
:
id
,
conditionalType
:
"Equal"
}
];
Api
.
list
({
conditions
:
conditions
}).
then
(
r
=>
{
var
data
=
this
.
$u
.
toTree
(
r
.
result
,
...
...
@@ -200,7 +203,6 @@ export default {
}
else
{
this
.
$Message
.
error
(
"请先选择类型"
);
}
},
change
(
v
,
b
)
{
let
ids
=
[];
...
...
@@ -275,7 +277,6 @@ export default {
background: rgba(245, 246, 250, 1);
opacity: 1;
padding-left: 10px;
}
.search {
height: 50px;
...
...
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