瀏覽代碼

复制报错7429

zhouna 4 年之前
父節點
當前提交
690fce7dc6
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/components/knowledgeExtra/SubConditions.vue

+ 3 - 2
src/components/knowledgeExtra/SubConditions.vue

@@ -195,8 +195,9 @@
             'firstPlace':{
                 handler:function(val) {
                     if (!val) return;
-                    const types = val.checkedType.split("-");
-                    const sub = this.baseTypes.find((it) => it.ruleType === +types[0] && it.type === 2);
+                    const dict = localStorage.getItem("zskDicts").match(new RegExp(val.checkedType+'-\\d+','g'))||[];
+                    const types = dict[0].split("-");
+                    const sub = this.baseTypes.find((it) => it.ruleType === +types[0] && it.type === +types[2]);
                     this.groupData.subType = sub.type;
                     this.baseTermTypeList = sub.subMenuList;
                     this.groupData.subLenCode = this.baseTermTypeList.find((it) => it.ruleType === +types[0]).code;