Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zrch-risk-39
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
zrch-risk-39
Commits
b9db5289
提交
b9db5289
authored
3月 11, 2026
作者:
kxjia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
首页配置
上级
d3c2cf30
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
183 行增加
和
18 行删除
+183
-18
jeecg_logo.png
zrch-risk-client-39/public/jeecg_logo.png
+0
-0
jeecg_logo.png
zrch-risk-client-39/src/assets/images/jeecg_logo.png
+0
-0
logo_xbky.png
zrch-risk-client-39/src/assets/images/logo_xbky.png
+0
-0
BaseSetting.vue
zrch-risk-client-39/src/views/page/BaseSetting.vue
+28
-6
PageTitleconfig.api.ts
zrch-risk-client-39/src/views/page/PageTitleconfig.api.ts
+0
-2
PageTitleconfig.data.ts
zrch-risk-client-39/src/views/page/PageTitleconfig.data.ts
+0
-10
TplItemModal.vue
...risk-client-39/src/views/page/components/TplItemModal.vue
+155
-0
没有找到文件。
zrch-risk-client-39/public/jeecg_logo.png
0 → 100644
浏览文件 @
b9db5289
71.1 KB
zrch-risk-client-39/src/assets/images/jeecg_logo.png
0 → 100644
浏览文件 @
b9db5289
71.1 KB
zrch-risk-client-39/src/assets/images/logo_xbky.png
0 → 100644
浏览文件 @
b9db5289
12.2 KB
zrch-risk-client-39/src/views/page/BaseSetting.vue
浏览文件 @
b9db5289
<
template
>
<
template
>
<div>
<div
style=
"height: 100%;"
>
<!--引用表格-->
<!--引用表格-->
<BasicTable
@
register=
"registerTable"
@
edit-end=
"handleEditEnd"
@
edit-cancel=
"handleEditCancel"
:beforeEditSubmit=
"beforeEditSubmit"
>
<BasicTable
@
register=
"registerTable"
@
edit-end=
"handleEditEnd"
@
edit-cancel=
"handleEditCancel"
:beforeEditSubmit=
"beforeEditSubmit"
style=
"height:100%;"
>
<!--插槽:table标题-->
<!--插槽:table标题-->
<template
#
tableTitle
>
<template
#
tableTitle
>
<a-button
type=
"primary"
@
click=
"handleAdd"
preIcon=
"ant-design:plus-outlined"
>
新增
</a-button>
<a-button
type=
"primary"
@
click=
"handleAdd"
preIcon=
"ant-design:plus-outlined"
>
新增
</a-button>
...
@@ -16,6 +21,8 @@
...
@@ -16,6 +21,8 @@
</BasicTable>
</BasicTable>
<!-- 表单区域 -->
<!-- 表单区域 -->
<PageTitleconfigModal
@
register=
"registerModal"
@
success=
"handleSuccess"
></PageTitleconfigModal>
<PageTitleconfigModal
@
register=
"registerModal"
@
success=
"handleSuccess"
></PageTitleconfigModal>
<!-- 关联指标弹窗 -->
<TplItemModal
@
register=
"registerTplItemModal"
style=
"height: 90%;"
></TplItemModal>
</div>
</div>
</template>
</template>
...
@@ -25,6 +32,7 @@
...
@@ -25,6 +32,7 @@
import
{
useModal
}
from
'/@/components/Modal'
;
import
{
useModal
}
from
'/@/components/Modal'
;
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
import
PageTitleconfigModal
from
'./components/PageTitleconfigModal.vue'
import
PageTitleconfigModal
from
'./components/PageTitleconfigModal.vue'
import
TplItemModal
from
'./components/TplItemModal.vue'
import
{
columns
,
searchFormSchema
}
from
'./PageTitleconfig.data'
;
import
{
columns
,
searchFormSchema
}
from
'./PageTitleconfig.data'
;
import
{
list
,
deleteOne
,
batchDelete
,
saveOrUpdate
}
from
'./PageTitleconfig.api'
;
import
{
list
,
deleteOne
,
batchDelete
,
saveOrUpdate
}
from
'./PageTitleconfig.api'
;
import
{
JEllipsis
}
from
'/@/components/Form'
;
import
{
JEllipsis
}
from
'/@/components/Form'
;
...
@@ -34,15 +42,20 @@
...
@@ -34,15 +42,20 @@
const
dataList
=
ref
([])
const
dataList
=
ref
([])
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerTplItemModal
,
{
openModal
:
openTplItemModal
}]
=
useModal
();
const
{
prefixCls
,
tableContext
}
=
useListPage
({
const
{
prefixCls
,
tableContext
}
=
useListPage
({
tableProps
:{
tableProps
:{
title
:
'首页配置
-生产指标
'
,
title
:
'首页配置'
,
api
:
list
,
api
:
list
,
columns
,
columns
,
canResize
:
false
,
canResize
:
false
,
pagination
:
true
,
pagination
:
true
,
useSearchForm
:
false
,
useSearchForm
:
false
,
showIndexColumn
:
true
,
showIndexColumn
:
true
,
scroll
:
{
y
:
'calc(100vh - 200px)'
,
},
formConfig
:
{
formConfig
:
{
schemas
:
searchFormSchema
,
schemas
:
searchFormSchema
,
autoSubmitOnEnter
:
true
,
autoSubmitOnEnter
:
true
,
...
@@ -82,7 +95,6 @@
...
@@ -82,7 +95,6 @@
}
}
function
handleDetail
(
record
:
Recordable
)
{
function
handleDetail
(
record
:
Recordable
)
{
openModal
(
true
,
{
openModal
(
true
,
{
record
,
record
,
isUpdate
:
true
,
isUpdate
:
true
,
...
@@ -90,6 +102,14 @@
...
@@ -90,6 +102,14 @@
});
});
}
}
function
handleAssociate
(
record
:
Recordable
)
{
openTplItemModal
(
true
,
{
record
,
title
:
'关联指标'
,
showFooter
:
false
,
});
}
async
function
handleDelete
(
record
)
{
async
function
handleDelete
(
record
)
{
await
deleteOne
({
id
:
record
.
id
},
handleSuccess
);
await
deleteOne
({
id
:
record
.
id
},
handleSuccess
);
...
@@ -111,6 +131,10 @@
...
@@ -111,6 +131,10 @@
{
{
label
:
'编辑'
,
label
:
'编辑'
,
onClick
:
handleEdit
.
bind
(
null
,
record
),
onClick
:
handleEdit
.
bind
(
null
,
record
),
},
{
label
:
'关联指标'
,
onClick
:
handleAssociate
.
bind
(
null
,
record
),
}
}
]
]
}
}
...
@@ -156,7 +180,6 @@
...
@@ -156,7 +180,6 @@
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
</
style
>
</
style
>
\ No newline at end of file
zrch-risk-client-39/src/views/page/PageTitleconfig.api.ts
浏览文件 @
b9db5289
...
@@ -14,8 +14,6 @@ enum Api {
...
@@ -14,8 +14,6 @@ enum Api {
queryFxcTplTree
=
'/page/pageTitleconfig/queryFxcTplTree'
,
queryFxcTplTree
=
'/page/pageTitleconfig/queryFxcTplTree'
,
pagetitleall
=
'/page/pageTitleconfig/pagetitleall'
,
pagetitleall
=
'/page/pageTitleconfig/pagetitleall'
,
queryItemDtById
=
'/fxc/fxcTplItemDt/queryById'
,
}
}
/**
/**
...
...
zrch-risk-client-39/src/views/page/PageTitleconfig.data.ts
浏览文件 @
b9db5289
...
@@ -113,16 +113,6 @@ export const formSchema: FormSchema[] = [
...
@@ -113,16 +113,6 @@ export const formSchema: FormSchema[] = [
component
:
'Input'
,
component
:
'Input'
,
required
:
true
,
required
:
true
,
},
},
{
label
:
'数据来源'
,
field
:
'tplItemDtId'
,
component
:
'JSelectFxcTplTree'
,
componentProps
:
{
labelKey
:
'title'
,
rowKey
:
'id'
,
},
ifShow
:
false
,
},
{
{
label
:
'显示顺序'
,
label
:
'显示顺序'
,
field
:
'showSort'
,
field
:
'showSort'
,
...
...
zrch-risk-client-39/src/views/page/components/TplItemModal.vue
0 → 100644
浏览文件 @
b9db5289
<
template
>
<BasicModal
v-bind=
"$attrs"
@
register=
"registerModal"
destroyOnClose
:centered=
"true"
:title=
"title"
width=
"70%"
>
<BasicTable
@
register=
"registerTable"
:rowSelection=
"rowSelection"
>
<template
#
tableTitle
>
<a-button
type=
"primary"
@
click=
"handleAdd"
preIcon=
"ant-design:plus-outlined"
>
设置
</a-button>
</
template
>
</BasicTable>
</BasicModal>
</template>
<
script
lang=
"ts"
name=
"baosong-baosongTplItem"
setup
>
import
{
ref
,
computed
,
unref
}
from
'vue'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'/@/components/Table'
;
import
{
BasicModal
,
useModalInner
}
from
'/@/components/Modal'
;
import
{
useListPage
}
from
'/@/hooks/system/useListPage'
;
import
{
list
}
from
'/@/views/baosong/tpl/BaosongTplItem.api'
;
import
{
saveOrUpdate
}
from
'../PageTitleconfig.api'
;
// Emits声明
const
emit
=
defineEmits
([
'register'
,
'success'
]);
// 定义表格列
const
columns
=
[
{
title
:
'模板名称'
,
dataIndex
:
'tplName'
,
key
:
'tplName'
,
width
:
130
,
},
{
title
:
'父编码'
,
dataIndex
:
'pcode'
,
key
:
'pcode'
,
width
:
100
,
},
{
title
:
'编码'
,
dataIndex
:
'code'
,
key
:
'code'
,
width
:
100
,
},
{
title
:
'名称'
,
dataIndex
:
'title'
,
key
:
'title'
,
width
:
200
,
},
];
// 定义搜索表单
const
searchFormSchema
=
[
{
field
:
'tplName'
,
label
:
'模板名称'
,
component
:
'Input'
,
colProps
:
{
span
:
8
,
},
},
{
field
:
'title'
,
label
:
'名称'
,
component
:
'Input'
,
colProps
:
{
span
:
8
,
},
},
];
// 注册table数据
const
{
tableContext
}
=
useListPage
({
tableProps
:
{
title
:
'报送模板项'
,
api
:
list
,
columns
,
canResize
:
true
,
useSearchForm
:
true
,
showActionColumn
:
false
,
showIndexColumn
:
true
,
rowSelection
:
{
type
:
'radio'
,
},
beforeFetch
(
params
)
{
params
[
'tp'
]
=
'number'
},
scroll
:
{
y
:
'calc(100vh - 100px)'
,
},
formConfig
:
{
schemas
:
searchFormSchema
,
autoSubmitOnEnter
:
true
,
showAdvancedButton
:
true
,
fieldMapToNumber
:
[],
fieldMapToTime
:
[],
},
defSort
:
{
column
:
'tplName,pcode,code'
,
order
:
'asc,asc,asc'
,
},
},
});
const
curdata
=
ref
({});
const
[
registerTable
,
{
reload
},{
rowSelection
,
selectedRowKeys
}]
=
tableContext
// 模态框配置
const
[
registerModal
,
{
setModalProps
,
closeModal
}]
=
useModalInner
(
async
(
data
)
=>
{
curdata
.
value
=
data
.
record
;
// 重置表格
await
reload
();
// 设置模态框属性
setModalProps
({
confirmLoading
:
false
,
showCancelBtn
:
false
,
showOkBtn
:
false
,
footer
:
null
});
});
// 设置标题
const
title
=
computed
(()
=>
{
return
'关联指标'
;
});
function
handleAdd
()
{
const
tplItem
=
rowSelection
.
selectedRows
[
0
];
if
(
!
tplItem
){
console
.
error
(
'请选择指标'
);
return
;
}
saveOrUpdate
({
id
:
curdata
.
value
.
id
,
tplItemId
:
tplItem
.
id
,
tplItemName
:
tplItem
.
title
,
unit
:
tplItem
.
unit
,
tplName
:
tplItem
.
tplName
,
tplId
:
tplItem
.
tplid
,
},
true
);
emit
(
'success'
);
}
function
handleSuccess
()
{
emit
(
'success'
);
}
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论