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
c8cb93fe
Commit
c8cb93fe
authored
Aug 18, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
0b3d06b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
index.vue
pages/materiel/masterData/index.vue
+17
-15
No files found.
pages/materiel/masterData/index.vue
View file @
c8cb93fe
...
...
@@ -4,10 +4,7 @@
<Sider
width=
"300"
v-if=
"showMenu"
>
<div
class=
"p-list"
>
<h3>
<!--
<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>
-->
<Dropdown
@
on-click=
"clickItem"
>
<a
href=
"javascript:void(0)"
>
{{
downName
}}
...
...
@@ -23,7 +20,7 @@
</Dropdown>
<div
class=
"fr mr10 mt10"
>
<ButtonGroup
class=
"fr ddi"
size=
"small"
>
<!--
<Button
icon=
"md-add"
title=
"新增顶级"
@
click=
"addNew"
></Button>
-->
<Button
:icon=
"expand ? 'md-arrow-dropright' : 'md-arrow-dropdown'"
@
click=
"toggle"
...
...
@@ -76,8 +73,7 @@ export default {
categoryId
:
0
,
rootCategoryId
:
0
,
ids
:
[],
addChange
:
true
,
codeRuleId
:
0
,
addChange
:
true
},
downName
:
"请选择类型"
,
modal
:
false
,
...
...
@@ -86,7 +82,7 @@ export default {
detail
:
null
,
showMenu
:
true
,
dataList
:
[],
//
codeRuleId: ""
codeRuleId
:
""
};
},
async
fetch
({
store
,
params
})
{
...
...
@@ -98,9 +94,9 @@ export default {
},
methods
:
{
clickItem
(
val
)
{
this
.
nodeInfo
.
codeRuleId
=
val
;
this
.
codeRuleId
=
val
;
this
.
model8
=
val
;
this
.
loadTree
(
this
.
nodeInfo
.
codeRuleId
);
this
.
loadTree
(
this
.
codeRuleId
);
this
.
cityList
.
forEach
(
e
=>
{
if
(
val
==
e
.
id
)
{
this
.
downName
=
e
.
name
;
...
...
@@ -117,20 +113,26 @@ export default {
this
.
cityList
=
r
.
result
.
items
;
this
.
downName
=
this
.
cityList
[
0
].
name
;
this
.
model8
=
this
.
cityList
[
0
].
id
;
//
this.nodeInfo.codeRuleId = this.cityList[0].id;
this
.
nodeInfo
.
codeRuleId
=
this
.
cityList
[
0
].
id
;
this
.
loadTree
(
this
.
nodeInfo
.
codeRuleId
);
});
},
// chnangeClick(val){
// this.codeRuleId = val;
// this.loadTree(this.codeRuleId);
// },
showMenuFn
()
{
//this.$Message.info("展开左侧树")
this
.
showMenu
=
true
;
},
ok
(
row
)
{
this
.
loadTree
(
this
.
codeRuleId
);
// this.modal = false;
// this.curId = 0;
// if (row) {
// this.dataList.map((e, index) => {
// if (e.id == row.id) {
// this.$set(this.$refs.dataTable.dataColumns, index, row);
// }
// });
// }
},
cancel
()
{
this
.
curId
=
0
;
...
...
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