forked from integrated_whb/integrated_whb_vue
修复bug
parent
dd91ce3a28
commit
273c90be57
|
@ -20,6 +20,7 @@
|
|||
<el-col :span="4">
|
||||
<el-form-item label="施工相关方" prop="UNITS_ID">
|
||||
<el-select
|
||||
filterable
|
||||
v-model="searchForm.UNITS_ID"
|
||||
clearable
|
||||
placeholder="请选择状态"
|
||||
|
|
|
@ -8,7 +8,11 @@
|
|||
:disabled="type === 'view'"
|
||||
>
|
||||
<el-form-item label="单位名称" prop="UNITS_ID">
|
||||
<el-select v-model="form.UNITS_ID" placeholder="请选择状态">
|
||||
<el-select
|
||||
v-model="form.UNITS_ID"
|
||||
filterable
|
||||
placeholder="请选择单位名称"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in data.unitsnameList"
|
||||
:key="item.UNITS_ID"
|
||||
|
@ -18,7 +22,7 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="作业类别">
|
||||
<el-select v-model="form.JOB_TYPE" placeholder="请选择状态">
|
||||
<el-select v-model="form.JOB_TYPE" placeholder="请选择作业类别">
|
||||
<el-option
|
||||
v-for="item in jobtypeList"
|
||||
:key="item.DICTIONARIES_ID"
|
||||
|
@ -28,7 +32,7 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="操作项目">
|
||||
<el-select v-model="form.OPERATIONITEM" placeholder="请选择状态">
|
||||
<el-select v-model="form.OPERATIONITEM" placeholder="请选择操作项目">
|
||||
<el-option
|
||||
v-for="item in data.operationitemList"
|
||||
:key="item.DICTIONARIES_ID"
|
||||
|
@ -38,10 +42,18 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="手机号码" prop="PHONENUM">
|
||||
<el-input v-model="form.PHONENUM" :disabled="type === 'view'" />
|
||||
<el-input
|
||||
v-model="form.PHONENUM"
|
||||
:disabled="type === 'view'"
|
||||
placeholder="请输入手机号码"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="姓名" prop="NAME">
|
||||
<el-input v-model="form.NAME" :disabled="type === 'view'" />
|
||||
<el-input
|
||||
v-model="form.NAME"
|
||||
:disabled="type === 'view'"
|
||||
placeholder="请输入姓名"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="性别">
|
||||
<el-select
|
||||
|
@ -54,10 +66,15 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="作业证书编号">
|
||||
<el-input v-model="form.CERTIFICATE_NUM" :disabled="type === 'view'" />
|
||||
<el-input
|
||||
v-model="form.CERTIFICATE_NUM"
|
||||
:disabled="type === 'view'"
|
||||
placeholder="请输入作业证书编号"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="复审时间">
|
||||
<el-date-picker
|
||||
placeholder="请选择复审时间"
|
||||
v-model="form.REVIEWTIME"
|
||||
format="YYYY-MM-DD"
|
||||
value-format="YYYY-MM-DD"
|
||||
|
@ -65,13 +82,22 @@
|
|||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="身份证号码">
|
||||
<el-input v-model="form.IDENTITYCARD" :disabled="type === 'view'" />
|
||||
<el-input
|
||||
v-model="form.IDENTITYCARD"
|
||||
:disabled="type === 'view'"
|
||||
placeholder="请输入身份证号码"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="发证机关">
|
||||
<el-input v-model="form.LICENSING" :disabled="type === 'view'" />
|
||||
<el-input
|
||||
v-model="form.LICENSING"
|
||||
:disabled="type === 'view'"
|
||||
placeholder="请输入发证机关"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="有效期">
|
||||
<el-date-picker
|
||||
placeholder="请选择有效期"
|
||||
:disabled="type === 'view'"
|
||||
v-model="form.VALID_TIME"
|
||||
type="daterange"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<el-col :span="4">
|
||||
<el-form-item label="作业类别" prop="JOB_TYPE">
|
||||
<el-select
|
||||
filterable
|
||||
v-model="searchForm.JOB_TYPE"
|
||||
clearable
|
||||
placeholder="请选择状态"
|
||||
|
@ -148,7 +149,7 @@ const data = reactive({
|
|||
|
||||
const resetPwd = async (PERSONNELMANAGEMENT_ID, NAME) => {
|
||||
await ElMessageBox.confirm(
|
||||
"是否将[" + NAME + "]的密码重置为 Aa@123456789 吗?",
|
||||
"是否将[" + NAME + "]的密码重置为 666666 吗?",
|
||||
{
|
||||
type: "warning",
|
||||
}
|
||||
|
@ -163,6 +164,7 @@ const handleDelete = async (PERSONNELMANAGEMENT_ID) => {
|
|||
});
|
||||
await setPersonnelmanagementDelete({ PERSONNELMANAGEMENT_ID });
|
||||
fnGetData();
|
||||
ElMessage.success("删除成功");
|
||||
};
|
||||
|
||||
const batchDel = async () => {
|
||||
|
@ -181,6 +183,8 @@ const batchDel = async () => {
|
|||
.join(",");
|
||||
await setPersonnelmanagementDeleteAll({ DATA_IDS: ids });
|
||||
fnGetData();
|
||||
ElMessage.success("删除成功");
|
||||
tableRef.value.clearSelection();
|
||||
};
|
||||
|
||||
const fnGoEdit = async (id) => {
|
||||
|
@ -196,6 +200,7 @@ const fnGoEdit = async (id) => {
|
|||
|
||||
const fnResetPaginationTransfer = () => {
|
||||
fnGetData(searchForm);
|
||||
tableRef.value.clearSelection()
|
||||
};
|
||||
|
||||
const fnAdd = () => {
|
||||
|
|
|
@ -165,6 +165,7 @@ const batchDel = async (ids) => {
|
|||
});
|
||||
await setUnitsDeleteAll({ DATA_IDS: ids });
|
||||
fnGetData();
|
||||
ElMessage.success("删除成功");
|
||||
};
|
||||
|
||||
const handleDelete = async (UNITS_ID) => {
|
||||
|
@ -173,6 +174,7 @@ const handleDelete = async (UNITS_ID) => {
|
|||
});
|
||||
await setUnitsDelete({ UNITS_ID });
|
||||
fnGetData();
|
||||
ElMessage.success("删除成功");
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue