b0e4dec8 by lxs

数据资产登记更新

1 parent bc08cc5e
......@@ -1328,7 +1328,7 @@ const passCommonDialogBtnClick = (btn, info) => {
'--' }}</span>
</div>
</div>
<div class="first-col" style="width: 250px;">
<div class="first-col">
<div class="list_item">
<span class="item_label">结构化数据:</span>
<span class="item_value">{{ assetDetailInfo.isStructured == 'Y' ? '是' : '否' }}</span>
......@@ -2344,14 +2344,17 @@ const passCommonDialogBtnClick = (btn, info) => {
.info-content {
display: flex;
.first-col {
width: 310px;
}
.last-col {
flex: 1;
min-width: 120px;
>div {
width: 33.33%;
}
// .first-col {
// width: 310px;
// }
// .last-col {
// flex: 1;
// min-width: 120px;
// }
}
}
......
......@@ -99,11 +99,6 @@ const tableFields = ref([{ label: "序号", type: "index", width: 56, align: "ce
{ label: "资产名称", field: "daName", width: 160, align: "left" },
{ label: "数据分类", field: "dataCategoryName", width: 120, align: "left" },
{ label: "存储方式", field: "storageFormName", width: 120, align: "left" },
{
label: "所属行业", field: "ownIndustryName", width: 120, align: "left", getName: (scope) => {
return scope.row['ownIndustryName']?.join(',')
}
},
{ label: "数交所名称", field: "exchangeName", width: 160, align: "left" },
{
label: "状态", field: "approveState", type: "tag", width: 96, align: 'center', getName: (scope) => {
......
......@@ -241,9 +241,9 @@ const setBaseFormItemsValue = (info) => {
item.inputOptions.visible = false;
}
} else if (item.field == 'updateFrequency') {
item.default = info[item.field] || [];
item.default = info[item.field] || '';
} else if (item.field == 'ownIndustry') {
item.default = info[item.field] || [];
item.default = Array.isArray(info[item.field]) ? info[item.field][0] : (info[item.field] || []);
item.inputOptions.default = info['ownIndustryOther'];
if (info['ownIndustry']?.includes(4)) {
item.inputOptions.visible = true;
......@@ -969,11 +969,11 @@ const baseFormItems: any = ref([
},
{
label: "数据更新频率",
type: "checkbox-group-row",
type: "radio-group",
placeholder: "",
field: "updateFrequency",
default: [],
children: updateFrequencyListData.value,
default: '',
options: updateFrequencyListData.value,
required: true,
block: true,
},
......@@ -1082,7 +1082,7 @@ const baseFormRules = ref({
{ required: true, trigger: 'blur', message: "请填写数据取得方式其他内容" }
],
updateFrequency: [
{ type: 'array', required: true, trigger: 'change', message: "请选择数据更新频率" }
{ required: true, trigger: 'change', message: "请选择数据更新频率" }
],
updateFrequencyOther: [
{ required: true, trigger: 'blur', message: "请填写数据更新频率其他内容" }
......@@ -2150,7 +2150,7 @@ onBeforeMount(() => {
const data = res.data || [];
updateFrequencyListData.value = data;
let item = baseFormItems.value.find(item => item.field == 'updateFrequency');
item && (item.children = updateFrequencyListData.value);
item && (item.options = updateFrequencyListData.value);
} else {
proxy.$ElMessage.error(res.msg);
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!