Parcourir la source

reactor:知识库调整;

zhangchong il y a 3 mois
Parent
commit
1ccc124c26

+ 1 - 0
src/views/business/secondHandle/components/Second-handle-audit-multiple.vue

@@ -65,6 +65,7 @@ const closeDialog = () => {
 };
 const close = () => {
 	ruleFormRef.value?.clearValidate();
+	ruleFormRef.value?.resetFields();
 };
 
 // 审批

+ 1 - 0
src/views/business/secondHandle/components/Second-handle-audit.vue

@@ -74,6 +74,7 @@ const closeDialog = () => {
 };
 const close = () => {
 	ruleFormRef.value?.clearValidate();
+	ruleFormRef.value?.resetFields();
 };
 
 // 审批

+ 10 - 3
src/views/snapshot/centerMark/components/record-Edit.vue

@@ -48,7 +48,6 @@ const ruleFormRef = ref<RefType>();
 const snapshotLabel = ref<EmptyArrayType>([]);
 const orderTitle = ref<string>('');
 const openDialog = (val: any) => {
-	console.log(val, '11');
 	state.dialogVisible = true;
 	getDetail(val.orderId);
 };
@@ -57,10 +56,18 @@ const getDetail = async (id: string) => {
 	loading.value = true;
 	try {
 		const { result } = await centerMarkDetail(id);
-		snapshotLabel.value = result.lables;
+		snapshotLabel.value = result.labelsBaseData;
 		orderTitle.value = result.title;
+		state.ruleForm = {
+			snapshotLabel: result.lables?.map((item: any) => {
+				return {
+					dicDataValue: item.key,
+					dicDataName: item.value,
+				};
+			}),
+			id: result.id,
+		};
 		loading.value = false;
-		console.log(result);
 	} catch (e) {
 		console.log(e);
 		loading.value = false;