Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
assets
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
黄媛媛
assets
Commits
e0a66dce
Commit
e0a66dce
authored
Dec 06, 2019
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
f9797a77
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
37 deletions
+27
-37
reset.css
src/assets/css/reset.css
+2
-1
AssetsClassification.vue
src/components/Systemman/AssetsClassification.vue
+20
-31
assetsList.vue
src/components/assetsman/assetsList.vue
+5
-5
No files found.
src/assets/css/reset.css
View file @
e0a66dce
...
...
@@ -131,7 +131,7 @@
}
.vue-treeselect__control
{
border
:
none
;
height
:
28
px
;
height
:
32
px
;
}
:focus
{
...
...
@@ -153,6 +153,7 @@
height
:
44px
;
line-height
:
44px
;
border-radius
:
22px
;
cursor
:
pointer
;
}
.MyEditForm
.btnformItem
.submitBtn
{
...
...
src/components/Systemman/AssetsClassification.vue
View file @
e0a66dce
...
...
@@ -14,24 +14,7 @@
<img
@
click=
"Add(data)"
style=
"width:12px;height:12px;margin-left:15px"
src=
"../../assets/img/add.png"
alt=
""
>
<img
@
click=
"Edit(data)"
style=
"width:12px;height:12px;margin:0 15px"
src=
"../../assets/img/treeedit.png"
alt=
""
>
<img
@
click=
"DeleteNode(data)"
style=
"width:12px;height:12px"
src=
"../../assets/img/treedelete.png"
alt=
""
>
<!--
<el-button
type=
"text"
size=
"mini"
@
click=
"() => Add(data)"
>
添加
</el-button>
<el-button
type=
"text"
size=
"mini"
@
click=
"() => Edit(data)"
>
编辑
</el-button>
<el-button
type=
"text"
size=
"mini"
@
click=
"() => DeleteNode(node, data)"
>
删除
</el-button>
-->
</span>
</span>
</el-tree>
...
...
@@ -77,28 +60,32 @@
:title=
"dialogtitle"
:visible
.
sync=
"dialogState"
width=
"30%"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"100px"
>
<el-form-item
label=
"分类名称"
prop=
"Name"
>
<el-input
v-model=
"addMsg.Name"
></el-input>
<el-form
class=
"MyEditForm"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"0"
>
<el-form-item
label=
""
prop=
"Name"
>
<span
class=
"label"
>
分类名称
</span>
<el-input
size=
"small"
v-model=
"addMsg.Name"
></el-input>
</el-form-item>
<el-form-item
label=
"层级"
prop=
"Tier"
>
<el-select
v-model=
"addMsg.Tier"
placeholder=
"请选择层级"
@
change=
"getflList(),addMsg.ParentId=''"
>
<el-form-item
label=
""
prop=
"Tier"
>
<span
class=
"label"
>
层级
</span>
<el-select
size=
"small"
v-model=
"addMsg.Tier"
placeholder=
"请选择层级"
@
change=
"getflList(addMsg.Tier),addMsg.ParentId=''"
>
<el-option
v-for=
'item in layerTierList'
:label=
'item.name'
:value=
'item.id'
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"上级分类"
prop=
"ParentId"
>
<el-select
v-model=
"addMsg.ParentId"
placeholder=
"请选择上级分类"
>
<el-form-item
label=
""
prop=
"ParentId"
>
<span
class=
"label"
>
上级分类
</span>
<el-select
size=
"small"
v-model=
"addMsg.ParentId"
placeholder=
"请选择上级分类"
>
<el-option
v-for=
'item in highList'
:label=
'item.Name'
:value=
'item.Id'
:key=
"item.Id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"排序"
prop=
"Sort"
>
<el-input
type=
"text"
v-model=
"addMsg.Sort"
<el-form-item
label=
""
prop=
"Sort"
>
<span
class=
"label"
>
排序
</span>
<el-input
size=
"small"
type=
"text"
v-model=
"addMsg.Sort"
placeholder=
"请输入"
></el-input>
</el-form-item>
<
el-form-item
>
<
el-button
type=
"primary"
@
click=
"submitForm('addMsg')"
>
确定
</el-butto
n>
<
el-button
@
click=
"resetForm('addMsg')"
>
重置
</el-butto
n>
</
el-form-item
>
<
div
class=
"btnformItem"
>
<
span
class=
"submitBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
确定
</spa
n>
<
span
class=
"exitBtn"
@
click=
"dialogState=false"
>
取消
</spa
n>
</
div
>
</el-form>
</el-dialog>
</div>
...
...
@@ -213,6 +200,7 @@ export default {
this
.
addMsg
.
Id
=
data
.
Id
;
this
.
addMsg
.
Tier
=
data
.
Tier
;
this
.
addMsg
.
Sort
=
data
.
Sort
;
console
.
log
(
"data"
,
data
)
this
.
getflList
(
data
.
Tier
)
},
DeleteNode
(
node
,
data
){
...
...
@@ -278,6 +266,7 @@ export default {
this
.
$refs
[
formName
].
resetFields
();
},
getflList
(
val
){
console
.
log
(
"val"
,
val
)
this
.
Setinfo
.
Tier
=
val
-
1
;
if
(
this
.
Setinfo
.
Tier
==
0
){
this
.
highList
=
[];
...
...
src/components/assetsman/assetsList.vue
View file @
e0a66dce
...
...
@@ -129,20 +129,20 @@
<el-form
class=
"MyEditForm"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"0px"
>
<el-form-item
label=
""
prop=
"Name"
>
<span
class=
"label"
>
资产名称
</span>
<el-input
size=
"
mini
"
v-model=
"addMsg.Name"
placeholder=
"请输入"
></el-input>
<el-input
size=
"
small
"
v-model=
"addMsg.Name"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
label=
""
prop=
"SerialNumber"
>
<span
class=
"label"
>
序列号
</span>
<el-input
size=
"
mini
"
v-model=
"addMsg.SerialNumber"
placeholder=
"请输入"
></el-input>
<el-input
size=
"
small
"
v-model=
"addMsg.SerialNumber"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
label=
""
prop=
"CategoryId"
style=
"float:left;
padding:0 5px;
"
>
<el-form-item
label=
""
prop=
"CategoryId"
style=
"float:left;"
>
<span
class=
"label"
>
资产分类
</span>
<treeselect
style=
"height:
28
px;width:100%"
:options=
"treedata"
v-model=
"addMsg.CategoryId"
placeholder=
"不限"
<treeselect
style=
"height:
32
px;width:100%"
:options=
"treedata"
v-model=
"addMsg.CategoryId"
placeholder=
"不限"
:normalizer=
"normalizer"
@
select=
'treeClick'
/>
</el-form-item>
<el-form-item
label=
""
prop=
"BrandName"
>
<span
class=
"label"
>
品牌
</span>
<el-input
size=
"
mini
"
v-model=
"addMsg.BrandName"
placeholder=
"请输入"
></el-input>
<el-input
size=
"
small
"
v-model=
"addMsg.BrandName"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
label=
""
>
<span
class=
"label"
>
金额
</span>
...
...
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