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
41300066
authored
2024-12-17 15:04:59 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分类分级任务联调
1 parent
c01b7ea1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
166 additions
and
691 deletions
src/api/modules/dataInventory.ts
src/views/data_inventory/taskConfig.vue
src/views/data_inventory/taskEdit.vue
src/api/modules/dataInventory.ts
View file @
4130006
...
...
@@ -72,6 +72,17 @@ export const getClassifyGradList = (data) => request({
data
})
/**
* 分级列表详情
* @param {Object}
* @path /classify-grade/page-list
*/
export
const
getClassifyGradDetail
=
(
data
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/classify-grade/detail`
,
method
:
'get'
,
params
:
data
})
/**
* 分级新增
...
...
@@ -226,3 +237,89 @@ export const getCgDirFieldPageList = (data) => request({
method
:
'post'
,
data
})
// 分来分级任务-分页
export
const
getCgTaskPageList
=
(
data
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/cg-task/page-list`
,
method
:
'post'
,
data
})
// 分来分级任务-详情
export
const
getCgTaskDetail
=
(
data
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/cg-task/detail`
,
method
:
'get'
,
params
:
data
})
// 分来分级任务-新增
export
const
getCgTaskSave
=
(
data
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/cg-task/save`
,
method
:
'post'
,
data
})
// 分来分级任务-修改
export
const
getCgTaskUpdate
=
(
data
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/cg-task/update`
,
method
:
'put'
,
data
})
// 分来分级任务-删除
export
const
getCgTaskDelete
=
(
data
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/cg-task/delete`
,
method
:
'put'
,
data
})
// 标签规则-分页
export
const
getCgLabelPageList
=
(
data
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/cg-label/page-list`
,
method
:
'post'
,
data
})
// 元数据采集任务-分页
export
const
getMetaCollectTaskPageList
=
(
data
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_CHECK_BASEURL
}
/meta-collect-task/page-list`
,
method
:
'post'
,
data
})
export
const
filterVal
=
(
val
,
type
)
=>
{
let
status
=
'--'
;
if
(
type
==
'status'
){
switch
(
val
)
{
case
'N'
:
status
=
'未运行'
;
break
;
case
'Y'
:
status
=
'成功'
;
break
;
case
'E'
:
status
=
'失败'
;
break
;
case
'R'
:
status
=
'运行中'
;
break
;
default
:
status
=
'未运行'
;
break
;
}
}
else
if
(
type
==
'confirmStatus'
){
switch
(
val
)
{
case
'N'
:
status
=
'草稿中'
;
break
;
case
'Y'
:
status
=
'已确认'
;
break
;
default
:
status
=
'草稿中'
;
break
;
}
}
return
status
;
}
...
...
src/views/data_inventory/taskConfig.vue
View file @
4130006
...
...
@@ -9,7 +9,7 @@ import useUserStore from "@/store/modules/user";
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
useDataAssetStore
from
"@/store/modules/dataAsset"
;
import
{
getListingList
,
listingDelete
,
listingUpdateStatus
,
filterVal
,
getParamsDataList
}
from
"@/api/modules/dataProduct
"
;
import
{
filterVal
,
getCgTaskPageList
,
}
from
"@/api/modules/dataInventory
"
;
import
{
TableColumnWidth
}
from
'@/utils/enum'
;
import
Table
from
"@/components/Table/index.vue"
;
...
...
@@ -19,318 +19,6 @@ const router = useRouter();
const
userStore
=
useUserStore
();
const
userData
=
JSON
.
parse
(
userStore
.
userData
);
const
assetStore
=
useDataAssetStore
();
const
datas
=
[
{
"updateTime"
:
"2024-07-16 13:17:00"
,
"updateUserName"
:
"数往知来管理员"
,
"guid"
:
"4e0e76c48fa043d5b35d09f3ccc7c265"
,
"approvalGuid"
:
null
,
"standardSetGuid"
:
"58d1178a04904d599284fc1e61594c43"
,
"fieldStandardCode"
:
"COL202406070021"
,
"dataVersion"
:
1
,
"chName"
:
"地址"
,
"enName"
:
"address"
,
"dataTypeValue"
:
"字符型"
,
"dataTypeCode"
:
"varchar"
,
"dataDicGuid"
:
""
,
"dataDicName"
:
null
,
"isDataDic"
:
"N"
,
"fieldLength"
:
600
,
"fieldPrecision"
:
null
,
"dataState"
:
0
,
"approveState"
:
"N"
,
"dataCategory"
:
"合伙人"
,
"dataEncryptionLevel"
:
"界面加密"
,
"businessDefDesc"
:
"地址"
,
"flowFlag"
:
null
,
"flowCode"
:
null
,
"functionCode"
:
null
,
"createStaffGuid"
:
null
,
"createUserId"
:
"98df01b8d86c46f786dd10b4d0eb11dd"
,
"displayVersion"
:
"V1"
,
"standardSetName"
:
null
,
"ruleType"
:
null
},
{
"updateTime"
:
"2024-01-27 10:19:45"
,
"updateUserName"
:
"数往知来管理员"
,
"guid"
:
"bc630207357c466dbff7613ea38985cc"
,
"approvalGuid"
:
null
,
"standardSetGuid"
:
"58d1178a04904d599284fc1e61594c43"
,
"fieldStandardCode"
:
"COL202401260124"
,
"dataVersion"
:
1
,
"chName"
:
"包含最小销售包装单元数量"
,
"enName"
:
"inboxQuantity"
,
"dataTypeValue"
:
"整型"
,
"dataTypeCode"
:
"int"
,
"dataDicGuid"
:
null
,
"dataDicName"
:
null
,
"isDataDic"
:
null
,
"fieldLength"
:
null
,
"fieldPrecision"
:
null
,
"dataState"
:
1
,
"approveState"
:
"A"
,
"dataCategory"
:
null
,
"dataEncryptionLevel"
:
"明文显示"
,
"businessDefDesc"
:
"当前药品追溯码中包含的最小销售包装单元药品追溯码的数量,发货类型为03时可选"
,
"flowFlag"
:
null
,
"flowCode"
:
null
,
"functionCode"
:
null
,
"createStaffGuid"
:
null
,
"createUserId"
:
"98df01b8d86c46f786dd10b4d0eb11dd"
,
"displayVersion"
:
"V1"
,
"standardSetName"
:
null
,
"ruleType"
:
null
},
{
"updateTime"
:
"2024-01-27 11:03:59"
,
"updateUserName"
:
"审批人4"
,
"guid"
:
"420f2a68bd4441bf92010eadf698b685"
,
"approvalGuid"
:
null
,
"standardSetGuid"
:
"58d1178a04904d599284fc1e61594c43"
,
"fieldStandardCode"
:
"COL202401260122"
,
"dataVersion"
:
1
,
"chName"
:
"包装层级"
,
"enName"
:
"packageLevel"
,
"dataTypeValue"
:
"字符型"
,
"dataTypeCode"
:
"varchar"
,
"dataDicGuid"
:
null
,
"dataDicName"
:
null
,
"isDataDic"
:
null
,
"fieldLength"
:
200
,
"fieldPrecision"
:
null
,
"dataState"
:
1
,
"approveState"
:
"A"
,
"dataCategory"
:
null
,
"dataEncryptionLevel"
:
"明文显示"
,
"businessDefDesc"
:
"当前药品追溯码所处包装层级描述,发货类型为03时可选"
,
"flowFlag"
:
null
,
"flowCode"
:
null
,
"functionCode"
:
null
,
"createStaffGuid"
:
null
,
"createUserId"
:
"98df01b8d86c46f786dd10b4d0eb11dd"
,
"displayVersion"
:
"V1"
,
"standardSetName"
:
null
,
"ruleType"
:
null
},
{
"updateTime"
:
"2024-06-06 10:01:06"
,
"updateUserName"
:
"审批人1"
,
"guid"
:
"f841e1848ab94b1e81a0217a09a7a3d3"
,
"approvalGuid"
:
"b674bffe8d2f4132918016b6baaf75aa"
,
"standardSetGuid"
:
"58d1178a04904d599284fc1e61594c43"
,
"fieldStandardCode"
:
"COL202401260120"
,
"dataVersion"
:
1
,
"chName"
:
"上一级包装药品追溯码"
,
"enName"
:
"parentDTC"
,
"dataTypeValue"
:
"字符型"
,
"dataTypeCode"
:
"varchar"
,
"dataDicGuid"
:
""
,
"dataDicName"
:
null
,
"isDataDic"
:
"N"
,
"fieldLength"
:
200
,
"fieldPrecision"
:
null
,
"dataState"
:
1
,
"approveState"
:
"Y"
,
"dataCategory"
:
""
,
"dataEncryptionLevel"
:
"明文显示"
,
"businessDefDesc"
:
"当前药品追溯码大一级包装上的药品追溯码,发货类型为03时可选;当存在上一级包装时必选"
,
"flowFlag"
:
null
,
"flowCode"
:
null
,
"functionCode"
:
null
,
"createStaffGuid"
:
null
,
"createUserId"
:
"98df01b8d86c46f786dd10b4d0eb11dd"
,
"displayVersion"
:
"V1"
,
"standardSetName"
:
null
,
"ruleType"
:
null
},
{
"updateTime"
:
"2024-01-26 00:10:47"
,
"updateUserName"
:
"数往知来管理员"
,
"guid"
:
"d4d42dea2a5844b4a7f9238806ea507b"
,
"approvalGuid"
:
null
,
"standardSetGuid"
:
"58d1178a04904d599284fc1e61594c43"
,
"fieldStandardCode"
:
"COL202401260118"
,
"dataVersion"
:
1
,
"chName"
:
"药品追溯码"
,
"enName"
:
"DTC"
,
"dataTypeValue"
:
"字符型"
,
"dataTypeCode"
:
"varchar"
,
"dataDicGuid"
:
null
,
"dataDicName"
:
null
,
"isDataDic"
:
null
,
"fieldLength"
:
200
,
"fieldPrecision"
:
null
,
"dataState"
:
0
,
"approveState"
:
"N"
,
"dataCategory"
:
null
,
"dataEncryptionLevel"
:
"明文显示"
,
"businessDefDesc"
:
"用于唯一标识药品各级销售包装单元的代码,发货类型为03时可选"
,
"flowFlag"
:
null
,
"flowCode"
:
null
,
"functionCode"
:
null
,
"createStaffGuid"
:
null
,
"createUserId"
:
"98df01b8d86c46f786dd10b4d0eb11dd"
,
"displayVersion"
:
"V1"
,
"standardSetName"
:
null
,
"ruleType"
:
null
},
{
"updateTime"
:
"2024-01-26 00:10:47"
,
"updateUserName"
:
"数往知来管理员"
,
"guid"
:
"ff9d0e4f6fbb444c8dcf6f67bffcb659"
,
"approvalGuid"
:
null
,
"standardSetGuid"
:
"58d1178a04904d599284fc1e61594c43"
,
"fieldStandardCode"
:
"COL202401260116"
,
"dataVersion"
:
1
,
"chName"
:
"发货数量"
,
"enName"
:
"deliveryQuantity"
,
"dataTypeValue"
:
"整型"
,
"dataTypeCode"
:
"int"
,
"dataDicGuid"
:
null
,
"dataDicName"
:
null
,
"isDataDic"
:
null
,
"fieldLength"
:
null
,
"fieldPrecision"
:
null
,
"dataState"
:
0
,
"approveState"
:
"N"
,
"dataCategory"
:
null
,
"dataEncryptionLevel"
:
"明文显示"
,
"businessDefDesc"
:
"发货的最小销售包装单元数量"
,
"flowFlag"
:
null
,
"flowCode"
:
null
,
"functionCode"
:
null
,
"createStaffGuid"
:
null
,
"createUserId"
:
"98df01b8d86c46f786dd10b4d0eb11dd"
,
"displayVersion"
:
"V1"
,
"standardSetName"
:
null
,
"ruleType"
:
null
},
{
"updateTime"
:
"2024-01-26 00:10:46"
,
"updateUserName"
:
"数往知来管理员"
,
"guid"
:
"fe88ac9e8d9c4f148833dbb3976fca77"
,
"approvalGuid"
:
null
,
"standardSetGuid"
:
"58d1178a04904d599284fc1e61594c43"
,
"fieldStandardCode"
:
"COL202401260114"
,
"dataVersion"
:
1
,
"chName"
:
"药品生产批号"
,
"enName"
:
"batch"
,
"dataTypeValue"
:
"字符型"
,
"dataTypeCode"
:
"varchar"
,
"dataDicGuid"
:
null
,
"dataDicName"
:
null
,
"isDataDic"
:
null
,
"fieldLength"
:
20
,
"fieldPrecision"
:
null
,
"dataState"
:
0
,
"approveState"
:
"N"
,
"dataCategory"
:
null
,
"dataEncryptionLevel"
:
"明文显示"
,
"businessDefDesc"
:
"药品包装上标示的生产批号"
,
"flowFlag"
:
null
,
"flowCode"
:
null
,
"functionCode"
:
null
,
"createStaffGuid"
:
null
,
"createUserId"
:
"98df01b8d86c46f786dd10b4d0eb11dd"
,
"displayVersion"
:
"V1"
,
"standardSetName"
:
null
,
"ruleType"
:
null
},
{
"updateTime"
:
"2024-01-26 00:10:45"
,
"updateUserName"
:
"数往知来管理员"
,
"guid"
:
"9759837e0d72472ab7441c1873c9159a"
,
"approvalGuid"
:
null
,
"standardSetGuid"
:
"58d1178a04904d599284fc1e61594c43"
,
"fieldStandardCode"
:
"COL202401260112"
,
"dataVersion"
:
1
,
"chName"
:
"药品有效期截止日期"
,
"enName"
:
"expirationDate"
,
"dataTypeValue"
:
"日期型"
,
"dataTypeCode"
:
"date"
,
"dataDicGuid"
:
null
,
"dataDicName"
:
null
,
"isDataDic"
:
null
,
"fieldLength"
:
null
,
"fieldPrecision"
:
null
,
"dataState"
:
0
,
"approveState"
:
"N"
,
"dataCategory"
:
null
,
"dataEncryptionLevel"
:
"明文显示"
,
"businessDefDesc"
:
"药品有效期的截止日期"
,
"flowFlag"
:
null
,
"flowCode"
:
null
,
"functionCode"
:
null
,
"createStaffGuid"
:
null
,
"createUserId"
:
"98df01b8d86c46f786dd10b4d0eb11dd"
,
"displayVersion"
:
"V1"
,
"standardSetName"
:
null
,
"ruleType"
:
null
},
{
"updateTime"
:
"2024-01-26 00:10:45"
,
"updateUserName"
:
"数往知来管理员"
,
"guid"
:
"a39ed6123c6a420d9d1265315e714f86"
,
"approvalGuid"
:
null
,
"standardSetGuid"
:
"58d1178a04904d599284fc1e61594c43"
,
"fieldStandardCode"
:
"COL202401260110"
,
"dataVersion"
:
1
,
"chName"
:
"药品生产日期"
,
"enName"
:
"productionDate"
,
"dataTypeValue"
:
"日期型"
,
"dataTypeCode"
:
"date"
,
"dataDicGuid"
:
null
,
"dataDicName"
:
null
,
"isDataDic"
:
null
,
"fieldLength"
:
null
,
"fieldPrecision"
:
null
,
"dataState"
:
0
,
"approveState"
:
"N"
,
"dataCategory"
:
null
,
"dataEncryptionLevel"
:
"明文显示"
,
"businessDefDesc"
:
"药品包装上标示的生产日期"
,
"flowFlag"
:
null
,
"flowCode"
:
null
,
"functionCode"
:
null
,
"createStaffGuid"
:
null
,
"createUserId"
:
"98df01b8d86c46f786dd10b4d0eb11dd"
,
"displayVersion"
:
"V1"
,
"standardSetName"
:
null
,
"ruleType"
:
null
},
{
"updateTime"
:
"2024-01-26 00:10:45"
,
"updateUserName"
:
"数往知来管理员"
,
"guid"
:
"ea597c1b8bb24a5ab053a80b084de98c"
,
"approvalGuid"
:
null
,
"standardSetGuid"
:
"58d1178a04904d599284fc1e61594c43"
,
"fieldStandardCode"
:
"COL202401260108"
,
"dataVersion"
:
1
,
"chName"
:
"统一社会信用代码(进口药品代理企业)"
,
"enName"
:
"drugImporterUSCID"
,
"dataTypeValue"
:
"字符型"
,
"dataTypeCode"
:
"varchar"
,
"dataDicGuid"
:
null
,
"dataDicName"
:
null
,
"isDataDic"
:
null
,
"fieldLength"
:
18
,
"fieldPrecision"
:
null
,
"dataState"
:
0
,
"approveState"
:
"N"
,
"dataCategory"
:
null
,
"dataEncryptionLevel"
:
"明文显示"
,
"businessDefDesc"
:
"进口药品代理企业的统一社会信用代码,进口药品必选;没有统一社会信用代码时使用组织机构代码"
,
"flowFlag"
:
null
,
"flowCode"
:
null
,
"functionCode"
:
null
,
"createStaffGuid"
:
null
,
"createUserId"
:
"98df01b8d86c46f786dd10b4d0eb11dd"
,
"displayVersion"
:
"V1"
,
"standardSetName"
:
null
,
"ruleType"
:
null
}
]
const
page
=
ref
({
limit
:
50
,
...
...
@@ -358,26 +46,25 @@ const tableInfo = ref({
});
}
},
{
label
:
"分类分级模板"
,
field
:
"cgTemplateName"
,
width
:
200
},
{
label
:
"元数据"
,
field
:
"metaNames"
,
width
:
200
},
{
label
:
"执行状态"
,
field
:
"status"
,
width
:
TableColumnWidth
.
STATE
,
align
:
'center'
,
type
:
"tag"
,
getName
:
(
scope
)
=>
{
return
filterVal
(
scope
.
row
.
status
,
'status'
);
}
},
{
label
:
"任务修改人"
,
field
:
"
dataCategory
"
,
width
:
120
},
{
label
:
"任务修改人"
,
field
:
"
updateUserName
"
,
width
:
120
},
{
label
:
"修改时间"
,
field
:
"updateTime"
,
width
:
TableColumnWidth
.
DATETIME
},
{
label
:
"确认次数"
,
field
:
"
fieldLength
"
,
width
:
96
,
align
:
'right'
},
{
label
:
"结果确认人"
,
field
:
"
update
UserName"
,
width
:
120
},
{
label
:
"确认时间"
,
field
:
"
update
Time"
,
width
:
TableColumnWidth
.
DATETIME
},
{
label
:
"确认次数"
,
field
:
"
confirmCnt
"
,
width
:
96
,
align
:
'right'
},
{
label
:
"结果确认人"
,
field
:
"
confirm
UserName"
,
width
:
120
},
{
label
:
"确认时间"
,
field
:
"
confirm
Time"
,
width
:
TableColumnWidth
.
DATETIME
},
{
label
:
"结果状态"
,
field
:
"
approveState
"
,
width
:
TableColumnWidth
.
STATE
,
align
:
'center'
,
type
:
"tag"
,
getName
:
(
scope
)
=>
{
return
filterVal
(
scope
.
row
.
approveState
,
'approveState
'
);
label
:
"结果状态"
,
field
:
"
confirmStatus
"
,
width
:
TableColumnWidth
.
STATE
,
align
:
'center'
,
type
:
"tag"
,
getName
:
(
scope
)
=>
{
return
filterVal
(
scope
.
row
.
confirmStatus
,
'confirmStatus
'
);
}
},
],
loading
:
false
,
data
:
datas
||
[],
data
:
[],
page
:
{
type
:
"normal"
,
rows
:
0
,
...
...
@@ -386,28 +73,20 @@ const tableInfo = ref({
actionInfo
:
{
label
:
"操作"
,
type
:
"btn"
,
width
:
2
8
0
,
width
:
2
2
0
,
btns
:
(
scope
)
=>
{
let
row
=
scope
.
row
,
btnArr
:
any
=
[
{
label
:
"结果确认"
,
value
:
"confirm"
},
{
label
:
"结果修改"
,
value
:
"modify"
},
{
label
:
"编辑"
,
value
:
"edit"
},
{
label
:
"日志"
,
value
:
"log"
},
{
label
:
"删除"
,
value
:
"delete"
}
];
// if (row.approveState == 'Y') {
// if (row.listingStatus == 'Y') {
// btnArr.splice(0, 0, { label: "详情", value: "detail" });
// } else {
// btnArr.splice(0, 0, { label: "编辑", value: "edit" }, { label: "详情", value: "detail" }, { label: "删除", value: "delete" });
// }
// } else {
// if (row.approveState == 'A') {
// btnArr.splice(0, 0, { label: "详情", value: "detail" });
// } else {
// btnArr.splice(0, 0, { label: "编辑", value: "edit" }, { label: "详情", value: "detail" }, { label: "删除", value: "delete" });
// }
// }
if
(
row
.
status
==
'Y'
)
{
if
(
row
.
confirmStatus
==
'Y'
)
{
btnArr
.
splice
(
0
,
0
,
{
label
:
"结果修改"
,
value
:
"modify"
});
}
else
{
btnArr
.
splice
(
0
,
0
,
{
label
:
"结果确认"
,
value
:
"confirm"
});
}
}
return
btnArr
;
},
},
...
...
@@ -415,7 +94,7 @@ const tableInfo = ref({
const
getTableData
=
()
=>
{
tableInfo
.
value
.
loading
=
true
;
get
Listing
List
(
get
CgTaskPage
List
(
Object
.
assign
({},
searchItemValue
.
value
,
{
pageIndex
:
page
.
value
.
curr
,
pageSize
:
page
.
value
.
limit
,
...
...
@@ -521,15 +200,15 @@ const getFirstPageData = () => {
getTableData
();
}
onActivated
(()
=>
{
if
(
assetStore
.
isRefresh
)
{
//如果是首次加载,则不需要调用
getFirstPageData
();
assetStore
.
set
(
false
);
}
})
//
onActivated(() => {
//
if (assetStore.isRefresh) {//如果是首次加载,则不需要调用
//
getFirstPageData();
//
assetStore.set(false);
//
}
//
})
onBeforeMount
(()
=>
{
getFirstPageData
()
})
</
script
>
...
...
src/views/data_inventory/taskEdit.vue
View file @
4130006
...
...
@@ -9,7 +9,7 @@ import useUserStore from "@/store/modules/user";
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
{
Search
}
from
"@element-plus/icons-vue"
;
import
useDataAssetStore
from
"@/store/modules/dataAsset"
;
import
{
get
ListingList
,
listingDelete
,
listingUpdateStatus
,
filterVal
,
getParamsDataList
}
from
"@/api/modules/dataProduct
"
;
import
{
get
ClassifyGradList
,
getClassifyTreeList
,
getCgLabelPageList
,
filterVal
}
from
"@/api/modules/dataInventory
"
;
import
{
TableColumnWidth
}
from
'@/utils/enum'
;
import
Table
from
"@/components/Table/index.vue"
;
...
...
@@ -20,290 +20,6 @@ const userStore = useUserStore();
const
userData
=
JSON
.
parse
(
userStore
.
userData
);
const
assetStore
=
useDataAssetStore
();
const
data1
=
[
{
"children"
:
[
{
"children"
:
null
,
"parentGuids"
:
[
"c32ddd77191ff4afe149538ef4b2e0c3"
],
"guid"
:
"9c92df55a19cdce88f61e20a8e1e8a65"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
"11150001"
,
"organisationName"
:
"链享供应链运营一部"
,
"bizState"
:
"Y"
,
"createTime"
:
"2023-10-25 14:23:31"
,
"createUserName"
:
"测试"
,
"parentGuid"
:
"c32ddd77191ff4afe149538ef4b2e0c3"
,
"orderNum"
:
1
,
"level"
:
2
,
"levelCode"
:
"1.1"
,
"displayCreateTime"
:
"2023-10-25 14:23:31"
}
],
"parentGuids"
:
null
,
"guid"
:
"c32ddd77191ff4afe149538ef4b2e0c3"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
"1115004"
,
"organisationName"
:
"链享供应链"
,
"bizState"
:
"Y"
,
"createTime"
:
"2023-08-15 12:59:10"
,
"createUserName"
:
"测试"
,
"parentGuid"
:
""
,
"orderNum"
:
2
,
"level"
:
0
,
"levelCode"
:
"1"
,
"displayCreateTime"
:
"2023-08-15 12:59:10"
},
{
"children"
:
[
{
"children"
:
[
{
"children"
:
null
,
"parentGuids"
:
[
"e10332122834077907cd5ea61fa576c1"
,
"cdae7bb3cafb560482cad1b89a1e4b78"
],
"guid"
:
"16ea472a155c07433a63220f2ae1afe9"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
"11160011"
,
"organisationName"
:
"链享运营一部1组"
,
"bizState"
:
"S"
,
"createTime"
:
"2023-10-25 13:15:57"
,
"createUserName"
:
"测试"
,
"parentGuid"
:
"cdae7bb3cafb560482cad1b89a1e4b78"
,
"orderNum"
:
1
,
"level"
:
2
,
"levelCode"
:
"2.1.1"
,
"displayCreateTime"
:
"2023-10-25 13:15:57"
}
],
"parentGuids"
:
[
"e10332122834077907cd5ea61fa576c1"
],
"guid"
:
"cdae7bb3cafb560482cad1b89a1e4b78"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
"1116001"
,
"organisationName"
:
"链享运营一部"
,
"bizState"
:
"S"
,
"createTime"
:
"2023-10-25 13:14:15"
,
"createUserName"
:
"测试"
,
"parentGuid"
:
"e10332122834077907cd5ea61fa576c1"
,
"orderNum"
:
1
,
"level"
:
1
,
"levelCode"
:
"2.1"
,
"displayCreateTime"
:
"2023-10-25 13:14:15"
},
{
"children"
:
null
,
"parentGuids"
:
[
"e10332122834077907cd5ea61fa576c1"
],
"guid"
:
"d98b44ffb35e4d17cf68f9a922e1c7b7"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
null
,
"organisationName"
:
"二部"
,
"bizState"
:
"Y"
,
"createTime"
:
"2023-10-26 09:45:36"
,
"createUserName"
:
"测试"
,
"parentGuid"
:
"e10332122834077907cd5ea61fa576c1"
,
"orderNum"
:
2
,
"level"
:
1
,
"levelCode"
:
"2.2"
,
"displayCreateTime"
:
"2023-10-26 09:45:36"
}
],
"parentGuids"
:
null
,
"guid"
:
"e10332122834077907cd5ea61fa576c1"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
"1115005"
,
"organisationName"
:
"链享医药"
,
"bizState"
:
"Y"
,
"createTime"
:
"2023-09-12 15:59:35"
,
"createUserName"
:
"测试"
,
"parentGuid"
:
null
,
"orderNum"
:
3
,
"level"
:
0
,
"levelCode"
:
"2"
,
"displayCreateTime"
:
"2023-09-12 15:59:35"
},
{
"children"
:
[
{
"children"
:
null
,
"parentGuids"
:
[
"9bd46f0f4fcf429518fae6ecb4849a9e"
],
"guid"
:
"870f23ae47e036eb88b35f726c31959b"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
null
,
"organisationName"
:
"运用三部"
,
"bizState"
:
"Y"
,
"createTime"
:
"2024-04-28 16:33:24"
,
"createUserName"
:
"数往知来管理员"
,
"parentGuid"
:
"9bd46f0f4fcf429518fae6ecb4849a9e"
,
"orderNum"
:
3
,
"level"
:
1
,
"levelCode"
:
"3.3"
,
"displayCreateTime"
:
"2024-04-28 16:33:24"
},
{
"children"
:
null
,
"parentGuids"
:
[
"9bd46f0f4fcf429518fae6ecb4849a9e"
],
"guid"
:
"e06049046241dd71b153f227dbe7f801"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
null
,
"organisationName"
:
"运营二部"
,
"bizState"
:
"Y"
,
"createTime"
:
"2023-11-14 16:01:50"
,
"createUserName"
:
"数往知来管理员"
,
"parentGuid"
:
"9bd46f0f4fcf429518fae6ecb4849a9e"
,
"orderNum"
:
40
,
"level"
:
1
,
"levelCode"
:
"3.2"
,
"displayCreateTime"
:
"2023-11-14 16:01:50"
},
{
"children"
:
null
,
"parentGuids"
:
[
"9bd46f0f4fcf429518fae6ecb4849a9e"
],
"guid"
:
"731cd185c868da8af48b492068ffaed4"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
null
,
"organisationName"
:
"运营一部"
,
"bizState"
:
"Y"
,
"createTime"
:
"2023-11-14 15:19:35"
,
"createUserName"
:
"测试"
,
"parentGuid"
:
"9bd46f0f4fcf429518fae6ecb4849a9e"
,
"orderNum"
:
41
,
"level"
:
1
,
"levelCode"
:
"3.1"
,
"displayCreateTime"
:
"2023-11-14 15:19:35"
}
],
"parentGuids"
:
null
,
"guid"
:
"9bd46f0f4fcf429518fae6ecb4849a9e"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
null
,
"organisationName"
:
"药企服务事业部1"
,
"bizState"
:
"Y"
,
"createTime"
:
"2023-11-14 14:49:14"
,
"createUserName"
:
"数往知来管理员"
,
"parentGuid"
:
""
,
"orderNum"
:
4
,
"level"
:
0
,
"levelCode"
:
"3"
,
"displayCreateTime"
:
"2023-11-14 14:49:14"
},
{
"children"
:
[
{
"children"
:
null
,
"parentGuids"
:
[
"23be149ea3167a3f7f2d383023336efe"
],
"guid"
:
"e5f2b4958ee2d99309a41e0c6e1447c8"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
null
,
"organisationName"
:
"智能存储装备部"
,
"bizState"
:
"Y"
,
"createTime"
:
"2023-11-14 16:09:36"
,
"createUserName"
:
"数往知来管理员"
,
"parentGuid"
:
"23be149ea3167a3f7f2d383023336efe"
,
"orderNum"
:
51
,
"level"
:
1
,
"levelCode"
:
"4.1"
,
"displayCreateTime"
:
"2023-11-14 16:09:36"
}
],
"parentGuids"
:
null
,
"guid"
:
"23be149ea3167a3f7f2d383023336efe"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
null
,
"organisationName"
:
"医药物联网事业部"
,
"bizState"
:
"Y"
,
"createTime"
:
"2023-11-14 15:11:35"
,
"createUserName"
:
"数往知来管理员"
,
"parentGuid"
:
""
,
"orderNum"
:
5
,
"level"
:
0
,
"levelCode"
:
"4"
,
"displayCreateTime"
:
"2023-11-14 15:11:35"
},
{
"children"
:
null
,
"parentGuids"
:
null
,
"guid"
:
"1d82e875163749ca9ae45809ec432ae8"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
null
,
"organisationName"
:
"财务管理中心"
,
"bizState"
:
"S"
,
"createTime"
:
"2023-11-14 15:14:07"
,
"createUserName"
:
"数往知来管理员"
,
"parentGuid"
:
""
,
"orderNum"
:
6
,
"level"
:
0
,
"levelCode"
:
"6"
,
"displayCreateTime"
:
"2023-11-14 15:14:07"
},
{
"children"
:
null
,
"parentGuids"
:
null
,
"guid"
:
"cd9e6a0c76102364a9e88b79b28b0b32"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
null
,
"organisationName"
:
"资产服务"
,
"bizState"
:
"Y"
,
"createTime"
:
"2024-08-14 11:40:33"
,
"createUserName"
:
"数往知来管理员"
,
"parentGuid"
:
""
,
"orderNum"
:
7
,
"level"
:
0
,
"levelCode"
:
"9"
,
"displayCreateTime"
:
"2024-08-14 11:40:33"
},
{
"children"
:
[
{
"children"
:
null
,
"parentGuids"
:
[
"dac448b77fa35f798bb4a06d8fd86334"
],
"guid"
:
"cb76777efe69182cfb2c75d41944553c"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
null
,
"organisationName"
:
"审批1"
,
"bizState"
:
"Y"
,
"createTime"
:
"2024-01-17 14:28:36"
,
"createUserName"
:
"数往知来管理员"
,
"parentGuid"
:
"dac448b77fa35f798bb4a06d8fd86334"
,
"orderNum"
:
100
,
"level"
:
1
,
"levelCode"
:
"8.1"
,
"displayCreateTime"
:
"2024-01-17 14:28:36"
}
],
"parentGuids"
:
null
,
"guid"
:
"dac448b77fa35f798bb4a06d8fd86334"
,
"tenantGuid"
:
"9e5b9d7bfd8c4f4f8079e05de19bf7e0"
,
"organisationCode"
:
null
,
"organisationName"
:
"审批组织"
,
"bizState"
:
"Y"
,
"createTime"
:
"2024-01-16 11:38:24"
,
"createUserName"
:
"数往知来管理员"
,
"parentGuid"
:
""
,
"orderNum"
:
99
,
"level"
:
0
,
"levelCode"
:
"8"
,
"displayCreateTime"
:
"2024-01-16 11:38:24"
}
]
const
step
=
ref
(
0
);
const
selectIndex
=
ref
(
0
);
const
asideSearchInput
=
ref
(
""
);
...
...
@@ -314,30 +30,7 @@ const listPage = ref({
curr
:
1
,
totalPages
:
0
})
const
currpermissionList
:
any
=
ref
([
{
"guid"
:
"62d01ad586774db2bb3955dfb2d18366"
,
"productGuid"
:
null
,
"productName"
:
null
,
"dataPermissionName"
:
"当前用户"
,
"bizState"
:
"Y"
,
"createUserName"
:
"数往知来管理员"
,
"createTime"
:
"2024-01-24 14:08:43"
,
"sqlScript"
:
null
,
"dataSourceGuid"
:
null
},
{
"guid"
:
"d68a27c1998540a2b8e8f22a2d5eebef"
,
"productGuid"
:
null
,
"productName"
:
null
,
"dataPermissionName"
:
"组织权限"
,
"bizState"
:
"Y"
,
"createUserName"
:
"数往知来管理员"
,
"createTime"
:
"2024-01-24 11:47:02"
,
"sqlScript"
:
null
,
"dataSourceGuid"
:
null
}
])
const
currpermissionList
:
any
=
ref
([])
const
templateInfo
=
ref
({
title
:
'医疗数据分类'
,
descGroup
:
[
...
...
@@ -365,7 +58,7 @@ const treeInfo = ref({
nodeKey
:
'guid'
,
expandedKey
:
[],
expandOnNodeClick
:
false
,
data
:
data1
||
[],
data
:
[],
});
const
expand1
=
ref
(
true
)
...
...
@@ -578,24 +271,36 @@ const getPermissionList = (val, init = false) => {
let
params
:
any
=
val
?
{
...
val
}
:
{}
params
.
pageIndex
=
listPage
.
value
.
curr
;
params
.
pageSize
=
listPage
.
value
.
limit
;
params
.
type
=
'C'
;
listLoading
.
value
=
true
// getPermissionDictList(params).then((res: any) => {
// if (res.code == proxy.$passCode) {
// const data = res.data?.records || []
// if (init) {
// permissionList.value = JSON.parse(JSON.stringify(data))
// currpermissionList.value = JSON.parse(JSON.stringify(data))
// listPage.value.totalPages = res.data.totalPages
// toSearch({})
// } else {
// permissionList.value.push(...JSON.parse(JSON.stringify(data)))
// querySearch(asideSearchInput.value)
// }
// }
// listLoading.value = false
// }).catch(() => {
// listLoading.value = false
// })
getClassifyGradList
(
params
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
?.
records
||
[]
if
(
init
)
{
permissionList
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
currpermissionList
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
listPage
.
value
.
totalPages
=
res
.
data
.
totalPages
}
else
{
permissionList
.
value
.
push
(...
JSON
.
parse
(
JSON
.
stringify
(
data
)))
querySearch
(
asideSearchInput
.
value
)
}
if
(
data
.
length
)
{
templateInfo
.
value
=
data
[
0
];
}
}
listLoading
.
value
=
false
}).
catch
(()
=>
{
listLoading
.
value
=
false
})
}
const
getClassifyTree
=
(
data
)
=>
{
const
params
=
{
guid
:
data
.
guid
}
getClassifyTreeList
(
params
).
then
((
res
:
any
)
=>
{
})
}
onActivated
(()
=>
{
...
...
@@ -603,7 +308,7 @@ onActivated(() => {
})
onBeforeMount
(()
=>
{
getPermissionList
({})
})
</
script
>
...
...
@@ -618,38 +323,30 @@ onBeforeMount(() => {
</div>
<div
class=
"aside_list"
v-loading=
"listLoading"
v-infinite-scroll=
"handleScroll"
>
<div
class=
"list_item"
v-for=
"(item, i) in currpermissionList"
:class=
"
{ active: selectIndex == i }"
@click="selectIndex = i; changTable();" v-preReClick>
{{
item
.
dataPermissionN
ame
}}
</div>
@click="selectIndex = i; changTable();" v-preReClick>
{{
item
.
n
ame
}}
</div>
</div>
</div>
<div
class=
"main_wrap"
:class=
"
{ full: step == 1 }">
<div
class=
"content_main"
v-show=
"step == 0"
>
<div
class=
"template_panel"
>
<div
class=
"panel_title"
>
<span
class=
"title_text"
>
{{
templateInfo
.
title
}}
</span>
<div
class=
"title_desc"
>
<div
class=
"desc_group"
v-for=
"desc in templateInfo.descGroup"
>
<span
class=
"desc_label"
>
{{
desc
.
label
}}
:
</span>
<span
class=
"desc_value"
>
{{
desc
.
value
}}
</span>
</div>
<div
class=
"title_item"
>
<span
class=
"title_label"
>
分类标准:
</span>
<span
class=
"title_text"
>
{{
templateInfo
.
name
}}
</span>
</div>
<div
class=
"title_item"
>
<span
class=
"title_label"
>
分级标准:
</span>
<span
class=
"title_text"
>
{{
templateInfo
.
name
}}
</span>
</div>
<div
class=
"panel_tags"
>
<el-tag
v-for=
"tag in templateInfo.tags"
:type=
"tag.type"
>
{{
tag
.
name
}}
</el-tag>
<div
class=
"title_item is_block"
>
<span
class=
"title_label"
>
分级标准:
</span>
<span>
{{
templateInfo
.
desc
}}
</span>
</div>
<p
class=
"panel_desc"
>
{{
templateInfo
.
desc
}}
</p>
</div>
<div
class=
"panel_content"
>
<div
class=
"box_left"
>
<div
class=
"aside_title"
>
分类分级目录
</div>
<Tree
:treeInfo=
"treeInfo"
@
nodeClick=
"nodeClick"
/>
</div>
<div
class=
"box_right"
>
<el-breadcrumb
separator=
"/"
>
<el-breadcrumb-item>
全部
</el-breadcrumb-item>
<el-breadcrumb-item>
promotion management
</el-breadcrumb-item>
<el-breadcrumb-item>
promotion list
</el-breadcrumb-item>
<el-breadcrumb-item>
promotion detail
</el-breadcrumb-item>
</el-breadcrumb>
<div
class=
"table_panel_wrap"
>
<Table
:tableInfo=
"tableInfo"
@
tableBtnClick=
"tableBtnClick"
@
tablePageChange=
"tablePageChange"
/>
</div>
...
...
@@ -794,6 +491,7 @@ onBeforeMount(() => {
.box_left
{
width
:
240px
;
height
:
100%
;
padding
:
12px
0
;
border-right
:
1px
solid
#d9d9d9
;
.aside_title
{
...
...
@@ -812,6 +510,7 @@ onBeforeMount(() => {
.box_right
{
width
:
100%
;
padding
:
12px
0
;
.el-breadcrumb
{
padding
:
0
12px
;
...
...
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