@@ -139,7 +141,7 @@ export default {
},
cateOptions: [
{ id: "post", name: "岗位" },
- { id: "org", name: "单位" },
+ { id: "org", name: "部门/单位" },
{ id: "people", name: "人员" },
],
@@ -172,7 +174,7 @@ export default {
mounted() {
this.getArea();
this.getPost();
- this.getEmployee();
+ // this.getEmployee();
this.getDept();
},
methods: {
@@ -188,12 +190,16 @@ export default {
this.postOptions = res;
});
},
+ getEmployee(data){
+ this.form.employee=data.id;
+ this.form.employee_name=data.name
+ },
//关联人员
- getEmployee() {
- this.$API.hrm.employee.list.req({ page: 0 }).then((res) => {
- this.employeeOptions = res;
- });
- },
+ // getEmployee() {
+ // this.$API.hrm.employee.list.req({ page: 0 }).then((res) => {
+ // this.employeeOptions = res;
+ // });
+ // },
//关联部门
getDept() {
this.$API.system.dept.list.req({ page: 0 }).then((res) => {
@@ -202,22 +208,22 @@ export default {
},
//
- cateChange() {
- if (this.form.obj_cate == 'post') {
+ // cateChange() {
+ // if (this.form.obj_cate == 'post') {
- this.postshow=true;
- this.peopleshow=false;
- this.orgshow=false;
- } else if (this.form.obj_cate == "people") {
- this.postshow=false;
- this.peopleshow=true;
- this.orgshow=false;
- } else {
- this.postshow=false;
- this.peopleshow=false;
- this.orgshow=true;
- }
- },
+ // this.postshow=true;
+ // this.peopleshow=false;
+ // this.orgshow=false;
+ // } else if (this.form.obj_cate == "people") {
+ // this.postshow=false;
+ // this.peopleshow=true;
+ // this.orgshow=false;
+ // } else {
+ // this.postshow=false;
+ // this.peopleshow=false;
+ // this.orgshow=true;
+ // }
+ // },
//显示
open(mode) {
this.mode = mode;
@@ -242,6 +248,7 @@ export default {
.then((res) => {
this.isSaveing = false;
this.visible = false;
+ console.log('x')
this.$emit("success", this.form, this.mode);
this.$message.success("操作成功");
return res;
diff --git a/src/views/am/area.vue b/src/views/am/area.vue
index c33f8563..2acd6d03 100644
--- a/src/views/am/area.vue
+++ b/src/views/am/area.vue
@@ -16,7 +16,7 @@
@@ -36,6 +36,8 @@
stripe
@resetQuery="resetQuery"
@row-click="rowClick"
+ hidePagination
+ hideDo
>
{{
@@ -105,7 +106,7 @@
>
-
+
+
+
+ {{scope.row.post_name}}
+ {{scope.row.dept_name}}
+ {{scope.row.employee_name}}
+
+
-
-
-
-
{
- this.apiaccessObj = res;
- });
this.area = row.id;
+ if(this.apiObj2 == null){
+ this.apiObj2 = this.$API.am.access.list
+ }
+ this.$refs.accesstable.queryData({area: row.id})
},
//围栏,添加
handleRail(row) {
@@ -374,14 +370,16 @@ export default {
this.dialog.saveRail = true;
},
//删除区域
- async handleDel(row) {
- await this.$API.am.area.delete.req(row.id).then((res) => {
- if (res.err_msg) {
- this.$message.error(res.err_msg);
- } else {
+ handleDel(row) {
+ this.$API.am.area.delete.req(row.id).then((res) => {
this.$refs.table.refresh();
this.$message.success("删除成功");
- }
+ });
+ },
+ handleDelaccess(row) {
+ this.$API.am.access.delete.req(row.id).then(() => {
+ this.$refs.accesstable.refresh();
+ this.$message.success("删除成功");
});
},
//出入权限列表
@@ -461,11 +459,7 @@ export default {
},
//本地更新数据
handleSaveSuccessAccess(data, mode) {
- if (mode == "add") {
- this.$refs.accesstable.refresh();
- } else if (mode == "edit") {
- this.$refs.accesstable.refresh();
- }
+ this.$refs.accesstable.refresh()
},
resetQuery() {
diff --git a/src/views/am/area_form.vue b/src/views/am/area_form.vue
index 94dbea96..85157217 100644
--- a/src/views/am/area_form.vue
+++ b/src/views/am/area_form.vue
@@ -62,6 +62,7 @@
:options="group"
:props="groupsProps"
clearable
+ :show-all-levels="false"
style="width: 100%"
>
@@ -69,14 +70,10 @@
-
-
-
+
+
+
+
@@ -194,7 +191,7 @@
},
mounted() {
this.getGroup();
- this.getUser();
+ // this.getUser();
},
methods: {
//加载树数据
@@ -203,10 +200,14 @@
this.group = genTree(res);
},
//项目负责人
- getUser() {
- this.$API.system.user.list.req({page: 0}).then((res) => {
- this.useroptions = res;
- });
+ // getUser() {
+ // this.$API.system.user.list.req({page: 0}).then((res) => {
+ // this.useroptions = res;
+ // });
+ // },
+ getManager(data){
+ this.form.manager=data.id;
+ this.form.manager_name=data.name
},
//显示
open(mode) {
diff --git a/src/views/ecm/algos_form.vue b/src/views/ecm/algos_form.vue
index ed34c788..ac8c2b80 100644
--- a/src/views/ecm/algos_form.vue
+++ b/src/views/ecm/algos_form.vue
@@ -69,7 +69,7 @@ export default {
form: {
algo: "",
vchannels: [],
- always_on: false,
+ always_on: true,
},
//验证规则
rules: {
diff --git a/src/views/ecm/notify_setting.vue b/src/views/ecm/notify_setting.vue
index 16dc7c4e..c7c0b909 100644
--- a/src/views/ecm/notify_setting.vue
+++ b/src/views/ecm/notify_setting.vue
@@ -23,6 +23,7 @@
highlightCurrentRow
@row-click="rowClick"
:hidePagination="true"
+ hideDo
>
@@ -169,14 +171,15 @@
-
+
+
-
-
-
+
+
@@ -232,7 +230,7 @@ export default {
},
mounted() {
this.getPostOptions();
- this.getUserOptions();
+ // this.getUserOptions();
this.getEventCate();
},
methods: {
@@ -275,11 +273,10 @@ export default {
this.post_options = res;
});
},
- //岗位列表
- getUserOptions() {
- this.$API.system.user.list.req({ page: 0 }).then((res) => {
- this.user_options = res;
- });
+ getUser(data) {
+ // 子组件调用父组件的方法并传参
+ this.form.user=data.id;
+ this.form.user_name=data.name
},
//表单提交方法
async submit() {
diff --git a/src/views/hrm/certificate.vue b/src/views/hrm/certificate.vue
index e89d21b5..cc932a6f 100644
--- a/src/views/hrm/certificate.vue
+++ b/src/views/hrm/certificate.vue
@@ -31,7 +31,7 @@
-
+
{{ scope.row.name }}
-
- {{type_[scope.row.type]}}
-
-
-
-
+
+ {{type_[scope.row.type]}}
+
+
+
+
-
+
-
-
+
-
-
-
-
-
-
-
-
-
+
-
-
-
-
+
-
-
-
+
-
-
-
-
取 消
确 定
-
+
diff --git a/src/views/hrm/ep_form.vue b/src/views/hrm/ep_form.vue
index 965f12e7..7de751ef 100644
--- a/src/views/hrm/ep_form.vue
+++ b/src/views/hrm/ep_form.vue
@@ -45,7 +45,8 @@
:options="group"
:props="groupsProps"
clearable
- style="width: 100%;">
+ style="width: 100%;"
+ disabled>
@@ -63,7 +64,9 @@
-
+ {{form.user_.username}}
+
@@ -71,11 +74,11 @@
-
+
-
+
diff --git a/src/views/login/components/passwordForm.vue b/src/views/login/components/passwordForm.vue
index a0682957..521ba50d 100644
--- a/src/views/login/components/passwordForm.vue
+++ b/src/views/login/components/passwordForm.vue
@@ -32,7 +32,7 @@
- {{$t('login.fangke')}}
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 获取验证码 ({{ time }})
+
+
+
+
+ 请输入包含英文、数字的8位以上密码
+
+
+
+
-
- 提交
-
-
-
-
- 返回登录
-
-
-
+
+ 提交
+
+
+
+
+ 返回登录
+
+
+
diff --git a/src/views/ops/menu.vue b/src/views/ops/menu.vue
index 5b634fe4..bc282835 100644
--- a/src/views/ops/menu.vue
+++ b/src/views/ops/menu.vue
@@ -44,7 +44,7 @@
+
+
+
+
+
+
+
@@ -124,12 +137,13 @@
v-model="form.number"
placeholder="请输入证书编号"
clearable
+ :disabled="mode != 'add'"
>
-
+
-
-
-
-
-
-
-
+
@@ -49,13 +50,13 @@
@click="table_show(scope.row, scope.$index)"
>查看
-
+ >
-
+
-
+
-
+
+
+
+
+
+
+
+ {{scope.row.rparty_.name}}
+
+
+
+
+ {{scope.row.file_cate_.name}}
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/rpm/rparty.vue b/src/views/rpm/rparty.vue
index 6bfb8fce..ac6266d0 100644
--- a/src/views/rpm/rparty.vue
+++ b/src/views/rpm/rparty.vue
@@ -49,7 +49,7 @@
width="180"
> -->
@@ -91,9 +91,15 @@
-
+
-
+
+
+
+
+
+
+
@@ -101,7 +107,7 @@
取 消
确 定
-
+
{
this.$message.success("账号分配成功");
this.adminvisible = false;
+ this.$refs.table.refresh()
})
.catch((err) => {
diff --git a/src/views/rpm/rpj_show.vue b/src/views/rpm/rpj_show.vue
index fe56daa7..680f1307 100644
--- a/src/views/rpm/rpj_show.vue
+++ b/src/views/rpm/rpj_show.vue
@@ -92,13 +92,9 @@
diff --git a/src/views/sys/dict.vue b/src/views/sys/dict.vue
index 3babf787..f49ea7e9 100644
--- a/src/views/sys/dict.vue
+++ b/src/views/sys/dict.vue
@@ -39,18 +39,20 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
编辑
-
删除
@@ -63,20 +65,20 @@
-
-
+
+
-
+
取 消
@@ -107,7 +109,7 @@
-
+
@@ -169,13 +171,13 @@
description:'',
type:'',
sort:'',
- is_used:'',
+ is_used:true,
parent:'',
},
dicRules:{
- value: [
- {required: true, message: '请输入字典值'}
- ],
+ // code: [
+ // {required: true, message: '请输入字典标识'}
+ // ],
name: [
{required: true, message: '请输入字典名称'}
],
@@ -385,10 +387,10 @@
async delDic(row,index){
var delId = row.id;
var res = await this.$API.system.dict.delete.req(delId);
- if(res.err.msg){
- this.$message.error(res.err.msg)
+ if(res.err_msg){
+ this.$message.error(res.err_msg)
}else{
- this.$refs.table.tableData.splice(index, 1);
+ this.$refs.table.refresh();
this.$message.success("删除成功")
}
},
diff --git a/src/views/sys/post.vue b/src/views/sys/post.vue
index 534bea18..b9f51530 100644
--- a/src/views/sys/post.vue
+++ b/src/views/sys/post.vue
@@ -206,14 +206,14 @@ export default {
//新增岗位后更新数据
handleSaveSuccess(data, mode) {
//为了减少网络请求,直接变更表格内存数据
- if (mode == "add") {
- this.$refs.table.unshiftRow(data);
- } else if (mode == "edit") {
- this.$refs.table.updateKey(data);
- }
+ // if (mode == "add") {
+ // this.$refs.table.unshiftRow(data);
+ // } else if (mode == "edit") {
+ // this.$refs.table.updateKey(data);
+ // }
//当然也可以暴力的直接刷新表格
- // this.$refs.table.refresh()
+ this.$refs.table.refresh()
},
//新增岗位关系后更新数据
handleSaveRoleSuccess() {
diff --git a/src/views/sys/role.vue b/src/views/sys/role.vue
index 136314f5..fe65c3f5 100644
--- a/src/views/sys/role.vue
+++ b/src/views/sys/role.vue
@@ -53,8 +53,6 @@
show-checkbox
:data="menu.list"
:props="menu.props"
- check-strictly="true"
- :default-checked-keys="menu.checked"
@check="handleChange"
>
@@ -138,7 +136,10 @@
//添加角色
roleAdd(){
this.limitedVisible = true;
- this.addForm = defaultForm;
+ this.$nextTick(()=>{
+ this.$refs.menu.setCheckedKeys([])
+ })
+ this.addForm = Object.assign({}, defaultForm);
},
/*handleChange(value){
debugger;
@@ -173,19 +174,20 @@
//编辑角色
roleEdit(row){
this.type='edit';
- this.menu.checked = null;
this.addForm.id=row.id;
this.addForm.name=row.name;
this.addForm.code=row.code;
- this.menu.checked = row.perms;
this.addForm.description=row.description;
this.limitedVisible = true;
+ this.$nextTick(()=>{
+ this.$refs.menu.setCheckedKeys(row.perms)
+ })
},
//删除角色
async roleDel(row){
var id = row.id;
- var res = await this.$API.system.roleDel.delete(id);
+ var res = await this.$API.system.role.delete.req(id);
if(res.err_msg){
this.$message.error(res.err_msg)
}else{
diff --git a/src/views/sys/user.vue b/src/views/sys/user.vue
index 7d964eb6..51f8b34c 100644
--- a/src/views/sys/user.vue
+++ b/src/views/sys/user.vue
@@ -1,393 +1,417 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 启用
- 禁用
-
-
-
-
-
-
-
- 设置
-
-
-
-
- 编辑
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取 消
- 保 存
-
-
-
-
-
+
+
+
+
+
+ 启用
+ 禁用
+
+
+
+
+
+
+
+
+
+
+ {{userTypeOptions[scope.row.type]}}
+
+
+
+
+
+
+
+ 设置
+
+
+
+ 编辑
+
+
+
+
+
+