Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0a8dd46d
authored
Feb 04, 2024
by
liuyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改三个架构资产
1 parent
1dd4058d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
41 deletions
src/api/index.js
src/views/archi-asset-manage/index.vue
src/views/archi-ele-list/index.vue
src/views/busi-assets-list/index.vue
src/views/current-assets-list/index.vue
src/api/index.js
View file @
0a8dd46
...
@@ -427,7 +427,7 @@ export function queryLogManageAllLog(params) {
...
@@ -427,7 +427,7 @@ export function queryLogManageAllLog(params) {
export
function
getCurrentZiChanJiaGouTable
(
params
)
{
export
function
getCurrentZiChanJiaGouTable
(
params
)
{
return
post
(
'/network/arc-ast-now/'
,
params
);
return
post
(
'/network/arc-ast-now/'
,
params
);
}
}
//
现状
资产架构,表格
//
系统
资产架构,表格
export
function
getTotalZiChanJiaGouTable
(
params
)
{
export
function
getTotalZiChanJiaGouTable
(
params
)
{
return
post
(
'/network/arc-ast-tot/'
,
params
);
return
post
(
'/network/arc-ast-tot/'
,
params
);
}
}
src/views/archi-asset-manage/index.vue
View file @
0a8dd46
This diff is collapsed.
Click to expand it.
src/views/archi-ele-list/index.vue
View file @
0a8dd46
...
@@ -128,11 +128,11 @@
...
@@ -128,11 +128,11 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"元素层级:"
prop=
"let5"
>
<el-form-item
label=
"元素层级:"
prop=
"let5"
>
<el-select
clearable
placeholder=
"请选择"
v-model=
"ruleForm.let5"
style=
"width: 200px;"
>
<el-select
clearable
placeholder=
"请选择"
v-model=
"ruleForm.let5"
style=
"width: 200px;"
>
<el-option
label=
"1"
:value=
"1"
></el-option>
<el-option
label=
"
L
1"
:value=
"1"
></el-option>
<el-option
label=
"2"
:value=
"2"
></el-option>
<el-option
label=
"
L
2"
:value=
"2"
></el-option>
<el-option
label=
"3"
:value=
"3"
></el-option>
<el-option
label=
"
L
3"
:value=
"3"
></el-option>
<el-option
label=
"4"
:value=
"4"
></el-option>
<el-option
label=
"
L
4"
:value=
"4"
></el-option>
<el-option
label=
"5"
:value=
"5"
></el-option>
<el-option
label=
"
L
5"
:value=
"5"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
class=
"cross1"
label=
"描述:"
prop=
"let4"
>
<el-form-item
class=
"cross1"
label=
"描述:"
prop=
"let4"
>
...
...
src/views/busi-assets-list/index.vue
View file @
0a8dd46
...
@@ -112,9 +112,9 @@
...
@@ -112,9 +112,9 @@
<el-option
v-for=
"item in shangJiJieDianSelect"
:key=
"item.assetId"
:label=
"item.assetName"
:value=
"item.assetId"
></el-option>
<el-option
v-for=
"item in shangJiJieDianSelect"
:key=
"item.assetId"
:label=
"item.assetName"
:value=
"item.assetId"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
组件类型:"
prop=
"let3
"
>
<el-form-item
label=
"
关联资产:"
prop=
"let6
"
>
<el-select
@
change=
"zuJianLeiXingSelectChange"
filterable
remote
:remote-method=
"queryZuJianLeiXingSelect"
clearable
placeholder=
"请选择"
v-model=
"ruleForm.let3
"
>
<el-select
clearable
@
change=
"guanLianZiChanChange"
filterable
remote
:remote-method=
"queryGuanLianZiChan"
placeholder=
"请选择"
multiple
v-model=
"ruleForm.let6
"
>
<el-option
v-for=
"item in
zuJianLeiXingSelect"
:key=
"item.typeId"
:label=
"item.elementName"
:value=
"item.type
Id"
></el-option>
<el-option
v-for=
"item in
guanLianZiChanSelect"
:key=
"String(item.assetId)"
:label=
"item.assetName"
:value=
"item.asset
Id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"排序:"
prop=
"let4"
>
<el-form-item
label=
"排序:"
prop=
"let4"
>
...
@@ -126,9 +126,9 @@
...
@@ -126,9 +126,9 @@
<el-radio
label=
"隐藏"
></el-radio>
<el-radio
label=
"隐藏"
></el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
关联资产:"
prop=
"let6
"
>
<el-form-item
label=
"
组件类型:"
prop=
"let3
"
>
<el-select
clearable
@
change=
"guanLianZiChanChange"
filterable
remote
:remote-method=
"queryGuanLianZiChan"
placeholder=
"请选择"
multiple
v-model=
"ruleForm.let6
"
>
<el-select
@
change=
"zuJianLeiXingSelectChange"
filterable
remote
:remote-method=
"queryZuJianLeiXingSelect"
clearable
placeholder=
"请选择"
v-model=
"ruleForm.let3
"
>
<el-option
v-for=
"item in
guanLianZiChanSelect"
:key=
"String(item.assetId)"
:label=
"item.assetName"
:value=
"item.asset
Id"
></el-option>
<el-option
v-for=
"item in
zuJianLeiXingSelect"
:key=
"item.typeId"
:label=
"item.elementName"
:value=
"item.type
Id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
class=
"dynamicFormClass"
v-for=
"(item, index) in ruleForm.dynamicForm0_"
:key=
"index"
:label=
"item.assetName+':'"
>
<el-form-item
class=
"dynamicFormClass"
v-for=
"(item, index) in ruleForm.dynamicForm0_"
:key=
"index"
:label=
"item.assetName+':'"
>
...
@@ -224,7 +224,6 @@
...
@@ -224,7 +224,6 @@
let6
:
''
,
let6
:
''
,
dynamicForm0_
:
[],
dynamicForm0_
:
[],
dynamicForm_
:
[],
dynamicForm_
:
[],
archiBelongId
:
null
,
},
},
rules
:
{
rules
:
{
let1
:
[
let1
:
[
...
@@ -243,6 +242,8 @@
...
@@ -243,6 +242,8 @@
],
],
},
},
searchParams
:
{
searchParams
:
{
archiAssetState
:
2
,
archiStage
:
1
,
assetName
:
null
,
assetName
:
null
,
createMan
:
null
,
createMan
:
null
,
archiEleId
:
null
,
archiEleId
:
null
,
...
@@ -364,11 +365,12 @@
...
@@ -364,11 +365,12 @@
const
params
=
{
const
params
=
{
archiAssetState
:
2
,
archiAssetState
:
2
,
archiStage
:
1
,
archiStage
:
1
,
archiBelongId
:
this
.
ruleForm
.
archiBelongId
,
archiBelongId
:
this
.
archiBelongId
,
assetConstant
:
this
.
searchParams
.
assetConstant
,
assetConstant
:
this
.
searchParams
.
assetConstant
,
archiAssetTypeId
:
this
.
searchParams
.
archiAssetTypeId
,
archiAssetTypeId
:
this
.
searchParams
.
archiAssetTypeId
,
archiEleId
:
this
.
ruleForm
.
let3
,
archiEleId
:
this
.
ruleForm
.
let3
,
assetName
:
this
.
ruleForm
.
let1
,
assetName
:
this
.
ruleForm
.
let1
,
sort
:
this
.
ruleForm
.
let4
,
assetId
:
this
.
is_add_edit
==
'add'
?
null
:
this
.
editId
,
assetId
:
this
.
is_add_edit
==
'add'
?
null
:
this
.
editId
,
parentAssetId
:
this
.
ruleForm
.
let2
,
parentAssetId
:
this
.
ruleForm
.
let2
,
parentAssetName
:
parentAssetName
,
parentAssetName
:
parentAssetName
,
...
@@ -446,6 +448,8 @@
...
@@ -446,6 +448,8 @@
},
},
get_table
()
{
//查询表格数据
get_table
()
{
//查询表格数据
const
params
=
{
const
params
=
{
"archiAssetState"
:
this
.
searchParams
.
archiAssetState
,
"archiStage"
:
this
.
searchParams
.
archiStage
,
"assetName"
:
this
.
searchParams
.
assetName
,
"assetName"
:
this
.
searchParams
.
assetName
,
"createMan"
:
this
.
searchParams
.
createMan
,
"createMan"
:
this
.
searchParams
.
createMan
,
"archiEleId"
:
this
.
searchParams
.
archiEleId
,
"archiEleId"
:
this
.
searchParams
.
archiEleId
,
...
@@ -526,10 +530,10 @@
...
@@ -526,10 +530,10 @@
this
.
ruleForm
.
dynamicForm_
=
fieldsValue_
;
this
.
ruleForm
.
dynamicForm_
=
fieldsValue_
;
}
}
},
},
getShangJiJieDianSelect
(
assetConstant
,
archiBelongId
)
{
//上级节点下拉框值
getShangJiJieDianSelect
(
assetConstant
)
{
//上级节点下拉框值
const
params
=
{
const
params
=
{
archiType
:
assetConstant
,
archiType
:
assetConstant
,
parentAssetId
:
archiBelongId
,
parentAssetId
:
this
.
archiBelongId
,
};
};
queryZiChanJiaGouShangJiJieDian
(
params
).
then
(
res
=>
{
queryZiChanJiaGouShangJiJieDian
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
...
@@ -552,28 +556,31 @@
...
@@ -552,28 +556,31 @@
})
})
},
},
zuJianLeiXingSelectChange
(
data
)
{
//组件类型选择后
zuJianLeiXingSelectChange
(
data
)
{
//组件类型选择后
const
params
=
{
if
(
data
)
{
type
:
'1'
,
const
params
=
{
typeId
:
data
,
type
:
'1'
,
};
typeId
:
data
,
queryZuJianLeiXingBelongForm
(
params
).
then
(
res
=>
{
};
if
(
res
.
code
==
200
)
{
queryZuJianLeiXingBelongForm
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
length
>
0
)
{
if
(
res
.
code
==
200
)
{
res
.
data
.
map
(
item
=>
{
if
(
res
.
data
.
length
>
0
)
{
if
(
item
.
controlType
==
2
)
{
res
.
data
.
map
(
item
=>
{
this
.
get_key
(
item
.
dictKey
).
then
(
res2
=>
{
if
(
item
.
controlType
==
2
)
{
this
.
$set
(
item
,
'dictArray_'
,
res2
);
this
.
get_key
(
item
.
dictKey
).
then
(
res2
=>
{
})
this
.
$set
(
item
,
'dictArray_'
,
res2
);
}
})
item
[
'value_'
]
=
''
;
}
});
item
[
'value_'
]
=
''
;
console
.
log
(
res
.
data
)
});
this
.
ruleForm
.
dynamicForm_
=
res
.
data
;
this
.
ruleForm
.
dynamicForm_
=
res
.
data
;
}
else
{
}
else
{
this
.
ruleForm
.
dynamicForm_
=
[];
this
.
ruleForm
.
dynamicForm_
=
[];
}
}
}
}
})
})
}
else
{
this
.
ruleForm
.
dynamicForm_
=
[];
}
},
},
queryZuJianLeiXingSelect
(
data
)
{
//组件类型搜索
queryZuJianLeiXingSelect
(
data
)
{
//组件类型搜索
if
(
data
!==
''
)
{
if
(
data
!==
''
)
{
...
@@ -584,12 +591,12 @@
...
@@ -584,12 +591,12 @@
this
.
getZuJianLeiXingSelect
(
null
);
this
.
getZuJianLeiXingSelect
(
null
);
}
}
},
},
getZuJianLeiXingSelect
(
elementName
,
archiBelongId
)
{
//组件类型下拉框值
getZuJianLeiXingSelect
(
elementName
)
{
//组件类型下拉框值
const
params
=
{
const
params
=
{
state
:
'1'
,
state
:
'1'
,
type
:
'1'
,
type
:
'1'
,
elementName
:
elementName
,
elementName
:
elementName
,
archiBelongId
:
archiBelongId
archiBelongId
:
this
.
archiBelongId
};
};
queryZiChanJiaGouZuJianLeiXing
(
params
).
then
(
res
=>
{
queryZiChanJiaGouZuJianLeiXing
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
...
@@ -811,11 +818,11 @@
...
@@ -811,11 +818,11 @@
}
}
})
})
this
.
treeData
[
0
].
subList
=
res
.
data
;
this
.
treeData
[
0
].
subList
=
res
.
data
;
this
.
ruleForm
.
archiBelongId
=
res
.
data
[
0
].
subList
[
0
].
archiBelongId
;
this
.
archiBelongId
=
res
.
data
[
0
].
subList
[
0
].
archiBelongId
;
this
.
searchParams
.
assetConstant
=
res
.
data
[
0
].
subList
[
0
].
assetConstant
;
this
.
searchParams
.
assetConstant
=
res
.
data
[
0
].
subList
[
0
].
assetConstant
;
this
.
searchParams
.
archiAssetTypeId
=
res
.
data
[
0
].
subList
[
0
].
viewId
;
this
.
searchParams
.
archiAssetTypeId
=
res
.
data
[
0
].
subList
[
0
].
viewId
;
this
.
getShangJiJieDianSelect
(
res
.
data
[
0
].
subList
[
0
].
assetConstant
,
res
.
data
[
0
].
subList
[
0
].
archiBelongId
);
this
.
getShangJiJieDianSelect
(
res
.
data
[
0
].
subList
[
0
].
assetConstant
,
res
.
data
[
0
].
subList
[
0
].
archiBelongId
);
this
.
getZuJianLeiXingSelect
(
null
,
this
.
ruleForm
.
archiBelongId
);
this
.
getZuJianLeiXingSelect
(
null
,
this
.
archiBelongId
);
this
.
getGuanLianZiChanSelectData
(
null
);
this
.
getGuanLianZiChanSelectData
(
null
);
this
.
get_table
();
this
.
get_table
();
...
...
src/views/current-assets-list/index.vue
View file @
0a8dd46
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment