分类分级任务联调
Showing
3 changed files
with
167 additions
and
692 deletions
| ... | @@ -72,6 +72,17 @@ export const getClassifyGradList = (data) => request({ | ... | @@ -72,6 +72,17 @@ export const getClassifyGradList = (data) => request({ |
| 72 | data | 72 | data |
| 73 | }) | 73 | }) |
| 74 | 74 | ||
| 75 | /** | ||
| 76 | * 分级列表详情 | ||
| 77 | * @param {Object} | ||
| 78 | * @path /classify-grade/page-list | ||
| 79 | */ | ||
| 80 | |||
| 81 | export const getClassifyGradDetail = (data) => request({ | ||
| 82 | url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/classify-grade/detail`, | ||
| 83 | method: 'get', | ||
| 84 | params: data | ||
| 85 | }) | ||
| 75 | 86 | ||
| 76 | /** | 87 | /** |
| 77 | * 分级新增 | 88 | * 分级新增 |
| ... | @@ -226,3 +237,89 @@ export const getCgDirFieldPageList = (data) => request({ | ... | @@ -226,3 +237,89 @@ export const getCgDirFieldPageList = (data) => request({ |
| 226 | method: 'post', | 237 | method: 'post', |
| 227 | data | 238 | data |
| 228 | }) | 239 | }) |
| 240 | |||
| 241 | |||
| 242 | // 分来分级任务-分页 | ||
| 243 | export const getCgTaskPageList = (data) => request({ | ||
| 244 | url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/cg-task/page-list`, | ||
| 245 | method: 'post', | ||
| 246 | data | ||
| 247 | }) | ||
| 248 | |||
| 249 | // 分来分级任务-详情 | ||
| 250 | export const getCgTaskDetail = (data) => request({ | ||
| 251 | url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/cg-task/detail`, | ||
| 252 | method: 'get', | ||
| 253 | params: data | ||
| 254 | }) | ||
| 255 | |||
| 256 | // 分来分级任务-新增 | ||
| 257 | export const getCgTaskSave = (data) => request({ | ||
| 258 | url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/cg-task/save`, | ||
| 259 | method: 'post', | ||
| 260 | data | ||
| 261 | }) | ||
| 262 | |||
| 263 | // 分来分级任务-修改 | ||
| 264 | export const getCgTaskUpdate = (data) => request({ | ||
| 265 | url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/cg-task/update`, | ||
| 266 | method: 'put', | ||
| 267 | data | ||
| 268 | }) | ||
| 269 | |||
| 270 | // 分来分级任务-删除 | ||
| 271 | export const getCgTaskDelete = (data) => request({ | ||
| 272 | url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/cg-task/delete`, | ||
| 273 | method: 'put', | ||
| 274 | data | ||
| 275 | }) | ||
| 276 | |||
| 277 | // 标签规则-分页 | ||
| 278 | export const getCgLabelPageList = (data) => request({ | ||
| 279 | url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/cg-label/page-list`, | ||
| 280 | method: 'post', | ||
| 281 | data | ||
| 282 | }) | ||
| 283 | |||
| 284 | // 元数据采集任务-分页 | ||
| 285 | export const getMetaCollectTaskPageList = (data) => request({ | ||
| 286 | url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/meta-collect-task/page-list`, | ||
| 287 | method: 'post', | ||
| 288 | data | ||
| 289 | }) | ||
| 290 | |||
| 291 | export const filterVal = (val, type) => { | ||
| 292 | let status = '--'; | ||
| 293 | if(type == 'status'){ | ||
| 294 | switch (val) { | ||
| 295 | case 'N': | ||
| 296 | status = '未运行'; | ||
| 297 | break; | ||
| 298 | case 'Y': | ||
| 299 | status = '成功'; | ||
| 300 | break; | ||
| 301 | case 'E': | ||
| 302 | status = '失败'; | ||
| 303 | break; | ||
| 304 | case 'R': | ||
| 305 | status = '运行中'; | ||
| 306 | break; | ||
| 307 | default: | ||
| 308 | status = '未运行'; | ||
| 309 | break; | ||
| 310 | } | ||
| 311 | } else if(type == 'confirmStatus'){ | ||
| 312 | switch (val) { | ||
| 313 | case 'N': | ||
| 314 | status = '草稿中'; | ||
| 315 | break; | ||
| 316 | case 'Y': | ||
| 317 | status = '已确认'; | ||
| 318 | break; | ||
| 319 | default: | ||
| 320 | status = '草稿中'; | ||
| 321 | break; | ||
| 322 | } | ||
| 323 | } | ||
| 324 | return status; | ||
| 325 | } | ... | ... |
| ... | @@ -9,7 +9,7 @@ import useUserStore from "@/store/modules/user"; | ... | @@ -9,7 +9,7 @@ import useUserStore from "@/store/modules/user"; |
| 9 | import { ElMessage, ElMessageBox } from "element-plus"; | 9 | import { ElMessage, ElMessageBox } from "element-plus"; |
| 10 | 10 | ||
| 11 | import useDataAssetStore from "@/store/modules/dataAsset"; | 11 | import useDataAssetStore from "@/store/modules/dataAsset"; |
| 12 | import { getListingList, listingDelete, listingUpdateStatus, filterVal, getParamsDataList } from "@/api/modules/dataProduct"; | 12 | import { filterVal, getCgTaskPageList, } from "@/api/modules/dataInventory"; |
| 13 | import { TableColumnWidth } from '@/utils/enum'; | 13 | import { TableColumnWidth } from '@/utils/enum'; |
| 14 | 14 | ||
| 15 | import Table from "@/components/Table/index.vue"; | 15 | import Table from "@/components/Table/index.vue"; |
| ... | @@ -19,318 +19,6 @@ const router = useRouter(); | ... | @@ -19,318 +19,6 @@ const router = useRouter(); |
| 19 | const userStore = useUserStore(); | 19 | const userStore = useUserStore(); |
| 20 | const userData = JSON.parse(userStore.userData); | 20 | const userData = JSON.parse(userStore.userData); |
| 21 | const assetStore = useDataAssetStore(); | 21 | const assetStore = useDataAssetStore(); |
| 22 | const datas = [ | ||
| 23 | { | ||
| 24 | "updateTime": "2024-07-16 13:17:00", | ||
| 25 | "updateUserName": "数往知来管理员", | ||
| 26 | "guid": "4e0e76c48fa043d5b35d09f3ccc7c265", | ||
| 27 | "approvalGuid": null, | ||
| 28 | "standardSetGuid": "58d1178a04904d599284fc1e61594c43", | ||
| 29 | "fieldStandardCode": "COL202406070021", | ||
| 30 | "dataVersion": 1, | ||
| 31 | "chName": "地址", | ||
| 32 | "enName": "address", | ||
| 33 | "dataTypeValue": "字符型", | ||
| 34 | "dataTypeCode": "varchar", | ||
| 35 | "dataDicGuid": "", | ||
| 36 | "dataDicName": null, | ||
| 37 | "isDataDic": "N", | ||
| 38 | "fieldLength": 600, | ||
| 39 | "fieldPrecision": null, | ||
| 40 | "dataState": 0, | ||
| 41 | "approveState": "N", | ||
| 42 | "dataCategory": "合伙人", | ||
| 43 | "dataEncryptionLevel": "界面加密", | ||
| 44 | "businessDefDesc": "地址", | ||
| 45 | "flowFlag": null, | ||
| 46 | "flowCode": null, | ||
| 47 | "functionCode": null, | ||
| 48 | "createStaffGuid": null, | ||
| 49 | "createUserId": "98df01b8d86c46f786dd10b4d0eb11dd", | ||
| 50 | "displayVersion": "V1", | ||
| 51 | "standardSetName": null, | ||
| 52 | "ruleType": null | ||
| 53 | }, | ||
| 54 | { | ||
| 55 | "updateTime": "2024-01-27 10:19:45", | ||
| 56 | "updateUserName": "数往知来管理员", | ||
| 57 | "guid": "bc630207357c466dbff7613ea38985cc", | ||
| 58 | "approvalGuid": null, | ||
| 59 | "standardSetGuid": "58d1178a04904d599284fc1e61594c43", | ||
| 60 | "fieldStandardCode": "COL202401260124", | ||
| 61 | "dataVersion": 1, | ||
| 62 | "chName": "包含最小销售包装单元数量", | ||
| 63 | "enName": "inboxQuantity", | ||
| 64 | "dataTypeValue": "整型", | ||
| 65 | "dataTypeCode": "int", | ||
| 66 | "dataDicGuid": null, | ||
| 67 | "dataDicName": null, | ||
| 68 | "isDataDic": null, | ||
| 69 | "fieldLength": null, | ||
| 70 | "fieldPrecision": null, | ||
| 71 | "dataState": 1, | ||
| 72 | "approveState": "A", | ||
| 73 | "dataCategory": null, | ||
| 74 | "dataEncryptionLevel": "明文显示", | ||
| 75 | "businessDefDesc": "当前药品追溯码中包含的最小销售包装单元药品追溯码的数量,发货类型为03时可选", | ||
| 76 | "flowFlag": null, | ||
| 77 | "flowCode": null, | ||
| 78 | "functionCode": null, | ||
| 79 | "createStaffGuid": null, | ||
| 80 | "createUserId": "98df01b8d86c46f786dd10b4d0eb11dd", | ||
| 81 | "displayVersion": "V1", | ||
| 82 | "standardSetName": null, | ||
| 83 | "ruleType": null | ||
| 84 | }, | ||
| 85 | { | ||
| 86 | "updateTime": "2024-01-27 11:03:59", | ||
| 87 | "updateUserName": "审批人4", | ||
| 88 | "guid": "420f2a68bd4441bf92010eadf698b685", | ||
| 89 | "approvalGuid": null, | ||
| 90 | "standardSetGuid": "58d1178a04904d599284fc1e61594c43", | ||
| 91 | "fieldStandardCode": "COL202401260122", | ||
| 92 | "dataVersion": 1, | ||
| 93 | "chName": "包装层级", | ||
| 94 | "enName": "packageLevel", | ||
| 95 | "dataTypeValue": "字符型", | ||
| 96 | "dataTypeCode": "varchar", | ||
| 97 | "dataDicGuid": null, | ||
| 98 | "dataDicName": null, | ||
| 99 | "isDataDic": null, | ||
| 100 | "fieldLength": 200, | ||
| 101 | "fieldPrecision": null, | ||
| 102 | "dataState": 1, | ||
| 103 | "approveState": "A", | ||
| 104 | "dataCategory": null, | ||
| 105 | "dataEncryptionLevel": "明文显示", | ||
| 106 | "businessDefDesc": "当前药品追溯码所处包装层级描述,发货类型为03时可选", | ||
| 107 | "flowFlag": null, | ||
| 108 | "flowCode": null, | ||
| 109 | "functionCode": null, | ||
| 110 | "createStaffGuid": null, | ||
| 111 | "createUserId": "98df01b8d86c46f786dd10b4d0eb11dd", | ||
| 112 | "displayVersion": "V1", | ||
| 113 | "standardSetName": null, | ||
| 114 | "ruleType": null | ||
| 115 | }, | ||
| 116 | { | ||
| 117 | "updateTime": "2024-06-06 10:01:06", | ||
| 118 | "updateUserName": "审批人1", | ||
| 119 | "guid": "f841e1848ab94b1e81a0217a09a7a3d3", | ||
| 120 | "approvalGuid": "b674bffe8d2f4132918016b6baaf75aa", | ||
| 121 | "standardSetGuid": "58d1178a04904d599284fc1e61594c43", | ||
| 122 | "fieldStandardCode": "COL202401260120", | ||
| 123 | "dataVersion": 1, | ||
| 124 | "chName": "上一级包装药品追溯码", | ||
| 125 | "enName": "parentDTC", | ||
| 126 | "dataTypeValue": "字符型", | ||
| 127 | "dataTypeCode": "varchar", | ||
| 128 | "dataDicGuid": "", | ||
| 129 | "dataDicName": null, | ||
| 130 | "isDataDic": "N", | ||
| 131 | "fieldLength": 200, | ||
| 132 | "fieldPrecision": null, | ||
| 133 | "dataState": 1, | ||
| 134 | "approveState": "Y", | ||
| 135 | "dataCategory": "", | ||
| 136 | "dataEncryptionLevel": "明文显示", | ||
| 137 | "businessDefDesc": "当前药品追溯码大一级包装上的药品追溯码,发货类型为03时可选;当存在上一级包装时必选", | ||
| 138 | "flowFlag": null, | ||
| 139 | "flowCode": null, | ||
| 140 | "functionCode": null, | ||
| 141 | "createStaffGuid": null, | ||
| 142 | "createUserId": "98df01b8d86c46f786dd10b4d0eb11dd", | ||
| 143 | "displayVersion": "V1", | ||
| 144 | "standardSetName": null, | ||
| 145 | "ruleType": null | ||
| 146 | }, | ||
| 147 | { | ||
| 148 | "updateTime": "2024-01-26 00:10:47", | ||
| 149 | "updateUserName": "数往知来管理员", | ||
| 150 | "guid": "d4d42dea2a5844b4a7f9238806ea507b", | ||
| 151 | "approvalGuid": null, | ||
| 152 | "standardSetGuid": "58d1178a04904d599284fc1e61594c43", | ||
| 153 | "fieldStandardCode": "COL202401260118", | ||
| 154 | "dataVersion": 1, | ||
| 155 | "chName": "药品追溯码", | ||
| 156 | "enName": "DTC", | ||
| 157 | "dataTypeValue": "字符型", | ||
| 158 | "dataTypeCode": "varchar", | ||
| 159 | "dataDicGuid": null, | ||
| 160 | "dataDicName": null, | ||
| 161 | "isDataDic": null, | ||
| 162 | "fieldLength": 200, | ||
| 163 | "fieldPrecision": null, | ||
| 164 | "dataState": 0, | ||
| 165 | "approveState": "N", | ||
| 166 | "dataCategory": null, | ||
| 167 | "dataEncryptionLevel": "明文显示", | ||
| 168 | "businessDefDesc": "用于唯一标识药品各级销售包装单元的代码,发货类型为03时可选", | ||
| 169 | "flowFlag": null, | ||
| 170 | "flowCode": null, | ||
| 171 | "functionCode": null, | ||
| 172 | "createStaffGuid": null, | ||
| 173 | "createUserId": "98df01b8d86c46f786dd10b4d0eb11dd", | ||
| 174 | "displayVersion": "V1", | ||
| 175 | "standardSetName": null, | ||
| 176 | "ruleType": null | ||
| 177 | }, | ||
| 178 | { | ||
| 179 | "updateTime": "2024-01-26 00:10:47", | ||
| 180 | "updateUserName": "数往知来管理员", | ||
| 181 | "guid": "ff9d0e4f6fbb444c8dcf6f67bffcb659", | ||
| 182 | "approvalGuid": null, | ||
| 183 | "standardSetGuid": "58d1178a04904d599284fc1e61594c43", | ||
| 184 | "fieldStandardCode": "COL202401260116", | ||
| 185 | "dataVersion": 1, | ||
| 186 | "chName": "发货数量", | ||
| 187 | "enName": "deliveryQuantity", | ||
| 188 | "dataTypeValue": "整型", | ||
| 189 | "dataTypeCode": "int", | ||
| 190 | "dataDicGuid": null, | ||
| 191 | "dataDicName": null, | ||
| 192 | "isDataDic": null, | ||
| 193 | "fieldLength": null, | ||
| 194 | "fieldPrecision": null, | ||
| 195 | "dataState": 0, | ||
| 196 | "approveState": "N", | ||
| 197 | "dataCategory": null, | ||
| 198 | "dataEncryptionLevel": "明文显示", | ||
| 199 | "businessDefDesc": "发货的最小销售包装单元数量", | ||
| 200 | "flowFlag": null, | ||
| 201 | "flowCode": null, | ||
| 202 | "functionCode": null, | ||
| 203 | "createStaffGuid": null, | ||
| 204 | "createUserId": "98df01b8d86c46f786dd10b4d0eb11dd", | ||
| 205 | "displayVersion": "V1", | ||
| 206 | "standardSetName": null, | ||
| 207 | "ruleType": null | ||
| 208 | }, | ||
| 209 | { | ||
| 210 | "updateTime": "2024-01-26 00:10:46", | ||
| 211 | "updateUserName": "数往知来管理员", | ||
| 212 | "guid": "fe88ac9e8d9c4f148833dbb3976fca77", | ||
| 213 | "approvalGuid": null, | ||
| 214 | "standardSetGuid": "58d1178a04904d599284fc1e61594c43", | ||
| 215 | "fieldStandardCode": "COL202401260114", | ||
| 216 | "dataVersion": 1, | ||
| 217 | "chName": "药品生产批号", | ||
| 218 | "enName": "batch", | ||
| 219 | "dataTypeValue": "字符型", | ||
| 220 | "dataTypeCode": "varchar", | ||
| 221 | "dataDicGuid": null, | ||
| 222 | "dataDicName": null, | ||
| 223 | "isDataDic": null, | ||
| 224 | "fieldLength": 20, | ||
| 225 | "fieldPrecision": null, | ||
| 226 | "dataState": 0, | ||
| 227 | "approveState": "N", | ||
| 228 | "dataCategory": null, | ||
| 229 | "dataEncryptionLevel": "明文显示", | ||
| 230 | "businessDefDesc": "药品包装上标示的生产批号", | ||
| 231 | "flowFlag": null, | ||
| 232 | "flowCode": null, | ||
| 233 | "functionCode": null, | ||
| 234 | "createStaffGuid": null, | ||
| 235 | "createUserId": "98df01b8d86c46f786dd10b4d0eb11dd", | ||
| 236 | "displayVersion": "V1", | ||
| 237 | "standardSetName": null, | ||
| 238 | "ruleType": null | ||
| 239 | }, | ||
| 240 | { | ||
| 241 | "updateTime": "2024-01-26 00:10:45", | ||
| 242 | "updateUserName": "数往知来管理员", | ||
| 243 | "guid": "9759837e0d72472ab7441c1873c9159a", | ||
| 244 | "approvalGuid": null, | ||
| 245 | "standardSetGuid": "58d1178a04904d599284fc1e61594c43", | ||
| 246 | "fieldStandardCode": "COL202401260112", | ||
| 247 | "dataVersion": 1, | ||
| 248 | "chName": "药品有效期截止日期", | ||
| 249 | "enName": "expirationDate", | ||
| 250 | "dataTypeValue": "日期型", | ||
| 251 | "dataTypeCode": "date", | ||
| 252 | "dataDicGuid": null, | ||
| 253 | "dataDicName": null, | ||
| 254 | "isDataDic": null, | ||
| 255 | "fieldLength": null, | ||
| 256 | "fieldPrecision": null, | ||
| 257 | "dataState": 0, | ||
| 258 | "approveState": "N", | ||
| 259 | "dataCategory": null, | ||
| 260 | "dataEncryptionLevel": "明文显示", | ||
| 261 | "businessDefDesc": "药品有效期的截止日期", | ||
| 262 | "flowFlag": null, | ||
| 263 | "flowCode": null, | ||
| 264 | "functionCode": null, | ||
| 265 | "createStaffGuid": null, | ||
| 266 | "createUserId": "98df01b8d86c46f786dd10b4d0eb11dd", | ||
| 267 | "displayVersion": "V1", | ||
| 268 | "standardSetName": null, | ||
| 269 | "ruleType": null | ||
| 270 | }, | ||
| 271 | { | ||
| 272 | "updateTime": "2024-01-26 00:10:45", | ||
| 273 | "updateUserName": "数往知来管理员", | ||
| 274 | "guid": "a39ed6123c6a420d9d1265315e714f86", | ||
| 275 | "approvalGuid": null, | ||
| 276 | "standardSetGuid": "58d1178a04904d599284fc1e61594c43", | ||
| 277 | "fieldStandardCode": "COL202401260110", | ||
| 278 | "dataVersion": 1, | ||
| 279 | "chName": "药品生产日期", | ||
| 280 | "enName": "productionDate", | ||
| 281 | "dataTypeValue": "日期型", | ||
| 282 | "dataTypeCode": "date", | ||
| 283 | "dataDicGuid": null, | ||
| 284 | "dataDicName": null, | ||
| 285 | "isDataDic": null, | ||
| 286 | "fieldLength": null, | ||
| 287 | "fieldPrecision": null, | ||
| 288 | "dataState": 0, | ||
| 289 | "approveState": "N", | ||
| 290 | "dataCategory": null, | ||
| 291 | "dataEncryptionLevel": "明文显示", | ||
| 292 | "businessDefDesc": "药品包装上标示的生产日期", | ||
| 293 | "flowFlag": null, | ||
| 294 | "flowCode": null, | ||
| 295 | "functionCode": null, | ||
| 296 | "createStaffGuid": null, | ||
| 297 | "createUserId": "98df01b8d86c46f786dd10b4d0eb11dd", | ||
| 298 | "displayVersion": "V1", | ||
| 299 | "standardSetName": null, | ||
| 300 | "ruleType": null | ||
| 301 | }, | ||
| 302 | { | ||
| 303 | "updateTime": "2024-01-26 00:10:45", | ||
| 304 | "updateUserName": "数往知来管理员", | ||
| 305 | "guid": "ea597c1b8bb24a5ab053a80b084de98c", | ||
| 306 | "approvalGuid": null, | ||
| 307 | "standardSetGuid": "58d1178a04904d599284fc1e61594c43", | ||
| 308 | "fieldStandardCode": "COL202401260108", | ||
| 309 | "dataVersion": 1, | ||
| 310 | "chName": "统一社会信用代码(进口药品代理企业)", | ||
| 311 | "enName": "drugImporterUSCID", | ||
| 312 | "dataTypeValue": "字符型", | ||
| 313 | "dataTypeCode": "varchar", | ||
| 314 | "dataDicGuid": null, | ||
| 315 | "dataDicName": null, | ||
| 316 | "isDataDic": null, | ||
| 317 | "fieldLength": 18, | ||
| 318 | "fieldPrecision": null, | ||
| 319 | "dataState": 0, | ||
| 320 | "approveState": "N", | ||
| 321 | "dataCategory": null, | ||
| 322 | "dataEncryptionLevel": "明文显示", | ||
| 323 | "businessDefDesc": "进口药品代理企业的统一社会信用代码,进口药品必选;没有统一社会信用代码时使用组织机构代码", | ||
| 324 | "flowFlag": null, | ||
| 325 | "flowCode": null, | ||
| 326 | "functionCode": null, | ||
| 327 | "createStaffGuid": null, | ||
| 328 | "createUserId": "98df01b8d86c46f786dd10b4d0eb11dd", | ||
| 329 | "displayVersion": "V1", | ||
| 330 | "standardSetName": null, | ||
| 331 | "ruleType": null | ||
| 332 | } | ||
| 333 | ] | ||
| 334 | 22 | ||
| 335 | const page = ref({ | 23 | const page = ref({ |
| 336 | limit: 50, | 24 | limit: 50, |
| ... | @@ -358,26 +46,25 @@ const tableInfo = ref({ | ... | @@ -358,26 +46,25 @@ const tableInfo = ref({ |
| 358 | }); | 46 | }); |
| 359 | } | 47 | } |
| 360 | }, | 48 | }, |
| 361 | { label: "分类分级模板", field: "cgTemplateName", width: 200 }, | ||
| 362 | { label: "元数据", field: "metaNames", width: 200 }, | 49 | { label: "元数据", field: "metaNames", width: 200 }, |
| 363 | { | 50 | { |
| 364 | label: "执行状态", field: "status", width: TableColumnWidth.STATE, align: 'center', type: "tag", getName: (scope) => { | 51 | label: "执行状态", field: "status", width: TableColumnWidth.STATE, align: 'center', type: "tag", getName: (scope) => { |
| 365 | return filterVal(scope.row.status, 'status'); | 52 | return filterVal(scope.row.status, 'status'); |
| 366 | } | 53 | } |
| 367 | }, | 54 | }, |
| 368 | { label: "任务修改人", field: "dataCategory", width: 120 }, | 55 | { label: "任务修改人", field: "updateUserName", width: 120 }, |
| 369 | { label: "修改时间", field: "updateTime", width: TableColumnWidth.DATETIME }, | 56 | { label: "修改时间", field: "updateTime", width: TableColumnWidth.DATETIME }, |
| 370 | { label: "确认次数", field: "fieldLength", width: 96, align: 'right' }, | 57 | { label: "确认次数", field: "confirmCnt", width: 96, align: 'right' }, |
| 371 | { label: "结果确认人", field: "updateUserName", width: 120 }, | 58 | { label: "结果确认人", field: "confirmUserName", width: 120 }, |
| 372 | { label: "确认时间", field: "updateTime", width: TableColumnWidth.DATETIME }, | 59 | { label: "确认时间", field: "confirmTime", width: TableColumnWidth.DATETIME }, |
| 373 | { | 60 | { |
| 374 | label: "结果状态", field: "approveState", width: TableColumnWidth.STATE, align: 'center', type: "tag", getName: (scope) => { | 61 | label: "结果状态", field: "confirmStatus", width: TableColumnWidth.STATE, align: 'center', type: "tag", getName: (scope) => { |
| 375 | return filterVal(scope.row.approveState, 'approveState'); | 62 | return filterVal(scope.row.confirmStatus, 'confirmStatus'); |
| 376 | } | 63 | } |
| 377 | }, | 64 | }, |
| 378 | ], | 65 | ], |
| 379 | loading: false, | 66 | loading: false, |
| 380 | data: datas || [], | 67 | data: [], |
| 381 | page: { | 68 | page: { |
| 382 | type: "normal", | 69 | type: "normal", |
| 383 | rows: 0, | 70 | rows: 0, |
| ... | @@ -386,28 +73,20 @@ const tableInfo = ref({ | ... | @@ -386,28 +73,20 @@ const tableInfo = ref({ |
| 386 | actionInfo: { | 73 | actionInfo: { |
| 387 | label: "操作", | 74 | label: "操作", |
| 388 | type: "btn", | 75 | type: "btn", |
| 389 | width: 280, | 76 | width: 220, |
| 390 | btns: (scope) => { | 77 | btns: (scope) => { |
| 391 | let row = scope.row, btnArr: any = [ | 78 | let row = scope.row, btnArr: any = [ |
| 392 | { label: "结果确认", value: "confirm" }, | ||
| 393 | { label: "结果修改", value: "modify" }, | ||
| 394 | { label: "编辑", value: "edit" }, | 79 | { label: "编辑", value: "edit" }, |
| 395 | { label: "日志", value: "log" }, | 80 | { label: "日志", value: "log" }, |
| 396 | { label: "删除", value: "delete" } | 81 | { label: "删除", value: "delete" } |
| 397 | ]; | 82 | ]; |
| 398 | // if (row.approveState == 'Y') { | 83 | if (row.status == 'Y') { |
| 399 | // if (row.listingStatus == 'Y') { | 84 | if (row.confirmStatus == 'Y') { |
| 400 | // btnArr.splice(0, 0, { label: "详情", value: "detail" }); | 85 | btnArr.splice(0, 0, { label: "结果修改", value: "modify" }); |
| 401 | // } else { | 86 | } else { |
| 402 | // btnArr.splice(0, 0, { label: "编辑", value: "edit" }, { label: "详情", value: "detail" }, { label: "删除", value: "delete" }); | 87 | btnArr.splice(0, 0, { label: "结果确认", value: "confirm" }); |
| 403 | // } | 88 | } |
| 404 | // } else { | 89 | } |
| 405 | // if (row.approveState == 'A') { | ||
| 406 | // btnArr.splice(0, 0, { label: "详情", value: "detail" }); | ||
| 407 | // } else { | ||
| 408 | // btnArr.splice(0, 0, { label: "编辑", value: "edit" }, { label: "详情", value: "detail" }, { label: "删除", value: "delete" }); | ||
| 409 | // } | ||
| 410 | // } | ||
| 411 | return btnArr; | 90 | return btnArr; |
| 412 | }, | 91 | }, |
| 413 | }, | 92 | }, |
| ... | @@ -415,7 +94,7 @@ const tableInfo = ref({ | ... | @@ -415,7 +94,7 @@ const tableInfo = ref({ |
| 415 | 94 | ||
| 416 | const getTableData = () => { | 95 | const getTableData = () => { |
| 417 | tableInfo.value.loading = true; | 96 | tableInfo.value.loading = true; |
| 418 | getListingList( | 97 | getCgTaskPageList( |
| 419 | Object.assign({}, searchItemValue.value, { | 98 | Object.assign({}, searchItemValue.value, { |
| 420 | pageIndex: page.value.curr, | 99 | pageIndex: page.value.curr, |
| 421 | pageSize: page.value.limit, | 100 | pageSize: page.value.limit, |
| ... | @@ -521,15 +200,15 @@ const getFirstPageData = () => { | ... | @@ -521,15 +200,15 @@ const getFirstPageData = () => { |
| 521 | getTableData(); | 200 | getTableData(); |
| 522 | } | 201 | } |
| 523 | 202 | ||
| 524 | onActivated(() => { | 203 | // onActivated(() => { |
| 525 | if (assetStore.isRefresh) {//如果是首次加载,则不需要调用 | 204 | // if (assetStore.isRefresh) {//如果是首次加载,则不需要调用 |
| 526 | getFirstPageData(); | 205 | // getFirstPageData(); |
| 527 | assetStore.set(false); | 206 | // assetStore.set(false); |
| 528 | } | 207 | // } |
| 529 | }) | 208 | // }) |
| 530 | 209 | ||
| 531 | onBeforeMount(() => { | 210 | onBeforeMount(() => { |
| 532 | 211 | getFirstPageData() | |
| 533 | }) | 212 | }) |
| 534 | 213 | ||
| 535 | </script> | 214 | </script> | ... | ... |
| ... | @@ -9,7 +9,7 @@ import useUserStore from "@/store/modules/user"; | ... | @@ -9,7 +9,7 @@ import useUserStore from "@/store/modules/user"; |
| 9 | import { ElMessage, ElMessageBox } from "element-plus"; | 9 | import { ElMessage, ElMessageBox } from "element-plus"; |
| 10 | import { Search } from "@element-plus/icons-vue"; | 10 | import { Search } from "@element-plus/icons-vue"; |
| 11 | import useDataAssetStore from "@/store/modules/dataAsset"; | 11 | import useDataAssetStore from "@/store/modules/dataAsset"; |
| 12 | import { getListingList, listingDelete, listingUpdateStatus, filterVal, getParamsDataList } from "@/api/modules/dataProduct"; | 12 | import { getClassifyGradList, getClassifyTreeList, getCgLabelPageList, filterVal } from "@/api/modules/dataInventory"; |
| 13 | import { TableColumnWidth } from '@/utils/enum'; | 13 | import { TableColumnWidth } from '@/utils/enum'; |
| 14 | 14 | ||
| 15 | import Table from "@/components/Table/index.vue"; | 15 | import Table from "@/components/Table/index.vue"; |
| ... | @@ -20,290 +20,6 @@ const userStore = useUserStore(); | ... | @@ -20,290 +20,6 @@ const userStore = useUserStore(); |
| 20 | const userData = JSON.parse(userStore.userData); | 20 | const userData = JSON.parse(userStore.userData); |
| 21 | const assetStore = useDataAssetStore(); | 21 | const assetStore = useDataAssetStore(); |
| 22 | 22 | ||
| 23 | const data1 = [ | ||
| 24 | { | ||
| 25 | "children": [ | ||
| 26 | { | ||
| 27 | "children": null, | ||
| 28 | "parentGuids": [ | ||
| 29 | "c32ddd77191ff4afe149538ef4b2e0c3" | ||
| 30 | ], | ||
| 31 | "guid": "9c92df55a19cdce88f61e20a8e1e8a65", | ||
| 32 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 33 | "organisationCode": "11150001", | ||
| 34 | "organisationName": "链享供应链运营一部", | ||
| 35 | "bizState": "Y", | ||
| 36 | "createTime": "2023-10-25 14:23:31", | ||
| 37 | "createUserName": "测试", | ||
| 38 | "parentGuid": "c32ddd77191ff4afe149538ef4b2e0c3", | ||
| 39 | "orderNum": 1, | ||
| 40 | "level": 2, | ||
| 41 | "levelCode": "1.1", | ||
| 42 | "displayCreateTime": "2023-10-25 14:23:31" | ||
| 43 | } | ||
| 44 | ], | ||
| 45 | "parentGuids": null, | ||
| 46 | "guid": "c32ddd77191ff4afe149538ef4b2e0c3", | ||
| 47 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 48 | "organisationCode": "1115004", | ||
| 49 | "organisationName": "链享供应链", | ||
| 50 | "bizState": "Y", | ||
| 51 | "createTime": "2023-08-15 12:59:10", | ||
| 52 | "createUserName": "测试", | ||
| 53 | "parentGuid": "", | ||
| 54 | "orderNum": 2, | ||
| 55 | "level": 0, | ||
| 56 | "levelCode": "1", | ||
| 57 | "displayCreateTime": "2023-08-15 12:59:10" | ||
| 58 | }, | ||
| 59 | { | ||
| 60 | "children": [ | ||
| 61 | { | ||
| 62 | "children": [ | ||
| 63 | { | ||
| 64 | "children": null, | ||
| 65 | "parentGuids": [ | ||
| 66 | "e10332122834077907cd5ea61fa576c1", | ||
| 67 | "cdae7bb3cafb560482cad1b89a1e4b78" | ||
| 68 | ], | ||
| 69 | "guid": "16ea472a155c07433a63220f2ae1afe9", | ||
| 70 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 71 | "organisationCode": "11160011", | ||
| 72 | "organisationName": "链享运营一部1组", | ||
| 73 | "bizState": "S", | ||
| 74 | "createTime": "2023-10-25 13:15:57", | ||
| 75 | "createUserName": "测试", | ||
| 76 | "parentGuid": "cdae7bb3cafb560482cad1b89a1e4b78", | ||
| 77 | "orderNum": 1, | ||
| 78 | "level": 2, | ||
| 79 | "levelCode": "2.1.1", | ||
| 80 | "displayCreateTime": "2023-10-25 13:15:57" | ||
| 81 | } | ||
| 82 | ], | ||
| 83 | "parentGuids": [ | ||
| 84 | "e10332122834077907cd5ea61fa576c1" | ||
| 85 | ], | ||
| 86 | "guid": "cdae7bb3cafb560482cad1b89a1e4b78", | ||
| 87 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 88 | "organisationCode": "1116001", | ||
| 89 | "organisationName": "链享运营一部", | ||
| 90 | "bizState": "S", | ||
| 91 | "createTime": "2023-10-25 13:14:15", | ||
| 92 | "createUserName": "测试", | ||
| 93 | "parentGuid": "e10332122834077907cd5ea61fa576c1", | ||
| 94 | "orderNum": 1, | ||
| 95 | "level": 1, | ||
| 96 | "levelCode": "2.1", | ||
| 97 | "displayCreateTime": "2023-10-25 13:14:15" | ||
| 98 | }, | ||
| 99 | { | ||
| 100 | "children": null, | ||
| 101 | "parentGuids": [ | ||
| 102 | "e10332122834077907cd5ea61fa576c1" | ||
| 103 | ], | ||
| 104 | "guid": "d98b44ffb35e4d17cf68f9a922e1c7b7", | ||
| 105 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 106 | "organisationCode": null, | ||
| 107 | "organisationName": "二部", | ||
| 108 | "bizState": "Y", | ||
| 109 | "createTime": "2023-10-26 09:45:36", | ||
| 110 | "createUserName": "测试", | ||
| 111 | "parentGuid": "e10332122834077907cd5ea61fa576c1", | ||
| 112 | "orderNum": 2, | ||
| 113 | "level": 1, | ||
| 114 | "levelCode": "2.2", | ||
| 115 | "displayCreateTime": "2023-10-26 09:45:36" | ||
| 116 | } | ||
| 117 | ], | ||
| 118 | "parentGuids": null, | ||
| 119 | "guid": "e10332122834077907cd5ea61fa576c1", | ||
| 120 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 121 | "organisationCode": "1115005", | ||
| 122 | "organisationName": "链享医药", | ||
| 123 | "bizState": "Y", | ||
| 124 | "createTime": "2023-09-12 15:59:35", | ||
| 125 | "createUserName": "测试", | ||
| 126 | "parentGuid": null, | ||
| 127 | "orderNum": 3, | ||
| 128 | "level": 0, | ||
| 129 | "levelCode": "2", | ||
| 130 | "displayCreateTime": "2023-09-12 15:59:35" | ||
| 131 | }, | ||
| 132 | { | ||
| 133 | "children": [ | ||
| 134 | { | ||
| 135 | "children": null, | ||
| 136 | "parentGuids": [ | ||
| 137 | "9bd46f0f4fcf429518fae6ecb4849a9e" | ||
| 138 | ], | ||
| 139 | "guid": "870f23ae47e036eb88b35f726c31959b", | ||
| 140 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 141 | "organisationCode": null, | ||
| 142 | "organisationName": "运用三部", | ||
| 143 | "bizState": "Y", | ||
| 144 | "createTime": "2024-04-28 16:33:24", | ||
| 145 | "createUserName": "数往知来管理员", | ||
| 146 | "parentGuid": "9bd46f0f4fcf429518fae6ecb4849a9e", | ||
| 147 | "orderNum": 3, | ||
| 148 | "level": 1, | ||
| 149 | "levelCode": "3.3", | ||
| 150 | "displayCreateTime": "2024-04-28 16:33:24" | ||
| 151 | }, | ||
| 152 | { | ||
| 153 | "children": null, | ||
| 154 | "parentGuids": [ | ||
| 155 | "9bd46f0f4fcf429518fae6ecb4849a9e" | ||
| 156 | ], | ||
| 157 | "guid": "e06049046241dd71b153f227dbe7f801", | ||
| 158 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 159 | "organisationCode": null, | ||
| 160 | "organisationName": "运营二部", | ||
| 161 | "bizState": "Y", | ||
| 162 | "createTime": "2023-11-14 16:01:50", | ||
| 163 | "createUserName": "数往知来管理员", | ||
| 164 | "parentGuid": "9bd46f0f4fcf429518fae6ecb4849a9e", | ||
| 165 | "orderNum": 40, | ||
| 166 | "level": 1, | ||
| 167 | "levelCode": "3.2", | ||
| 168 | "displayCreateTime": "2023-11-14 16:01:50" | ||
| 169 | }, | ||
| 170 | { | ||
| 171 | "children": null, | ||
| 172 | "parentGuids": [ | ||
| 173 | "9bd46f0f4fcf429518fae6ecb4849a9e" | ||
| 174 | ], | ||
| 175 | "guid": "731cd185c868da8af48b492068ffaed4", | ||
| 176 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 177 | "organisationCode": null, | ||
| 178 | "organisationName": "运营一部", | ||
| 179 | "bizState": "Y", | ||
| 180 | "createTime": "2023-11-14 15:19:35", | ||
| 181 | "createUserName": "测试", | ||
| 182 | "parentGuid": "9bd46f0f4fcf429518fae6ecb4849a9e", | ||
| 183 | "orderNum": 41, | ||
| 184 | "level": 1, | ||
| 185 | "levelCode": "3.1", | ||
| 186 | "displayCreateTime": "2023-11-14 15:19:35" | ||
| 187 | } | ||
| 188 | ], | ||
| 189 | "parentGuids": null, | ||
| 190 | "guid": "9bd46f0f4fcf429518fae6ecb4849a9e", | ||
| 191 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 192 | "organisationCode": null, | ||
| 193 | "organisationName": "药企服务事业部1", | ||
| 194 | "bizState": "Y", | ||
| 195 | "createTime": "2023-11-14 14:49:14", | ||
| 196 | "createUserName": "数往知来管理员", | ||
| 197 | "parentGuid": "", | ||
| 198 | "orderNum": 4, | ||
| 199 | "level": 0, | ||
| 200 | "levelCode": "3", | ||
| 201 | "displayCreateTime": "2023-11-14 14:49:14" | ||
| 202 | }, | ||
| 203 | { | ||
| 204 | "children": [ | ||
| 205 | { | ||
| 206 | "children": null, | ||
| 207 | "parentGuids": [ | ||
| 208 | "23be149ea3167a3f7f2d383023336efe" | ||
| 209 | ], | ||
| 210 | "guid": "e5f2b4958ee2d99309a41e0c6e1447c8", | ||
| 211 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 212 | "organisationCode": null, | ||
| 213 | "organisationName": "智能存储装备部", | ||
| 214 | "bizState": "Y", | ||
| 215 | "createTime": "2023-11-14 16:09:36", | ||
| 216 | "createUserName": "数往知来管理员", | ||
| 217 | "parentGuid": "23be149ea3167a3f7f2d383023336efe", | ||
| 218 | "orderNum": 51, | ||
| 219 | "level": 1, | ||
| 220 | "levelCode": "4.1", | ||
| 221 | "displayCreateTime": "2023-11-14 16:09:36" | ||
| 222 | } | ||
| 223 | ], | ||
| 224 | "parentGuids": null, | ||
| 225 | "guid": "23be149ea3167a3f7f2d383023336efe", | ||
| 226 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 227 | "organisationCode": null, | ||
| 228 | "organisationName": "医药物联网事业部", | ||
| 229 | "bizState": "Y", | ||
| 230 | "createTime": "2023-11-14 15:11:35", | ||
| 231 | "createUserName": "数往知来管理员", | ||
| 232 | "parentGuid": "", | ||
| 233 | "orderNum": 5, | ||
| 234 | "level": 0, | ||
| 235 | "levelCode": "4", | ||
| 236 | "displayCreateTime": "2023-11-14 15:11:35" | ||
| 237 | }, | ||
| 238 | { | ||
| 239 | "children": null, | ||
| 240 | "parentGuids": null, | ||
| 241 | "guid": "1d82e875163749ca9ae45809ec432ae8", | ||
| 242 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 243 | "organisationCode": null, | ||
| 244 | "organisationName": "财务管理中心", | ||
| 245 | "bizState": "S", | ||
| 246 | "createTime": "2023-11-14 15:14:07", | ||
| 247 | "createUserName": "数往知来管理员", | ||
| 248 | "parentGuid": "", | ||
| 249 | "orderNum": 6, | ||
| 250 | "level": 0, | ||
| 251 | "levelCode": "6", | ||
| 252 | "displayCreateTime": "2023-11-14 15:14:07" | ||
| 253 | }, | ||
| 254 | { | ||
| 255 | "children": null, | ||
| 256 | "parentGuids": null, | ||
| 257 | "guid": "cd9e6a0c76102364a9e88b79b28b0b32", | ||
| 258 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 259 | "organisationCode": null, | ||
| 260 | "organisationName": "资产服务", | ||
| 261 | "bizState": "Y", | ||
| 262 | "createTime": "2024-08-14 11:40:33", | ||
| 263 | "createUserName": "数往知来管理员", | ||
| 264 | "parentGuid": "", | ||
| 265 | "orderNum": 7, | ||
| 266 | "level": 0, | ||
| 267 | "levelCode": "9", | ||
| 268 | "displayCreateTime": "2024-08-14 11:40:33" | ||
| 269 | }, | ||
| 270 | { | ||
| 271 | "children": [ | ||
| 272 | { | ||
| 273 | "children": null, | ||
| 274 | "parentGuids": [ | ||
| 275 | "dac448b77fa35f798bb4a06d8fd86334" | ||
| 276 | ], | ||
| 277 | "guid": "cb76777efe69182cfb2c75d41944553c", | ||
| 278 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 279 | "organisationCode": null, | ||
| 280 | "organisationName": "审批1", | ||
| 281 | "bizState": "Y", | ||
| 282 | "createTime": "2024-01-17 14:28:36", | ||
| 283 | "createUserName": "数往知来管理员", | ||
| 284 | "parentGuid": "dac448b77fa35f798bb4a06d8fd86334", | ||
| 285 | "orderNum": 100, | ||
| 286 | "level": 1, | ||
| 287 | "levelCode": "8.1", | ||
| 288 | "displayCreateTime": "2024-01-17 14:28:36" | ||
| 289 | } | ||
| 290 | ], | ||
| 291 | "parentGuids": null, | ||
| 292 | "guid": "dac448b77fa35f798bb4a06d8fd86334", | ||
| 293 | "tenantGuid": "9e5b9d7bfd8c4f4f8079e05de19bf7e0", | ||
| 294 | "organisationCode": null, | ||
| 295 | "organisationName": "审批组织", | ||
| 296 | "bizState": "Y", | ||
| 297 | "createTime": "2024-01-16 11:38:24", | ||
| 298 | "createUserName": "数往知来管理员", | ||
| 299 | "parentGuid": "", | ||
| 300 | "orderNum": 99, | ||
| 301 | "level": 0, | ||
| 302 | "levelCode": "8", | ||
| 303 | "displayCreateTime": "2024-01-16 11:38:24" | ||
| 304 | } | ||
| 305 | ] | ||
| 306 | |||
| 307 | const step = ref(0); | 23 | const step = ref(0); |
| 308 | const selectIndex = ref(0); | 24 | const selectIndex = ref(0); |
| 309 | const asideSearchInput = ref(""); | 25 | const asideSearchInput = ref(""); |
| ... | @@ -314,30 +30,7 @@ const listPage = ref({ | ... | @@ -314,30 +30,7 @@ const listPage = ref({ |
| 314 | curr: 1, | 30 | curr: 1, |
| 315 | totalPages: 0 | 31 | totalPages: 0 |
| 316 | }) | 32 | }) |
| 317 | const currpermissionList: any = ref([ | 33 | const currpermissionList: any = ref([]) |
| 318 | { | ||
| 319 | "guid": "62d01ad586774db2bb3955dfb2d18366", | ||
| 320 | "productGuid": null, | ||
| 321 | "productName": null, | ||
| 322 | "dataPermissionName": "当前用户", | ||
| 323 | "bizState": "Y", | ||
| 324 | "createUserName": "数往知来管理员", | ||
| 325 | "createTime": "2024-01-24 14:08:43", | ||
| 326 | "sqlScript": null, | ||
| 327 | "dataSourceGuid": null | ||
| 328 | }, | ||
| 329 | { | ||
| 330 | "guid": "d68a27c1998540a2b8e8f22a2d5eebef", | ||
| 331 | "productGuid": null, | ||
| 332 | "productName": null, | ||
| 333 | "dataPermissionName": "组织权限", | ||
| 334 | "bizState": "Y", | ||
| 335 | "createUserName": "数往知来管理员", | ||
| 336 | "createTime": "2024-01-24 11:47:02", | ||
| 337 | "sqlScript": null, | ||
| 338 | "dataSourceGuid": null | ||
| 339 | } | ||
| 340 | ]) | ||
| 341 | const templateInfo = ref({ | 34 | const templateInfo = ref({ |
| 342 | title: '医疗数据分类', | 35 | title: '医疗数据分类', |
| 343 | descGroup: [ | 36 | descGroup: [ |
| ... | @@ -365,7 +58,7 @@ const treeInfo = ref({ | ... | @@ -365,7 +58,7 @@ const treeInfo = ref({ |
| 365 | nodeKey: 'guid', | 58 | nodeKey: 'guid', |
| 366 | expandedKey: [], | 59 | expandedKey: [], |
| 367 | expandOnNodeClick: false, | 60 | expandOnNodeClick: false, |
| 368 | data: data1 || [], | 61 | data: [], |
| 369 | }); | 62 | }); |
| 370 | 63 | ||
| 371 | const expand1 = ref(true) | 64 | const expand1 = ref(true) |
| ... | @@ -578,24 +271,36 @@ const getPermissionList = (val, init = false) => { | ... | @@ -578,24 +271,36 @@ const getPermissionList = (val, init = false) => { |
| 578 | let params: any = val ? { ...val } : {} | 271 | let params: any = val ? { ...val } : {} |
| 579 | params.pageIndex = listPage.value.curr; | 272 | params.pageIndex = listPage.value.curr; |
| 580 | params.pageSize = listPage.value.limit; | 273 | params.pageSize = listPage.value.limit; |
| 274 | params.type = 'C'; | ||
| 581 | listLoading.value = true | 275 | listLoading.value = true |
| 582 | // getPermissionDictList(params).then((res: any) => { | 276 | getClassifyGradList(params).then((res: any) => { |
| 583 | // if (res.code == proxy.$passCode) { | 277 | if (res.code == proxy.$passCode) { |
| 584 | // const data = res.data?.records || [] | 278 | const data = res.data?.records || [] |
| 585 | // if (init) { | 279 | if (init) { |
| 586 | // permissionList.value = JSON.parse(JSON.stringify(data)) | 280 | permissionList.value = JSON.parse(JSON.stringify(data)) |
| 587 | // currpermissionList.value = JSON.parse(JSON.stringify(data)) | 281 | currpermissionList.value = JSON.parse(JSON.stringify(data)) |
| 588 | // listPage.value.totalPages = res.data.totalPages | 282 | listPage.value.totalPages = res.data.totalPages |
| 589 | // toSearch({}) | 283 | } else { |
| 590 | // } else { | 284 | permissionList.value.push(...JSON.parse(JSON.stringify(data))) |
| 591 | // permissionList.value.push(...JSON.parse(JSON.stringify(data))) | 285 | querySearch(asideSearchInput.value) |
| 592 | // querySearch(asideSearchInput.value) | 286 | } |
| 593 | // } | 287 | if (data.length) { |
| 594 | // } | 288 | templateInfo.value = data[0]; |
| 595 | // listLoading.value = false | 289 | } |
| 596 | // }).catch(() => { | 290 | } |
| 597 | // listLoading.value = false | 291 | listLoading.value = false |
| 598 | // }) | 292 | }).catch(() => { |
| 293 | listLoading.value = false | ||
| 294 | }) | ||
| 295 | } | ||
| 296 | |||
| 297 | const getClassifyTree = (data) => { | ||
| 298 | const params = { | ||
| 299 | guid: data.guid | ||
| 300 | } | ||
| 301 | getClassifyTreeList(params).then((res: any) => { | ||
| 302 | |||
| 303 | }) | ||
| 599 | } | 304 | } |
| 600 | 305 | ||
| 601 | onActivated(() => { | 306 | onActivated(() => { |
| ... | @@ -603,7 +308,7 @@ onActivated(() => { | ... | @@ -603,7 +308,7 @@ onActivated(() => { |
| 603 | }) | 308 | }) |
| 604 | 309 | ||
| 605 | onBeforeMount(() => { | 310 | onBeforeMount(() => { |
| 606 | 311 | getPermissionList({}) | |
| 607 | }) | 312 | }) |
| 608 | 313 | ||
| 609 | </script> | 314 | </script> |
| ... | @@ -618,38 +323,30 @@ onBeforeMount(() => { | ... | @@ -618,38 +323,30 @@ onBeforeMount(() => { |
| 618 | </div> | 323 | </div> |
| 619 | <div class="aside_list" v-loading="listLoading" v-infinite-scroll="handleScroll"> | 324 | <div class="aside_list" v-loading="listLoading" v-infinite-scroll="handleScroll"> |
| 620 | <div class="list_item" v-for="(item, i) in currpermissionList" :class="{ active: selectIndex == i }" | 325 | <div class="list_item" v-for="(item, i) in currpermissionList" :class="{ active: selectIndex == i }" |
| 621 | @click="selectIndex = i; changTable();" v-preReClick>{{ item.dataPermissionName }}</div> | 326 | @click="selectIndex = i; changTable();" v-preReClick>{{ item.name }}</div> |
| 622 | </div> | 327 | </div> |
| 623 | </div> | 328 | </div> |
| 624 | <div class="main_wrap" :class="{ full: step == 1 }"> | 329 | <div class="main_wrap" :class="{ full: step == 1 }"> |
| 625 | <div class="content_main" v-show="step == 0"> | 330 | <div class="content_main" v-show="step == 0"> |
| 626 | <div class="template_panel"> | 331 | <div class="template_panel"> |
| 627 | <div class="panel_title"> | 332 | <div class="title_item"> |
| 628 | <span class="title_text">{{ templateInfo.title }}</span> | 333 | <span class="title_label">分类标准:</span> |
| 629 | <div class="title_desc"> | 334 | <span class="title_text">{{ templateInfo.name }}</span> |
| 630 | <div class="desc_group" v-for="desc in templateInfo.descGroup"> | 335 | </div> |
| 631 | <span class="desc_label">{{ desc.label }}:</span> | 336 | <div class="title_item"> |
| 632 | <span class="desc_value">{{ desc.value }}</span> | 337 | <span class="title_label">分级标准:</span> |
| 633 | </div> | 338 | <span class="title_text">{{ templateInfo.name }}</span> |
| 634 | </div> | ||
| 635 | </div> | 339 | </div> |
| 636 | <div class="panel_tags"> | 340 | <div class="title_item is_block"> |
| 637 | <el-tag v-for="tag in templateInfo.tags" :type="tag.type">{{ tag.name }}</el-tag> | 341 | <span class="title_label">分级标准:</span> |
| 342 | <span>{{ templateInfo.desc }}</span> | ||
| 638 | </div> | 343 | </div> |
| 639 | <p class="panel_desc">{{ templateInfo.desc }}</p> | ||
| 640 | </div> | 344 | </div> |
| 641 | <div class="panel_content"> | 345 | <div class="panel_content"> |
| 642 | <div class="box_left"> | 346 | <div class="box_left"> |
| 643 | <div class="aside_title">分类分级目录</div> | ||
| 644 | <Tree :treeInfo="treeInfo" @nodeClick="nodeClick" /> | 347 | <Tree :treeInfo="treeInfo" @nodeClick="nodeClick" /> |
| 645 | </div> | 348 | </div> |
| 646 | <div class="box_right"> | 349 | <div class="box_right"> |
| 647 | <el-breadcrumb separator="/"> | ||
| 648 | <el-breadcrumb-item>全部</el-breadcrumb-item> | ||
| 649 | <el-breadcrumb-item>promotion management</el-breadcrumb-item> | ||
| 650 | <el-breadcrumb-item>promotion list</el-breadcrumb-item> | ||
| 651 | <el-breadcrumb-item>promotion detail</el-breadcrumb-item> | ||
| 652 | </el-breadcrumb> | ||
| 653 | <div class="table_panel_wrap"> | 350 | <div class="table_panel_wrap"> |
| 654 | <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tablePageChange="tablePageChange" /> | 351 | <Table :tableInfo="tableInfo" @tableBtnClick="tableBtnClick" @tablePageChange="tablePageChange" /> |
| 655 | </div> | 352 | </div> |
| ... | @@ -794,6 +491,7 @@ onBeforeMount(() => { | ... | @@ -794,6 +491,7 @@ onBeforeMount(() => { |
| 794 | .box_left { | 491 | .box_left { |
| 795 | width: 240px; | 492 | width: 240px; |
| 796 | height: 100%; | 493 | height: 100%; |
| 494 | padding: 12px 0; | ||
| 797 | border-right: 1px solid #d9d9d9; | 495 | border-right: 1px solid #d9d9d9; |
| 798 | 496 | ||
| 799 | .aside_title { | 497 | .aside_title { |
| ... | @@ -812,6 +510,7 @@ onBeforeMount(() => { | ... | @@ -812,6 +510,7 @@ onBeforeMount(() => { |
| 812 | 510 | ||
| 813 | .box_right { | 511 | .box_right { |
| 814 | width: 100%; | 512 | width: 100%; |
| 513 | padding: 12px 0; | ||
| 815 | 514 | ||
| 816 | .el-breadcrumb { | 515 | .el-breadcrumb { |
| 817 | padding: 0 12px; | 516 | padding: 0 12px; | ... | ... |
-
Please register or sign in to post a comment