diff --git a/src/components/Brand/brand.vue b/src/components/Brand/brand.vue
index 75d436b..b598cdc 100644
--- a/src/components/Brand/brand.vue
+++ b/src/components/Brand/brand.vue
@@ -20,12 +20,13 @@
/*logo遮罩*/
.mask{
position: fixed;
+ width:200px;
padding-left:10px;
padding-right:10px;
bottom:0px;
left:0px;
- background-color:#000000;
- color:#ffffff;
+ background-color:#0F3F8D;
+ color:#0F3F8D;
line-height:2
}
diff --git a/src/components/Brand/brand.vue b/src/components/Brand/brand.vue
index 75d436b..b598cdc 100644
--- a/src/components/Brand/brand.vue
+++ b/src/components/Brand/brand.vue
@@ -20,12 +20,13 @@
/*logo遮罩*/
.mask{
position: fixed;
+ width:200px;
padding-left:10px;
padding-right:10px;
bottom:0px;
left:0px;
- background-color:#000000;
- color:#ffffff;
+ background-color:#0F3F8D;
+ color:#0F3F8D;
line-height:2
}
diff --git a/src/utils/structure.js b/src/utils/structure.js
index 34a6672..6dad0fd 100644
--- a/src/utils/structure.js
+++ b/src/utils/structure.js
@@ -30,7 +30,7 @@
export function toTreeList(plainList, id = '0', isSelect = false) {
const pid = findPid(plainList)
if (pid.length > 1) {
- return plainList
+ return plainList.filter(item => item.tips !== 'hidden')
} else {
const tree = cleanChildren(buildTree(plainList, pid[0], isSelect))
return tree
diff --git a/src/components/Brand/brand.vue b/src/components/Brand/brand.vue
index 75d436b..b598cdc 100644
--- a/src/components/Brand/brand.vue
+++ b/src/components/Brand/brand.vue
@@ -20,12 +20,13 @@
/*logo遮罩*/
.mask{
position: fixed;
+ width:200px;
padding-left:10px;
padding-right:10px;
bottom:0px;
left:0px;
- background-color:#000000;
- color:#ffffff;
+ background-color:#0F3F8D;
+ color:#0F3F8D;
line-height:2
}
diff --git a/src/utils/structure.js b/src/utils/structure.js
index 34a6672..6dad0fd 100644
--- a/src/utils/structure.js
+++ b/src/utils/structure.js
@@ -30,7 +30,7 @@
export function toTreeList(plainList, id = '0', isSelect = false) {
const pid = findPid(plainList)
if (pid.length > 1) {
- return plainList
+ return plainList.filter(item => item.tips !== 'hidden')
} else {
const tree = cleanChildren(buildTree(plainList, pid[0], isSelect))
return tree
diff --git a/src/views/system/dept/mergeDept.vue b/src/views/system/dept/mergeDept.vue
index 0f79681..13826c0 100644
--- a/src/views/system/dept/mergeDept.vue
+++ b/src/views/system/dept/mergeDept.vue
@@ -150,20 +150,14 @@
.then(() => {
mergeDept(this.deptForm).then(response => {
if (response.code === 200) {
- this.$confirm('新增成功,是否继续新增?', '提示', {
- confirmButtonText: '是',
- cancelButtonText: '否',
- type: 'info'
- }).then(() => {
- this.btnLoading = false
- this.resetForm()
- this.$nextTick(() => {
- this.$refs['dataForm'].clearValidate()
- })
- }).catch(() => {
- this.$emit('watchChild')
- this.dialogFormVisible = false
+ this.$message.success('合并成功')
+ this.btnLoading = false
+ this.resetForm()
+ this.$nextTick(() => {
+ this.$refs['dataForm'].clearValidate()
})
+ this.dialogFormVisible = false
+ this.$emit('watchChild')
}
}).catch(_ => { // 异常情况,loading置为false
this.btnLoading = false
diff --git a/src/components/Brand/brand.vue b/src/components/Brand/brand.vue
index 75d436b..b598cdc 100644
--- a/src/components/Brand/brand.vue
+++ b/src/components/Brand/brand.vue
@@ -20,12 +20,13 @@
/*logo遮罩*/
.mask{
position: fixed;
+ width:200px;
padding-left:10px;
padding-right:10px;
bottom:0px;
left:0px;
- background-color:#000000;
- color:#ffffff;
+ background-color:#0F3F8D;
+ color:#0F3F8D;
line-height:2
}
diff --git a/src/utils/structure.js b/src/utils/structure.js
index 34a6672..6dad0fd 100644
--- a/src/utils/structure.js
+++ b/src/utils/structure.js
@@ -30,7 +30,7 @@
export function toTreeList(plainList, id = '0', isSelect = false) {
const pid = findPid(plainList)
if (pid.length > 1) {
- return plainList
+ return plainList.filter(item => item.tips !== 'hidden')
} else {
const tree = cleanChildren(buildTree(plainList, pid[0], isSelect))
return tree
diff --git a/src/views/system/dept/mergeDept.vue b/src/views/system/dept/mergeDept.vue
index 0f79681..13826c0 100644
--- a/src/views/system/dept/mergeDept.vue
+++ b/src/views/system/dept/mergeDept.vue
@@ -150,20 +150,14 @@
.then(() => {
mergeDept(this.deptForm).then(response => {
if (response.code === 200) {
- this.$confirm('新增成功,是否继续新增?', '提示', {
- confirmButtonText: '是',
- cancelButtonText: '否',
- type: 'info'
- }).then(() => {
- this.btnLoading = false
- this.resetForm()
- this.$nextTick(() => {
- this.$refs['dataForm'].clearValidate()
- })
- }).catch(() => {
- this.$emit('watchChild')
- this.dialogFormVisible = false
+ this.$message.success('合并成功')
+ this.btnLoading = false
+ this.resetForm()
+ this.$nextTick(() => {
+ this.$refs['dataForm'].clearValidate()
})
+ this.dialogFormVisible = false
+ this.$emit('watchChild')
}
}).catch(_ => { // 异常情况,loading置为false
this.btnLoading = false
diff --git a/src/views/system/post/editPost.vue b/src/views/system/post/editPost.vue
index 9a07109..b237448 100644
--- a/src/views/system/post/editPost.vue
+++ b/src/views/system/post/editPost.vue
@@ -118,20 +118,14 @@
this.btnLoading = true
addPost(this.postForm).then(response => {
if (response.code === 200) {
- this.$confirm('新增成功,是否继续新增?', '提示', {
- confirmButtonText: '是',
- cancelButtonText: '否',
- type: 'info'
- }).then(() => { // 选是
- this.resetForm()
- this.btnLoading = false
- this.$nextTick(() => {
- this.$refs['dataForm'].clearValidate()
- })
- }).catch(() => { // 选否,关闭窗口,并刷新页面
- this.$emit('watchChild')
- this.dialogFormVisible = false
+ this.$message.success('新增成功')
+ this.resetForm()
+ this.btnLoading = false
+ this.$nextTick(() => {
+ this.$refs['dataForm'].clearValidate()
})
+ this.$emit('watchChild')
+ this.dialogFormVisible = false
}
}).catch(_ => { // 异常情况,loading置为false
this.btnLoading = false
diff --git a/src/components/Brand/brand.vue b/src/components/Brand/brand.vue
index 75d436b..b598cdc 100644
--- a/src/components/Brand/brand.vue
+++ b/src/components/Brand/brand.vue
@@ -20,12 +20,13 @@
/*logo遮罩*/
.mask{
position: fixed;
+ width:200px;
padding-left:10px;
padding-right:10px;
bottom:0px;
left:0px;
- background-color:#000000;
- color:#ffffff;
+ background-color:#0F3F8D;
+ color:#0F3F8D;
line-height:2
}
diff --git a/src/utils/structure.js b/src/utils/structure.js
index 34a6672..6dad0fd 100644
--- a/src/utils/structure.js
+++ b/src/utils/structure.js
@@ -30,7 +30,7 @@
export function toTreeList(plainList, id = '0', isSelect = false) {
const pid = findPid(plainList)
if (pid.length > 1) {
- return plainList
+ return plainList.filter(item => item.tips !== 'hidden')
} else {
const tree = cleanChildren(buildTree(plainList, pid[0], isSelect))
return tree
diff --git a/src/views/system/dept/mergeDept.vue b/src/views/system/dept/mergeDept.vue
index 0f79681..13826c0 100644
--- a/src/views/system/dept/mergeDept.vue
+++ b/src/views/system/dept/mergeDept.vue
@@ -150,20 +150,14 @@
.then(() => {
mergeDept(this.deptForm).then(response => {
if (response.code === 200) {
- this.$confirm('新增成功,是否继续新增?', '提示', {
- confirmButtonText: '是',
- cancelButtonText: '否',
- type: 'info'
- }).then(() => {
- this.btnLoading = false
- this.resetForm()
- this.$nextTick(() => {
- this.$refs['dataForm'].clearValidate()
- })
- }).catch(() => {
- this.$emit('watchChild')
- this.dialogFormVisible = false
+ this.$message.success('合并成功')
+ this.btnLoading = false
+ this.resetForm()
+ this.$nextTick(() => {
+ this.$refs['dataForm'].clearValidate()
})
+ this.dialogFormVisible = false
+ this.$emit('watchChild')
}
}).catch(_ => { // 异常情况,loading置为false
this.btnLoading = false
diff --git a/src/views/system/post/editPost.vue b/src/views/system/post/editPost.vue
index 9a07109..b237448 100644
--- a/src/views/system/post/editPost.vue
+++ b/src/views/system/post/editPost.vue
@@ -118,20 +118,14 @@
this.btnLoading = true
addPost(this.postForm).then(response => {
if (response.code === 200) {
- this.$confirm('新增成功,是否继续新增?', '提示', {
- confirmButtonText: '是',
- cancelButtonText: '否',
- type: 'info'
- }).then(() => { // 选是
- this.resetForm()
- this.btnLoading = false
- this.$nextTick(() => {
- this.$refs['dataForm'].clearValidate()
- })
- }).catch(() => { // 选否,关闭窗口,并刷新页面
- this.$emit('watchChild')
- this.dialogFormVisible = false
+ this.$message.success('新增成功')
+ this.resetForm()
+ this.btnLoading = false
+ this.$nextTick(() => {
+ this.$refs['dataForm'].clearValidate()
})
+ this.$emit('watchChild')
+ this.dialogFormVisible = false
}
}).catch(_ => { // 异常情况,loading置为false
this.btnLoading = false
diff --git a/src/views/system/post/listPost.vue b/src/views/system/post/listPost.vue
index 172e32f..ef1f50c 100644
--- a/src/views/system/post/listPost.vue
+++ b/src/views/system/post/listPost.vue
@@ -6,7 +6,7 @@
-
+
{
this.postTypeList = response.data
diff --git a/src/components/Brand/brand.vue b/src/components/Brand/brand.vue
index 75d436b..b598cdc 100644
--- a/src/components/Brand/brand.vue
+++ b/src/components/Brand/brand.vue
@@ -20,12 +20,13 @@
/*logo遮罩*/
.mask{
position: fixed;
+ width:200px;
padding-left:10px;
padding-right:10px;
bottom:0px;
left:0px;
- background-color:#000000;
- color:#ffffff;
+ background-color:#0F3F8D;
+ color:#0F3F8D;
line-height:2
}
diff --git a/src/utils/structure.js b/src/utils/structure.js
index 34a6672..6dad0fd 100644
--- a/src/utils/structure.js
+++ b/src/utils/structure.js
@@ -30,7 +30,7 @@
export function toTreeList(plainList, id = '0', isSelect = false) {
const pid = findPid(plainList)
if (pid.length > 1) {
- return plainList
+ return plainList.filter(item => item.tips !== 'hidden')
} else {
const tree = cleanChildren(buildTree(plainList, pid[0], isSelect))
return tree
diff --git a/src/views/system/dept/mergeDept.vue b/src/views/system/dept/mergeDept.vue
index 0f79681..13826c0 100644
--- a/src/views/system/dept/mergeDept.vue
+++ b/src/views/system/dept/mergeDept.vue
@@ -150,20 +150,14 @@
.then(() => {
mergeDept(this.deptForm).then(response => {
if (response.code === 200) {
- this.$confirm('新增成功,是否继续新增?', '提示', {
- confirmButtonText: '是',
- cancelButtonText: '否',
- type: 'info'
- }).then(() => {
- this.btnLoading = false
- this.resetForm()
- this.$nextTick(() => {
- this.$refs['dataForm'].clearValidate()
- })
- }).catch(() => {
- this.$emit('watchChild')
- this.dialogFormVisible = false
+ this.$message.success('合并成功')
+ this.btnLoading = false
+ this.resetForm()
+ this.$nextTick(() => {
+ this.$refs['dataForm'].clearValidate()
})
+ this.dialogFormVisible = false
+ this.$emit('watchChild')
}
}).catch(_ => { // 异常情况,loading置为false
this.btnLoading = false
diff --git a/src/views/system/post/editPost.vue b/src/views/system/post/editPost.vue
index 9a07109..b237448 100644
--- a/src/views/system/post/editPost.vue
+++ b/src/views/system/post/editPost.vue
@@ -118,20 +118,14 @@
this.btnLoading = true
addPost(this.postForm).then(response => {
if (response.code === 200) {
- this.$confirm('新增成功,是否继续新增?', '提示', {
- confirmButtonText: '是',
- cancelButtonText: '否',
- type: 'info'
- }).then(() => { // 选是
- this.resetForm()
- this.btnLoading = false
- this.$nextTick(() => {
- this.$refs['dataForm'].clearValidate()
- })
- }).catch(() => { // 选否,关闭窗口,并刷新页面
- this.$emit('watchChild')
- this.dialogFormVisible = false
+ this.$message.success('新增成功')
+ this.resetForm()
+ this.btnLoading = false
+ this.$nextTick(() => {
+ this.$refs['dataForm'].clearValidate()
})
+ this.$emit('watchChild')
+ this.dialogFormVisible = false
}
}).catch(_ => { // 异常情况,loading置为false
this.btnLoading = false
diff --git a/src/views/system/post/listPost.vue b/src/views/system/post/listPost.vue
index 172e32f..ef1f50c 100644
--- a/src/views/system/post/listPost.vue
+++ b/src/views/system/post/listPost.vue
@@ -6,7 +6,7 @@
-
+
{
this.postTypeList = response.data
diff --git a/src/views/system/staff/addPerson.vue b/src/views/system/staff/addPerson.vue
index 18868d1..f6999dd 100644
--- a/src/views/system/staff/addPerson.vue
+++ b/src/views/system/staff/addPerson.vue
@@ -54,7 +54,7 @@
-
+
@@ -126,7 +126,7 @@
-
+
{{ scope.row.enterprise }}
@@ -226,7 +226,7 @@
-
+
{{ scope.row.work }}
@@ -252,7 +252,7 @@
-
+
{{ scope.row.unit }}
@@ -317,7 +317,7 @@
id: '', // 人员id
idCardNo: '', // 身份证号
name: '', // 姓名
- deptid: '', // 单位/部门
+ deptid: '', // 公司/部门
remarks: '', // 备注
duty: '', // 岗位
sex: '', // 性别
@@ -347,7 +347,7 @@
name: '', // 姓名
relation: '', // 关系
birth: '', // 生日
- work: '', // 工作单位及职务
+ work: '', // 工作公司及职务
politicalStatus: '' // 政治面貌
}], // 社会关系
certificateInfo: [{
@@ -366,14 +366,14 @@
personCode: [{ required: true, message: '员工编号必填', trigger: ['blur', 'change'] }],
name: [{ required: true, message: '姓名必填', trigger: ['blur', 'change'] }],
idCardNo: [{ required: true, validator: validateIDCard, trigger: ['blur', 'change'] }],
- deptid: [{ required: true, message: '单位/部门必选', trigger: 'change' }],
+ deptid: [{ required: true, message: '公司/部门必选', trigger: 'change' }],
duty: [{ required: true, message: '岗位必选', trigger: 'change' }],
sex: [{ required: true, message: '性别必选', trigger: 'blur' }],
birthday: [{ required: true, message: '出生日期必填', trigger: ['blur'] }]
},
dialogVisible: false,
labelPosition: 'right',
- deptShowTop: false, // 权属单位下拉是否显示顶级
+ deptShowTop: false, // 权属公司下拉是否显示顶级
deptShow: true,
formLoading: false,
activeNames: ['1', '2', '3', '4', '5'] // 折叠面板展开index
@@ -415,6 +415,9 @@
this.isEditMode = true
this.canSave = true
this.fetchData(this.$route.query.id)
+ } else if (type === 'info') {
+ this.isEditMode = false
+ this.fetchData(this.$route.query.id)
}
}
// if (this.$route.query.personType) {
@@ -442,7 +445,7 @@
personCode: personForm.personCode, // 人员编号
idCardNo: personForm.idCardNo, // 身份证号
name: personForm.name, // 姓名
- deptid: personForm.deptid, // 单位/部门
+ deptid: personForm.deptid, // 公司/部门
remarks: personForm.remarks, // 备注
duty: personForm.duty, // 岗位
sex: personForm.sex, // 性别
@@ -489,7 +492,7 @@
name: '', // 姓名
relation: '', // 关系
birth: '', // 生日
- work: '', // 工作单位及职务
+ work: '', // 工作公司及职务
politicalStatus: '' // 政治面貌
}) // 社会关系
} else if (type === 'certificate') {
@@ -505,7 +508,7 @@
this.personForm = {
idCardNo: '', // 身份证号
name: '', // 姓名
- deptid: '', // 单位/部门
+ deptid: '', // 公司/部门
remarks: '', // 备注
duty: '', // 岗位
sex: '', // 性别