| | |
| | | |
| | | <el-main> |
| | | <basic-container> |
| | | <div v-if="!tableStatus" style="display: flex;justify-content: left;margin-top: 15px"> |
| | | <el-button icon="el-icon-plus" plain size="small" type="primary" @click="addClickHandler">增加</el-button> |
| | | <el-button icon="el-icon-delete" plain size="small" type="danger" @click="deleteClickHandler">删除</el-button> |
| | | <el-button icon="el-icon-document-add" plain size="small" type="primary">克隆</el-button> |
| | | <el-button icon="el-icon-upload2" plain size="small" type="primary" @click="upLoadClickHandler">导入</el-button> |
| | | <el-button icon="el-icon-download" plain size="small" type="primary" @click="exportClickHandler">导出 |
| | | </el-button> |
| | | </div> |
| | | <avue-crud |
| | | v-if="!tableStatus" |
| | | ref="crud" |
| | |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | <div v-if="!tableStatus" style="display: flex;justify-content: center;margin-top: 15px"> |
| | | <el-button icon="el-icon-plus" plain size="small" type="primary" @click="addClickHandler">增加</el-button> |
| | | <el-button icon="el-icon-delete" plain size="small" type="danger" @click="deleteClickHandler">删除</el-button> |
| | | <el-button icon="el-icon-document-add" plain size="small" type="primary">克隆</el-button> |
| | | <el-button icon="el-icon-upload2" plain size="small" type="primary" @click="upLoadClickHandler">导入</el-button> |
| | | <el-button icon="el-icon-download" plain size="small" type="primary" @click="exportClickHandler">导出 |
| | | </el-button> |
| | | </div> |
| | | </basic-container> |
| | | </el-main> |
| | | <form-dialog ref="formDialog" :TreeNodeRow="this.nodeRow" :treeRadio="treeRadio"></form-dialog> |
| | |
| | | addBtn: false, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | calcHeight:-60, |
| | | column: [ |
| | | { |
| | | label: '业务名称', |
| | |
| | | }); |
| | | this.treeData = data; |
| | | this.treeLoading = false; |
| | | }).catch(error => { |
| | | loading.close(); |
| | | }); |
| | | }, |
| | | |
| | |
| | | } else { |
| | | gridLink().then(res => { |
| | | const data = res.data.data.map(item => { |
| | | item.label = item.name; |
| | | item.id = item.name; |
| | | return item; |
| | | }); |
| | | this.treeData = data; |
| | |
| | | this.$message.error('请至少选择一条数据'); |
| | | return; |
| | | } |
| | | console.log(this.selectList); |
| | | const params = { |
| | | ids: this.selectList.map(item => item.id).join(',') |
| | | } |
| | | deleteByIds(params).then(res => { |
| | | console.log(res); |
| | | if (res.data.code === 200) { |
| | | this.$message.success('删除成功'); |
| | | this.getRightPortalVIDatas(); |
| | |
| | | }) |
| | | |
| | | }, |
| | | |
| | | rowDeleteHandler(row){ |
| | | deleteByIds({ids:row.id}).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success('删除成功'); |
| | | this.getRightPortalVIDatas(); |
| | | } |
| | | }) |
| | | }, |
| | | // 多选 |
| | | selectChangeHandler(row) { |
| | | this.selectList = row; |