| | |
| | | <el-row> |
| | | <el-col :span="4"> |
| | | <el-form-item size="default"> |
| | | <el-input v-model="ruleForm.searchParams.jobId" placeholder="请选择岗位"> |
| | | <el-input v-model="jobName" placeholder="请选择岗位"> |
| | | <template #append> <el-button :icon="Search" @click="openSearch" /> </template |
| | | ></el-input> |
| | | </el-form-item> |
| | |
| | | <div class="btns"> |
| | | <div> |
| | | <el-button size="default" type="primary" :icon="Plus" @click="openD('新建')">新建</el-button> |
| | | <el-button size="default" :disabled="warning" type="warning" plain :icon="EditPen">修改</el-button> |
| | | <el-button size="default" :disabled="warning" type="warning" plain :icon="EditPen" |
| | | @click="openD('修改', deletAll[0])">修改</el-button> |
| | | <el-button size="default" :disabled="danger" type="danger" :icon="Delete" plain @click="onDeleteAll">删除</el-button> |
| | | </div> |
| | | <div> |
| | |
| | | /> |
| | | </div> |
| | | <DailogAdd ref="openAdd" @navAddorUpdata="onAddorUpdata"></DailogAdd> |
| | | <DailogSearch ref="openUser"></DailogSearch> |
| | | <DailogSearch ref="openUser" @backNum="IdNumber"></DailogSearch> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | // 重置 |
| | | const resetForm = () => { |
| | | ruleForm.searchParams.jobId = ''; |
| | | jobName.value="" |
| | | listApi(); |
| | | }; |
| | | const listApi = () => { |
| | |
| | | const onAddorUpdata = () => { |
| | | listApi(); |
| | | }; |
| | | const jobName=ref() |
| | | const IdNumber=(val:any)=>{ |
| | | ruleForm.jobId=val.id |
| | | jobName.value=val.date |
| | | } |
| | | // 表格 |
| | | const tableData = ref(); |
| | | const currentPage4 = ref(); |
| | |
| | | openUser.value.openDailog(); |
| | | }; |
| | | return { |
| | | IdNumber, |
| | | ruleForm, |
| | | resetForm, |
| | | listApi, |