二期的策略引用
Showing
7 changed files
with
99 additions
and
20 deletions
| ... | @@ -30,7 +30,7 @@ | ... | @@ -30,7 +30,7 @@ |
| 30 | "crypto-js": "^4.2.0", | 30 | "crypto-js": "^4.2.0", |
| 31 | "dayjs": "^1.11.7", | 31 | "dayjs": "^1.11.7", |
| 32 | "echarts": "^5.4.3", | 32 | "echarts": "^5.4.3", |
| 33 | "element-plus": "^2.9.0", | 33 | "element-plus": "^2.10.5", |
| 34 | "eruda": "^3.0.0", | 34 | "eruda": "^3.0.0", |
| 35 | "file-saver": "^2.0.5", | 35 | "file-saver": "^2.0.5", |
| 36 | "hotkeys-js": "^3.10.2", | 36 | "hotkeys-js": "^3.10.2", | ... | ... |
| ... | @@ -51,8 +51,8 @@ dependencies: | ... | @@ -51,8 +51,8 @@ dependencies: |
| 51 | specifier: ^5.4.3 | 51 | specifier: ^5.4.3 |
| 52 | version: 5.5.1 | 52 | version: 5.5.1 |
| 53 | element-plus: | 53 | element-plus: |
| 54 | specifier: ^2.9.0 | 54 | specifier: ^2.10.5 |
| 55 | version: 2.9.0(vue@3.5.13) | 55 | version: 2.10.5(vue@3.5.13) |
| 56 | eruda: | 56 | eruda: |
| 57 | specifier: ^3.0.0 | 57 | specifier: ^3.0.0 |
| 58 | version: 3.4.1 | 58 | version: 3.4.1 |
| ... | @@ -4066,8 +4066,8 @@ packages: | ... | @@ -4066,8 +4066,8 @@ packages: |
| 4066 | resolution: {integrity: sha512-IXEuxU+5ClW2IGEYFC2T7szbyVgehupCWQe5GNh+H065CD6U6IFN0s4KeAMFGNmQolRU4IV7zGBWSYMmZ8uuqQ==} | 4066 | resolution: {integrity: sha512-IXEuxU+5ClW2IGEYFC2T7szbyVgehupCWQe5GNh+H065CD6U6IFN0s4KeAMFGNmQolRU4IV7zGBWSYMmZ8uuqQ==} |
| 4067 | dev: true | 4067 | dev: true |
| 4068 | 4068 | ||
| 4069 | /element-plus@2.9.0(vue@3.5.13): | 4069 | /element-plus@2.10.5(vue@3.5.13): |
| 4070 | resolution: {integrity: sha512-ccOFXKsauo2dtokAr4OX7gZsb7TuAoVxA2zGRZo5o2yyDDBLBaZxOoFQPoxITSLcHbBfQuNDGK5Iag5hnyKkZA==} | 4070 | resolution: {integrity: sha512-O9wTDu3Tm51ACVByWrThtBhH4Ygefg1HGY5pyAaxnoIrj8uMN0GtZ4IREwR3Yw/6sM2HyxjrsGI/D46iUVP97A==} |
| 4071 | peerDependencies: | 4071 | peerDependencies: |
| 4072 | vue: ^3.2.0 | 4072 | vue: ^3.2.0 |
| 4073 | dependencies: | 4073 | dependencies: | ... | ... |
| ... | @@ -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, isTds = 'N') => request({ | 158 | export const getDamFieldsByProductGuid = (productGuid, isTds = 'N', isAnnon = 'N') => request({ |
| 159 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/field-by-dam-guid?damGuid=${productGuid}&isTds=${isTds}`, | 159 | url: `${import.meta.env.VITE_APP_DIGITAL_CONTRACT_URL}/connector-invoke/field-by-dam-guid?damGuid=${productGuid}&isTds=${isTds}&isAnnon=${isAnnon}`, |
| 160 | method: 'get' | 160 | method: 'get' |
| 161 | }) | 161 | }) |
| 162 | 162 | ... | ... |
This diff is collapsed.
Click to expand it.
| ... | @@ -314,12 +314,21 @@ const hanldeTableSelectChange = (val, scope, item) => { | ... | @@ -314,12 +314,21 @@ const hanldeTableSelectChange = (val, scope, item) => { |
| 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 { |
| 317 | productFieldList.value = []; | 317 | productFieldList.value = initProductFieldValue.value; |
| 318 | res?.msg && proxy.$ElMessage.error(res?.msg) | ||
| 319 | } | ||
| 320 | }) | ||
| 321 | getDamFieldsByProductGuid(productItem?.productGuid, isDataUse.value ? 'Y' : 'N', 'Y').then((res: any) => { | ||
| 322 | if (res?.code == proxy.$passCode) { | ||
| 323 | annonFieldsList.value = res.data || initProductFieldValue.value; | ||
| 324 | } else { | ||
| 325 | annonFieldsList.value = initProductFieldValue.value; | ||
| 318 | res?.msg && proxy.$ElMessage.error(res?.msg) | 326 | res?.msg && proxy.$ElMessage.error(res?.msg) |
| 319 | } | 327 | } |
| 320 | }) | 328 | }) |
| 321 | } else { | 329 | } else { |
| 322 | productFieldList.value = initProductFieldValue.value; | 330 | productFieldList.value = initProductFieldValue.value; |
| 331 | annonFieldsList.value = initProductFieldValue.value; | ||
| 323 | } | 332 | } |
| 324 | if (baseInfoFormRef.value?.formInline?.signModeCode == '02') { | 333 | if (baseInfoFormRef.value?.formInline?.signModeCode == '02') { |
| 325 | let nodeInfo = nodeInfoFormRef.value.formInline; | 334 | let nodeInfo = nodeInfoFormRef.value.formInline; |
| ... | @@ -437,9 +446,15 @@ const constraintOptionsList: any = ref([]); | ... | @@ -437,9 +446,15 @@ const constraintOptionsList: any = ref([]); |
| 437 | /** 策略操作行为下拉列表 */ | 446 | /** 策略操作行为下拉列表 */ |
| 438 | const actionOptionsList: any = ref([]); | 447 | const actionOptionsList: any = ref([]); |
| 439 | 448 | ||
| 449 | /** 限定状态字典下拉列表 */ | ||
| 450 | const limitedStateOptionsList: any = ref([]); | ||
| 451 | |||
| 440 | /** 根据选择的数据产品显示限定字段下拉列表 */ | 452 | /** 根据选择的数据产品显示限定字段下拉列表 */ |
| 441 | const initProductFieldValue: any = ref([]); | 453 | const initProductFieldValue: any = ref([]); |
| 454 | /** 策略中选择的限定字段列表 */ | ||
| 442 | const productFieldList: any = ref([]); | 455 | const productFieldList: any = ref([]); |
| 456 | /** 匿名化选择的限定字段列表 */ | ||
| 457 | const annonFieldsList: any = ref([]); | ||
| 443 | 458 | ||
| 444 | /** 初始化的策略值为空数组 */ | 459 | /** 初始化的策略值为空数组 */ |
| 445 | const initStrategyData = ref([]); | 460 | const initStrategyData = ref([]); |
| ... | @@ -465,15 +480,28 @@ const getSubmitInfo = () => { | ... | @@ -465,15 +480,28 @@ const getSubmitInfo = () => { |
| 465 | let v = Object.assign({}, d, { orderNum: index + 1, }); | 480 | let v = Object.assign({}, d, { orderNum: index + 1, }); |
| 466 | if (d.constraintEnName == 'dataField' && d.constraintFieldValue?.length) { | 481 | if (d.constraintEnName == 'dataField' && d.constraintFieldValue?.length) { |
| 467 | v.constraintValue = d.constraintFieldValue.join(','); | 482 | v.constraintValue = d.constraintFieldValue.join(','); |
| 483 | let fieldList = d.actionEnName == 'anonymize' ? annonFieldsList.value : productFieldList.value; | ||
| 468 | v.additionValue = d.constraintFieldValue?.map(dv => { | 484 | v.additionValue = d.constraintFieldValue?.map(dv => { |
| 469 | return { | 485 | return { |
| 470 | enName: dv, | 486 | enName: dv, |
| 471 | chName: productFieldList?.value.find(p => p.enName == dv)?.chName || dv | 487 | chName: fieldList.find(p => p.enName == dv)?.chName || dv |
| 472 | } | 488 | } |
| 473 | }) | 489 | }) |
| 474 | } else if ((d.constraintEnName == 'limitedDeliveryConnector' || d.constraintEnName == 'limitedUseConnector') && d.constraintConnectorValue?.length) { | 490 | } else if (d.constraintEnName == 'limitedState' && d.constraintStateValue) { |
| 491 | v.constraintValue = d.constraintStateValue; | ||
| 492 | v.additionValue = [{ | ||
| 493 | value: d.constraintStateValue, | ||
| 494 | label: limitedStateOptionsList.value.find(p => p.value == d.constraintStateValue)?.label || d.constraintStateValue | ||
| 495 | }]; | ||
| 496 | } | ||
| 497 | else if ((d.constraintEnName == 'limitedDeliveryConnector' || d.constraintEnName == 'limitedUseConnector') && d.constraintConnectorValue?.length) { | ||
| 475 | v.constraintValue = d.constraintConnectorValue?.join(','); | 498 | v.constraintValue = d.constraintConnectorValue?.join(','); |
| 476 | v.additionValue = d.additionValue; | 499 | v.additionValue = d.additionValue; |
| 500 | } else if (d.constraintEnName == 'areaAddress' && d.constraintAddressValue?.length) { | ||
| 501 | v.constraintValue = d.constraintAddressValue?.map(dd => { | ||
| 502 | return dd.at(-1); | ||
| 503 | })?.join(','); | ||
| 504 | v.additionValue = d.additionValue; | ||
| 477 | } | 505 | } |
| 478 | return v; | 506 | return v; |
| 479 | }) || []; | 507 | }) || []; |
| ... | @@ -715,8 +743,17 @@ onBeforeMount(() => { | ... | @@ -715,8 +743,17 @@ onBeforeMount(() => { |
| 715 | res?.msg && proxy.$ElMessage.error(res?.msg) | 743 | res?.msg && proxy.$ElMessage.error(res?.msg) |
| 716 | } | 744 | } |
| 717 | }) | 745 | }) |
| 746 | getDamFieldsByProductGuid(productGuid, isDataUse.value ? 'Y' : 'N', 'Y').then((res: any) => { | ||
| 747 | if (res?.code == proxy.$passCode) { | ||
| 748 | annonFieldsList.value = res.data || initProductFieldValue.value; | ||
| 749 | } else { | ||
| 750 | annonFieldsList.value = initProductFieldValue.value; | ||
| 751 | res?.msg && proxy.$ElMessage.error(res?.msg) | ||
| 752 | } | ||
| 753 | }) | ||
| 718 | } else { | 754 | } else { |
| 719 | productFieldList.value = initProductFieldValue.value; | 755 | productFieldList.value = initProductFieldValue.value; |
| 756 | annonFieldsList.value = initProductFieldValue.value; | ||
| 720 | } | 757 | } |
| 721 | } else { | 758 | } else { |
| 722 | res?.msg && proxy.$ElMessage.error(res?.msg) | 759 | res?.msg && proxy.$ElMessage.error(res?.msg) |
| ... | @@ -794,6 +831,14 @@ onBeforeMount(() => { | ... | @@ -794,6 +831,14 @@ onBeforeMount(() => { |
| 794 | res?.msg && proxy.$ElMessage.error(res?.msg); | 831 | res?.msg && proxy.$ElMessage.error(res?.msg); |
| 795 | } | 832 | } |
| 796 | }) | 833 | }) |
| 834 | getParamsList({ dictType: '限定状态' }).then((res: any) => { | ||
| 835 | if (res?.code == proxy.$passCode) { | ||
| 836 | const data = res.data || []; | ||
| 837 | limitedStateOptionsList.value = data; | ||
| 838 | } else { | ||
| 839 | res?.msg && proxy.$ElMessage.error(res?.msg); | ||
| 840 | } | ||
| 841 | }) | ||
| 797 | getActionPolicyList().then((res: any) => { | 842 | getActionPolicyList().then((res: any) => { |
| 798 | if (res?.code == proxy.$passCode) { | 843 | if (res?.code == proxy.$passCode) { |
| 799 | const data = res.data || []; | 844 | const data = res.data || []; |
| ... | @@ -872,8 +917,8 @@ onActivated(() => { | ... | @@ -872,8 +917,8 @@ onActivated(() => { |
| 872 | <Form ref="nodeInfoFormRef" formId="node-info-form" :itemList="nodeInfoFormItems" :rules="nodeInfoFormRules" | 917 | <Form ref="nodeInfoFormRef" formId="node-info-form" :itemList="nodeInfoFormItems" :rules="nodeInfoFormRules" |
| 873 | @select-change="handleNodeSelectChange" col="col3" /> | 918 | @select-change="handleNodeSelectChange" col="col3" /> |
| 874 | <StrategyTable ref="strategyTableRef" :show-title="true" :value="detailInfo.policys || initStrategyData" | 919 | <StrategyTable ref="strategyTableRef" :show-title="true" :value="detailInfo.policys || initStrategyData" |
| 875 | :operatorOptionList="operatorOptionList" :actionOptionsList="actionOptionsList" | 920 | :operatorOptionList="operatorOptionList" :actionOptionsList="actionOptionsList" :limit-state-option-list="limitedStateOptionsList" |
| 876 | :productFieldList="productFieldList" :constraintOptionsList="constraintOptionsList"></StrategyTable> | 921 | :productFieldList="productFieldList" :annon-fields-list="annonFieldsList" :constraintOptionsList="constraintOptionsList"></StrategyTable> |
| 877 | </ContentWrap> | 922 | </ContentWrap> |
| 878 | </div> | 923 | </div> |
| 879 | <div class="tool_btns"> | 924 | <div class="tool_btns"> | ... | ... |
| ... | @@ -132,15 +132,27 @@ const btnHandles = ref({ | ... | @@ -132,15 +132,27 @@ const btnHandles = ref({ |
| 132 | let v = Object.assign({}, d, { orderNum: index + 1, }); | 132 | let v = Object.assign({}, d, { orderNum: index + 1, }); |
| 133 | if (d.constraintEnName == 'dataField' && d.constraintFieldValue?.length) { | 133 | if (d.constraintEnName == 'dataField' && d.constraintFieldValue?.length) { |
| 134 | v.constraintValue = d.constraintFieldValue.join(','); | 134 | v.constraintValue = d.constraintFieldValue.join(','); |
| 135 | let fieldList = d.actionEnName == 'anonymize' ? annonFieldsList.value : productFieldList.value; | ||
| 135 | v.additionValue = d.constraintFieldValue?.map(dv => { | 136 | v.additionValue = d.constraintFieldValue?.map(dv => { |
| 136 | return { | 137 | return { |
| 137 | enName: dv, | 138 | enName: dv, |
| 138 | chName: productFieldList?.value.find(p => p.enName == dv)?.chName || dv | 139 | chName: fieldList.find(p => p.enName == dv)?.chName || dv |
| 139 | } | 140 | } |
| 140 | }) | 141 | }) |
| 142 | } else if (d.constraintEnName == 'limitedState' && d.constraintStateValue?.length) { | ||
| 143 | v.constraintValue = d.constraintStateValue; | ||
| 144 | v.additionValue = [{ | ||
| 145 | value: d.constraintStateValue, | ||
| 146 | label: limitedStateOptionsList.value.find(p => p.value == d.constraintStateValue)?.label || d.constraintStateValue | ||
| 147 | }] | ||
| 141 | } else if ((d.constraintEnName == 'limitedDeliveryConnector' || d.constraintEnName == 'limitedUseConnector') && d.constraintConnectorValue?.length) { | 148 | } else if ((d.constraintEnName == 'limitedDeliveryConnector' || d.constraintEnName == 'limitedUseConnector') && d.constraintConnectorValue?.length) { |
| 142 | v.constraintValue = d.constraintConnectorValue?.join(','); | 149 | v.constraintValue = d.constraintConnectorValue?.join(','); |
| 143 | v.additionValue = d.additionValue; | 150 | v.additionValue = d.additionValue; |
| 151 | } else if (d.constraintEnName == 'areaAddress' && d.constraintAddressValue?.length) { | ||
| 152 | v.constraintValue = d.constraintAddressValue?.map(dd => { | ||
| 153 | return dd.at(-1); | ||
| 154 | })?.join(','); | ||
| 155 | v.additionValue = d.additionValue; | ||
| 144 | } | 156 | } |
| 145 | return v; | 157 | return v; |
| 146 | }) | 158 | }) |
| ... | @@ -942,12 +954,15 @@ const constraintOptionsList: any = ref([]); | ... | @@ -942,12 +954,15 @@ const constraintOptionsList: any = ref([]); |
| 942 | /** 策略操作行为下拉列表 */ | 954 | /** 策略操作行为下拉列表 */ |
| 943 | const actionOptionsList: any = ref([]); | 955 | const actionOptionsList: any = ref([]); |
| 944 | 956 | ||
| 957 | /** 限定状态字典下拉列表 */ | ||
| 958 | const limitedStateOptionsList: any = ref([]); | ||
| 959 | |||
| 945 | /** 根据选择的数据产品显示限定字段下拉列表 */ | 960 | /** 根据选择的数据产品显示限定字段下拉列表 */ |
| 946 | const initProductFieldValue: any = ref([]); | 961 | const initProductFieldValue: any = ref([]); |
| 947 | const productFieldList: any = ref([]); | 962 | const productFieldList: any = ref([]); |
| 948 | 963 | ||
| 949 | /** 初始化的策略值为空数组 */ | 964 | /** 匿名化选择的限定字段列表 */ |
| 950 | const initStrategyData = ref([]); | 965 | const annonFieldsList: any = ref([]); |
| 951 | 966 | ||
| 952 | /** 获取第二步合约协商信息 */ | 967 | /** 获取第二步合约协商信息 */ |
| 953 | const getStepTwoNegotiateInfo = (loading = true) => { | 968 | const getStepTwoNegotiateInfo = (loading = true) => { |
| ... | @@ -1074,8 +1089,17 @@ onBeforeMount(() => { | ... | @@ -1074,8 +1089,17 @@ onBeforeMount(() => { |
| 1074 | res?.msg && proxy.$ElMessage.error(res?.msg) | 1089 | res?.msg && proxy.$ElMessage.error(res?.msg) |
| 1075 | } | 1090 | } |
| 1076 | }) | 1091 | }) |
| 1092 | getDamFieldsByProductGuid(productGuid, provider.executionerGuid != userData.tenantGuid ? 'Y' : 'N', 'Y').then((res: any) => { | ||
| 1093 | if (res?.code == proxy.$passCode) { | ||
| 1094 | annonFieldsList.value = res.data || initProductFieldValue.value; | ||
| 1095 | } else { | ||
| 1096 | annonFieldsList.value = initProductFieldValue.value; | ||
| 1097 | res?.msg && proxy.$ElMessage.error(res?.msg) | ||
| 1098 | } | ||
| 1099 | }) | ||
| 1077 | } else { | 1100 | } else { |
| 1078 | productFieldList.value = initProductFieldValue.value; | 1101 | productFieldList.value = initProductFieldValue.value; |
| 1102 | annonFieldsList.value = initProductFieldValue.value; | ||
| 1079 | } | 1103 | } |
| 1080 | } else { | 1104 | } else { |
| 1081 | res?.msg && proxy.$ElMessage.error(res?.msg) | 1105 | res?.msg && proxy.$ElMessage.error(res?.msg) |
| ... | @@ -1092,6 +1116,14 @@ onBeforeMount(() => { | ... | @@ -1092,6 +1116,14 @@ onBeforeMount(() => { |
| 1092 | res?.msg && proxy.$ElMessage.error(res?.msg); | 1116 | res?.msg && proxy.$ElMessage.error(res?.msg); |
| 1093 | } | 1117 | } |
| 1094 | }) | 1118 | }) |
| 1119 | getParamsList({ dictType: '限定状态' }).then((res: any) => { | ||
| 1120 | if (res?.code == proxy.$passCode) { | ||
| 1121 | const data = res.data || []; | ||
| 1122 | limitedStateOptionsList.value = data; | ||
| 1123 | } else { | ||
| 1124 | res?.msg && proxy.$ElMessage.error(res?.msg); | ||
| 1125 | } | ||
| 1126 | }) | ||
| 1095 | getActionPolicyList().then((res: any) => { | 1127 | getActionPolicyList().then((res: any) => { |
| 1096 | if (res?.code == proxy.$passCode) { | 1128 | if (res?.code == proxy.$passCode) { |
| 1097 | const data = res.data || []; | 1129 | const data = res.data || []; |
| ... | @@ -1313,8 +1345,8 @@ onActivated(() => { | ... | @@ -1313,8 +1345,8 @@ onActivated(() => { |
| 1313 | expandSwicth style="margin-top: 15px" :isExpand="expandPolicyConsult" @expand="(v) => (expandPolicyConsult = v)" | 1345 | expandSwicth style="margin-top: 15px" :isExpand="expandPolicyConsult" @expand="(v) => (expandPolicyConsult = v)" |
| 1314 | description=""> | 1346 | description=""> |
| 1315 | <StrategyTable ref="strategyTableEditRef" :show-title="true" :value="consultDetailInfo?.policys" | 1347 | <StrategyTable ref="strategyTableEditRef" :show-title="true" :value="consultDetailInfo?.policys" |
| 1316 | :operatorOptionList="operatorOptionList" :actionOptionsList="actionOptionsList" :productFieldList="productFieldList" | 1348 | :operatorOptionList="operatorOptionList" :actionOptionsList="actionOptionsList" :productFieldList="productFieldList" :annonFieldsList="annonFieldsList" |
| 1317 | :constraintOptionsList="constraintOptionsList"></StrategyTable> | 1349 | :limit-state-option-list="limitedStateOptionsList" :constraintOptionsList="constraintOptionsList"></StrategyTable> |
| 1318 | </ContentWrap> | 1350 | </ContentWrap> |
| 1319 | <ContentWrap v-show="detailType == 'consult' || currentStep == 2" id="history-info-consult" title="协商记录" | 1351 | <ContentWrap v-show="detailType == 'consult' || currentStep == 2" id="history-info-consult" title="协商记录" |
| 1320 | expandSwicth style="margin-top: 15px" :isExpand="expandConsultHistory" | 1352 | expandSwicth style="margin-top: 15px" :isExpand="expandConsultHistory" |
| ... | @@ -1323,7 +1355,7 @@ onActivated(() => { | ... | @@ -1323,7 +1355,7 @@ onActivated(() => { |
| 1323 | <el-timeline-item v-for="(activity, index) in activities" :key="index" :timestamp="activity.timestamp" | 1355 | <el-timeline-item v-for="(activity, index) in activities" :key="index" :timestamp="activity.timestamp" |
| 1324 | :hollow="activity.hollow" :type="activity.type" placement="top"> | 1356 | :hollow="activity.hollow" :type="activity.type" placement="top"> |
| 1325 | <div v-for="(child, childIndex) of activity.children" class="row-per" | 1357 | <div v-for="(child, childIndex) of activity.children" class="row-per" |
| 1326 | :style="{ 'margin-top': childIndex > 0 ? '8px' : '0px' }"> | 1358 | :style="{ 'margin-top': <number>childIndex > 0 ? '8px' : '0px' }"> |
| 1327 | <div | 1359 | <div |
| 1328 | :class="child.negotiateEntityType == '数据提供方' ? 'label' : (child.negotiateEntityType == '数据服务方' ? 'label2' : 'label1')"> | 1360 | :class="child.negotiateEntityType == '数据提供方' ? 'label' : (child.negotiateEntityType == '数据服务方' ? 'label2' : 'label1')"> |
| 1329 | {{ child.negotiateEntityType }} | 1361 | {{ child.negotiateEntityType }} | ... | ... |
| ... | @@ -241,7 +241,7 @@ const tablePageChange = (info) => { | ... | @@ -241,7 +241,7 @@ const tablePageChange = (info) => { |
| 241 | getTableData(); | 241 | getTableData(); |
| 242 | }; | 242 | }; |
| 243 | 243 | ||
| 244 | const defaultValueInfo = ref({ bizStatus: 'Y' }); | 244 | const defaultValueInfo = ref({ bizStatus: 'Y', constraintOperatorCodes: [], }); |
| 245 | 245 | ||
| 246 | const newCreate = () => { | 246 | const newCreate = () => { |
| 247 | drawerInfo.value.visible = true; | 247 | drawerInfo.value.visible = true; |
| ... | @@ -338,7 +338,7 @@ const classEditFormItems: any = ref([{ | ... | @@ -338,7 +338,7 @@ const classEditFormItems: any = ref([{ |
| 338 | tagsTooltip: true, | 338 | tagsTooltip: true, |
| 339 | placeholder: '默认全部', | 339 | placeholder: '默认全部', |
| 340 | field: 'constraintOperatorCodes', | 340 | field: 'constraintOperatorCodes', |
| 341 | default: '', | 341 | default: [], |
| 342 | options: operatorOptionList.value, | 342 | options: operatorOptionList.value, |
| 343 | filterable: true, | 343 | filterable: true, |
| 344 | clearable: true, | 344 | clearable: true, |
| ... | @@ -421,6 +421,8 @@ const drawerBtnClick = async (btn, info) => { | ... | @@ -421,6 +421,8 @@ const drawerBtnClick = async (btn, info) => { |
| 421 | }).map(v => { | 421 | }).map(v => { |
| 422 | return v.value; | 422 | return v.value; |
| 423 | }) | 423 | }) |
| 424 | } else { | ||
| 425 | info.constraintOperatorCodes = []; | ||
| 424 | } | 426 | } |
| 425 | drawerInfo.value.footer.btns[1].loading = true; | 427 | drawerInfo.value.footer.btns[1].loading = true; |
| 426 | if (drawerInfo.value.type == 'edit') { | 428 | if (drawerInfo.value.type == 'edit') { | ... | ... |
-
Please register or sign in to post a comment