| | |
| | | <!-- 全屏编辑--> |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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"> |
| | |
| | | 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) |
| | | } |
| | | }, |
| | | //业务类型单选 |
| | |
| | | this.addVisible=true; |
| | | AttrByBtm({'conditionMap[oid]': this.crudOid}).then(res=>{ |
| | | this.businessData=res.data.data; |
| | | console.log(res.data) |
| | | }) |
| | | } |
| | | }, |
| | |
| | | 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('保存成功') |
| | | }) |
| | | }, |
| | |
| | | // 级联属性行单选 |
| | | CascaderowClick(row) { |
| | | this.selectRow = row.$index |
| | | console.log(row) |
| | | }, |
| | | // 枚举注入添加一行空数据 |
| | | addRow() { |
| | |
| | | }, |
| | | //枚举注入删除 |
| | | enumDeleteRow(row) { |
| | | console.log(row) |
| | | this.tableData.splice(row, 1) |
| | | }, |
| | | //枚举注入按钮 |
| | |
| | | }, |
| | | //枚举注入多选框 |
| | | 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 { |
| | |
| | | // const cellName=this.List[0] |
| | | // |
| | | // } |
| | | console.log("list", this.List) |
| | | console.log(column) |
| | | // console.log(row) |
| | | console.log(column.columnKey) |
| | | } |
| | | }, |
| | | //编辑保存事件 |
| | |
| | | //编码申请预览 |
| | | 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(){ |
| | |
| | | }else { |
| | | this.attrEditVisible=true; |
| | | this.attrFlag=true; |
| | | console.log(this.attrEditVisible) |
| | | } |
| | | |
| | | }, |
| | |
| | | escEdit(){ |
| | | this.attrFlagChiledren=false; |
| | | this.attrEditVisible=false; |
| | | console.log(this.attrEditVisible) |
| | | }, |
| | | updataFormlaContent(val){ |
| | | console.log(val) |
| | | this.$set(this.attrRow,'componentRule',val) |
| | | }, |
| | | // 排序 |