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 6cbd68a4
authored
Jan 05, 2024
by
Thews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20230105汪皖苏
1 parent
77e28311
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
46 deletions
src/views/archiEleRela/index.vue
src/views/metaModelDic/pages/page2.vue
src/views/archiEleRela/index.vue
View file @
6cbd68a
...
...
@@ -10,17 +10,8 @@
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
适用范围
</span>
<el-select
v-model=
"params.scope"
placeholder=
"请选择"
clearable
class=
"search_item"
>
<el-option
label=
"架构之间"
value=
"0"
></el-option>
<el-option
label=
"系统架构"
value=
"1"
></el-option>
<el-option
label=
"业务架构"
value=
"2"
></el-option>
<el-option
label=
"应用架构"
value=
"3"
></el-option>
<el-option
label=
"数据架构"
value=
"4"
></el-option>
<el-option
label=
"技术架构"
value=
"5"
></el-option>
<el-option
label=
"安全架构"
value=
"6"
></el-option>
</el-select>
<!--
<el-select
v-model=
"params.scope"
placeholder=
"请选择"
clearable
class=
"search_item"
>
<el-option
v-for=
"(item,idnex) in search_select1"
:key=
"idnex"
:label=
"item.name"
:value=
"item.belongId"
></el-option>
</el-select>
-->
</el-select>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
状态
</span>
...
...
@@ -132,7 +123,7 @@
</div>
</div>
<div
class=
"dialog_form_item"
>
<div
class=
"dialog_form_item_title"
>
<span
class=
"reqIcon"
>
*
</span>
约束条件
</div>
<div
class=
"dialog_form_item_title"
>
约束条件
</div>
<div
class=
"formArea"
>
<div
class=
"formLine"
v-for=
"(item,index) in formData.arrList"
:key=
"index"
>
情况{{index+1}}
...
...
@@ -151,7 +142,7 @@
<div
class=
"formItem"
>
<div
class=
"label"
>
适用范围
</div>
<el-select
v-model=
"item.scope"
placeholder=
"请选择"
:disabled=
"true"
>
<el-option
v-for=
"(item,idnex) in
guishuList"
:key=
"idnex"
:label=
"item.label"
:value=
"item.value
"
></el-option>
<el-option
v-for=
"(item,idnex) in
search_select1"
:key=
"idnex"
:label=
"item.name"
:value=
"item.belongId
"
></el-option>
</el-select>
</div>
<div
class=
"newBtn"
>
...
...
@@ -325,19 +316,24 @@ export default {
],
eleList
:
[],
radioName
:
""
,
search_select1
:
[],
search_select1
:
[
{
name
:
"架构之间"
,
belongId
:
0
,
}
],
};
},
mounted
()
{
// 适用范围下拉
this
.
get_dialog_select2
().
then
(
res
=>
{
this
.
search_select1
=
this
.
search_select1
.
concat
(
res
);
});
// 初始化查询列表
this
.
getList
();
// 获取元素列表
this
.
getYuansuList
();
this
.
get_dialog_select2
().
then
(
res
=>
{
this
.
search_select1
=
res
;
});
},
created
()
{
},
...
...
@@ -424,7 +420,7 @@ export default {
this
.
$message
.
error
(
"请选择图标"
);
return
;
}
// if (this.formData.arrList
.length <= 0
) {
// if (this.formData.arrList
[0].scope === ""
) {
// this.$message.error("请选择至少一种约束条件");
// return;
// }
...
...
@@ -649,19 +645,20 @@ export default {
}
this
.
search_select1
.
forEach
(
itemX
=>
{
if
(
lastStr
==
itemX
.
belongId
)
{
if
(
itemX
.
name
==
"系统架构"
)
{
this
.
formData
.
arrList
[
index
].
scope
=
1
;
}
else
if
(
itemX
.
name
==
"业务架构"
)
{
this
.
formData
.
arrList
[
index
].
scope
=
2
;
}
else
if
(
itemX
.
name
==
"应用架构"
)
{
this
.
formData
.
arrList
[
index
].
scope
=
3
;
}
else
if
(
itemX
.
name
==
"数据架构"
)
{
this
.
formData
.
arrList
[
index
].
scope
=
4
;
}
else
if
(
itemX
.
name
==
"技术架构"
)
{
this
.
formData
.
arrList
[
index
].
scope
=
5
;
}
else
if
(
itemX
.
name
==
"安全架构"
)
{
this
.
formData
.
arrList
[
index
].
scope
=
6
;
}
this
.
formData
.
arrList
[
index
].
scope
=
itemX
.
belongId
;
// if (itemX.name == "系统架构") {
// this.formData.arrList[index].scope = 1;
// }else if (itemX.name == "业务架构") {
// this.formData.arrList[index].scope = 2;
// }else if (itemX.name == "应用架构") {
// this.formData.arrList[index].scope = 3;
// }else if (itemX.name == "数据架构") {
// this.formData.arrList[index].scope = 4;
// }else if (itemX.name == "技术架构") {
// this.formData.arrList[index].scope = 5;
// }else if (itemX.name == "安全架构") {
// this.formData.arrList[index].scope = 6;
// }
}
})
}
...
...
src/views/metaModelDic/pages/page2.vue
View file @
6cbd68a
...
...
@@ -10,13 +10,7 @@
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
适用范围
</span>
<el-select
v-model=
"params.scope"
placeholder=
"请选择"
clearable
class=
"search_item"
>
<el-option
label=
"架构之间"
value=
"0"
></el-option>
<el-option
label=
"系统架构"
value=
"1"
></el-option>
<el-option
label=
"业务架构"
value=
"2"
></el-option>
<el-option
label=
"应用架构"
value=
"3"
></el-option>
<el-option
label=
"数据架构"
value=
"4"
></el-option>
<el-option
label=
"技术架构"
value=
"5"
></el-option>
<el-option
label=
"安全架构"
value=
"6"
></el-option>
<el-option
v-for=
"(item,idnex) in search_select1"
:key=
"idnex"
:label=
"item.name"
:value=
"item.belongId"
></el-option>
</el-select>
</div>
<div
class=
"search_menu_item"
>
...
...
@@ -93,14 +87,8 @@
</div>
<div
class=
"dialog_form_item"
>
<div
class=
"dialog_form_item_title"
>
适用范围
</div>
<el-select
v-model=
"formData.scope"
placeholder=
""
:disabled=
"true"
class=
"search_item"
>
<el-option
label=
"架构之间"
value=
"0"
></el-option>
<el-option
label=
"系统架构"
value=
"1"
></el-option>
<el-option
label=
"业务架构"
value=
"2"
></el-option>
<el-option
label=
"应用架构"
value=
"3"
></el-option>
<el-option
label=
"数据架构"
value=
"4"
></el-option>
<el-option
label=
"技术架构"
value=
"5"
></el-option>
<el-option
label=
"安全架构"
value=
"6"
></el-option>
<el-select
v-model=
"formData.scope"
placeholder=
"请选择"
:disabled=
"true"
class=
"search_item"
>
<el-option
v-for=
"(item,idnex) in search_select1"
:key=
"idnex"
:label=
"item.name"
:value=
"item.belongId"
></el-option>
</el-select>
</div>
<div
class=
"dialog_form_item"
>
...
...
@@ -219,6 +207,7 @@ import {
getYMXZDGLProyDel
,
getYMXZDGLProyAdd
,
getYMXZDGLProyUpdate
,
query_jia_gou_gui_shu
,
}
from
"@/api/index.js"
;
export
default
{
...
...
@@ -336,15 +325,38 @@ export default {
],
columnIsShow
:
false
,
editIndex
:
-
1
,
// 当前编辑行
search_select1
:
[
{
name
:
"架构之间"
,
belongId
:
0
,
}
],
};
},
mounted
()
{
// 适用范围下拉
this
.
get_dialog_select2
().
then
(
res
=>
{
this
.
search_select1
=
this
.
search_select1
.
concat
(
res
);
});
// 初始化查询列表
this
.
getList
();
},
created
()
{
},
methods
:
{
// 查询架构归属下拉框值
get_dialog_select2
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
query_jia_gou_gui_shu
({}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
resolve
(
res
.
data
);
}
else
{
reject
(
res
.
msg
);
}
});
})
},
// 查询列表
getList
()
{
getYMXZDGLlist
(
this
.
params
).
then
(
res
=>
{
...
...
@@ -386,6 +398,7 @@ export default {
this
.
add_dialog
=
true
;
this
.
title
=
"编辑字典"
;
this
.
formData
=
item
;
this
.
formData
.
scope
=
Number
(
this
.
formData
.
scope
);
this
.
getProyList
(
item
);
}
else
if
(
type
==
"create"
)
{
this
.
formData
.
state
=
2
;
...
...
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