| | |
| | | icon="el-icon-check" |
| | | v-if="scope.type === 'add'" |
| | | @click="handleSaveNext()">保存后继续添加</el-button> |
| | | <el-button type="primary" |
| | | size="small" |
| | | icon="el-icon-circle-plus-outline" |
| | | v-if="scope.type === 'add'" |
| | | @click="$refs.BottomCrud.rowSave()">保存</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </div> |
| | |
| | | selection: false, |
| | | refreshBtn: false, |
| | | dialogWidth:'700', |
| | | saveBtn:false, |
| | | // height:'auto', |
| | | column: [ |
| | | { |
| | |
| | | |
| | | // 右侧表格信息 |
| | | getRightTableList(row) { |
| | | console.log(row); |
| | | this.tableLoading = true; |
| | | const params = { |
| | | plactioncls: row.id |
| | | plactioncls: row.id ? row.id : '' |
| | | } |
| | | getActionTableData(params).then(res => { |
| | | const data = res.data.data; |
| | |
| | | } |
| | | this.tableLoading = true; |
| | | const apiParams = { |
| | | plactioncls: this.treeNodeRow.id === 'root' ? '' : this.treeNodeRow.id, |
| | | plactioncls: this.treeNodeRow.id === 'root' ? '' : this.treeNodeRow.id ? this.treeNodeRow.id : '', |
| | | ...params |
| | | } |
| | | |
| | |
| | | beforeOpen(done, type, loading) { |
| | | if ([ 'edit'].includes(type)) { |
| | | // 编辑逻辑 |
| | | this.option.column[32].disabled = false; |
| | | this.$set(this.option.column[2],'disabled',false); |
| | | } else { |
| | | // 新增逻辑 |
| | | this.option.column[2].disabled = true; |
| | | this.$set(this.option.column[2],'disabled',true); |
| | | } |
| | | done(); |
| | | console.log(this.option.column) |
| | | }, |
| | | // action列表增加 |
| | | addClickHandler() { |
| | |
| | | this.$message.success('分类创建成功'); |
| | | this.getTreeList(); |
| | | } |
| | | done(); |
| | | }) |
| | | done(); |
| | | loading(); |
| | | }, |
| | | |