| | |
| | | </div> |
| | | </div> |
| | | <!-- 树节点添加对话框--> |
| | | <el-dialog :title="this.TreeFlag ? '添加分类' :'添加主题库'" :visible.sync="TreeAddFormVisible" v-loading="AddLoading" append-to-body |
| | | <el-dialog :title="this.TreeFlag ? '添加分类' :'添加主题库'" :before-close="TreeEscHandler" :visible.sync="TreeAddFormVisible" v-loading="AddLoading" append-to-body |
| | | style="width: 1700px;margin: auto"> |
| | | <el-form :model="TreeAddform" :rules="rules"> |
| | | <el-form-item :label="this.TreeFlag ? '分类编号:' :'主题库编号:'" label-width="150px" style="display: inline-block" prop="id"> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="TreeAddFormVisible = false">取 消</el-button> |
| | | <el-button @click="TreeEscHandler">取 消</el-button> |
| | | <el-button type="primary" @click="TreeAddHandler">确 定</el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | inject: ["crudTreeData"], |
| | | data() { |
| | | return { |
| | | masterRow:0, |
| | | masterRow:null, |
| | | AddLoading:false, |
| | | // 定义一个变量来保存树请求的数量 |
| | | requestCount:0, |
| | | requestCount:null, |
| | | //导入状态框 |
| | | ThemeImportVisible:false, |
| | | selectRow:'', |
| | |
| | | }, |
| | | //业务类型多选 |
| | | btmSelect(row){ |
| | | this.masterRow=row.$index; |
| | | this.btmSelectList=row; |
| | | this.btmName=row.name; |
| | | this.btmOid=row.id; |
| | |
| | | loading.close(); |
| | | } |
| | | }, |
| | | //树节点取消事件 |
| | | TreeEscHandler(){ |
| | | this.TreeAddform={}; |
| | | this.TreeAddFormVisible=false |
| | | }, |
| | | //树节点添加事件 |
| | | TreeAddHandler() { |
| | | const data = this.TreeAddform; |
| | |
| | | }); |
| | | this.getAttr(); |
| | | this.TreeAddFormVisible = false; |
| | | //添加完成后右侧清空 |
| | | this.ProData=[]; |
| | | this.Formlist=[]; |
| | | }) |
| | | .catch((res) => { |
| | | this.$message({ |