bc08cc5e by lxs

Merge branch 'develop' into release-test

2 parents cdcecf1c e0eee7fe
...@@ -8,6 +8,8 @@ VITE_API_BASEURL = https://daop-zcgl-test.zgsjzc.com/ ...@@ -8,6 +8,8 @@ VITE_API_BASEURL = https://daop-zcgl-test.zgsjzc.com/
8 8
9 VITE_IDASS_BASEURL = https://daop-test.zgsjzc.com/portalLogin 9 VITE_IDASS_BASEURL = https://daop-test.zgsjzc.com/portalLogin
10 10
11 VITE_IDASS_BASEURL = https://idaas-test.csbr.cn/login
12
11 # 平台用户 接口请地址 13 # 平台用户 接口请地址
12 VITE_APP_USER_API_BASEURL = gateway-server 14 VITE_APP_USER_API_BASEURL = gateway-server
13 15
......
...@@ -1298,7 +1298,7 @@ const passCommonDialogBtnClick = (btn, info) => { ...@@ -1298,7 +1298,7 @@ const passCommonDialogBtnClick = (btn, info) => {
1298 <span class="item_value">{{ (assetDetailInfo.dataProtection == 6 ? assetDetailInfo.dataProtectionOther : 1298 <span class="item_value">{{ (assetDetailInfo.dataProtection == 6 ? assetDetailInfo.dataProtectionOther :
1299 assetDetailInfo.dataProtectionName) ?? '--' }}</span> 1299 assetDetailInfo.dataProtectionName) ?? '--' }}</span>
1300 </div> 1300 </div>
1301 <div class="list_item"> 1301 <div class="list_item" v-if="detailType != 'asset'">
1302 <span class="item_label">所属行业:</span> 1302 <span class="item_label">所属行业:</span>
1303 <span class="item_value"><ellipsis-tooltip 1303 <span class="item_value"><ellipsis-tooltip
1304 :content="(assetDetailInfo.ownIndustryName?.filter(u => u != '其他')?.join(',') + 1304 :content="(assetDetailInfo.ownIndustryName?.filter(u => u != '其他')?.join(',') +
......
...@@ -409,7 +409,7 @@ const passDialogInfo = ref({ ...@@ -409,7 +409,7 @@ const passDialogInfo = ref({
409 { 409 {
410 label: '', 410 label: '',
411 type: "textarea", 411 type: "textarea",
412 placeholder: "请填写通过理由(必填)", 412 placeholder: "请填写通过理由(必填)",
413 field: "approveSuggest", 413 field: "approveSuggest",
414 clearable: true, 414 clearable: true,
415 block: true, 415 block: true,
......
...@@ -56,6 +56,7 @@ const damTypes: any = ref([]); ...@@ -56,6 +56,7 @@ const damTypes: any = ref([]);
56 const subjectDomainListData: any = ref([]); 56 const subjectDomainListData: any = ref([]);
57 const qualityEvaluationData: any = ref([]); 57 const qualityEvaluationData: any = ref([]);
58 const costAssessmentData: any = ref([]); 58 const costAssessmentData: any = ref([]);
59 const updateFrequencyListData: any = ref([]);
59 60
60 const getParentAreaPromise: any = ref(null); 61 const getParentAreaPromise: any = ref(null);
61 const getAreaDataPromise: any = ref({}); 62 const getAreaDataPromise: any = ref({});
...@@ -241,12 +242,6 @@ const setBaseFormItemsValue = (info) => { ...@@ -241,12 +242,6 @@ const setBaseFormItemsValue = (info) => {
241 } 242 }
242 } else if (item.field == 'updateFrequency') { 243 } else if (item.field == 'updateFrequency') {
243 item.default = info[item.field] || []; 244 item.default = info[item.field] || [];
244 item.inputOptions.default = info['updateFrequencyOther'];
245 if (info['updateFrequency']?.includes(7)) {
246 item.inputOptions.visible = true;
247 } else {
248 item.inputOptions.visible = false;
249 }
250 } else if (item.field == 'ownIndustry') { 245 } else if (item.field == 'ownIndustry') {
251 item.default = info[item.field] || []; 246 item.default = info[item.field] || [];
252 item.inputOptions.default = info['ownIndustryOther']; 247 item.inputOptions.default = info['ownIndustryOther'];
...@@ -971,131 +966,93 @@ const baseFormItems: any = ref([ ...@@ -971,131 +966,93 @@ const baseFormItems: any = ref([
971 required: true 966 required: true
972 }, 967 },
973 required: true, 968 required: true,
974 }, { 969 },
970 {
975 label: "数据更新频率", 971 label: "数据更新频率",
976 type: "checkbox-group-row", 972 type: "checkbox-group-row",
977 placeholder: "", 973 placeholder: "",
978 field: "updateFrequency", 974 field: "updateFrequency",
979 default: [], 975 default: [],
980 block: true, 976 children: updateFrequencyListData.value,
981 col: 'other-group-flex',
982 children: [
983 {
984 label: "每秒",
985 value: 1,
986 },
987 {
988 label: "每小时",
989 value: 2,
990 },
991 {
992 label: "每天",
993 value: 3,
994 },
995 {
996 label: "每周",
997 value: 4,
998 },
999 {
1000 label: "每月",
1001 value: 5,
1002 },
1003 {
1004 label: "每年",
1005 value: 6,
1006 }, {
1007 label: "其他",
1008 value: 7,
1009 },
1010 ],
1011 inputOptions: {
1012 label: '',
1013 type: 'input',
1014 placeholder: '请输入',
1015 col: 'other-input',
1016 field: 'updateFrequencyOther',
1017 default: '',
1018 visible: false,
1019 required: true
1020 },
1021 required: true,
1022 },
1023 {
1024 label: "数据所属行业",
1025 type: "checkbox-group-row",
1026 placeholder: "",
1027 col: 'other-group-flex',
1028 field: "ownIndustry",
1029 default: [],
1030 children: [
1031 {
1032 label: "能源",
1033 value: 1,
1034 },
1035 {
1036 label: "金融",
1037 value: 2,
1038 },
1039 {
1040 label: "环境",
1041 value: 3,
1042 },
1043 {
1044 label: "其他,手动填写",
1045 value: 4,
1046 },
1047 ],
1048 inputOptions: {
1049 label: '',
1050 type: 'input',
1051 placeholder: '请输入',
1052 col: 'other-input',
1053 field: 'ownIndustryOther',
1054 default: '',
1055 visible: false,
1056 required: true
1057 },
1058 required: true, 977 required: true,
1059 block: true, 978 block: true,
1060 }, 979 },
1061 { 980 // {
1062 label: "业务归属", 981 // label: "数据所属行业",
1063 type: "checkbox-group-row", 982 // type: "checkbox-group-row",
1064 placeholder: "", 983 // placeholder: "",
1065 col: 'other-group-flex', 984 // col: 'other-group-flex',
1066 field: "bizOwn", 985 // field: "ownIndustry",
1067 default: [], 986 // default: [],
1068 children: [ 987 // children: [
1069 { 988 // {
1070 label: "生产类业务数据", 989 // label: "能源",
1071 value: 1, 990 // value: 1,
1072 }, 991 // },
1073 { 992 // {
1074 label: "管理类业务数据", 993 // label: "金融",
1075 value: 2, 994 // value: 2,
1076 }, 995 // },
1077 { 996 // {
1078 label: "经营分析类业务数据", 997 // label: "环境",
1079 value: 3, 998 // value: 3,
1080 }, 999 // },
1081 { 1000 // {
1082 label: "其他,手动填写", 1001 // label: "其他,手动填写",
1083 value: 4, 1002 // value: 4,
1084 }, 1003 // },
1085 ], 1004 // ],
1086 inputOptions: { 1005 // inputOptions: {
1087 label: '', 1006 // label: '',
1088 type: 'input', 1007 // type: 'input',
1089 placeholder: '请输入', 1008 // placeholder: '请输入',
1090 col: 'other-input', 1009 // col: 'other-input',
1091 field: 'bizOwnOther', 1010 // field: 'ownIndustryOther',
1092 default: '', 1011 // default: '',
1093 visible: false, 1012 // visible: false,
1094 required: true 1013 // required: true
1095 }, 1014 // },
1096 required: true, 1015 // required: true,
1097 block: true, 1016 // block: true,
1098 } 1017 // },
1018 // {
1019 // label: "业务归属",
1020 // type: "checkbox-group-row",
1021 // placeholder: "",
1022 // col: 'other-group-flex',
1023 // field: "bizOwn",
1024 // default: [],
1025 // children: [
1026 // {
1027 // label: "生产类业务数据",
1028 // value: 1,
1029 // },
1030 // {
1031 // label: "管理类业务数据",
1032 // value: 2,
1033 // },
1034 // {
1035 // label: "经营分析类业务数据",
1036 // value: 3,
1037 // },
1038 // {
1039 // label: "其他,手动填写",
1040 // value: 4,
1041 // },
1042 // ],
1043 // inputOptions: {
1044 // label: '',
1045 // type: 'input',
1046 // placeholder: '请输入',
1047 // col: 'other-input',
1048 // field: 'bizOwnOther',
1049 // default: '',
1050 // visible: false,
1051 // required: true
1052 // },
1053 // required: true,
1054 // block: true,
1055 // }
1099 ]) 1056 ])
1100 1057
1101 const baseFormRules = ref({ 1058 const baseFormRules = ref({
...@@ -1125,7 +1082,7 @@ const baseFormRules = ref({ ...@@ -1125,7 +1082,7 @@ const baseFormRules = ref({
1125 { required: true, trigger: 'blur', message: "请填写数据取得方式其他内容" } 1082 { required: true, trigger: 'blur', message: "请填写数据取得方式其他内容" }
1126 ], 1083 ],
1127 updateFrequency: [ 1084 updateFrequency: [
1128 { type: 'array', required: true, trigger: 'change', message: "请填写数据更新频率" } 1085 { type: 'array', required: true, trigger: 'change', message: "请选择数据更新频率" }
1129 ], 1086 ],
1130 updateFrequencyOther: [ 1087 updateFrequencyOther: [
1131 { required: true, trigger: 'blur', message: "请填写数据更新频率其他内容" } 1088 { required: true, trigger: 'blur', message: "请填写数据更新频率其他内容" }
...@@ -1291,11 +1248,11 @@ const porpertyInfoFormRef = ref(); ...@@ -1291,11 +1248,11 @@ const porpertyInfoFormRef = ref();
1291 const propertyFormItems: any = ref([ 1248 const propertyFormItems: any = ref([
1292 { 1249 {
1293 label: "产权类型", 1250 label: "产权类型",
1294 type: "checkbox-group-row", 1251 type: "select",
1295 placeholder: "", 1252 placeholder: "请选择",
1296 field: "propertyType", 1253 field: "propertyType",
1297 default: [], 1254 default: [],
1298 children: [ 1255 options: [
1299 { 1256 {
1300 label: "数据资源持有权", 1257 label: "数据资源持有权",
1301 value: 1, 1258 value: 1,
...@@ -1309,16 +1266,18 @@ const propertyFormItems: any = ref([ ...@@ -1309,16 +1266,18 @@ const propertyFormItems: any = ref([
1309 value: 3, 1266 value: 3,
1310 } 1267 }
1311 ], 1268 ],
1269 multiple: true,
1270 tagsTooltip: true,
1271 collapse: true,
1312 required: true, 1272 required: true,
1313 }, 1273 },
1314 { 1274 {
1315 label: "权利内容", 1275 label: "权利内容",
1316 type: "checkbox-group-row", 1276 type: "select",
1317 placeholder: "", 1277 placeholder: "请选择",
1318 field: "rightsContent", 1278 field: "rightsContent",
1319 col: 'col2',
1320 default: [], 1279 default: [],
1321 children: [ 1280 options: [
1322 { 1281 {
1323 label: "可转让", 1282 label: "可转让",
1324 value: 1, 1283 value: 1,
...@@ -1340,6 +1299,9 @@ const propertyFormItems: any = ref([ ...@@ -1340,6 +1299,9 @@ const propertyFormItems: any = ref([
1340 value: 5, 1299 value: 5,
1341 } 1300 }
1342 ], 1301 ],
1302 multiple: true,
1303 tagsTooltip: true,
1304 collapse: true,
1343 required: true, 1305 required: true,
1344 }, 1306 },
1345 { 1307 {
...@@ -1347,8 +1309,8 @@ const propertyFormItems: any = ref([ ...@@ -1347,8 +1309,8 @@ const propertyFormItems: any = ref([
1347 type: "radio-group", 1309 type: "radio-group",
1348 placeholder: "", 1310 placeholder: "",
1349 field: "isPledged", 1311 field: "isPledged",
1350 default: 'N',
1351 col: 'mr8', 1312 col: 'mr8',
1313 default: 'N',
1352 options: [ 1314 options: [
1353 { 1315 {
1354 label: "是", 1316 label: "是",
...@@ -1363,7 +1325,7 @@ const propertyFormItems: any = ref([ ...@@ -1363,7 +1325,7 @@ const propertyFormItems: any = ref([
1363 }, 1325 },
1364 { 1326 {
1365 label: "持有状态", 1327 label: "持有状态",
1366 type: "radio-group", 1328 type: "select",
1367 placeholder: "", 1329 placeholder: "",
1368 field: "holdingStatus", 1330 field: "holdingStatus",
1369 default: 1, 1331 default: 1,
...@@ -1412,6 +1374,7 @@ const propertyFormItems: any = ref([ ...@@ -1412,6 +1374,7 @@ const propertyFormItems: any = ref([
1412 placeholder: "", 1374 placeholder: "",
1413 field: "propertyTerm", 1375 field: "propertyTerm",
1414 default: 'N', 1376 default: 'N',
1377 col: 'mr8',
1415 block: true, 1378 block: true,
1416 options: [ 1379 options: [
1417 { 1380 {
...@@ -1446,6 +1409,9 @@ const propertyFormItems: any = ref([ ...@@ -1446,6 +1409,9 @@ const propertyFormItems: any = ref([
1446 clearable: true, 1409 clearable: true,
1447 required: true, 1410 required: true,
1448 visible: false, 1411 visible: false,
1412 style: {
1413 'margin-right': '0px'
1414 }
1449 }, 1415 },
1450 { 1416 {
1451 label: '公司名称', 1417 label: '公司名称',
...@@ -1972,6 +1938,8 @@ const save = () => { ...@@ -1972,6 +1938,8 @@ const save = () => {
1972 }); 1938 });
1973 } 1939 }
1974 1940
1941
1942
1975 onActivated(() => { 1943 onActivated(() => {
1976 // getRegisterCatalogListData(); 1944 // getRegisterCatalogListData();
1977 }) 1945 })
...@@ -2177,6 +2145,16 @@ onBeforeMount(() => { ...@@ -2177,6 +2145,16 @@ onBeforeMount(() => {
2177 proxy.$ElMessage.error(res.msg); 2145 proxy.$ElMessage.error(res.msg);
2178 } 2146 }
2179 }) 2147 })
2148 getParamsList({ dictType: '更新周期' }).then((res: any) => {
2149 if (res.code == proxy.$passCode) {
2150 const data = res.data || [];
2151 updateFrequencyListData.value = data;
2152 let item = baseFormItems.value.find(item => item.field == 'updateFrequency');
2153 item && (item.children = updateFrequencyListData.value);
2154 } else {
2155 proxy.$ElMessage.error(res.msg);
2156 }
2157 })
2180 }); 2158 });
2181 2159
2182 onMounted(() => { 2160 onMounted(() => {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!