Ver Fonte

1.修复详情页标题样式
2.修复单元数据回显

yukai há 3 anos atrás
pai
commit
92e6de99b6

+ 7 - 2
src/views/datahub/modeling/component/edit.vue

@@ -107,7 +107,8 @@ export default defineComponent({
 				id: 0,
 				name: '',
 				key: '',
-
+				busiTypes:0,
+				busiId:0,
 				desc: '',
 			},
 			rules: {
@@ -122,6 +123,7 @@ export default defineComponent({
 			resetForm();
 			api.template.getDictData({DictType:'busi_types'}).then((res: any) => {
 				state.zidianData = res.values;
+				
 			});
 
 
@@ -131,6 +133,8 @@ export default defineComponent({
 
 			if (row) {
 				state.ruleForm = row;
+				state.ruleForm.busiTypes=row.dataTemplateBusi.busiTypes;
+				state.ruleForm.busiId=row.dataTemplateBusi.busiId;
 			}
 
 
@@ -144,7 +148,8 @@ export default defineComponent({
 				id: 0,
 				name: '',
 				key: '',
-
+				busiTypes:0,
+				busiId:0,
 				desc: '',
 			};
 		};

+ 3 - 3
src/views/datahub/modeling/detail.vue

@@ -255,10 +255,10 @@ export default defineComponent({
 	display: flex;
 }
 .cont_box .title {
-	font-size: 24px;
+	font-size: 18px;
 }
 .cont_box .pro-status {
-	line-height: 40px;
+	line-height: 30px;
 	margin-left: 30px;
 }
 .cont_box .pro-status .on {
@@ -278,7 +278,7 @@ export default defineComponent({
 	margin-right: 5px;
 }
 .cont_box .pro-option {
-	line-height: 40px;
+	line-height: 30px;
 	margin-left: 10px;
 	color: #1890ff;
 	cursor: pointer;

+ 3 - 3
src/views/datahub/source/detail.vue

@@ -319,10 +319,10 @@ export default defineComponent({
 	display: flex;
 }
 .cont_box .title {
-	font-size: 24px;
+	font-size: 18px;
 }
 .cont_box .pro-status {
-	line-height: 40px;
+	line-height: 30px;
 	margin-left: 30px;
 }
 .cont_box .pro-status .on {
@@ -342,7 +342,7 @@ export default defineComponent({
 	margin-right: 5px;
 }
 .cont_box .pro-option {
-	line-height: 40px;
+	line-height: 30px;
 	margin-left: 10px;
 	color: #1890ff;
 	cursor: pointer;