| | |
| | | > |
| | | <template #menu-left> |
| | | <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleExport">导出</el-button> |
| | | <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleView">导入</el-button> |
| | | <!-- <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleAdd">新增</el-button> --> |
| | | <!-- <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleView">导入</el-button> --> |
| | | <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleAdd">新增</el-button> |
| | | </template> |
| | | <template #menu="scope"> |
| | | <el-button type="primary" text size="default" icon="el-icon-upload" @click.stop="handleEdit(scope.row, scope.index)">编辑</el-button> |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | //判断版本 0:涉密网,1:工控网;//工控网5个,涉密网4个 |
| | | //判断版本 0:涉密网,1:工控网;//工控网5个,涉密网4个 工控网不做了 |
| | | // 工控网是/blade-mdm/system/dept/lazy-list |
| | | // 涉密网是/blade-mdm/dept/lazy-list |
| | | axios({url: '/blade-mdm/system/param/getValue?paramKey=networkType',method: 'get'}).then(res => { |
| | | if(res.data.data === "0") { |
| | | var aurl = "/blade-mdm/dept/lazy-list"; |
| | | }else { |
| | | var aurl = "/blade-mdm/system/dept/lazy-list"; |
| | | } |
| | | // if(res.data.data === "0") { |
| | | // var aurl = "/blade-mdm/dept/lazy-list"; |
| | | // }else { |
| | | // var aurl = "/blade-mdm/system/dept/lazy-list"; |
| | | // } |
| | | var aurl = "/blade-mdm/system/dept/lazy-list"; |
| | | axios({url: aurl,method: 'get'}).then(resp => { |
| | | this.organizationTreeList = this.traversalLabelValueToTree(resp.data.data); |
| | | }) |