<template>
|
<div class="menuSettings_box">
|
<My-bread :list="[
|
`${$t('operatManage.operatManage')}`,
|
`${$t('operatManage.organizationManage')}`,
|
]"></My-bread>
|
<el-divider />
|
<div class="cataLogContent">
|
<div class="left_Tree subpage_Div">
|
<div style="min-width:200px">
|
<el-tree
|
ref="tree"
|
:props="defaultProps"
|
node-key="id"
|
:data="depList"
|
:expand-on-click-node="false"
|
:default-expand-all="true"
|
@node-click="handleNodeClick"
|
>
|
</el-tree>
|
</div>
|
</div>
|
<div style="width: 80%;border: 1px solid #dcdfe6;
|
width: 80%;
|
height: 91%;
|
border-radius: 5px;
|
padding: 1%;
|
overflow: auto;">
|
<div style="display:flex;justify-content:space-between">
|
<el-breadcrumb separator="/">
|
<el-breadcrumb-item :to="{ path: '/' }">{{
|
$t('dataManage.dictionaryManageObj.particulars')
|
}}</el-breadcrumb-item>
|
</el-breadcrumb>
|
|
<div>
|
<el-button
|
v-if="menuStatus.insert"
|
:disabled="itemdetail.pid == null ? true : false"
|
@click="setNewNode(1)"
|
type="success"
|
icon="el-icon-plus"
|
size="small"
|
>新增同级</el-button>
|
<el-button
|
v-if="menuStatus.insert"
|
:disabled="itemdetail.pid == null ? true : false"
|
@click="setNewNode(2)"
|
type="success"
|
icon="el-icon-plus"
|
size="small"
|
>新增子级</el-button>
|
<el-button
|
v-if="menuStatus.delete"
|
@click="setDelNode()"
|
:disabled="itemdetail.pid == null ? true : false"
|
type="danger"
|
icon="el-icon-delete"
|
size="small"
|
>删除</el-button>
|
<el-button
|
v-if="menuStatus.update"
|
:disabled="itemdetail.pid == null ? true : false"
|
@click="setEditNode(1)"
|
type="info"
|
icon="el-icon-top"
|
size="small"
|
>向上移动</el-button>
|
<el-button
|
v-if="menuStatus.update"
|
:disabled="itemdetail.pid == null ? true : false"
|
@click="setEditNode(2)"
|
type="info"
|
icon="el-icon-bottom"
|
size="small"
|
>向下移动</el-button>
|
</div>
|
</div>
|
<div class="form_box">
|
<el-divider class="eldivider" />
|
<el-form
|
style="min-height: 600px;overflow-y: auto;height: 500px;margin-top: 25px;"
|
:model="itemdetail"
|
ref="itemdetail"
|
:rules="rules"
|
>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.name')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="itemdetail.name"
|
autocomplete="off"
|
style="max-width: 400px;"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.abbreviation')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="itemdetail.sname"
|
autocomplete="off"
|
style="max-width: 400px;"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.unitCode')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="itemdetail.code"
|
autocomplete="off"
|
style="max-width: 400px;"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.organizationCode')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="itemdetail.uncode"
|
autocomplete="off"
|
style="max-width: 400px;"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.cmpanyAddress')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="itemdetail.addr"
|
autocomplete="off"
|
style="max-width: 400px;"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.continformation')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="itemdetail.contact"
|
autocomplete="off"
|
style="max-width: 400px;"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.fax')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="itemdetail.fax"
|
autocomplete="off"
|
style="max-width: 400px;"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.EMail')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="itemdetail.email"
|
autocomplete="off"
|
style="max-width: 400px;"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.postalCode')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="itemdetail.post"
|
autocomplete="off"
|
style="max-width: 400px;"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.WebsiteAddress')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="itemdetail.website"
|
autocomplete="off"
|
style="max-width: 400px;"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.remarks')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="itemdetail.bak"
|
autocomplete="off"
|
style="max-width: 400px;"
|
></el-input>
|
</el-form-item>
|
<div
|
class="btnBox"
|
v-if="menuStatus.update"
|
>
|
<el-button
|
type="primary"
|
size="small"
|
@click="updDep('itemdetail')"
|
>{{ $t('common.submit') }}</el-button>
|
<el-button
|
size="small"
|
@click="reset('itemdetail')"
|
>{{
|
$t('common.cancel')
|
}}</el-button>
|
</div>
|
</el-form>
|
</div>
|
</div>
|
|
</div>
|
|
<el-dialog
|
width="30%"
|
top="5vh"
|
:title="$t('common.append')"
|
:visible.sync="dialogFormVisible"
|
>
|
<el-form
|
:model="ruleForm"
|
ref="ruleForm"
|
:rules="rules"
|
>
|
<el-form-item
|
prop="name"
|
:label="$t('userManage.orgManageObj.name')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="ruleForm.name"
|
autocomplete="off"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.abbreviation')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="ruleForm.sname"
|
autocomplete="off"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.unitCode')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="ruleForm.code"
|
autocomplete="off"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.organizationCode')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="ruleForm.uncode"
|
autocomplete="off"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.cmpanyAddress')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="ruleForm.addr"
|
autocomplete="off"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.continformation')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="ruleForm.contact"
|
autocomplete="off"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.fax')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="ruleForm.fax"
|
autocomplete="off"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.EMail')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="ruleForm.email"
|
autocomplete="off"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.postalCode')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="ruleForm.post"
|
autocomplete="off"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.WebsiteAddress')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="ruleForm.website"
|
autocomplete="off"
|
></el-input>
|
</el-form-item>
|
<el-form-item
|
:label="$t('userManage.orgManageObj.remarks')"
|
:label-width="formLabelWidth"
|
>
|
<el-input
|
v-model="ruleForm.bak"
|
autocomplete="off"
|
></el-input>
|
</el-form-item>
|
</el-form>
|
<div
|
slot="footer"
|
class="dialog-footer"
|
>
|
<el-button
|
size="small"
|
@click="resetForm('ruleForm')"
|
>{{
|
$t('common.cancel')
|
}}</el-button>
|
<el-button
|
size="small"
|
type="primary"
|
@click="submitForm('ruleForm')"
|
v-loading.fullscreen.lock="fullscreenLoading"
|
>{{ $t('common.submit') }}</el-button>
|
</div>
|
</el-dialog>
|
</div>
|
</template>
|
|
<script>
|
import MyBread from '../../components/MyBread.vue';
|
import {
|
queryDepTree,
|
updateDepTree,
|
updateDepTrees,
|
queryMaxId,
|
insertDep,
|
deleteDep,
|
getPerms
|
} from '../../api/api';
|
export default {
|
//import引入的组件需要注入到对象中才能使用
|
components: {
|
MyBread,
|
},
|
data() {
|
let validName = (rule, value, callback) => {
|
if (value === '' || value === null || value === undefined) {
|
return callback(new Error('名称不能为空'));
|
} else {
|
callback();
|
}
|
};
|
return {
|
menuStatus: {
|
delete: false,
|
insert: false,
|
update: false,
|
},
|
defaultProps: {
|
children: 'children',
|
label: 'name',
|
},
|
fullscreenLoading: false,
|
oriData: [], //原始树数据
|
depList: [], //el树数据
|
old_depData: [], //el树数据(拖动前)
|
newData: [], //拖动后原始数据
|
itemdetail: {
|
addr: '',
|
bak: '',
|
code: '',
|
contact: '',
|
email: '',
|
fax: '',
|
name: '',
|
post: '',
|
sname: '',
|
uncode: '',
|
website: '',
|
},
|
backUpData: '',
|
formLabelWidth: '130px',
|
delChildID: '',
|
delChildIDs: [],
|
dialogFormVisible: false,
|
ruleForm: {
|
level: null,
|
orderNum: null,
|
pid: null,
|
addr: '',
|
bak: '',
|
code: '',
|
contact: '',
|
email: '',
|
fax: '',
|
name: '',
|
post: '',
|
sname: '',
|
uncode: '',
|
website: '',
|
},
|
rules: {
|
name: [{ required: true, validator: validName, trigger: 'blur' }],
|
},
|
newNode: null,
|
};
|
},
|
methods: {
|
getMenuTree() {
|
//获取目录树最大ID,新建节点使用
|
// queryMaxId().then((res) => {
|
// this.id = res.data;
|
// });
|
queryDepTree().then((res) => {
|
if (res.code == 200) {
|
this.oriData = res.result;
|
this.newData = res.result;
|
this.depList = this.treeData(res.result);
|
if (this.itemdetail.id != null) {
|
this.$nextTick(() => {
|
this.$refs.tree.setCurrentKey(this.itemdetail.id);
|
});
|
}
|
|
} else {
|
this.$notify.error({
|
title: res.code,
|
message: '无法获取单位列表',
|
});
|
}
|
});
|
},
|
treeData(source) {
|
let cloneData = JSON.parse(JSON.stringify(source)); // 对源数据深度克隆
|
return cloneData.filter((father) => {
|
// 循环所有项
|
let branchArr = cloneData.filter((child) => father.id == child.pid); // 对比ID,分别上下级菜单,并返回数据
|
branchArr.length > 0 ? (father.children = branchArr) : ''; // 给父级添加一个children属性,并赋值
|
return father.pid == 0; // 返回一级菜单
|
});
|
},
|
|
setEditNode(res) {
|
let node = this.$refs.tree.getCurrentNode();
|
let pchildNodes = this.$refs.tree.getNode(node.id).parent.childNodes;
|
let currentId = {};
|
for (let i = 0; i < pchildNodes.length; i++) {
|
if (pchildNodes[i].data.id == node.id) {
|
currentId = i;
|
}
|
}
|
switch (res) {
|
case 1://向上移动
|
if (currentId != 0) {
|
const tempChildrenNodex1 = pchildNodes[currentId - 1];
|
const tempChildrenNodex2 = pchildNodes[currentId];
|
tempChildrenNodex2.orderNum = pchildNodes[currentId - 1].data.orderNum;
|
tempChildrenNodex1.orderNum = pchildNodes[currentId].data.orderNum
|
var arr = [];
|
this.oriData.filter(res => {
|
if (res.id == tempChildrenNodex2.data.id) {
|
res.orderNum = tempChildrenNodex2.orderNum;
|
arr.push(res)
|
} else if (res.id == tempChildrenNodex1.data.id) {
|
res.orderNum = tempChildrenNodex1.orderNum;
|
arr.push(res)
|
}
|
|
})
|
this.newData = arr;
|
this.sendChange();
|
} else {
|
this.$message({
|
message: '处于顶端,不能继续上移',
|
type: 'warning'
|
});
|
}
|
break;
|
case 2://向下移动
|
if (currentId < (pchildNodes.length - 1)) {
|
const tempChildrenNodex1 = pchildNodes[currentId + 1];
|
const tempChildrenNodex2 = pchildNodes[currentId];
|
tempChildrenNodex2.orderNum = pchildNodes[currentId + 1].data.orderNum;
|
tempChildrenNodex1.orderNum = pchildNodes[currentId].data.orderNum;
|
var arr = [];
|
this.oriData.filter(res => {
|
if (res.id == tempChildrenNodex2.data.id) {
|
res.orderNum = tempChildrenNodex2.orderNum;
|
arr.push(res)
|
} else if (res.id == tempChildrenNodex1.data.id) {
|
res.orderNum = tempChildrenNodex1.orderNum;
|
arr.push(res)
|
}
|
})
|
this.newData = arr;
|
this.sendChange();
|
} else {
|
this.$message({
|
message: '处于底端,不能继续下移',
|
type: 'warning'
|
});
|
|
}
|
break;
|
|
}
|
},
|
setDelNode() {
|
this.remove(this.newNode, this.itemdetail)
|
},
|
setNewNode(res) {
|
var id, lever, orderNum;
|
if (res == 1) {//新增同级
|
id = this.itemdetail.pid;
|
orderNum = this.getMaxOrderNum(this.newNode.parent.childNodes)
|
|
lever = this.itemdetail.level;
|
} else if (res == 2) {//新增子级
|
id = this.itemdetail.id;
|
orderNum = this.getMaxOrderNum(this.newNode.childNodes)
|
|
lever = this.itemdetail.level + 1;
|
}
|
|
this.ruleForm.pid = id;
|
this.ruleForm.level = lever;
|
this.ruleForm.orderNum = orderNum
|
this.dialogFormVisible = true;
|
},
|
getMaxOrderNum(res) {
|
var val = -100;
|
for (var i in res) {
|
if (res[i].data.orderNum > val) {
|
val = res[i].data.orderNum
|
}
|
}
|
val = val + 1;
|
return val;
|
},
|
|
|
append(node, data) {
|
this.dialogFormVisible = true;
|
this.ruleForm.pid = data.id;
|
this.ruleForm.orderNum = node.childNodes.length + 1;
|
this.ruleForm.level = data.level + 1;
|
// console.log(data);
|
// console.log(node);
|
},
|
resetForm(formName) {
|
this.dialogFormVisible = false;
|
this.$nextTick(() => {
|
this.ruleForm = {};
|
this.$refs[formName].resetFields();
|
});
|
},
|
submitForm(formName) {
|
this.$refs[formName].validate((valid) => {
|
if (valid) {
|
// console.log(this.ruleForm);
|
this.fullscreenLoading = true;
|
insertDep(this.ruleForm)
|
.then((res) => {
|
setTimeout(() => {
|
this.fullscreenLoading = false;
|
if (res.code == 200) {
|
this.$message({
|
message: '添加成功',
|
type: 'success',
|
});
|
|
this.itemdetail = {};
|
this.ruleForm = {};
|
this.dialogFormVisible = false;
|
this.$refs[formName].resetFields();
|
this.getMenuTree();
|
}
|
}, 500);
|
})
|
.catch((res) => {
|
this.itemdetail = {};
|
this.$message.error('添加失败');
|
this.fullscreenLoading = false;
|
console.log(res);
|
});
|
} else {
|
// alert("目录名称不能为空");
|
return false;
|
}
|
});
|
},
|
remove(node, data) {
|
this.$confirm('此操作将删除该节点, 是否继续?', '提示', {
|
confirmButtonText: '确定',
|
cancelButtonText: '取消',
|
type: 'warning',
|
})
|
.then(() => {
|
//兄弟重新排序
|
const parent = node.parent;
|
const children = parent.data.children || parent.data;
|
children.splice(data.orderNum - 1, 1);
|
children.forEach((item, index) => {
|
item.orderNum = index + 1;
|
});
|
|
this.traverseArr(data); //获取删除的子ID
|
this.delChildIDs.push(data.id); //要删除的全部ID
|
let delIDs = this.delChildIDs;
|
Promise.all([
|
deleteDep({ ids: delIDs.toString() }),
|
updateDepTrees(children),
|
])
|
.then((res) => {
|
console.log(res);
|
if (res[0].code == 200 && res[1].code == 200) {
|
this.$message({
|
type: 'success',
|
message: '删除成功!',
|
});
|
this.getMenuTree();
|
this.itemdetail = {};
|
} else if (res[0].code == 200) {
|
this.getMenuTree();
|
this.$message.error('删除成功,位置调整失败');
|
} else if (res[1].code == 200) {
|
this.getMenuTree();
|
this.$message.error('删除失败,位置调整成功');
|
} else {
|
this.getMenuTree();
|
this.$message.error('删除失败');
|
}
|
})
|
.catch(() => {
|
this.$message.error('删除失败');
|
this.itemdetail = {};
|
});
|
|
//重置要删除的子ID
|
this.delChildIDs = [];
|
})
|
.catch(() => {
|
this.$message('已取消删除');
|
});
|
// this.dialogMessage="是否删除"
|
// this.dialogFlag = 1;
|
// this.dialogFrom ={
|
// node:node,
|
// val:data
|
// }
|
// this.dialogVisible=true;//目录树更改弹窗
|
// const parent = node.parent;
|
// const children = parent.data.children || parent.data;
|
// const index = children.findIndex((d) => d.id === data.id);
|
// let res = children.splice(index, 1);
|
// // console.log(res);
|
// // console.log(data);
|
// console.log(this.flaten(res));
|
},
|
traverseArr(obj) {
|
if (obj.children) {
|
return obj.children.forEach((item) => {
|
// console.log(item.id + "---" + item.name);
|
// this.delChildID += "id=" + item.id + "&";
|
this.delChildIDs.push(item.id);
|
this.traverseArr(item);
|
});
|
}
|
return;
|
},
|
flaten(arr) {
|
return arr.reduce((p, v, i) => {
|
for (let i = 0; i < p.length; i++) {
|
if (p[i].children) {
|
delete p[i].children;
|
}
|
}
|
return p.concat(v.children ? this.flaten(v.children).concat(v) : v);
|
}, []);
|
},
|
handleDragStart(node, ev) {
|
this.old_depData = JSON.parse(JSON.stringify(this.depList)); //将备份的dir重新赋值
|
},
|
handleDrop(draggingNode, dropNode, dropType, ev) {
|
this.$confirm('此操作将保存目录更改, 是否继续?', '提示', {
|
confirmButtonText: '确定',
|
cancelButtonText: '取消',
|
type: 'warning',
|
})
|
.then(() => {
|
//父节点
|
let data = dropType != 'inner' ? dropNode.parent.data : dropNode.data;
|
// 父节点中全部子节点
|
let nodeData =
|
dropNode.level == 1 && dropType != 'inner' ? data : data.children;
|
//变更节点
|
// console.log(nodeData);
|
nodeData.forEach((item, i) => {
|
if (dropType != 'inner') {
|
if (draggingNode.data.pid === dropNode.data.pid) {
|
item.pid = item.pid;
|
} else {
|
item.pid = dropNode.data.pid;
|
}
|
} else {
|
item.pid = data.id;
|
}
|
item.orderNum = i + 1;
|
});
|
// console.log(nodeData);
|
//更新原始整体数据
|
let arr = [];
|
this.oriData.forEach((e) => {
|
nodeData.forEach((item) => {
|
if (item.id === e.id) e = item;
|
});
|
arr.push(e);
|
});
|
this.newData = arr;
|
this.sendChange();
|
})
|
.catch(() => {
|
this.$message({
|
type: 'info',
|
message: '已取消更改',
|
});
|
this.depList = this.old_depData; //将备份的dir重新赋值
|
});
|
},
|
sendChange() {
|
updateDepTrees(this.newData)
|
.then((res) => {
|
if (res.code == 200) {
|
this.getMenuTree();
|
return;
|
} else {
|
alert('调整失败,请重试!');
|
}
|
})
|
.catch(() => {
|
alert('修改失败,请重试!');
|
});
|
},
|
handleNodeClick(data, node) {
|
this.newNode = node
|
this.backUpData = JSON.stringify(data);
|
this.itemdetail = JSON.parse(JSON.stringify(data));
|
},
|
updDep(formName) {
|
this.$nextTick(() => {
|
this.$refs[formName].validate((valid) => {
|
if (valid) {
|
this.fullscreenLoading = true;
|
updateDepTree(this.itemdetail)
|
.then((res) => {
|
setTimeout(() => {
|
this.fullscreenLoading = false;
|
if (res.code == 200) {
|
this.getMenuTree();
|
this.itemdetail = {};
|
this.dialogFormVisible = false;
|
}
|
}, 500);
|
})
|
.catch((res) => {
|
alert('修改失败,请重试!');
|
this.fullscreenLoading = false;
|
});
|
} else {
|
return false;
|
}
|
});
|
});
|
},
|
reset() {
|
this.$refs[formName].resetFields();
|
if (this.backUpData != '') {
|
this.itemdetail = JSON.parse(this.backUpData);
|
}
|
},
|
showPermsMenu(res) {
|
switch (res.tag) {
|
case '/delete':
|
this.menuStatus.delete = true;
|
break;
|
case '/insert':
|
this.menuStatus.insert = true;
|
break;
|
case '/update':
|
this.menuStatus.update = true;
|
break;
|
}
|
},
|
getPerms() {
|
var val = this.$store.state.currentPerms;
|
var permsEntity = this.$store.state.permsEntity;
|
|
if (permsEntity.length == 0) {
|
getPerms().then((res) => {
|
if (res.code == 200) {
|
permsEntity = res.result;
|
}
|
});
|
}
|
for (var i = 0; i < permsEntity.length; i++) {
|
if (permsEntity[i].perms == val) {
|
console.log(permsEntity[i])
|
this.showPermsMenu(permsEntity[i]);
|
}
|
}
|
},
|
},
|
mounted() {
|
this.getMenuTree();
|
this.getPerms();
|
},
|
created() {
|
// var val = this.$store.state.currentPerms;
|
// var permsEntity = this.$store.state.permsEntity;
|
// for (var i = 0; i < permsEntity.length; i++) {
|
// if (permsEntity[i].perms == val) {
|
// this.showPermsMenu(permsEntity[i]);
|
// }
|
// }
|
},
|
};
|
</script>
|
<style lang="less" scoped>
|
//@import url(); 引入公共css类
|
.menuSettings_box {
|
height: 98%;
|
width: 98%;
|
padding: 1%;
|
|
.cataLogContent {
|
width: 100%;
|
height: 92%;
|
display: flex;
|
justify-content: space-between;
|
}
|
.left_Tree {
|
width: 15%;
|
height: 91%;
|
|
border-radius: 5px;
|
padding: 1%;
|
overflow-y: auto;
|
}
|
.right_menu {
|
width: 80%;
|
height: 91%;
|
|
border-radius: 5px;
|
padding: 1%;
|
overflow: auto;
|
|
.el-input {
|
width: 400px;
|
}
|
}
|
}
|
</style>
|