Browse Source

用户管理

master
mch 2 years ago
parent
commit
02cef580d4
  1. 2
      src/views/fee-settings/Asbitem.vue
  2. 58
      src/views/fee-settings/Diagnosis.vue
  3. 44
      src/views/user-list/UserList.vue

2
src/views/fee-settings/Asbitem.vue

@ -539,6 +539,7 @@
</div> </div>
</template> </template>
<script> <script>
import { mapState } from "vuex";
import Sortable from "sortablejs"; import Sortable from "sortablejs";
import { getapi, postapi, deletapi } from "@/api/api"; import { getapi, postapi, deletapi } from "@/api/api";
import { examinationgender, instrumentlist } from "@/request/systemapi"; import { examinationgender, instrumentlist } from "@/request/systemapi";
@ -924,7 +925,6 @@ export default {
rightindex(item, index) { rightindex(item, index) {
this.nums = index; this.nums = index;
this.leftobj = item; this.leftobj = item;
console.log(this.leftobj); console.log(this.leftobj);
}, },
// //

58
src/views/fee-settings/Diagnosis.vue

@ -3,6 +3,15 @@
<div style="width: 95%"> <div style="width: 95%">
<el-card class="elcard" style="border-radius: 15px"> <el-card class="elcard" style="border-radius: 15px">
<div class="publiccss">诊断</div> <div class="publiccss">诊断</div>
<div class="" style="display: flex">
<div style="margin-left: 5px; margin-top: 15px; width: 15%">
<el-tree
:data="treedata"
:props="defaultProps"
@node-click="handleNodeClick"
></el-tree>
</div>
<div style="width: 80%">
<el-table <el-table
:data="tableData" :data="tableData"
style="width: 100%; margin-top: 20px" style="width: 100%; margin-top: 20px"
@ -17,14 +26,14 @@
</el-table-column> </el-table-column>
<el-table-column prop="creatorName" label="创建者" width=""> <el-table-column prop="creatorName" label="创建者" width="">
</el-table-column> </el-table-column>
<el-table-column prop="creationTime" label="创建时间" width="200">
<!-- <el-table-column prop="creationTime" label="创建时间" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.creationTime | dateFormat }} {{ scope.row.creationTime | dateFormat }}
</template> </template>
</el-table-column>
</el-table-column> -->
<el-table-column prop="lastModifierName" label="修改者" width=""> <el-table-column prop="lastModifierName" label="修改者" width="">
</el-table-column> </el-table-column>
<el-table-column
<!-- <el-table-column
prop="lastModificationTime" prop="lastModificationTime"
label="修改时间" label="修改时间"
width="200" width="200"
@ -32,22 +41,33 @@
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.lastModificationTime | dateFormat }} {{ scope.row.lastModificationTime | dateFormat }}
</template> </template>
</el-table-column>
</el-table-column> -->
<el-table-column label="操作" width=""> <el-table-column label="操作" width="">
<template> <template>
<el-tag <el-tag
class="move" class="move"
style="cursor: move; margin-left: 15px;background-color: rgb(245, 245, 245);border:none"
style="
cursor: move;
margin-left: 15px;
background-color: rgb(245, 245, 245);
border: none;
"
draggable="true" draggable="true"
> >
<i <i
class="el-icon-d-caret" class="el-icon-d-caret"
style="width: 1rem; height: 1rem;color: rgb(113, 113, 113)"
style="
width: 1rem;
height: 1rem;
color: rgb(113, 113, 113);
"
></i> ></i>
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div>
</div>
<!-- --> <!-- -->
<!-- <span style="margin-top: 10px; padding: 5px; margin-left: 28.5%" <!-- <span style="margin-top: 10px; padding: 5px; margin-left: 28.5%"
>项目类别</span >项目类别</span
@ -280,6 +300,7 @@ import { examinationgender, diagsislist } from "@/request/systemapi";
export default { export default {
data() { data() {
return { return {
treedata: [], //
num: 0, num: 0,
rightdata: [], // rightdata: [], //
leftdata: [], // leftdata: [], //
@ -357,6 +378,10 @@ export default {
ary2: [], ary2: [],
nums: 0, nums: 0,
curRow: {}, curRow: {},
defaultProps: {
children: "treeChildren",
label: "displayName",
},
}; };
}, },
created() { created() {
@ -365,8 +390,26 @@ export default {
}, },
mounted() { mounted() {
this.rowDrop(); this.rowDrop();
this.getlisttree();
}, },
methods: { methods: {
getlisttree() {
getapi("/api/app/item-type/by-code-all").then((res) => {
this.treedata = res.data;
console.log(res);
});
},
//
handleNodeClick(data) {
postapi("/api/app/diagnosis/getlistinsuggestion", {
diagnosisName: data.diagnosisName,
itemTypeId: data.id,
}).then((res) => {
this.tableData = res.data;
console.log(res);
});
console.log(data);
},
Onsubmit() { Onsubmit() {
let sampleGroupId = this.form.id; let sampleGroupId = this.form.id;
console.log(this.form.id); console.log(this.form.id);
@ -444,6 +487,9 @@ export default {
gitprojectcategory() { gitprojectcategory() {
getapi("/api/app/item-type/by-code-all").then((res) => { getapi("/api/app/item-type/by-code-all").then((res) => {
this.projectid = res.data; this.projectid = res.data;
// this.tableData = res.data;
console.log(res);
}); });
}, },
//ary1 ary2 //ary1 ary2

44
src/views/user-list/UserList.vue

@ -38,7 +38,17 @@
</el-col> </el-col>
</el-form> </el-form>
</el-row> </el-row>
<div style="display: flex">
<div style="width: 10%;margin-top:30px">
<el-tree
:data="treedata"
:props="defaultProps"
@node-click="handleNodeClick"
></el-tree>
</div>
<div style="width: 90%">
<el-table <el-table
height="500"
:data="tableData" :data="tableData"
style="width: 100%; margin-top: 20px" style="width: 100%; margin-top: 20px"
border="" border=""
@ -46,7 +56,8 @@
<el-table-column type="index" label="#"></el-table-column> <el-table-column type="index" label="#"></el-table-column>
<el-table-column prop="userName" label="用户名" width=""> <el-table-column prop="userName" label="用户名" width="">
</el-table-column> </el-table-column>
<el-table-column prop="email" label="邮箱" width=""> </el-table-column>
<el-table-column prop="email" label="邮箱" width="">
</el-table-column>
<!-- <el-table-column prop="email" label="所属角色" width=""> </el-table-column> --> <!-- <el-table-column prop="email" label="所属角色" width=""> </el-table-column> -->
<el-table-column prop="phoneNumber" label="手机号" width=""> <el-table-column prop="phoneNumber" label="手机号" width="">
</el-table-column> </el-table-column>
@ -83,6 +94,8 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div>
</div>
<!-- <el-pagination <!-- <el-pagination
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
@ -368,7 +381,9 @@
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false"> </el-button> <el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="addlsit" class="bulletcommit"> </el-button>
<el-button type="primary" @click="addlsit" class="bulletcommit"
> </el-button
>
</span> </span>
</el-dialog> </el-dialog>
<!-- 绑定用户组织弹框 --> <!-- 绑定用户组织弹框 -->
@ -433,7 +448,9 @@
</el-select> </el-select>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="useerdialogVisible = false"> </el-button> <el-button @click="useerdialogVisible = false"> </el-button>
<el-button type="primary" @click="Identifyusers" class="bulletcommit"> </el-button>
<el-button type="primary" @click="Identifyusers" class="bulletcommit"
> </el-button
>
</span> </span>
</el-dialog> </el-dialog>
<!-- 修改密码弹框 --> <!-- 修改密码弹框 -->
@ -457,7 +474,9 @@
<el-button @click="editpassworddialogVisible = false" <el-button @click="editpassworddialogVisible = false"
> </el-button > </el-button
> >
<el-button type="primary" @click="Changepassword" class="bulletcommit"> </el-button>
<el-button type="primary" @click="Changepassword" class="bulletcommit"
> </el-button
>
</span> </span>
</el-dialog> </el-dialog>
</el-card> </el-card>
@ -500,6 +519,12 @@ let validatePassword = /^[a-zA-Z0-9@\$\^\.\*\\?]\{6,15}$/;
export default { export default {
data() { data() {
return { return {
treedata: [],
defaultProps: {
children: "treeChildren",
label: "displayName",
},
orgIds:[],
orgId: [], orgId: [],
confarmPassWord: "", // confarmPassWord: "", //
usersName: "", // usersName: "", //
@ -622,10 +647,21 @@ export default {
this.password = this.changepassword; this.password = this.changepassword;
console.log(this.password); console.log(this.password);
this.getlist(); this.getlist();
this.gettreedata();
this.idkes = localStorage.getItem("dataidkes"); this.idkes = localStorage.getItem("dataidkes");
}, },
methods: { methods: {
gettreedata() {
getapi("/api/app/organization-units/by-code-all").then((res) => {
this.treedata = res.data;
console.log(res);
});
},
handleNodeClick(data) {
this.department=data.displayName
console.log(data);
},
iscrentddepartment() { iscrentddepartment() {
this.department = this.$refs.department.getCheckedKeys(true); this.department = this.$refs.department.getCheckedKeys(true);
console.log(this.department, "www"); console.log(this.department, "www");

Loading…
Cancel
Save