Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4f47f3ae
authored
2025-06-27 17:46:27 +0800
by
fanguang
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
1ce63a67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
20 deletions
src/views/data_meta/standard-codetable.vue
src/views/data_meta/standard.vue
src/views/data_meta/standard-codetable.vue
View file @
4f47f3a
...
...
@@ -114,7 +114,7 @@ const tableInfo: any = ref({
fields
:
[
{
label
:
"序号"
,
type
:
"index"
,
width
:
56
,
align
:
"center"
},
{
label
:
'代码名称'
,
field
:
'codeName'
,
width
:
140
},
{
label
:
'代码编码'
,
field
:
'code'
,
width
:
140
},
//
{ label: '代码编码', field: 'code', width: 140 },
{
label
:
'标准号'
,
field
:
'standard'
,
width
:
140
},
{
label
:
'标准名称'
,
field
:
'standardName'
,
width
:
140
},
// { label: '启用状态', field: 'bizState', type: 'switch', activeText: '启用', inactiveText: '停用', activeValue: 1, inactiveValue: 0, switchWidth: 56, width: 100, align: 'center' },
...
...
src/views/data_meta/standard.vue
View file @
4f47f3a
...
...
@@ -21,7 +21,9 @@ import router from '@/router'
import
{
TableColumnWidth
}
from
'@/utils/enum'
;
import
StandardDialog
from
'./components/standardDialog.vue'
import
StandardFieldsDialog
from
'./components/standardFieldsDialog.vue'
function
getAssetsImages
(
name
)
{
return
new
URL
(
`../../assets/images/
${
name
}
`
,
import
.
meta
.
url
).
href
;
}
const
{
proxy
}
=
getCurrentInstance
()
as
any
;
const
route
=
useRoute
();
...
...
@@ -496,24 +498,31 @@ const viewGraph = () => {
</Tree>
</div>
<div
class=
"main_wrap"
>
<div
class=
"header"
style=
"font-size:16px;font-weight:bold;margin-top:8px;color:#212121"
>
{{ treeInfo.currentObj.standardName }}
</div>
<div
class=
"table_tool_wrap"
>
<div
class=
"tools_btns"
>
<el-button
type=
"primary"
@
click=
"() => openStandardFieldsDialog('add')"
:disabled=
"treeInfo.currentObj.children"
v-preReClick
>
新建
</el-button>
<el-button
@
click=
"importData"
v-preReClick
>
导入
</el-button>
<el-button
@
click=
"exportData"
v-preReClick
>
导出
</el-button>
<el-button
@
click=
"viewGraph"
v-preReClick
>
查看
</el-button>
<el-button
@
click=
"batchDelete"
>
批量删除
</el-button>
</div>
<el-input
class=
"table_search_input"
v-model
.
trim=
"tableSearchInput"
placeholder=
"请输入关键字搜索"
:suffix-icon=
"Search"
clearable
@
change=
"val => getFirstPageData()"
/>
</div>
<div
class=
"table_panel_wrap full"
>
<Table
:tableInfo=
"tableInfo"
@
tableBtnClick=
"tableBtnClick"
@
tableSelectionChange=
"tableSelectionChange"
@
tablePageChange=
"tablePageChange"
/>
<
template
v-if=
"treeInfo.currentObj.level != 1"
>
<div
class=
"header"
style=
"font-size:16px;font-weight:bold;margin-top:8px;color:#212121"
>
{{
treeInfo
.
currentObj
.
standardName
}}
</div>
<div
class=
"table_tool_wrap"
>
<div
class=
"tools_btns"
>
<el-button
type=
"primary"
@
click=
"() => openStandardFieldsDialog('add')"
:disabled=
"treeInfo.currentObj.children"
v-preReClick
>
新建
</el-button>
<el-button
@
click=
"importData"
v-preReClick
>
导入
</el-button>
<el-button
@
click=
"exportData"
v-preReClick
>
导出
</el-button>
<el-button
@
click=
"viewGraph"
v-preReClick
>
查看
</el-button>
<el-button
@
click=
"batchDelete"
>
批量删除
</el-button>
</div>
<el-input
class=
"table_search_input"
v-model
.
trim=
"tableSearchInput"
placeholder=
"请输入关键字搜索"
:suffix-icon=
"Search"
clearable
@
change=
"val => getFirstPageData()"
/>
</div>
<div
class=
"table_panel_wrap full"
style=
"height:calc(100% - 84px)"
>
<Table
:tableInfo=
"tableInfo"
@
tableBtnClick=
"tableBtnClick"
@
tableSelectionChange=
"tableSelectionChange"
@
tablePageChange=
"tablePageChange"
/>
</div>
</
template
>
<div
v-else
class=
"no-content"
>
<img
:src=
"getAssetsImages('no-data.png')"
:style=
"{ width: '96px', height: '96px' }"
/>
<span>
请选择标准表
</span>
</div>
</div>
<StandardDialog
...
...
@@ -539,6 +548,13 @@ const viewGraph = () => {
</
style
>
<
style
lang=
"scss"
scoped
>
.no-content
{
height
:
96%
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
}
.container_wrap
{
.aside_wrap
{
width
:
200px
;
...
...
Write
Preview
Styling with
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