|
@@ -1,7 +1,7 @@
|
|
|
/*
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-09-14 10:46:45
|
|
|
- * @LastEditTime: 2022-03-08 18:27:10
|
|
|
+ * @LastEditTime: 2022-03-09 14:35:48
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: /MedicalWisdomCheckSys/src/pages/GradeHospitalAccreditation/articleManagement/model.ts
|
|
@@ -231,12 +231,21 @@ const articleManagement = () => {
|
|
|
// 条文设置
|
|
|
// console.log({values});
|
|
|
if (currentActivedTree && leafData) {
|
|
|
- const { id: ruleId } = currentActivedTree;
|
|
|
+
|
|
|
+ let ruleId = 0;
|
|
|
+ if(detailDrawerVisible){
|
|
|
+ //在条文抽屉详情里条文设置
|
|
|
+ ruleId = currentSelectedActObj.id;
|
|
|
+ }else{
|
|
|
+ //正常在详情页设置条文
|
|
|
+ ruleId = Number(currentActivedTree.id)
|
|
|
+ }
|
|
|
+
|
|
|
const { id } = leafData.reviewArticle;
|
|
|
|
|
|
const paramsData = {
|
|
|
id,
|
|
|
- ruleId: Number(ruleId),
|
|
|
+ ruleId: ruleId,
|
|
|
responsibilityDepartmentId: values.responsibilityDepartment.value,
|
|
|
responsibilityDepartmentName: values.responsibilityDepartment.label,
|
|
|
responsibilityUserId: values.responsibilityUser.value,
|
|
@@ -404,7 +413,6 @@ const articleManagement = () => {
|
|
|
level: string;
|
|
|
}) => {
|
|
|
// 或区指定等级的执行情况说明数据,同时根据返回的数据自行添加需要补充的项
|
|
|
- console.log('getTaizhangImplementation');
|
|
|
if (implementationData[level]) return; // implementationData集合里已经有了该等级对应的数据时,不请求,为了保证编辑的数据缓存
|
|
|
|
|
|
const data = await getTaizhangImplementation({ numStr, version, level });
|