pengjun 2 years ago
parent
commit
a0b93e39e6
  1. 18
      src/views/Home.vue
  2. 10
      src/views/user-list/OrganizationUnits.vue

18
src/views/Home.vue

@ -10,7 +10,7 @@
<div style="margin-left: 5%"> <div style="margin-left: 5%">
<el-dropdown @command="handleCommand"> <el-dropdown @command="handleCommand">
<span class="el-dropdown-link"> <span class="el-dropdown-link">
<span style="margin-top: 10px">
<span style="margin-top: 10px;color:#000">
<img <img
class="iconimg" class="iconimg"
src="@/assets/images/usericon.png" src="@/assets/images/usericon.png"
@ -18,7 +18,7 @@
style="width: 20px; line-height: 150px; padding-top: 5px" style="width: 20px; line-height: 150px; padding-top: 5px"
/> />
</span> </span>
用户权限管理</span
户权限管理</span
> >
<!-- <span> <img src="@/assets/images/users.png" alt="" style="width:20px;height:20px"></span> --> <!-- <span> <img src="@/assets/images/users.png" alt="" style="width:20px;height:20px"></span> -->
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
@ -191,7 +191,7 @@
</el-dropdown> </el-dropdown>
</div> </div>
<!-- 体检登记 --> <!-- 体检登记 -->
<div class="examinationregistration" style="margin-left: 10px">
<div class="examinationregistration" style="margin-left: 20px">
<el-dropdown @command="handleCommand"> <el-dropdown @command="handleCommand">
<span class="el-dropdown-link"> <span class="el-dropdown-link">
<img <img
@ -709,22 +709,24 @@ export default {
}; };
</script> </script>
<style scoped> <style scoped>
.el-dropdown{
.el-dropdown {
color: rgb(140, 135, 134); color: rgb(140, 135, 134);
} }
.currentuser { .currentuser {
width: 30px; width: 30px;
height: 30px; height: 30px;
position: absolute; position: absolute;
right:11%;
right: 11%;
top: 10px; top: 10px;
background-color: #2BCA84;
color: #000;
background-color: #2bca84;
} }
.registrationimgimges { .registrationimgimges {
width: 20px; width: 20px;
height: 20px; height: 20px;
position: absolute; position: absolute;
left: 0;
left: -15px;
top: 15px; top: 15px;
} }
.commonsettingimg { .commonsettingimg {
@ -755,7 +757,7 @@ export default {
} }
.principalheader { .principalheader {
background-color: #fff; background-color: #fff;
opacity: 1;
opacity: 1;
/* opacity: 0.8; /* opacity: 0.8;
opacity: 0.8; */ opacity: 0.8; */
color: #ccc; color: #ccc;

10
src/views/user-list/OrganizationUnits.vue

@ -229,7 +229,7 @@ export default {
parentId: this.form.parentId, parentId: this.form.parentId,
}).then((res) => { }).then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.$message.success("新增成功");
this.$message.success("新增成功11");
this.dialogVisible = false; this.dialogVisible = false;
this.form.displayName = ""; this.form.displayName = "";
this.getonorganization(); this.getonorganization();
@ -293,7 +293,7 @@ export default {
// this.$message.success(""); // this.$message.success("");
// }); // });
// }); // });
console.log(data);
getapi("/api/app/organization-units/by-code-all").then((res) => { getapi("/api/app/organization-units/by-code-all").then((res) => {
this.treedata = res.data; this.treedata = res.data;
console.log(res); console.log(res);
@ -301,7 +301,11 @@ export default {
this.selecttable = []; this.selecttable = [];
this.dialogVisible = true; this.dialogVisible = true;
this.title = 1; this.title = 1;
this.form.parentId = "";
if (this.title == 1) {
this.form.parentId = data.parentId;
console.log(this.form.parentId);
}
// this.form.parentId = "";
console.log(this.form); console.log(this.form);
this.form.displayName = ""; this.form.displayName = "";
}, },

Loading…
Cancel
Save