a2ed46ba by lxs

Merge branch 'develop' of http://117.78.60.236:8000/csbr-daop/fe-data-asset-management into develop

2 parents b65aa437 d109e7f6
...@@ -428,6 +428,15 @@ export const getApiDetail = (params) => request({ ...@@ -428,6 +428,15 @@ export const getApiDetail = (params) => request({
428 method: 'get', 428 method: 'get',
429 }) 429 })
430 430
431 // 跨服务调加工交付接口 获取API调用次数
432 export const getApiInvokeCount = (data) => request({
433 // url: `http://localhost:9000/delivery/ms-daop-jgjf-data-open-service/home-page/dam/call-api-stat`,
434 url: `http://192.168.6.22:29900/delivery/ms-daop-jgjf-data-open-service/home-page/dam/call-api-stat`,
435 method: 'post',
436 data
437 })
438
439
431 // export const getTenantInfo = (params) => request({ 440 // export const getTenantInfo = (params) => request({
432 // // url: `${import.meta.env.VITE_APP_PERSONAL_URL}/tenant/getByGuid/${params}`, 441 // // url: `${import.meta.env.VITE_APP_PERSONAL_URL}/tenant/getByGuid/${params}`,
433 // // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`, 442 // // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`,
......
...@@ -12,7 +12,6 @@ export const getEntryList = (params) => request({ ...@@ -12,7 +12,6 @@ export const getEntryList = (params) => request({
12 export const deleteEntryAll = (params) => request({ 12 export const deleteEntryAll = (params) => request({
13 url: `${import.meta.env.VITE_API_NEW_PORTAL}/da-intable/delete?guid=${params}`, 13 url: `${import.meta.env.VITE_API_NEW_PORTAL}/da-intable/delete?guid=${params}`,
14 method: 'delete', 14 method: 'delete',
15 data: params
16 }) 15 })
17 /** 获取资产入表信息新增 */ 16 /** 获取资产入表信息新增 */
18 export const createEntry = (params) => request({ 17 export const createEntry = (params) => request({
...@@ -34,6 +33,12 @@ export const getDocumentList = (params) => request({ ...@@ -34,6 +33,12 @@ export const getDocumentList = (params) => request({
34 method: 'post', 33 method: 'post',
35 data: params 34 data: params
36 }) 35 })
36 /**资产详情 */
37 export const getAssetDetail = (data) => request({
38 url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/intable/get-table-select`,
39 method: 'post',
40 data
41 })
37 42
38 /** 资产融资管理 */ 43 /** 资产融资管理 */
39 /** 获取资产融资信息列表 */ 44 /** 获取资产融资信息列表 */
......
...@@ -11,7 +11,8 @@ import { ...@@ -11,7 +11,8 @@ import {
11 deleteEntryAll, 11 deleteEntryAll,
12 createEntry, 12 createEntry,
13 intableUpdate, 13 intableUpdate,
14 getDocumentList 14 getDocumentList,
15 getAssetDetail
15 } from "@/api/modules/dataTransaction"; 16 } from "@/api/modules/dataTransaction";
16 import { getDamCatalogTable } from '@/api/modules/dataAsset'; 17 import { getDamCatalogTable } from '@/api/modules/dataAsset';
17 const route = useRoute() 18 const route = useRoute()
...@@ -68,7 +69,8 @@ const columnInfo = ref({ ...@@ -68,7 +69,8 @@ const columnInfo = ref({
68 issuingEntityName: "", 69 issuingEntityName: "",
69 issuingEntityGuid: "", 70 issuingEntityGuid: "",
70 companyGuid: "", 71 companyGuid: "",
71 registerGuid: "" 72 registerGuid: "",
73 damGuid: ""
72 }) 74 })
73 const companyOption = ref<any>([ 75 const companyOption = ref<any>([
74 { 76 {
...@@ -95,6 +97,16 @@ const colums = [ ...@@ -95,6 +97,16 @@ const colums = [
95 selectOption: () => companyOption.value 97 selectOption: () => companyOption.value
96 }, 98 },
97 { 99 {
100 prop: "daName",
101 label: "资产名称",
102 width: "180",
103 componentType: "select",
104 componentDisabled: false,
105 //editDisabled:()=> tableInfo.value.flag==="edit" ? true :false,
106 selectOption: () => assetsOption.value,
107 selectKey: "daName",
108 },
109 {
98 prop: "intableTime", 110 prop: "intableTime",
99 label: "入表时间", 111 label: "入表时间",
100 width: "130", 112 width: "130",
...@@ -134,16 +146,7 @@ const colums = [ ...@@ -134,16 +146,7 @@ const colums = [
134 146
135 } 147 }
136 }, 148 },
137 { 149
138 prop: "daName",
139 label: "资产名称",
140 width: "180",
141 componentType: "select",
142 componentDisabled: false,
143 //editDisabled:()=> tableInfo.value.flag==="edit" ? true :false,
144 selectOption: () => assetsOption.value,
145 selectKey: "damName",
146 },
147 { 150 {
148 prop: "daCode", 151 prop: "daCode",
149 label: "资产编号", 152 label: "资产编号",
...@@ -190,13 +193,29 @@ const documentList = async () => { ...@@ -190,13 +193,29 @@ const documentList = async () => {
190 193
191 return Promise.resolve() 194 return Promise.resolve()
192 } 195 }
196 // const params = {
197 // daName: row.damName,
198 // type: 1,
199 // companyGuid: row.tenantGuid,
200 // isCompany: true
201 // }
202 // getAssetDetail(params).then((res: any) => {
203 // if (res?.code === proxy.$passCode) {
204 // console.log(res.data, '--123-')
205
206 // }
207 // })
193 // 查资产 208 // 查资产
194 const getAssetsList = async () => { 209 const getAssetsList = async (values, row,) => {
195 const res = await getDamCatalogTable({ 210 console.log(values, row, '--查资产-')
196 pageSize: -1, 211 const params = {
197 pageIndex: 1, 212 daName: '',
198 }) 213 type: 1,
199 assetsOption.value = res.data.records || [] 214 companyGuid: values?.tenantGuid || row.companyGuid,
215 isCompany: true
216 }
217 const res = await getAssetDetail(params)
218 assetsOption.value = res.data || []
200 console.log(assetsOption.value, '---') 219 console.log(assetsOption.value, '---')
201 return Promise.resolve() 220 return Promise.resolve()
202 } 221 }
...@@ -236,7 +255,8 @@ const createOneData = () => { ...@@ -236,7 +255,8 @@ const createOneData = () => {
236 intableMoney: 0, 255 intableMoney: 0,
237 issuingEntityName: "", 256 issuingEntityName: "",
238 companyGuid: "", 257 companyGuid: "",
239 registerGuid: "" 258 registerGuid: "",
259 damGuid: ""
240 }) 260 })
241 //tableInfo.value.data = arr 261 //tableInfo.value.data = arr
242 tableInfo.value.currentId = BASE_ID 262 tableInfo.value.currentId = BASE_ID
...@@ -302,7 +322,7 @@ const columnSave = async (row) => { ...@@ -302,7 +322,7 @@ const columnSave = async (row) => {
302 ElMessage.success(`${tableInfo.value.flag === 'create' ? '新增' : '修改'}成功`); 322 ElMessage.success(`${tableInfo.value.flag === 'create' ? '新增' : '修改'}成功`);
303 getTableData() 323 getTableData()
304 columnInfoReset() 324 columnInfoReset()
305 documentList() 325 // documentList()
306 findTab(false) 326 findTab(false)
307 tableRef.value.columnInfo = {} 327 tableRef.value.columnInfo = {}
308 } else { 328 } else {
...@@ -326,7 +346,8 @@ const columnInfoReset = () => { ...@@ -326,7 +346,8 @@ const columnInfoReset = () => {
326 issuingEntityName: "", 346 issuingEntityName: "",
327 issuingEntityGuid: "", 347 issuingEntityGuid: "",
328 companyGuid: "", 348 companyGuid: "",
329 registerGuid: "" 349 registerGuid: "",
350 damGuid: ""
330 } 351 }
331 } 352 }
332 const columnEdit = (row) => { 353 const columnEdit = (row) => {
...@@ -376,12 +397,24 @@ const handelSelect = (row, key, row1) => { ...@@ -376,12 +397,24 @@ const handelSelect = (row, key, row1) => {
376 tableRef.value.columnInfo.effectiveDate = "" 397 tableRef.value.columnInfo.effectiveDate = ""
377 } else { 398 } else {
378 if (tableInfo.value.flag === "create") { 399 if (tableInfo.value.flag === "create") {
379 console.log(row, '-----') 400 console.log(row, '--create---')
401 // const params = {
402 // daName: row.damName,
403 // type: 1,
404 // companyGuid: row.tenantGuid,
405 // isCompany: true
406 // }
407 // getAssetDetail(params).then((res: any) => {
408 // if (res?.code === proxy.$passCode) {
409 // console.log(res.data, '--123-')
410
411 // }
412 // })
380 const currentDate = dayjs().format('YYYY-MM-DD'); 413 const currentDate = dayjs().format('YYYY-MM-DD');
381 columnInfo.value = { 414 columnInfo.value = {
382 guid: row.guid, 415 guid: row.guid,
383 companyName: row.rightMainName, 416 companyName: row.tenantName,
384 daName: row.damName, 417 daName: row.daName,
385 registerTime: row.registerTime, 418 registerTime: row.registerTime,
386 daCode: row.daCode, 419 daCode: row.daCode,
387 effectiveDate: row.effectiveDate, 420 effectiveDate: row.effectiveDate,
...@@ -390,7 +423,8 @@ const handelSelect = (row, key, row1) => { ...@@ -390,7 +423,8 @@ const handelSelect = (row, key, row1) => {
390 issuingEntityName: row.issuingEntityName, 423 issuingEntityName: row.issuingEntityName,
391 issuingEntityGuid: row.issuingEntityGuid, 424 issuingEntityGuid: row.issuingEntityGuid,
392 companyGuid: row.tenantGuid, 425 companyGuid: row.tenantGuid,
393 registerGuid: row.registerGuid 426 registerGuid: row.registerGuid,
427 damGuid: row.damGuid
394 } 428 }
395 const { guid, ...obj } = columnInfo.value 429 const { guid, ...obj } = columnInfo.value
396 tableRef.value.columnInfo = obj 430 tableRef.value.columnInfo = obj
...@@ -401,6 +435,7 @@ const handelSelect = (row, key, row1) => { ...@@ -401,6 +435,7 @@ const handelSelect = (row, key, row1) => {
401 columnInfo.value.effectiveDate = row.effectiveDate 435 columnInfo.value.effectiveDate = row.effectiveDate
402 columnInfo.value.issuingEntityName = row.issuingEntityName 436 columnInfo.value.issuingEntityName = row.issuingEntityName
403 columnInfo.value.registerGuid = row.registerGuid; 437 columnInfo.value.registerGuid = row.registerGuid;
438 columnInfo.value.damGuid = row.damGuid;
404 tableRef.value.columnInfo = { ...columnInfo.value } 439 tableRef.value.columnInfo = { ...columnInfo.value }
405 } 440 }
406 441
...@@ -415,7 +450,8 @@ const findTab = (flag) => { ...@@ -415,7 +450,8 @@ const findTab = (flag) => {
415 tab.meta.editPage = flag 450 tab.meta.editPage = flag
416 } 451 }
417 const addAssetsOption = (values, row, flag = false) => { 452 const addAssetsOption = (values, row, flag = false) => {
418 getAssetsList().then(() => { 453 console.log(values, row, flag, '--新增-')
454 getAssetsList(values, row).then(() => {
419 const obj = { 455 const obj = {
420 costAccessmentGuid: null, 456 costAccessmentGuid: null,
421 daCode: row.daCode, 457 daCode: row.daCode,
...@@ -432,6 +468,7 @@ const addAssetsOption = (values, row, flag = false) => { ...@@ -432,6 +468,7 @@ const addAssetsOption = (values, row, flag = false) => {
432 state: row.state, 468 state: row.state,
433 tenantGuid: row.companyGuid, 469 tenantGuid: row.companyGuid,
434 tenantName: row.companyName, 470 tenantName: row.companyName,
471 damGuid: row.damGuid
435 } 472 }
436 const arr = assetsOption.value 473 const arr = assetsOption.value
437 if (values && values.tenantGuid === row.companyGuid) { 474 if (values && values.tenantGuid === row.companyGuid) {
......
...@@ -19,6 +19,7 @@ import useUserStore from "@/store/modules/user"; ...@@ -19,6 +19,7 @@ import useUserStore from "@/store/modules/user";
19 import Moment from "moment"; 19 import Moment from "moment";
20 import platformIndexNewBigScreen from "./platformIndexNewBigScreen.vue"; 20 import platformIndexNewBigScreen from "./platformIndexNewBigScreen.vue";
21 import { getDownFileSignByUrl, obsDownloadRequest, parseAndDecodeUrl } from "@/api/modules/obsService"; 21 import { getDownFileSignByUrl, obsDownloadRequest, parseAndDecodeUrl } from "@/api/modules/obsService";
22 import { getApiInvokeCount } from "@/api/modules/dataAsset";
22 // import platformIndex from "./data_asset/platformIndex.vue"; 23 // import platformIndex from "./data_asset/platformIndex.vue";
23 24
24 const router = useRouter(); 25 const router = useRouter();
...@@ -333,8 +334,8 @@ const financingTableInfo = ref({ ...@@ -333,8 +334,8 @@ const financingTableInfo = ref({
333 minHeight: '60px', 334 minHeight: '60px',
334 fields: [ 335 fields: [
335 { 336 {
336 label: "资产名称", 337 label: "产品名称",
337 field: "daName", 338 field: "apiName",
338 width: 140, 339 width: 140,
339 // type: "text_btn", 340 // type: "text_btn",
340 // columClass: 'text_btn', 341 // columClass: 'text_btn',
...@@ -342,24 +343,24 @@ const financingTableInfo = ref({ ...@@ -342,24 +343,24 @@ const financingTableInfo = ref({
342 }, 343 },
343 // { label: "授信日期", field: "creditGrantingTime", width: 110 }, 344 // { label: "授信日期", field: "creditGrantingTime", width: 110 },
344 { 345 {
345 label: "授信金额(万元)", 346 label: "调用次数",
346 field: "creditGrantingMoney", 347 field: "callApiCount",
347 width: 140, 348 width: 140,
348 align: "right", 349 align: "right",
349 getName: (scope) => { 350 // getName: (scope) => {
350 return changeNum(scope.row.creditGrantingMoney ?? 0, 2, true) + '万元'; 351 // return changeNum(scope.row.creditGrantingMoney ?? 0, 2, true) + '万元';
351 }, 352 // },
352 },
353 {
354 label: "授信期限(月)",
355 field: "creditGrantingTerm",
356 width: 90,
357 align: "right",
358 getName: (scope) => {
359 return changeNum(scope.row.creditGrantingTerm ?? 0) + '月';
360 },
361 }, 353 },
362 { label: "授信主体", field: "creditGrantingGenerality", minWidth: 100 }, 354 // {
355 // label: "授信期限(月)",
356 // field: "creditGrantingTerm",
357 // width: 90,
358 // align: "right",
359 // getName: (scope) => {
360 // return changeNum(scope.row.creditGrantingTerm ?? 0) + '月';
361 // },
362 // },
363 { label: "最近调用时间", field: "invokeStartTime", minWidth: 100 },
363 ], 364 ],
364 data: [], 365 data: [],
365 showPage: false, 366 showPage: false,
...@@ -369,18 +370,25 @@ const financingTableInfo = ref({ ...@@ -369,18 +370,25 @@ const financingTableInfo = ref({
369 loading1: false, 370 loading1: false,
370 }); 371 });
371 372
373 // 数据产品调用情况
374 // const getDataInfo = async () => {
375 // const params = {
376 // startTime: startTime.value || '',
377 // endTime: endTime.value || '',
378 // }
379 // const res: any = await getApiInvokeCount(params);
380 // }
372 const getFinancingTableData = () => { 381 const getFinancingTableData = () => {
373 financingTableInfo.value.loading1 = true; 382 financingTableInfo.value.loading1 = true;
374 getFinanceInfo({ 383 const params = {
375 pageSize: 200,
376 pageIndex: 1,
377 startTime: startTime.value || '', 384 startTime: startTime.value || '',
378 endTime: endTime.value || '', 385 endTime: endTime.value || '',
379 }).then((res: any) => { 386 }
387 getApiInvokeCount(params).then((res: any) => {
380 financingTableInfo.value.loading1 = false; 388 financingTableInfo.value.loading1 = false;
381 if (res.code == proxy.$passCode) { 389 if (res.code == proxy.$passCode) {
382 let data = res.data || {}; 390 let data = res.data || {};
383 financingTableInfo.value.data = data.records || []; 391 financingTableInfo.value.data = data || [];
384 } else { 392 } else {
385 ElMessage.error(res.msg); 393 ElMessage.error(res.msg);
386 } 394 }
...@@ -670,6 +678,9 @@ watch( ...@@ -670,6 +678,9 @@ watch(
670 handleChangeTime(daterange.value); 678 handleChangeTime(daterange.value);
671 }, 679 },
672 ); 680 );
681
682
683
673 const handleDatePickerChange = (val) => { 684 const handleDatePickerChange = (val) => {
674 // 更新开始时间和结束时间 685 // 更新开始时间和结束时间
675 startTime.value = val[0]; 686 startTime.value = val[0];
...@@ -695,6 +706,7 @@ const handleDatePickerChange = (val) => { ...@@ -695,6 +706,7 @@ const handleDatePickerChange = (val) => {
695 filterDate.value = ''; 706 filterDate.value = '';
696 }; 707 };
697 708
709
698 const startTime = ref() 710 const startTime = ref()
699 const endTime = ref() 711 const endTime = ref()
700 const handleChangeTime = (val) => { 712 const handleChangeTime = (val) => {
......
...@@ -35,7 +35,7 @@ const tableInfo = ref({ ...@@ -35,7 +35,7 @@ const tableInfo = ref({
35 fixedSelection: true, 35 fixedSelection: true,
36 fields: [ 36 fields: [
37 { label: "序号", type: "index", width: 56, align: "center" }, 37 { label: "序号", type: "index", width: 56, align: "center" },
38 { label: "数据产品编号", field: "label", width: 120, }, 38 // { label: "数据产品编号", field: "label", width: 120, },
39 { 39 {
40 label: "数据产品名称", field: "damName", width: 140, 40 label: "数据产品名称", field: "damName", width: 140,
41 }, 41 },
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!