瀏覽代碼

补充说明,删除多余参数

zhouna 6 年之前
父節點
當前提交
1cbff5c945
共有 3 個文件被更改,包括 23 次插入8 次删除
  1. 11 4
      src/components/MultSpread/index.jsx
  2. 11 1
      src/components/SpreadDrop/index.jsx
  3. 1 3
      src/containers/eleType.js

+ 11 - 4
src/components/MultSpread/index.jsx

@@ -14,11 +14,18 @@ import NumberUnitDrop from '@containers/NumberUnitDrop';
  * 多标签组合
  * author:zn@2018-11.26
  * 接收参数:
- * data:标签内容数据
- * showArr:显示下拉总对象
+ * data:展开标签数据
+ * showAdd:是否显示加号(复制)
+ * copyId:该标签id
+ * fullData:该标签完整数据
+ * showArr:是否显示下拉的总对象
  * ikey:当前组件唯一标识,由模块index+标签index+标签内index三个组成的字符串
- *
- *
+ * boxMark:当前所在的模块
+ * isImports:是否高亮(仅查体使用)
+ * selecteds:选中项数据(仅多选子组件用)
+ * saveText:该模块的预览数据
+ * textPrefix:前缀
+ * textSuffix:后缀
  *
  * ***/
 

+ 11 - 1
src/components/SpreadDrop/index.jsx

@@ -10,9 +10,19 @@ import $ from 'jquery';
  * 标签组合下拉,选中的项目展开
  * author:zn@2018-11-21
  * 接收参数:
- * keepSelf:展开标签后是否保留原标签
  * data:下拉内容
+ * value:选中成文
  * placeholder:灰显文字
+ * ikey:当前标签的index
+ * copyType:选中后是否复制本身(仅展开类型使用)
+ * selecteds:选中选项(仅展开类型使用)
+ * show:是否显示下拉
+ * order:成文顺序,0点选顺序,1从上到下从左到右
+ * isImports:是否高亮显示(仅查体中使用)
+ * type:所在模块:现病史、查体等
+ * tagType:标签类型
+ * id:id
+ * flag:仅主诉中使用
  *
  * ***/
 

+ 1 - 3
src/containers/eleType.js

@@ -122,7 +122,7 @@ function multLabels(params){
                      ikey={boxMark+i}
                      selecteds={selecteds&&selecteds[i]}
                      saveText={saveText}
-                     name={data.name||data.tagName}
+                     /*name={data.name||data.tagName}*/
                      textPrefix={data.prefix}
                      textSuffix={data.suffix}></MultSpread>
 }
@@ -144,8 +144,6 @@ function multCheckLabels(params,tagType){
                      isImports={isHigh}
                      type={boxMark}
                      tagType={tagType}
-                     textPrefix={data.prefix}
-                     textSuffix={data.suffix}
                      id={data.id}
                      flag={data.flag}></SpreadDrop>
 }