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
8a330b20
authored
2025-06-20 10:39:16 +0800
by
lxs
Committed by
lihua
2025-06-30 14:27:55 +0800
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增数据定价
1 parent
63efa3e7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
46 deletions
.env.development
src/api/modules/dataPricing.ts
src/views/data_pricing/calculateConfig.vue
src/views/data_pricing/priceCalculate.vue
src/views/data_pricing/priceConfig.vue
src/views/data_pricing/priceModel.vue
.env.development
View file @
8a330b2
...
...
@@ -94,7 +94,6 @@ VITE_APP_CIRCULATION = https://daop-lt-test.zgsjzc.com/
#数据加工交付
VITE_APP_DATA_DELIVERY = https://daop-jgjf-test.zgsjzc.com/
# 本地访问地址
# VITE_API_CIRCULATION_URL = http://localhost:9000/circulation
...
...
src/api/modules/dataPricing.ts
View file @
8a330b2
...
...
@@ -3,7 +3,7 @@ import request from "@/utils/request";
//获取需求表树形列表
export
const
getDemandTreeList
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-demand-menu/page-list`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-demand-menu/page-list`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -12,7 +12,7 @@ export const getDemandTreeList = (params) => {
//获取所有需求表列表
export
const
getDemandAll
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-demand-menu/get-list-data`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-demand-menu/get-list-data`
,
method
:
"get"
,
params
});
...
...
@@ -21,7 +21,7 @@ export const getDemandAll = (params) => {
//新增需求列表
export
const
saveDemandTree
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-demand-menu/save`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-demand-menu/save`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -30,7 +30,7 @@ export const saveDemandTree = (params) => {
//修改需求列表
export
const
updateDemandTree
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-demand-menu/update`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-demand-menu/update`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -39,7 +39,7 @@ export const updateDemandTree = (params) => {
// 删除需求列表
export
const
deleteDemandTree
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-demand-menu/delete`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-demand-menu/delete`
,
method
:
"delete"
,
data
:
params
,
});
...
...
@@ -48,7 +48,7 @@ export const deleteDemandTree = (params) => {
//获取需求表
export
const
getDemandList
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-demand-table/page-list`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-demand-table/page-list`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -57,7 +57,7 @@ export const getDemandList = (params) => {
//获取需求表详情
export
const
getDemandDetail
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-demand-table/detail`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-demand-table/detail`
,
method
:
"get"
,
params
,
});
...
...
@@ -66,7 +66,7 @@ export const getDemandDetail = (params) => {
//新增需求表
export
const
saveDemand
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-demand-table/save`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-demand-table/save`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -75,7 +75,7 @@ export const saveDemand = (params) => {
//修改需求表
export
const
updateDemand
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-demand-table/update`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-demand-table/update`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -84,7 +84,7 @@ export const updateDemand = (params) => {
// 删除需求表
export
const
deleteDemand
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-demand-table/delete`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-demand-table/delete`
,
method
:
"delete"
,
data
:
params
,
});
...
...
@@ -93,7 +93,7 @@ export const deleteDemand = (params) => {
// 获取疾病列表
export
const
getDiseaseList
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/disease-manage/page-list`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/disease-manage/page-list`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -102,7 +102,7 @@ export const getDiseaseList = (params) => {
//获取所有疾病列表
export
const
getDiseaseAll
=
()
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/disease-manage/get-list-data`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/disease-manage/get-list-data`
,
method
:
"post"
});
};
...
...
@@ -110,7 +110,7 @@ export const getDiseaseAll = () => {
// 获取疾病详情
export
const
getDiseaseDetail
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/disease-manage/detail`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/disease-manage/detail`
,
method
:
"get"
,
params
,
});
...
...
@@ -119,7 +119,7 @@ export const getDiseaseDetail = (params) => {
// 新增疾病
export
const
saveDisease
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/disease-manage/save`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/disease-manage/save`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -128,7 +128,7 @@ export const saveDisease = (params) => {
// 修改疾病
export
const
updateDisease
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/disease-manage/update`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/disease-manage/update`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -137,7 +137,7 @@ export const updateDisease = (params) => {
// 删除疾病
export
const
deleteDisease
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/disease-manage/delete`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/disease-manage/delete`
,
method
:
"delete"
,
data
:
params
,
});
...
...
@@ -146,7 +146,7 @@ export const deleteDisease = (params) => {
// 获取定价配置
export
const
getConfigureList
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-configure/page-list`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-configure/page-list`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -155,7 +155,7 @@ export const getConfigureList = (params) => {
// 获取配置详情
export
const
getConfigureDetail
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-configure/detail`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-configure/detail`
,
method
:
"get"
,
params
,
});
...
...
@@ -164,7 +164,7 @@ export const getConfigureDetail = (params) => {
// 新增配置
export
const
saveConfigure
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-configure/save`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-configure/save`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -173,7 +173,7 @@ export const saveConfigure = (params) => {
// 修改配置
export
const
updateConfigure
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-configure/update`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-configure/update`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -182,7 +182,7 @@ export const updateConfigure = (params) => {
// 删除配置
export
const
deleteConfigure
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-configure/delete`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-configure/delete`
,
method
:
"delete"
,
data
:
params
,
});
...
...
@@ -191,7 +191,7 @@ export const deleteConfigure = (params) => {
// 获取数据定价
export
const
getPriceList
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-data/page-list`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-data/page-list`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -200,7 +200,7 @@ export const getPriceList = (params) => {
// 获取数据定价详情
export
const
getPriceDetail
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-data/detail`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-data/detail`
,
method
:
"get"
,
params
,
});
...
...
@@ -209,7 +209,7 @@ export const getPriceDetail = (params) => {
// 新增数据定价
export
const
savePrice
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-data/save`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-data/save`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -218,7 +218,7 @@ export const savePrice = (params) => {
// 修改数据定价
export
const
updatePrice
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-data/update`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-data/update`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -227,7 +227,7 @@ export const updatePrice = (params) => {
// 获取数据定价结果
export
const
getPriceResult
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-data/pricing-price`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-data/pricing-price`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -236,7 +236,7 @@ export const getPriceResult = (params) => {
// 删除数据定价
export
const
deletePrice
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-data/delete`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-data/delete`
,
method
:
"delete"
,
data
:
params
,
});
...
...
@@ -245,7 +245,7 @@ export const deletePrice = (params) => {
// 获取数据资源目录
export
const
getDamCatalogList
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/dam-catalog-grounding/not-exclude-overview-page-list`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/dam-catalog-grounding/not-exclude-overview-page-list`
,
method
:
"post"
,
data
:
params
,
});
...
...
@@ -254,7 +254,7 @@ export const getDamCatalogList = (params) => {
// 获取模型相关需求表
export
const
getModelDemand
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-data/pricing-model`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-data/pricing-model`
,
method
:
"get"
,
params
,
});
...
...
@@ -271,7 +271,7 @@ export const getModelScore = (params) => {
export
const
exportModelScore
=
(
params
)
=>
{
return
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_AP
P_PROCESS_BASIC_UR
L
}
/pricing-data/download-template`
,
url
:
`
${
import
.
meta
.
env
.
VITE_AP
I_NEW_PORTA
L
}
/pricing-data/download-template`
,
method
:
"post"
,
data
:
params
,
responseType
:
'blob'
...
...
src/views/data_pricing/calculateConfig.vue
View file @
8a330b2
...
...
@@ -6,8 +6,8 @@ import { ref, onMounted } from "vue";
import
{
useRouter
,
useRoute
}
from
"vue-router"
;
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
useUserStore
from
"@/store/modules/user"
;
import
useDataAssetStore
from
"@/store/modules/data
Resource
"
;
import
{
getAllFlowData
}
from
'@/api/modules/
config
Service'
;
import
useDataAssetStore
from
"@/store/modules/data
Asset
"
;
import
{
getAllFlowData
}
from
'@/api/modules/
query
Service'
;
import
{
getDamCatalogList
}
from
"@/api/modules/dataPricing"
;
import
{
getRegisterCatalogDetail
,
getDataResourceUpSummaryList
,
getRegisterCatalogTableDetail
}
from
"@/api/modules/dataResourceUpService"
;
import
{
download
}
from
'@/utils/common'
...
...
@@ -223,7 +223,7 @@ const getDataCatalog = () => {
}
// 获取数据资源主题
const
getSourceThem
=
(
dictType
,
fieldName
)
=>
{
return
getAllFlowData
(
dictType
).
then
((
res
:
any
)
=>
{
return
getAllFlowData
(
{
dictType
}
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
||
[];
typeMap
.
value
[
fieldName
]
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
...
...
@@ -236,7 +236,7 @@ const getSourceThem = (dictType, fieldName) => {
}
// 获取数据字典
const
getDataType
=
(
dictType
,
fieldName
)
=>
{
getAllFlowData
(
dictType
).
then
((
res
:
any
)
=>
{
getAllFlowData
(
{
dictType
}
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
||
[];
typeMap
.
value
[
fieldName
]
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
...
...
src/views/data_pricing/priceCalculate.vue
View file @
8a330b2
...
...
@@ -10,8 +10,8 @@ import { ElMessage, ElMessageBox } from "element-plus";
import
{
CirclePlus
}
from
"@element-plus/icons-vue"
;
import
{
useRouter
,
useRoute
}
from
"vue-router"
;
import
useUserStore
from
"@/store/modules/user"
;
import
useDataAssetStore
from
"@/store/modules/data
Resource
"
;
import
{
getAllFlowData
}
from
'@/api/modules/
config
Service'
;
import
useDataAssetStore
from
"@/store/modules/data
Asset
"
;
import
{
getAllFlowData
}
from
'@/api/modules/
query
Service'
;
import
{
changeNum
}
from
"@/utils/common"
;
import
{
getDiseaseAll
,
...
...
@@ -119,7 +119,7 @@ const getDiseaseData = () => {
// 获取数据字典
const
getDataType
=
(
dictType
,
fieldName
)
=>
{
getAllFlowData
(
dictType
).
then
((
res
:
any
)
=>
{
getAllFlowData
(
{
dictType
}
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
||
[];
typeMap
.
value
[
fieldName
]
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
...
...
src/views/data_pricing/priceConfig.vue
View file @
8a330b2
...
...
@@ -10,8 +10,8 @@ import { ElMessage, ElMessageBox } from "element-plus";
import
{
CirclePlus
}
from
"@element-plus/icons-vue"
;
import
{
useRouter
,
useRoute
}
from
"vue-router"
;
import
useUserStore
from
"@/store/modules/user"
;
import
useDataAssetStore
from
"@/store/modules/data
Resource
"
;
import
{
getAllFlowData
}
from
'@/api/modules/
config
Service'
;
import
useDataAssetStore
from
"@/store/modules/data
Asset
"
;
import
{
getAllFlowData
}
from
'@/api/modules/
query
Service'
;
import
{
getConfigureList
,
deleteConfigure
,
...
...
@@ -102,7 +102,7 @@ const filterVal = (val, name) => {
// 获取需求类型
const
getDataType
=
(
dictType
,
fieldName
)
=>
{
getAllFlowData
(
dictType
).
then
((
res
:
any
)
=>
{
getAllFlowData
(
{
dictType
}
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
||
[];
typeMap
.
value
[
fieldName
]
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
...
...
src/views/data_pricing/priceModel.vue
View file @
8a330b2
...
...
@@ -8,8 +8,8 @@ import { useRouter, useRoute } from "vue-router";
import
{
ElMessage
,
ElMessageBox
,
rowProps
}
from
"element-plus"
;
import
{
Plus
,
CirclePlus
,
Guide
}
from
"@element-plus/icons-vue"
;
import
useUserStore
from
"@/store/modules/user"
;
import
useDataAssetStore
from
"@/store/modules/data
Resource
"
;
import
{
getAllFlowData
}
from
'@/api/modules/
config
Service'
;
import
useDataAssetStore
from
"@/store/modules/data
Asset
"
;
import
{
getAllFlowData
}
from
'@/api/modules/
query
Service'
;
import
{
changeNum
}
from
"@/utils/common"
;
import
{
getDemandTreeList
,
...
...
@@ -580,8 +580,8 @@ const setTableField = (data) => {
}
const
getDictionaryRuleData
=
()
=>
{
const
dict
Row
:
any
=
typeMap
.
value
[
'dictionaryType'
].
find
(
item
=>
item
.
value
==
dictionaryType
.
value
)
;
getAllFlowData
(
dictRow
?.
label
).
then
((
res
:
any
)
=>
{
const
dict
Type
:
any
=
typeMap
.
value
[
'dictionaryType'
].
find
(
item
=>
item
.
value
==
dictionaryType
.
value
)?.
label
||
''
;
getAllFlowData
(
{
dictType
}
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
||
[];
setTableField
(
data
);
...
...
@@ -694,7 +694,7 @@ const promiseList = (...promises: Promise<void>[]) => {
// 获取数据字典
const
getDataType
=
(
dictType
,
fieldName
)
=>
{
return
getAllFlowData
(
dictType
).
then
((
res
:
any
)
=>
{
return
getAllFlowData
(
{
dictType
}
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
||
[];
if
(
fieldName
==
'computationalFormula'
)
{
...
...
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