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
0b3d06b6
Commit
0b3d06b6
authored
Aug 18, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wuliao
parent
6922aee2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
24 deletions
+6
-24
masterData.vue
pages/materiel/classification/masterData.vue
+0
-10
index.vue
pages/materiel/masterData/index.vue
+6
-14
No files found.
pages/materiel/classification/masterData.vue
View file @
0b3d06b6
...
@@ -126,16 +126,6 @@ export default {
...
@@ -126,16 +126,6 @@ export default {
}
}
});
});
}
}
// this.$Modal.confirm({
// title: "删除",
// content: "
<
p
>
您确定要删除吗?
<
/p>"
,
// onOk: () => {
// onCancel: () => {
// this.$Message.success("取消删除");
// }
// });
// }
},
},
watch
:
{
watch
:
{
root
:
{
root
:
{
...
...
pages/materiel/masterData/index.vue
View file @
0b3d06b6
...
@@ -76,7 +76,8 @@ export default {
...
@@ -76,7 +76,8 @@ export default {
categoryId
:
0
,
categoryId
:
0
,
rootCategoryId
:
0
,
rootCategoryId
:
0
,
ids
:
[],
ids
:
[],
addChange
:
true
addChange
:
true
,
codeRuleId
:
0
,
},
},
downName
:
"请选择类型"
,
downName
:
"请选择类型"
,
modal
:
false
,
modal
:
false
,
...
@@ -85,7 +86,7 @@ export default {
...
@@ -85,7 +86,7 @@ export default {
detail
:
null
,
detail
:
null
,
showMenu
:
true
,
showMenu
:
true
,
dataList
:
[],
dataList
:
[],
codeRuleId
:
""
//
codeRuleId: ""
};
};
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
...
@@ -97,9 +98,9 @@ export default {
...
@@ -97,9 +98,9 @@ export default {
},
},
methods
:
{
methods
:
{
clickItem
(
val
)
{
clickItem
(
val
)
{
this
.
codeRuleId
=
val
;
this
.
nodeInfo
.
codeRuleId
=
val
;
this
.
model8
=
val
;
this
.
model8
=
val
;
this
.
loadTree
(
this
.
codeRuleId
);
this
.
loadTree
(
this
.
nodeInfo
.
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
;
...
@@ -116,7 +117,7 @@ export default {
...
@@ -116,7 +117,7 @@ export default {
this
.
cityList
=
r
.
result
.
items
;
this
.
cityList
=
r
.
result
.
items
;
this
.
downName
=
this
.
cityList
[
0
].
name
;
this
.
downName
=
this
.
cityList
[
0
].
name
;
this
.
model8
=
this
.
cityList
[
0
].
id
;
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
);
this
.
loadTree
(
this
.
nodeInfo
.
codeRuleId
);
});
});
},
},
...
@@ -130,15 +131,6 @@ export default {
...
@@ -130,15 +131,6 @@ export default {
},
},
ok
(
row
)
{
ok
(
row
)
{
this
.
loadTree
(
this
.
codeRuleId
);
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
()
{
cancel
()
{
this
.
curId
=
0
;
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