合约策略选择产品字段
Showing
3 changed files
with
10 additions
and
6 deletions
| ... | @@ -155,8 +155,8 @@ export const getContractDataProduct = (tenantGuid) => request({ | ... | @@ -155,8 +155,8 @@ export const getContractDataProduct = (tenantGuid) => request({ |
| 155 | }) | 155 | }) |
| 156 | 156 | ||
| 157 | /** 获取下拉数据产品列表的去重字段 */ | 157 | /** 获取下拉数据产品列表的去重字段 */ |
| 158 | export const getDamFieldsByProductGuid = (productGuid) => request({ | 158 | export const getDamFieldsByProductGuid = (productGuid, isTds = 'N') => request({ |
| 159 | url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/field-by-dam-guid?damGuid=${productGuid}`, | 159 | url: `${import.meta.env.VITE_API_NEW_PORTAL}/connector-invoke/field-by-dam-guid?damGuid=${productGuid}&isTds=${isTds}`, |
| 160 | method: 'post' | 160 | method: 'post' |
| 161 | }) | 161 | }) |
| 162 | 162 | ... | ... |
| ... | @@ -310,7 +310,7 @@ const hanldeTableSelectChange = (val, scope, item) => { | ... | @@ -310,7 +310,7 @@ const hanldeTableSelectChange = (val, scope, item) => { |
| 310 | scope.row.dataProductTypeName = productItem?.productTypeName; | 310 | scope.row.dataProductTypeName = productItem?.productTypeName; |
| 311 | /** 选择了产品,需要重新查询去重字段 */ | 311 | /** 选择了产品,需要重新查询去重字段 */ |
| 312 | if (productItem?.productGuid) { | 312 | if (productItem?.productGuid) { |
| 313 | getDamFieldsByProductGuid(productItem?.productGuid).then((res: any) => { | 313 | getDamFieldsByProductGuid(productItem?.productGuid, isDataUse.value ? 'Y' : 'N').then((res: any) => { |
| 314 | if (res?.code == proxy.$passCode) { | 314 | if (res?.code == proxy.$passCode) { |
| 315 | productFieldList.value = res.data || initStrategyData.value; | 315 | productFieldList.value = res.data || initStrategyData.value; |
| 316 | } else { | 316 | } else { |
| ... | @@ -702,7 +702,7 @@ onBeforeMount(() => { | ... | @@ -702,7 +702,7 @@ onBeforeMount(() => { |
| 702 | productTableInfo.value.data = productData.value; | 702 | productTableInfo.value.data = productData.value; |
| 703 | let productGuid = productData.value?.[0]?.dataProductGuid; | 703 | let productGuid = productData.value?.[0]?.dataProductGuid; |
| 704 | if (productGuid) { | 704 | if (productGuid) { |
| 705 | getDamFieldsByProductGuid(productGuid).then((res: any) => { | 705 | getDamFieldsByProductGuid(productGuid, isDataUse.value ? 'Y' : 'N').then((res: any) => { |
| 706 | if (res?.code == proxy.$passCode) { | 706 | if (res?.code == proxy.$passCode) { |
| 707 | productFieldList.value = res.data || initProductFieldValue.value; | 707 | productFieldList.value = res.data || initProductFieldValue.value; |
| 708 | } else { | 708 | } else { | ... | ... |
| ... | @@ -27,7 +27,7 @@ import { | ... | @@ -27,7 +27,7 @@ import { |
| 27 | import { | 27 | import { |
| 28 | getParamsList, | 28 | getParamsList, |
| 29 | } from "@/api/modules/queryService"; | 29 | } from "@/api/modules/queryService"; |
| 30 | import { commonPageConfig, TableColumnWidth } from "@/utils/enum"; | 30 | import { commonPageConfig, TableColumnWidth, USERROLE } from "@/utils/enum"; |
| 31 | import StrategyTable from './components/strategyTable.vue'; | 31 | import StrategyTable from './components/strategyTable.vue'; |
| 32 | import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common'; | 32 | import { onUploadFilePreview, onUploadFileDownload } from '@/api/modules/common'; |
| 33 | import { useValidator } from "@/hooks/useValidator"; | 33 | import { useValidator } from "@/hooks/useValidator"; |
| ... | @@ -63,6 +63,10 @@ const detailInfo: any = ref({}); | ... | @@ -63,6 +63,10 @@ const detailInfo: any = ref({}); |
| 63 | const detailType = ref(route.query.type); //为null表示第一步查看,其余协整和签署等需要传递type | 63 | const detailType = ref(route.query.type); //为null表示第一步查看,其余协整和签署等需要传递type |
| 64 | const isDetail = ref(route.query.isDetail == 'Y'); | 64 | const isDetail = ref(route.query.isDetail == 'Y'); |
| 65 | 65 | ||
| 66 | const isDataUse = computed(() => { | ||
| 67 | return localStorage.getItem('userRole') == USERROLE.USE; | ||
| 68 | }) | ||
| 69 | |||
| 66 | const toolBtns: any = computed(() => { | 70 | const toolBtns: any = computed(() => { |
| 67 | let btnsArr: any = [{ | 71 | let btnsArr: any = [{ |
| 68 | label: isDetail.value ? "关闭" : '取消', value: "cancel", plain: true | 72 | label: isDetail.value ? "关闭" : '取消', value: "cancel", plain: true |
| ... | @@ -1061,7 +1065,7 @@ onBeforeMount(() => { | ... | @@ -1061,7 +1065,7 @@ onBeforeMount(() => { |
| 1061 | productTableInfo.value.data = detailInfo.value.contractSubjects || []; | 1065 | productTableInfo.value.data = detailInfo.value.contractSubjects || []; |
| 1062 | let productGuid = productTableInfo.value.data?.[0]?.dataProductGuid; | 1066 | let productGuid = productTableInfo.value.data?.[0]?.dataProductGuid; |
| 1063 | if (productGuid) { | 1067 | if (productGuid) { |
| 1064 | getDamFieldsByProductGuid(productGuid).then((res: any) => { | 1068 | getDamFieldsByProductGuid(productGuid, isDataUse.value ? 'Y' : 'N').then((res: any) => { |
| 1065 | if (res?.code == proxy.$passCode) { | 1069 | if (res?.code == proxy.$passCode) { |
| 1066 | productFieldList.value = res.data || initProductFieldValue.value; | 1070 | productFieldList.value = res.data || initProductFieldValue.value; |
| 1067 | } else { | 1071 | } else { | ... | ... |
-
Please register or sign in to post a comment