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
a43d2000
Commit
a43d2000
authored
Oct 15, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据 字典
parent
f0dea7db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
33 deletions
+40
-33
index.vue
pages/basicData/dic/index.vue
+40
-33
No files found.
pages/basicData/dic/index.vue
View file @
a43d2000
...
...
@@ -156,9 +156,13 @@
>
</div>
<Modal
v-model=
"editModal"
:title=
"editTitle"
footer-hide
>
<component
:is=
"datail"
:v=
"editModel"
@
on-close=
"editModal = false"
@
on-ok=
"editOk"
/>
<component
:is=
"datail"
:v=
"editModel"
@
on-close=
"editModal = false"
@
on-ok=
"editOk"
/>
</Modal>
</Content>
</Layout>
</template>
...
...
@@ -174,7 +178,7 @@ const root = {
export
default
{
data
()
{
return
{
datail
:
null
,
datail
:
null
,
addTitle
:
"新增"
,
addModal
:
false
,
keys
:
""
,
...
...
@@ -185,10 +189,7 @@ export default {
editModel
:
{
color
:
""
,
},
nodeInfo
:
{
priority
:
null
,
id
:
0
,
},
editTitle
:
"编辑"
,
node
:
root
,
color4
:
""
,
...
...
@@ -332,12 +333,17 @@ export default {
},
},
[
h
(
"State"
,{
props
:{
value
:
data
.
data
.
typeId
,
code
:
"aps.scheduling.groupingForm"
,
type
:
"tag"
}},
data
.
data
.
typeId
)
,
h
(
"State"
,
{
props
:
{
value
:
data
.
data
.
typeId
,
code
:
"system.dictionary.typeId"
,
type
:
"tag"
,
},
},
data
.
data
.
typeId
),
h
(
"span"
,
{
...
...
@@ -352,11 +358,12 @@ export default {
this
.
$refs
.
contentMenu
.
currentVisible
=
!
this
.
$refs
.
contentMenu
.
currentVisible
;
this
.
editModel
=
data
.
data
;
console
.
warn
(
"addd"
,
this
.
editModel
)
console
.
warn
(
"addd"
,
this
.
editModel
);
},
},
},
data
.
title
+
" ["
+
data
.
data
.
typeId
+
"]"
data
.
title
// +" ["+data.data.typeId+"]"
),
]
),
...
...
@@ -378,13 +385,13 @@ export default {
});
},
editRight
()
{
this
.
editRow
(
this
.
nodeInfo
);
this
.
editRow
(
this
.
editModel
);
},
editRow
(
row
,
index
)
{
this
.
editTitle
=
"编辑"
;
this
.
editModal
=
true
;
this
.
editModel
=
row
;
this
.
datail
=
()
=>
import
(
"./components/edit"
);
this
.
datail
=
()
=>
import
(
"./components/edit"
);
},
toggle
()
{
this
.
expand
=
!
this
.
expand
;
...
...
@@ -394,26 +401,26 @@ export default {
this
.
load
();
this
.
loadTree
();
this
.
addModal
=
false
;
this
.
detail
=
null
;
this
.
detail
=
null
;
},
add
(
upId
)
{
if
(
upId
==
0
)
{
this
.
editModel
=
{
id
:
-
1
,
upId
:
this
.
node
.
id
,
name
:
""
,
code
:
""
,
color
:
""
,
status
:
0
,
isStatic
:
0
,
typeId
:
-
1
,
priority
:
this
.
edit
,
}
if
(
upId
==
0
)
{
this
.
editModel
=
{
//
id:-1,
upId
:
0
,
name
:
""
,
code
:
""
,
color
:
""
,
status
:
0
,
isStatic
:
0
,
typeId
:
0
,
priority
:
this
.
edit
,
}
;
// console.warn("VVVVVVVVVVVVVVVVV")
}
this
.
datail
=
()
=>
import
(
"./components/add"
);
this
.
datail
=
()
=>
import
(
"./components/add"
);
this
.
editModal
=
true
;
},
editOk
()
{
...
...
@@ -421,7 +428,7 @@ export default {
this
.
editModal
=
false
;
},
removeNew
()
{
this
.
delRow
(
this
.
nodeInfo
);
this
.
delRow
(
this
.
editModel
);
},
delRow
(
row
,
index
)
{
var
url
=
`
${
systemUrl
}
/Dictionary/Delete?id=
${
row
.
id
}
`
;
...
...
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