| | |
| | | :rules="regulationRules" |
| | | ref="regulationFormRef" |
| | | label-width="100px"> |
| | | <el-form-item label="制度编号" |
| | | prop="regulationNum"> |
| | | <el-input v-model="regulationForm.regulationNum" |
| | | placeholder="请输入制度编号" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="制度编号"--> |
| | | <!-- prop="regulationNum">--> |
| | | <!-- <el-input v-model="regulationForm.regulationNum"--> |
| | | <!-- placeholder="请输入制度编号" />--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="制度标题" |
| | | prop="title"> |
| | | <el-input v-model="regulationForm.title" |
| | |
| | | placeholder="选择生效时间" |
| | | style="width: 100%" /> |
| | | </el-form-item> |
| | | <el-form-item label="适用范围" |
| | | prop="scope"> |
| | | <el-checkbox-group v-model="regulationForm.scope"> |
| | | <el-checkbox label="all">全体员工</el-checkbox> |
| | | <el-checkbox label="manager">管理层</el-checkbox> |
| | | <el-checkbox label="hr">人事部门</el-checkbox> |
| | | <el-checkbox label="finance">财务部门</el-checkbox> |
| | | <el-checkbox label="tech">技术部门</el-checkbox> |
| | | </el-checkbox-group> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="是否需要确认" |
| | | prop="requireConfirm"> |
| | | <el-switch v-model="regulationForm.requireConfirm" /> |
| | |
| | | <div v-if="currentRegulationDetail"> |
| | | <el-descriptions :column="2" |
| | | border> |
| | | <el-descriptions-item label="制度编号">{{ currentRegulationDetail.id }}</el-descriptions-item> |
| | | <!-- <el-descriptions-item label="制度编号">{{ currentRegulationDetail.id }}</el-descriptions-item>--> |
| | | <el-descriptions-item label="制度标题">{{ currentRegulationDetail.title }}</el-descriptions-item> |
| | | <el-descriptions-item label="分类">{{ getCategoryText(currentRegulationDetail.category) }}</el-descriptions-item> |
| | | <el-descriptions-item label="版本">{{ currentRegulationDetail.version }}</el-descriptions-item> |
| | |
| | | status: "active", |
| | | readCount: 0, |
| | | effectiveTime: "", |
| | | scope: [], |
| | | requireConfirm: false, |
| | | storageBlobDTOs: [] |
| | | }); |
| | |
| | | effectiveTime: [ |
| | | { required: true, message: "请选择生效时间", trigger: "change" }, |
| | | ], |
| | | scope: [{ required: true, message: "请选择适用范围", trigger: "change" }], |
| | | |
| | | }; |
| | | |
| | | const regulationSearchForm = reactive({ |
| | |
| | | |
| | | // 表格列配置 |
| | | const regulationTableColumn = ref([ |
| | | { label: "制度编号", prop: "regulationNum"}, |
| | | // { label: "制度编号", prop: "regulationNum"}, |
| | | { label: "制度标题", prop: "title" }, |
| | | { |
| | | label: "分类", |
| | |
| | | status: "active", |
| | | readCount: 0, |
| | | effectiveTime: "", |
| | | scope: [], |
| | | requireConfirm: false, |
| | | storageBlobDTOs: [] |
| | | }); |