xiejun
2023-07-19 ded6e8d2312e139e8ce770c7f1d5830bf2db4af6
Source/UBCS-WEB/src/views/code/code.vue
@@ -933,7 +933,7 @@
          /** 码值管理相关数据 */
          isShowBasicSecCodeValueMgr: false, //码段码值管理对话框
          codefixedsecOrCodeclassifysecOid: '', //存放基础码段点击码值管理时的当前行id,用于保存码值时使用
          codefixedsecOrCodeclassifysec: '', //存放基础码段点击码值管理时的当前行id,用于保存码值时使用
          selectedFixedOrCodeclassifyValue: '', //当前选中的码值数据
          //固定码段码值表单
          codeFixdForm: {
@@ -1201,7 +1201,7 @@
        },
        /** 父分类选择对话框,第二层嵌套对话框,及其相关方法 */
        // 保存当前父分类码段的选中行,并进行回显
        /** 保存当前父分类码段的选中行,并进行回显 */
        saveSelectedParentClassify(){
          //console.log(this.parentClsfyParams.parentClassifySelectionList.length);
          if(this.parentClsfyParams.parentClassifySelectionList.length != 1){
@@ -1270,12 +1270,12 @@
        /** 打开属性选取值,第二层嵌套对话框,及其相关方法 */
        // 获取当前被选中树节点的oid
        /** 获取当前被选中树节点的oid */
        nodeClick(data) {
          this.currentSelectTreeData = data;
          this.loadlistClassifyLinkAttr()
        },
        // 加载分类连接属性表格数据
        /** 加载分类连接属性表格数据 */
        loadlistClassifyLinkAttr() {
          let attrParam = this.selectAttrParams;
          //console.log(this.currentSelectTreeData);
@@ -1300,49 +1300,50 @@
            this.selectAttrParams.selectAttrQeury = {};
          })
        },
        // 点击搜索后触发该事件
        /** 点击搜索后触发该事件 */
        selectAttrSearchChange(params, done) {
          this.selectAttrParams.selectAttrQeury = params;
          //console.log(params);  //这儿需要改
          this.loadlistClassifyLinkAttr();
          done();
        },
        // 为属性选值界面,单击表格行时触发该事件
        /** 为属性选值界面,单击表格行时触发该事件 */
        selectionAttrRowClick(row){
          this.$refs[this.selectAttrParams.ref].toggleSelection();
          this.selectAttrParams.selectionChangeAttrList = row;
          this.$refs[this.selectAttrParams.ref].setCurrentRow(row);
          this.$refs[this.selectAttrParams.ref].toggleRowSelection(row); //选中当前行
        },
        // 属性取值当前选中行发生变化时触发
        /** 属性取值当前选中行发生变化时触发 */
        selectionChangeAttr(list){
          this.selectAttrParams.selectionChangeAttrList = list;
          this.$refs[this.selectAttrParams.ref].setCurrentRow(this.selectAttrParams.selectionChangeAttrList[list.length-1]);
        },
        // 重置位属性选取值表格的搜索框之后的回调
        /** 重置位属性选取值表格的搜索框之后的回调 */
        searchAttrReset() {
          this.selectAttrParams.selectAttrQeury = {};
          this.loadlistClassifyLinkAttr()
        },
        // 为属性选取值之后的回显
        /** 为属性选取值之后的回显 */
        selectedListClassifyLinkAttr(){
          if(this.selectAttrParams.selectionChangeAttrList.length != 1){
            this.$message.warning("请选择一条数据!");
            return false;
          }
          const attr = this.selectAttrParams.selectionChangeAttrList[0];
          //调用子组件并传递当前选中的参数值,实现回显
          this.form = Object.assign({}, this.form, {
            referAttributeId:this.selectAttrParams.selectionChangeAttrList[0].id,
            referAttributeName:this.selectAttrParams.selectionChangeAttrList[0].name,
            referCodeClassifyOid: this.currentSelectTreeData.key,
            referCodeClassifyOidName: this.currentSelectTreeData.title,
            referAttributeId: attr.id || '',
            referAttributeName: attr.name || attr.id,
            referCodeClassifyOid: this.currentSelectTreeData.key || '',
            referCodeClassifyOidName: this.currentSelectTreeData.title || '',
          })
          this.isShowSelectAttrOption = false;
        },
        /** 基础码段表中的码值管理的相关方法 */
        // 码值管理弹窗控制
        /** 码值管理弹窗控制*/
        openBasicSecCodeValueMgr(row){
          //当前为固定码段码值管理码值管理
          if(row.secType === "codefixedsec"){
@@ -1353,10 +1354,10 @@
            this.isShowFixedForm = false;
            this.loadClassifyValueData(row);
          }
          this.codefixedsecOrCodeclassifysecOid = row.oid;
          this.codefixedsecOrCodeclassifysec = row;
          this.isShowBasicSecCodeValueMgr = true;
        },
        //加载固定码段码值表数据
        /** 加载固定码段码值表数据*/
        loadFixedValueTableData(row){
          this.fixedValueOptionLoading = true;
          gridCodeFixedValue(1, -1, {"codeFixedSecOid":row.oid}).then(res=>{
@@ -1365,7 +1366,7 @@
            this.fixedValueOptionLoading = false;
          })
        },
        //单击固定码段的码值表中行时触发的事件
        /** 单击固定码段的码值表中行时触发的事件*/
        selectedCodeValueRow(row){
          //console.log(row);
          this.selectedFixedOrCodeclassifyValue = row;
@@ -1373,20 +1374,15 @@
          this.codeFixdForm.description = row.description;
          this.codeFixdForm.codeFixedSecOid = row.codefixedsecoid;
        },
        //新增码值
        /** 新增码值*/
        addCodeSecValue(condition){
          if(condition === "codefixedsec"){
            if(this.codeFixdForm.id.trim() == ''){
              this.$message.warning("码值不能为空!");
            if(!this.tipsCodeSecValueMessage(this.codeFixdForm.id)){
              return;
            }
            if(this.codeFixdForm.id.trim().length >= 12 ){
              this.$message.warning("码值长度不能大于12!");
              return;
            }
            this.codeFixdForm.codeFixedSecOid = this.codefixedsecOrCodeclassifysecOid;
            this.codeFixdForm.codeFixedSecOid = this.codefixedsecOrCodeclassifysec.oid;
            addSaveCodeFixedValue(this.codeFixdForm).then(() => {
              this.loadFixedValueTableData({"oid":this.codefixedsecOrCodeclassifysecOid});
              this.loadFixedValueTableData({"oid":this.codefixedsecOrCodeclassifysec.oid});
              this.clearFixedOrClassifyForm('codefixedsec');
              this.$message({
                type: "success",
@@ -1396,18 +1392,13 @@
              window.console.log(error);
            });
          }else {
            if(this.codeClassifyForm.id.trim() == ''){
              this.$message.warning("码值不能为空!");
            if(!this.tipsCodeSecValueMessage(this.codeClassifyForm.id)){
              return;
            }
            if(this.codeClassifyForm.id.trim().length > 4 ){
              this.$message.warning("码值长度不能大于4!");
              return;
            }
            this.codeClassifyForm.codeClassifySecOid = this.codefixedsecOrCodeclassifysecOid;
            this.codeClassifyForm.codeClassifySecOid = this.codefixedsecOrCodeclassifysec.oid;
            // console.log(this.codeClassifyForm);
            addSaveCodeClassifyValue(this.codeClassifyForm).then(() => {
              this.loadClassifyValueData({"oid":this.codefixedsecOrCodeclassifysecOid});
              this.loadClassifyValueData({"oid":this.codefixedsecOrCodeclassifysec.oid});
              this.clearFixedOrClassifyForm('codeclassifyvaluesec');
              this.$message({
                type: "success",
@@ -1421,7 +1412,7 @@
            });
          }
        },
        //清空码值表单
        /** 清空码值表单 */
        clearFixedOrClassifyForm(condition){
          //点击取消时清空表单与当前选中的码值,并禁用按钮
          this.selectedFixedOrCodeclassifyValue = '';
@@ -1437,19 +1428,34 @@
            this.codeClassifyForm = this.$options.data().codeClassifyForm;
          }
        },
        //修改码值
        /** 添加或修改码值之前对码值长度根据规则进行校验 */
        tipsCodeSecValueMessage(id){
          if(id.trim() == ''){
            this.$message.warning("码值不能为空!");
            return false;
          }
          if(id.trim().length > this.codefixedsecOrCodeclassifysec.codeSecLength ){
            this.$message.warning("码值长度不能大于" + this.codefixedsecOrCodeclassifysec.codeSecLength);
            return false;
          }
          return true;
        },
        /** 修改码值 */
        editCodeSecValue(condition){
          if(condition=='codefixedsec'){
            //以前是直接把当前选中行的所有数据都进行提交,但其实只需要传输一些比要参数即可,这儿做了修改,需要穿其他参数的请自行添加
            if(!this.tipsCodeSecValueMessage(this.codeFixdForm.id)){
              return;
            }
            //以前是直接把当前选中行的所有数据都进行提交,但其实只需要传输一些必要参数即可,这儿做了修改,需要传其他参数的请自行添加
            let editData = {
            "oid": this.selectedFixedOrCodeclassifyValue.oid,
            "ts": new Date().getTime(),
            "description": this.codeFixdForm.description,
            "id": this.codeFixdForm.id,
            "codeFixedSecOid":  this.selectedFixedOrCodeclassifyValue.codefixedsecoid
              "oid": this.selectedFixedOrCodeclassifyValue.oid,
              "ts": new Date().getTime(),
              "description": this.codeFixdForm.description,
              "id": this.codeFixdForm.id,
              "codeFixedSecOid":  this.selectedFixedOrCodeclassifyValue.codefixedsecoid
            }
            editCodeFixedValue(editData).then(() => {
                this.loadFixedValueTableData({"oid":this.codefixedsecOrCodeclassifysecOid})
                this.loadFixedValueTableData({"oid":this.codefixedsecOrCodeclassifysec.oid})
                this.$message({
                  type: "success",
                  message: "操作成功!"
@@ -1458,14 +1464,17 @@
                window.console.log(error);
            });
          }else {
            if(!this.tipsCodeSecValueMessage(this.codeClassifyForm.id)){
              return;
            }
            this.codeClassifyForm.oid = this.selectedFixedOrCodeclassifyValue.attributes.oid;
            // 分类码段,子分类和父分类之间不能相互更改
            if(this.checkClassUpdate(this.codefixedsecOrCodeclassifysecOid,this.codeClassifyForm.codeClassifySecOid)){
            if(this.checkClassUpdate(this.codefixedsecOrCodeclassifysec.oid,this.codeClassifyForm.codeClassifySecOid)){
              return;
            }
            this.$delete(this.codeClassifyForm,"parentClassifyValueOid");
            editCodeClassifyValue(this.codeClassifyForm).then(() => {
                this.loadClassifyValueData({"oid":this.codefixedsecOrCodeclassifysecOid})
                this.loadClassifyValueData({"oid":this.codefixedsecOrCodeclassifysec.oid})
                this.$message({
                  type: "success",
                  message: "操作成功!"
@@ -1476,7 +1485,7 @@
          }
        },
        //删除码值
        /** 删除码值 */
        delCodeSecValue(condition){
          //固定码段码值删除
          if(condition == 'codefixedsec'){
@@ -1492,7 +1501,7 @@
            })
            .then(() => {
              this.selectedFixedOrCodeclassifyValue = '';
              this.loadFixedValueTableData({"oid":this.codefixedsecOrCodeclassifysecOid})
              this.loadFixedValueTableData({"oid":this.codefixedsecOrCodeclassifysec.oid})
              this.clearFixedOrClassifyForm('codefixedsec');
              this.$message({
                type: "success",
@@ -1500,7 +1509,7 @@
              });
            });
          }else{
            if(this.checkClassUpdate(this.codefixedsecOrCodeclassifysecOid,this.codeClassifyForm.codeClassifySecOid)){
            if(this.checkClassUpdate(this.codefixedsecOrCodeclassifysec.oid,this.codeClassifyForm.codeClassifySecOid)){
              return;
            } 
            //分类码段码值删除
@@ -1515,7 +1524,7 @@
            })
            .then(() => {
              this.selectedFixedOrCodeclassifyValue = '';
              this.loadClassifyValueData({"oid":this.codefixedsecOrCodeclassifysecOid})
              this.loadClassifyValueData({"oid":this.codefixedsecOrCodeclassifysec.oid})
              this.clearFixedOrClassifyForm('codeclassifyvalue');
              this.$message({
                type: "success",
@@ -1524,7 +1533,7 @@
            });
          }
        },
        //对固定码值表进行:上移、下移、移除操作
        /** 对固定码值表进行:上移、下移、移除操作*/
        codeFixedValueOpetion(condition,row){
          //console.log(this.fixedValueData[row.$index].orderNum);
          const index = row.$index;
@@ -1560,9 +1569,9 @@
          }
          //console.log(this.fixedValueData);
        },
        //对分类码值表进行:上移、下移、移除操作
        /** 对分类码值表进行:上移、下移、移除操作*/
        codeClassifyValueOpetion(condition){
          if(this.checkClassUpdate(this.codefixedsecOrCodeclassifysecOid,this.codeClassifyForm.codeClassifySecOid)){
          if(this.checkClassUpdate(this.codefixedsecOrCodeclassifysec.oid,this.codeClassifyForm.codeClassifySecOid)){
            return;
          } 
          //此处涉及到深浅拷贝问题,但是执行上下移保存操作之后会重新加载treedata,所以影响不大
@@ -1589,7 +1598,7 @@
            }
          }
        },
        //选中被调整顺序的两个树的节点
        /** 选中被调整顺序的两个树的节点*/
        getCodeClassifyValueTreeData(){
          const currentNodeTreeData = this.selectedFixedOrCodeclassifyValue;
          /**考虑几种情况,第一种当前上移|下移操作已经是边界,
@@ -1625,12 +1634,12 @@
            }
          }
        },
        //上移下移等操作的保存
        /** 上移下移等操作的保存*/
        async saveCodeFixedOrClassifyValueOption(condition,editOrderNumdata){
          //保存对固定码段码值的上移下移移出等操作
          if(condition == "fixedValue"){
            let data = {
            "codeFixedSecOid": this.codefixedsecOrCodeclassifysecOid,
            "codeFixedSecOid": this.codefixedsecOrCodeclassifysec.oid,
            "dtoList": JSON.stringify(this.fixedValueData),
            }
            saveOrder(data).then(() => {
@@ -1646,7 +1655,7 @@
          }else {
            //保存对分类码值码段码值的上移下移移出等操作
            await saveCodeClassifyValueOrder({
              "codeClassifySecOid": this.codefixedsecOrCodeclassifysecOid,
              "codeClassifySecOid": this.codefixedsecOrCodeclassifysec.oid,
              "dtoList": JSON.stringify(editOrderNumdata),
            }).then(() => {
              this.$message({
@@ -1656,11 +1665,11 @@
              }, error => {
                window.console.log(error);
            });
            this.loadClassifyValueData({"oid":this.codefixedsecOrCodeclassifysecOid});
            this.loadClassifyValueData({"oid":this.codefixedsecOrCodeclassifysec.oid});
          }
        },
        //分类码值树data加载
        /** 分类码值树data加载*/
        loadClassifyValueData(row){
          //console.log(row);
          let condtionData = {
@@ -1676,7 +1685,7 @@
            //console.log(res.data);
          });
        },
        //分类码值树单击时触发的事件
        /** 分类码值树单击时触发的事件*/
        classisyValueTreeOnodeClick(node){
          //console.log(node);
          this.selectedFixedOrCodeclassifyValue = node;
@@ -1691,7 +1700,7 @@
         * @currentRowClassOid 当前选中行oid
         * @updateClassOid 要修改的分类码值oid
         */
         checkClassUpdate(currentRowClassOid,updateClassOid){
        checkClassUpdate(currentRowClassOid,updateClassOid){
          if(currentRowClassOid!=updateClassOid){
            this.$message({
              type: "error",
@@ -1702,7 +1711,7 @@
        },
        /** 编码规则相关方法 */
        // 打开高级查询窗口
        /** 打开高级查询窗口 */
        openAdvancedQuery(condition){
          if(condition=='codeRule'){
            this.advancedQueryParam.options = [
@@ -1771,7 +1780,7 @@
          this.advancedQueryParam.currentOpen = condition;
          this.advancedQueryParam.advancedQuerySettingBox = true;
        },
        // 查询使用范围
        /** 查询使用范围*/
        handleRange(){
          if(!this.tipsMessage(this.selectionList)){
            return;
@@ -1779,7 +1788,7 @@
          this.codeRangeSettingBox = true;
          this.getRangeCodeList()
        },
        // 加载使用范围列表
        /** 加载使用范围列表*/
        getRangeCodeList(){
          this.dialogLoading = true;
          if(this.selectionList[0].oid==null){
@@ -1792,11 +1801,11 @@
            this.dialogLoading = false;
          });
        },
        // 刷新使用范围列表
        /** 刷新使用范围列表*/
        refreshUseRangeChange(){
          this.getRangeCodeList();
        },
        // 启用与停用
        /** 启用与停用*/
        enableOrDeactivatse(oId,update){
          updateStatus({"oid":oId,"ts":new Date().getTime,"update":update}).then(() => {
            this.onLoad(this.page);
@@ -1808,7 +1817,7 @@
            window.console.log(error);
          });
        },
        // 打开编码规则克隆对话框
        /** 打开编码规则克隆对话框*/
        openCodeRuleDialog() {
          if (!this.tipsMessage(this.selectionList)) {
            return;
@@ -1819,7 +1828,7 @@
          this.cloneCodeRuleForm.description = this.selectionList[0].description;
          this.loadBasic({"oid": this.selectionList[0].oid});
        },
        // 克隆编码规则保存功能
        /** 克隆编码规则保存功能*/
        saveCloneCodeRule(){
          let form = this.cloneCodeRuleForm;
          if(form.id.trim()==''){
@@ -1850,7 +1859,7 @@
          });
          //console.log(data);
        },
        // 打开从其他编码规则中克隆码段对话框
        /** 打开从其他编码规则中克隆码段对话框*/
        openOtherCodeRuleDialog(){
          if (!this.tipsMessage(this.selectionList)) {
            return;
@@ -1861,7 +1870,7 @@
          }
          this.cloneOtherCodeRuleSettingBox = true;
        },
        // 从其他编码规则中克隆码段对话框-单击编码规则实现行选择
        //** 从其他编码规则中克隆码段对话框-单击编码规则实现行选择*/
        codeOtherCloneRuleRowClick(row) {
          this.$refs.crudCloneCodeRuleOther.toggleSelection();
          this.selectionOtherCloneCodeRuleList = row;
@@ -1869,14 +1878,14 @@
          this.$refs.crudCloneCodeRuleOther.toggleRowSelection(row); //选中当前行
          this.loadBasic(row);
        },
        // 从其他编码规则中克隆码段对话框-单击基础码段实现行选择
        /** 从其他编码规则中克隆码段对话框-单击基础码段实现行选择*/
        codeOtherCloneBasicRowClick(row){
          this.$refs.crudCloneCodeBasicOther.toggleSelection();
          this.selectionOtherCloneCodeBasicList = row;
          this.$refs.crudCloneCodeBasicOther.setCurrentRow(row);
          this.$refs.crudCloneCodeBasicOther.toggleRowSelection(row); //选中当前行
        },
        // 从其他规则克隆码段界面中编码规则当前选中行变化的时候触发
        /** 从其他规则克隆码段界面中编码规则当前选中行变化的时候触发*/
        selectionOtherCloneCodeRuleChange(list) {
          //console.log(list);
          this.selectionOtherCloneCodeRuleList = list;
@@ -1892,7 +1901,7 @@
          this.selectionOtherCloneCodeBasicList = list;
          this.$refs.crudCloneCodeBasicOther.setCurrentRow(this.selectionOtherCloneCodeBasicList[list.length-1]);
        },
        // 从其他编码规则中克隆码段信息
        /** 从其他编码规则中克隆码段信息*/
        saveOtherCodeBasic(){
          let oid = this.selectionList[0].oid;
          let fromDialogPkCodebasic = this.selectionOtherCloneCodeBasicList;
@@ -1928,7 +1937,7 @@
            window.console.log(error);
          });
        },
        // 清空码值
        /** 清空码值*/
        clearAllCodeSec(){
          if(this.selectionList.length == 0){
            this.$message.warning("没有选择数据!");
@@ -1956,7 +1965,7 @@
              });
            });
        },
        // 添加
        /** 添加*/
        rowSave(row, done, loading) {
          console.log(row);
          add(row).then(() => {
@@ -1974,7 +1983,7 @@
        openEdit(row){
          this.$refs.crud.rowEdit(row,row.$index);
        },
        // 修改
        /** 修改*/
        rowUpdate(row, index, done, loading) {
          row.ts = new Date().getTime;
          update(row).then(() => {
@@ -1989,7 +1998,7 @@
            console.log(error);
          });
        },
        // 删除
        /** 删除*/
        handleDelete() {
          if(!this.tipsMessage(this.selectionList)){
            return;
@@ -2014,7 +2023,7 @@
              this.$refs.crud.toggleSelection();
            });
        },
        // 打开修改
        // 打开修改*/
        beforeOpen(done, type) {
          if (["edit", "view"].includes(type)) {
            getDetail(this.ruleForm.oid).then(res => {
@@ -2040,7 +2049,7 @@
          this.onLoad(this.page);
          done();
        },
        // 编码规则当前选中行变化的时候触发
        /** 编码规则当前选中行变化的时候触发*/
        selectionChange(list) {
          this.selectionList = list;
          //当前选中行为空的时候就将码段管理表格数据置空,并禁用相关功能
@@ -2054,7 +2063,7 @@
            this.loadBasic(this.selectionList[list.length-1]);
          }
        },
        // 单击编码规则实现行选择
        /** 单击编码规则实现行选择*/
        codeRuleRowClick (row) {
          // console.log(this.currentRuleLcStatus);
          this.$refs.crud.toggleSelection();
@@ -2103,12 +2112,12 @@
        /** 基础码段相关方法 */
        //防止打开过编辑窗口之后表单中存在值,所以需要清空,并初始化form表单属性
        /** 防止打开过编辑窗口之后表单中存在值,所以需要清空,并初始化form表单属性*/
        clearBasicAddForm(){
          this.form = this.$options.data().form;
          // this.changeSectypeFormItems(null);
        },
        // 打开新增窗口
        /** 打开新增窗口*/
        openAddBasicCodeSec(){
          if(!this.tipsMessage(this.selectionList)){
            return;
@@ -2120,7 +2129,7 @@
          this.openBasicDialog('add',null);
          this.loadCodeSecType();
        },
        // 打开新增或编辑基础码段对话框
        /** 打开新增或编辑基础码段对话框*/
        openBasicDialog(condition,row){
          //console.log(row);
          if(condition == 'add') {
@@ -2145,7 +2154,7 @@
          this.changeSectypeFormItems(condition == 'add' ? null:row);
          this.addBasicCodeSettingBox = true;
        },
        // 新增基础码段
        /** 新增基础码段*/
        async saveOrEditBasicCode(){
          if(this.selectionList[0].oid == null ||  this.selectionList[0].oid == ''){
            this.$message.warning('缺失必要参数,请重新选择编码规则后再试!');
@@ -2190,7 +2199,7 @@
            this.addBasicCodeSettingBox = false
          }
        },
        // 因为elementui的表单校验设置不上所以采用判断的方式来做表单检验方式
        /** 因为elementui的表单校验设置不上所以采用判断的方式来做表单检验方式*/
        checkForm(){
          let form = this.form;
          //console.log(form);
@@ -2371,7 +2380,7 @@
          }
          return true;
        },
        // 判断数据是否选择以及只能选择单条数据
        /** 判断数据是否选择以及只能选择单条数据*/
        tipsMessage(list){
          if(list.length != 1){
            this.$message.warning("请选择一条编码规则数据!");
@@ -2379,7 +2388,7 @@
          }
          return true;
        },
        // 基础码段删除
        /** 基础码段删除*/
        deleteBasicCode(){
          if(!this.tipsMessage(this.selectionBasicList)){
            return;
@@ -2403,7 +2412,7 @@
            this.$refs.crudBasic.toggleSelection();
          });
        },
        // 点击触发加载基础码段信息
        /** 点击触发加载基础码段信息*/
        loadBasic(row){
          if(this.cloneSettingBox){
            this.cloneTableLoading = true;
@@ -2418,7 +2427,7 @@
            this.sendGridCodeBasicSec({"pkCodeRule":row.oid},false);
          }
        },
        // 发送加载基础码段的请求
        /** 发送加载基础码段的请求*/
        sendGridCodeBasicSec(condition,isAdancedQuery/** 是否高级查询 */){
          // 如果当前基础码段表中的搜索按钮被隐藏,就需要在此开启
          if(this.selectionList.length>=0 && !this.$refs.crudBasic.option.column[0].search){
@@ -2447,13 +2456,13 @@
            }
          });
        },
        // 基础码段选中时触发
        /** 基础码段选中时触发*/
        selectionBasicChange(list) {
          this.selectionBasicList = list;
          this.$refs.crudBasic.setCurrentRow(this.selectionBasicList[list.length-1]);
          //console.log(this.selectionBasicList);
        },
        // 基础码段被单击表格行时触发
        /** 基础码段被单击表格行时触发*/
        codeBasicSecRowClick(row){
          this.$refs.crudBasic.toggleSelection();
          this.selectionBasicList = row;
@@ -2468,7 +2477,7 @@
        basicSearchReset(){
          this.sendGridCodeBasicSec({"pkCodeRule":this.selectionList[this.selectionList.length-1].oid},false);
        },
        // 上移下移基础码段
        /** 上移下移基础码段*/
        async upOrderNum(row){
          if(!this.tipsMessage(this.selectionList)){
            return;
@@ -2512,11 +2521,11 @@
            });
          })
        },
        // 基础码段刷新时查询
        /** 基础码段刷新时查询*/
        refreshChangeBasicSec(){
          this.loadBasic(this.selectionList.at(-1));
        },
        // 操作基础码段中搜索清空等按钮的显示/隐藏
        /** 操作基础码段中搜索清空等按钮的显示/隐藏*/
        hideBasicTable(hideBoolean){
          this.$refs.crudBasic.option.refreshBtn = hideBoolean;
          this.$refs.crudBasic.option.column[0].search = hideBoolean;
@@ -2537,10 +2546,11 @@
        },
        /** 第一层对话框相关方法 */
        // 打开二层对话框方法
        /** 打开二层对话框方法*/
        openAttrSelectOrGetValue(condition){
          if(condition === 'attr'){
            this.isShowSelectAttrOption = true;
            this.loadlistClassifyLinkAttr();
          }else if(condition === 'value'){
            //打开公式编辑框,第二层嵌套对话框
            //this.$refs.formulaEditor.isShowformulaEdit = true;
@@ -2562,7 +2572,7 @@
          }
        },
        // 点击输入框的×号,清空输入框中的内容
        /** 点击输入框的×号,清空输入框中的内容*/
        clearAttrDataByIcon(condition){
          if(condition === 'attr'){
            this.form.referAttributeName = '';
@@ -2581,13 +2591,13 @@
            this.form.referConfig = '';
          }
        },
        // 补位时的字符,实现可输可选
        /** 补位时的字符,实现可输可选*/
        inputSelectBlur(e){
          if (e.target.value) {
            this.form.codeFillSeparator = e.target.value;
          }
        },
        // 码段类型改变时,增加对应的form表单中的属性
        /** 码段类型改变时,增加对应的form表单中的属性*/
        changeSectypeFormItems(row){
          //console.log(row);
          if(this.enumParam.secTypeList.length==0){
@@ -2703,7 +2713,7 @@
          }
          // console.log(this.form);
        },
        // 第一次请求的枚举数据放缓存
        /** 第一次请求的枚举数据放缓存*/
        getLocalStorageEnum(enumKey){
          let enumCach = JSON.parse(localStorage.getItem(enumKey));
          if(enumCach == null) {
@@ -2714,7 +2724,7 @@
          }
          return enumCach;
        },
        // 统一加载所有枚举查询,主要是为避免切换码段类型时还未加载完成的情况
        /** 统一加载所有枚举查询,主要是为避免切换码段类型时还未加载完成的情况*/
        loadTotalEnum(){
          this.loadCodeSecType();
          this.loadCodeSecLength();
@@ -2724,7 +2734,7 @@
          this.loadCodeCutType();
          this.loadCodeGetValueType();
        },
        //枚举和可输可选内容查询
        /** 枚举和可输可选内容查询 */
        loadCodeSecType(){
          this.enumParam.secTypeList = this.getLocalStorageEnum("codeSecType");
          this.loadCodeSecLength();