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
Hide 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 @@
...
@@ -25,7 +25,7 @@
@
click=
"toggle"
@
click=
"toggle"
title=
"展开/合并"
title=
"展开/合并"
></Button>
></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>
<Button
icon=
"md-rewind"
title=
"收起"
@
click=
"hide"
></Button>
</ButtonGroup>
</ButtonGroup>
</div>
</div>
...
@@ -128,6 +128,7 @@ export default {
...
@@ -128,6 +128,7 @@ export default {
this
.
downName
=
e
.
name
;
this
.
downName
=
e
.
name
;
}
}
});
});
this
.
model8
=
val
;
},
},
listSlecet
()
{
listSlecet
()
{
let
data
=
{
let
data
=
{
...
...
pages/materiel/masterData/index.vue
View file @
86183518
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
<!--
<Select
v-model=
"model8"
clearable
style=
"width:130px;float:left;margin-top:8px"
@
on-change=
'chnangeClick'
placeholder=
"请选择类型"
>
<!--
<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>
<Option
v-for=
"item in cityList"
:value=
"item.id"
:key=
"item.id"
>
{{
item
.
name
}}
</Option>
</Select>
</Select>
</Select>
-->
</Select>
-->
<Dropdown
@
on-click=
"clickItem"
>
<Dropdown
@
on-click=
"clickItem"
>
<a
href=
"javascript:void(0)"
>
<a
href=
"javascript:void(0)"
>
{{
downName
}}
{{
downName
}}
<Icon
type=
"ios-arrow-down"
></Icon>
<Icon
type=
"ios-arrow-down"
></Icon>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
@
click=
"toggle"
@
click=
"toggle"
title=
"展开/合并"
title=
"展开/合并"
></Button>
></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>
<Button
icon=
"md-rewind"
title=
"收起"
@
click=
"hide"
></Button>
</ButtonGroup>
</ButtonGroup>
</div>
</div>
...
@@ -66,10 +66,10 @@ export default {
...
@@ -66,10 +66,10 @@ export default {
name
:
"masterData"
,
name
:
"masterData"
,
data
()
{
data
()
{
return
{
return
{
model8
:
''
,
model8
:
""
,
type
:
""
,
type
:
""
,
keys
:
""
,
keys
:
""
,
cityList
:[],
cityList
:
[],
expand
:
false
,
expand
:
false
,
list
:
[],
list
:
[],
nodeInfo
:
{
nodeInfo
:
{
...
@@ -77,14 +77,14 @@ export default {
...
@@ -77,14 +77,14 @@ export default {
rootCategoryId
:
0
,
rootCategoryId
:
0
,
ids
:
[]
ids
:
[]
},
},
downName
:
"请选择类型"
,
downName
:
"请选择类型"
,
modal
:
false
,
modal
:
false
,
title
:
"新增"
,
title
:
"新增"
,
curId
:
0
,
curId
:
0
,
detail
:
null
,
detail
:
null
,
showMenu
:
true
,
showMenu
:
true
,
dataList
:
[],
dataList
:
[],
codeRuleId
:
''
,
codeRuleId
:
""
};
};
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
...
@@ -92,19 +92,20 @@ export default {
...
@@ -92,19 +92,20 @@ export default {
},
},
created
()
{
created
()
{
// this.loadTree();
// this.loadTree();
this
.
listSlecet
();
this
.
listSlecet
();
},
},
methods
:
{
methods
:
{
clickItem
(
val
)
{
clickItem
(
val
)
{
this
.
codeRuleId
=
val
;
this
.
codeRuleId
=
val
;
this
.
loadTree
(
this
.
codeRuleId
);
this
.
model8
=
val
;
this
.
loadTree
(
this
.
codeRuleId
);
this
.
cityList
.
forEach
(
e
=>
{
this
.
cityList
.
forEach
(
e
=>
{
if
(
val
==
e
.
id
)
{
if
(
val
==
e
.
id
)
{
this
.
downName
=
e
.
name
;
this
.
downName
=
e
.
name
;
}
}
});
});
},
},
listSlecet
()
{
listSlecet
()
{
let
data
=
{
let
data
=
{
conditions
:
[]
conditions
:
[]
};
};
...
@@ -114,14 +115,14 @@ export default {
...
@@ -114,14 +115,14 @@ export default {
},
},
// chnangeClick(val){
// chnangeClick(val){
// this.codeRuleId = val;
// this.codeRuleId = val;
// this.loadTree(this.codeRuleId);
// this.loadTree(this.codeRuleId);
// },
// },
showMenuFn
()
{
showMenuFn
()
{
//this.$Message.info("展开左侧树")
//this.$Message.info("展开左侧树")
this
.
showMenu
=
true
;
this
.
showMenu
=
true
;
},
},
ok
(
row
)
{
ok
(
row
)
{
this
.
loadTree
(
this
.
codeRuleId
);
this
.
loadTree
(
this
.
codeRuleId
);
// this.modal = false;
// this.modal = false;
// this.curId = 0;
// this.curId = 0;
// if (row) {
// if (row) {
...
@@ -179,7 +180,9 @@ export default {
...
@@ -179,7 +180,9 @@ export default {
}
}
},
},
loadTree
(
id
)
{
loadTree
(
id
)
{
let
conditions
=
[];
let
conditions
=
[
{
fieldName
:
"codeRuleId"
,
fieldValue
:
id
,
conditionalType
:
"Equal"
}
];
Api
.
list
({
conditions
:
conditions
}).
then
(
r
=>
{
Api
.
list
({
conditions
:
conditions
}).
then
(
r
=>
{
var
data
=
this
.
$u
.
toTree
(
var
data
=
this
.
$u
.
toTree
(
r
.
result
,
r
.
result
,
...
@@ -195,12 +198,11 @@ export default {
...
@@ -195,12 +198,11 @@ export default {
});
});
},
},
toggle
()
{
toggle
()
{
if
(
this
.
model8
)
{
if
(
this
.
model8
)
{
this
.
expand
=
!
this
.
expand
;
this
.
expand
=
!
this
.
expand
;
}
else
{
}
else
{
this
.
$Message
.
error
(
"请先选择类型"
);
this
.
$Message
.
error
(
"请先选择类型"
);
}
}
},
},
change
(
v
,
b
)
{
change
(
v
,
b
)
{
let
ids
=
[];
let
ids
=
[];
...
@@ -275,7 +277,6 @@ export default {
...
@@ -275,7 +277,6 @@ export default {
background: rgba(245, 246, 250, 1);
background: rgba(245, 246, 250, 1);
opacity: 1;
opacity: 1;
padding-left: 10px;
padding-left: 10px;
}
}
.search {
.search {
height: 50px;
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