田源
2023-06-26 aa7b19831312d3e8d7eb19fd4e0a44505be24e93
Source/UBCS-WEB/src/components/Tree/attrCrud.vue
@@ -26,7 +26,6 @@
    <!--        全屏编辑-->
    <template slot="menuLeft">
      <el-button v-if=" attrEditVisible == false && attrFlagChiledren==false" size="small" @click="fullscreenHandle">全屏编辑</el-button>
<!--      <el-button v-if="attrFlagChiledren !=false" size="small" plain type="success" @click="escEdit">退出全屏编辑</el-button>-->
      <el-dialog :visible.sync="attrEditVisible" append-to-body fullscreen="true">
       <attrCrud :ProData="this.ProData" :attrFlagChiledren="this.attrFlag"></attrCrud>
      </el-dialog>
@@ -45,7 +44,7 @@
    <template slot="menuLeft">
      <el-button icon="el-icon-info" size="small" @click="rulesVisible=true">验证规则</el-button>
      <el-dialog :visible.sync="rulesVisible" append-to-body title="属性验证规则">
        <el-container style="border: 1px solid #eee;padding: 10px">
        <el-container style="border: 1px solid #9e3333;padding: 10px">
          <el-aside style="width: 330px;">
            <div style="display: flex">
              <p style="display: inline-block;width: 160px"> 正则表达式:</p>
@@ -110,7 +109,7 @@
        <div class="injectBox">
          <div style="color: #FF5722;margin: 1px 0 5px 20px">分类层级关联说明:</div>
          <div
            style="color: #01AAED;margin: 0 10px 0 45px;line-height: 20px">1:主要是设置模板属性和分类的关系<br/>2:如分类层级设置为2 <br/>3:录入资源数据时,该属性对应的值根据层级关系去对应的分类里取
            style="color: #01aaed;margin: 0 10px 0 45px;line-height: 20px">1:主要是设置模板属性和分类的关系<br/>2:如分类层级设置为2 <br/>3:录入资源数据时,该属性对应的值根据层级关系去对应的分类里取
            <br/>4:层级必须是大于0的整数值
          </div>
          <div style="padding-top: 15px;padding-left: 35px">
@@ -1165,9 +1164,7 @@
        this.$set(this.busineAddList,'classifytemplateoid',this.crudOid)
        this.$set(this.busineAddList,'oid','')
        this.ProData.push(JSON.parse(JSON.stringify(this.busineAddList)))
        console.log(this.busineAddList)
        this.addVisible=false;
        console.log('prodata',this.ProData)
      }
    },
    //业务类型单选
@@ -1183,7 +1180,6 @@
        this.addVisible=true;
        AttrByBtm({'conditionMap[oid]': this.crudOid}).then(res=>{
          this.businessData=res.data.data;
          console.log(res.data)
        })
      }
    },
@@ -1207,12 +1203,10 @@
      this.CrudOid=row.oid;
      this.CrudSelect=selection;
      this.attrRow=row;
      console.log(selection.length)
    },
    //保存
    addsHandler(){
      batchAddSave(this.ProData).then(res=>{
        console.log(res)
        this.$message.success('保存成功')
      })
    },
@@ -1230,7 +1224,6 @@
    // 级联属性行单选
    CascaderowClick(row) {
      this.selectRow = row.$index
      console.log(row)
    },
    // 枚举注入添加一行空数据
    addRow() {
@@ -1246,7 +1239,6 @@
    },
    //枚举注入删除
    enumDeleteRow(row) {
      console.log(row)
      this.tableData.splice(row, 1)
    },
    //枚举注入按钮
@@ -1261,12 +1253,10 @@
    },
    //枚举注入多选框
    handleSelectionChange(row){
      console.log(row)
      this.enumRow=JSON.parse(JSON.stringify(row));
    },
    //枚举注入保存
    enumAddHandle(){
      console.log(this.enumRow)
      if(this.enumRow.length<1){
        this.$message.warning('请至少选择一条数据')
      }else {
@@ -1341,10 +1331,6 @@
        //   const cellName=this.List[0]
        //
        // }
        console.log("list", this.List)
        console.log(column)
        // console.log(row)
        console.log(column.columnKey)
      }
    },
    //编辑保存事件
@@ -1384,11 +1370,6 @@
    //编码申请预览
    applicationHandle(){
      this.addvisible=true;
      console.log('temp',this.crudOid)
      console.log('code',this.codeClassifyOid)
      // getFormDefineByTemplate({templateOid:this.crudOid,codeClassifyOid:this.codeClassifyOid}).then(res=>{
      //   console.log(res)
      // })
    },
    //组合规则
    isShowHandler(){
@@ -1407,7 +1388,6 @@
      }else {
        this.attrEditVisible=true;
        this.attrFlag=true;
        console.log(this.attrEditVisible)
      }
    },
@@ -1415,10 +1395,8 @@
    escEdit(){
      this.attrFlagChiledren=false;
      this.attrEditVisible=false;
      console.log(this.attrEditVisible)
    },
    updataFormlaContent(val){
      console.log(val)
      this.$set(this.attrRow,'componentRule',val)
    },
    // 排序