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 ec4e06c9
authored
Apr 08, 2024
by
peiqiQQQ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
元素字典表维护下拉修改
1 parent
5f5e50c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
27 deletions
src/views/archi-ele-list/index.vue
src/views/archiEleRela/index.vue
src/views/archiViewConfig/index.vue
src/views/archi-ele-list/index.vue
View file @
ec4e06c
...
@@ -37,9 +37,15 @@
...
@@ -37,9 +37,15 @@
placeholder=
"请选择"
placeholder=
"请选择"
class=
"search_item"
class=
"search_item"
>
>
<el-option
label=
"已发布"
value=
"1"
></el-option>
<el-option
v-for=
"item in stateList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<!--
<el-option
label=
"已发布"
value=
"1"
></el-option>
<el-option
label=
"已停用"
value=
"0"
></el-option>
<el-option
label=
"已停用"
value=
"0"
></el-option>
<el-option
label=
"暂存"
value=
"2"
></el-option>
<el-option
label=
"暂存"
value=
"2"
></el-option>
-->
</el-select>
</el-select>
</div>
</div>
</div>
</div>
...
@@ -767,6 +773,7 @@ export default {
...
@@ -767,6 +773,7 @@ export default {
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{
return
{
stateList
:
[],
// 状态
standardGraph
:
[],
standardGraph
:
[],
standardList
:
[],
standardList
:
[],
graph_dialog
:
false
,
graph_dialog
:
false
,
...
@@ -865,11 +872,22 @@ export default {
...
@@ -865,11 +872,22 @@ export default {
})
})
this
.
set_table_height
()
this
.
set_table_height
()
this
.
get_table
()
this
.
get_table
()
getDictTypeOptions
(
'scope_application'
).
then
((
res
)
=>
{
// 适用范围
this
.
scopeApplicationOptions
=
res
// getDictTypeOptions('scope_application').then((res) => {
query_jia_gou_ceng_ci_new
({
"typeValue"
:
"archi_level"
}).
then
(
res
=>
{
// this.scopeApplicationOptions = res
this
.
scopeApplicationOptions
=
res
.
data
})
})
this
.
getStateList
()
},
},
methods
:
{
methods
:
{
getStateList
(){
query_jia_gou_ceng_ci_new
({
"typeValue"
:
"sys_state"
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
stateList
=
res
.
data
}
})
},
indexMethod
(
index
)
{
indexMethod
(
index
)
{
return
(
this
.
pager
.
current
-
1
)
*
this
.
pager
.
size
+
index
+
1
return
(
this
.
pager
.
current
-
1
)
*
this
.
pager
.
size
+
index
+
1
},
},
...
@@ -1451,7 +1469,7 @@ export default {
...
@@ -1451,7 +1469,7 @@ export default {
//查询架构层次下拉框值
//查询架构层次下拉框值
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
// query_jia_gou_ceng_ci({}).then((res) => {
// query_jia_gou_ceng_ci({}).then((res) => {
query_jia_gou_ceng_ci_new
({
"typeValue"
:
"archi_
level
"
}).
then
(
res
=>
{
query_jia_gou_ceng_ci_new
({
"typeValue"
:
"archi_
belong
"
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
resolve
(
res
.
data
)
resolve
(
res
.
data
)
}
else
{
}
else
{
...
@@ -1487,6 +1505,7 @@ export default {
...
@@ -1487,6 +1505,7 @@ export default {
//查询架构归属下拉框值
//查询架构归属下拉框值
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
query_jia_gou_gui_shu
({}).
then
((
res
)
=>
{
query_jia_gou_gui_shu
({}).
then
((
res
)
=>
{
// query_jia_gou_ceng_ci_new({"typeValue": "archi_level"}).then(res => {
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
resolve
(
res
.
data
)
resolve
(
res
.
data
)
}
else
{
}
else
{
...
...
src/views/archiEleRela/index.vue
View file @
ec4e06c
...
@@ -587,6 +587,7 @@ import {
...
@@ -587,6 +587,7 @@ import {
getYMXZDGLProyUpdate
,
getYMXZDGLProyUpdate
,
getYMXZDGLProyDel
,
getYMXZDGLProyDel
,
gAllDictKey
,
gAllDictKey
,
query_jia_gou_ceng_ci_new
}
from
'@/api/index.js'
}
from
'@/api/index.js'
import
$
from
'jquery'
import
$
from
'jquery'
import
{
MessageBox
,
Message
}
from
'element-ui'
import
{
MessageBox
,
Message
}
from
'element-ui'
...
@@ -665,18 +666,18 @@ export default {
...
@@ -665,18 +666,18 @@ export default {
eleLtId
:
{},
eleLtId
:
{},
},
},
stateList
:
[
stateList
:
[
{
//
{
label
:
'已停用'
,
//
label: '已停用',
value
:
0
,
//
value: 0,
},
//
},
{
//
{
label
:
'已发布'
,
//
label: '已发布',
value
:
1
,
//
value: 1,
},
//
},
{
//
{
label
:
'暂存'
,
//
label: '暂存',
value
:
2
,
//
value: 2,
},
//
},
],
],
guishuList
:
[
guishuList
:
[
{
{
...
@@ -731,9 +732,17 @@ export default {
...
@@ -731,9 +732,17 @@ export default {
this
.
getList
()
this
.
getList
()
// 获取元素列表
// 获取元素列表
this
.
getYuansuList
()
this
.
getYuansuList
()
this
.
getStateList
()
},
},
created
()
{},
created
()
{},
methods
:
{
methods
:
{
getStateList
(){
query_jia_gou_ceng_ci_new
({
"typeValue"
:
"sys_state"
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
stateList
=
res
.
data
}
})
},
indexMethod
(
index
)
{
indexMethod
(
index
)
{
return
(
this
.
params
.
current
-
1
)
*
this
.
params
.
pageSize
+
index
+
1
return
(
this
.
params
.
current
-
1
)
*
this
.
params
.
pageSize
+
index
+
1
},
},
...
@@ -870,9 +879,9 @@ export default {
...
@@ -870,9 +879,9 @@ export default {
// 查询列表
// 查询列表
getList
()
{
getList
()
{
this
.
loading
=
true
this
.
loading
=
true
if
(
this
.
params
.
state
!=
''
)
{
//
if (this.params.state != '') {
this
.
params
.
state
=
Number
(
this
.
params
.
state
)
//
this.params.state = Number(this.params.state)
}
//
}
getJGYSGLlist
(
this
.
params
).
then
((
res
)
=>
{
getJGYSGLlist
(
this
.
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
loading
=
false
this
.
loading
=
false
...
...
src/views/archiViewConfig/index.vue
View file @
ec4e06c
...
@@ -36,8 +36,8 @@
...
@@ -36,8 +36,8 @@
<el-option
<el-option
v-for=
"(item, idnex) in levelList"
v-for=
"(item, idnex) in levelList"
:key=
"idnex"
:key=
"idnex"
:label=
"item.
name
"
:label=
"item.
label
"
:value=
"item.
levelId
"
:value=
"item.
value
"
></el-option>
></el-option>
</el-select>
</el-select>
</div>
</div>
...
@@ -304,8 +304,8 @@
...
@@ -304,8 +304,8 @@
<el-option
<el-option
v-for=
"(item, idnex) in levelList"
v-for=
"(item, idnex) in levelList"
:key=
"idnex"
:key=
"idnex"
:label=
"item.
name
"
:label=
"item.
label
"
:value=
"item.
levelId
"
:value=
"item.
value
"
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -598,6 +598,7 @@ import {
...
@@ -598,6 +598,7 @@ import {
gtEleRelList
,
gtEleRelList
,
query_jia_gou_gui_shu
,
query_jia_gou_gui_shu
,
query_jia_gou_ceng_ci
,
query_jia_gou_ceng_ci
,
query_jia_gou_ceng_ci_new
,
getYMXZDGLProyList
,
getYMXZDGLProyList
,
gAllDictKey
,
gAllDictKey
,
getYMXZDGLProyAdd
,
getYMXZDGLProyAdd
,
...
@@ -955,11 +956,12 @@ export default {
...
@@ -955,11 +956,12 @@ export default {
},
},
// 获取下拉
// 获取下拉
getLevelList
()
{
getLevelList
()
{
query_jia_gou_ceng_ci
().
then
((
res
)
=>
{
// query_jia_gou_ceng_ci().then((res) => {
query_jia_gou_ceng_ci_new
({
"typeValue"
:
"archi_level"
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
levelList
=
res
.
data
this
.
levelList
=
res
.
data
this
.
levelList
.
forEach
((
item
)
=>
{
this
.
levelList
.
forEach
((
item
)
=>
{
this
.
dicObj
.
archiLevelId
[
item
.
levelId
]
=
item
.
name
this
.
dicObj
.
archiLevelId
[
item
.
value
]
=
item
.
label
})
})
}
}
})
})
...
@@ -1105,7 +1107,7 @@ export default {
...
@@ -1105,7 +1107,7 @@ export default {
this
.
viewId
=
item
.
viewId
this
.
viewId
=
item
.
viewId
this
.
getDicyTable
()
this
.
getDicyTable
()
this
.
formData
=
item
this
.
formData
=
item
this
.
formData
.
archiLevelId
=
this
.
formData
.
archiLevelId
+
''
this
.
transferValue1
=
this
.
formData
.
archiEleId
this
.
transferValue1
=
this
.
formData
.
archiEleId
.
split
(
','
)
.
split
(
','
)
.
map
((
item
)
=>
Number
(
item
))
.
map
((
item
)
=>
Number
(
item
))
...
...
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