c1971ca8 by lihua

修改接口地址

1 parent 76265492
......@@ -156,8 +156,8 @@ export const getContractDataProduct = (tenantGuid) => request({
/** 获取下拉数据产品列表的去重字段 */
export const getDamFieldsByProductGuid = (productGuid, isTds = 'N') => request({
url: `${import.meta.env.VITE_API_NEW_PORTAL}/connector-invoke/field-by-dam-guid?damGuid=${productGuid}&isTds=${isTds}`,
method: 'post'
url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/field-by-dam-guid?damGuid=${productGuid}&isTds=${isTds}`,
method: 'get'
})
/** 创建合约 */
......
......@@ -1064,7 +1064,7 @@ onBeforeMount(() => {
extendTableInfo.value.data = detailInfo.value.contractExpansions || [];
productTableInfo.value.data = detailInfo.value.contractSubjects || [];
let productGuid = productTableInfo.value.data?.[0]?.dataProductGuid;
if (productGuid) {
if (productGuid && detailType.value == 'consult') {
getDamFieldsByProductGuid(productGuid, isDataUse.value ? 'Y' : 'N').then((res: any) => {
if (res?.code == proxy.$passCode) {
productFieldList.value = res.data || initProductFieldValue.value;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!