人员库
This commit is contained in:
parent
98ec9b79e7
commit
5c306720db
|
|
@ -16,7 +16,8 @@
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item prop="personnelPosition">
|
<el-form-item prop="personnelPosition">
|
||||||
<el-select v-model="queryParams.personnelPosition" placeholder="请选择职位" clearable class="search-select">
|
<el-select v-model="queryParams.personnelPosition" placeholder="请选择职位" clearable
|
||||||
|
class="search-select">
|
||||||
<el-option v-for="item in dict.type.personnel_position" :key="item.value" :label="item.label"
|
<el-option v-for="item in dict.type.personnel_position" :key="item.value" :label="item.label"
|
||||||
:value="item.value">
|
:value="item.value">
|
||||||
</el-option>
|
</el-option>
|
||||||
|
|
@ -92,8 +93,8 @@
|
||||||
import EnterpriseDetail from '@/assets/enterpriseLibrary/enterprise/enterprise-detail.png';
|
import EnterpriseDetail from '@/assets/enterpriseLibrary/enterprise/enterprise-detail.png';
|
||||||
import EnterpriseEdit from '@/assets/enterpriseLibrary/enterprise/enterprise-edit.png';
|
import EnterpriseEdit from '@/assets/enterpriseLibrary/enterprise/enterprise-edit.png';
|
||||||
import EnterpriseDelete from '@/assets/enterpriseLibrary/enterprise/enterprise-delete.png';
|
import EnterpriseDelete from '@/assets/enterpriseLibrary/enterprise/enterprise-delete.png';
|
||||||
import { encryptWithSM4,decryptWithSM4 } from '@/utils/sm'
|
import { encryptWithSM4, decryptWithSM4 } from '@/utils/sm'
|
||||||
import { listAPI } from '@/api/enterpriseLibrary/personnel/personnel'
|
import { listAPI, delDataAPI } from '@/api/enterpriseLibrary/personnel/personnel'
|
||||||
export default {
|
export default {
|
||||||
name: 'Personnel',
|
name: 'Personnel',
|
||||||
dicts: ['personnel_position'],
|
dicts: ['personnel_position'],
|
||||||
|
|
@ -131,12 +132,12 @@ export default {
|
||||||
|
|
||||||
// 返回上一页
|
// 返回上一页
|
||||||
handleBack() {
|
handleBack() {
|
||||||
const obj = {
|
const obj = {
|
||||||
path: "/enterpriseKnowledge/index",
|
path: "/enterpriseKnowledge/index",
|
||||||
query: {
|
query: {
|
||||||
enterpriseId: encryptWithSM4(this.enterpriseId || '0'),
|
enterpriseId: encryptWithSM4(this.enterpriseId || '0'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.$tab.closeOpenPage(obj)
|
this.$tab.closeOpenPage(obj)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -198,9 +199,16 @@ export default {
|
||||||
dangerouslyUseHTMLString: true,
|
dangerouslyUseHTMLString: true,
|
||||||
customClass: 'delete-confirm-dialog'
|
customClass: 'delete-confirm-dialog'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
console.log('删除人员', personnel)
|
delDataAPI({ enterpriseId: this.enterpriseId, personnelId: personnel.personnelId }).then(res => {
|
||||||
this.$message.success('删除成功')
|
if (res.code === 200) {
|
||||||
this.getList()
|
this.$message.success('删除成功');
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.msg || '删除失败');
|
||||||
|
}
|
||||||
|
}).catch(error => {
|
||||||
|
console.error('删除失败:', error);
|
||||||
|
});
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
@ -549,16 +557,16 @@ export default {
|
||||||
color: #ff4d4f;
|
color: #ff4d4f;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-message-box__content {
|
.el-message-box__content {
|
||||||
color: #666;
|
color: #666;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-button--primary {
|
.el-button--primary {
|
||||||
background-color: #ff4d4f;
|
background-color: #ff4d4f;
|
||||||
border-color: #ff4d4f;
|
border-color: #ff4d4f;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: #ff7875;
|
background-color: #ff7875;
|
||||||
border-color: #ff7875;
|
border-color: #ff7875;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue