人员审批及前端代码
This commit is contained in:
parent
b71f22c0d6
commit
14a302a050
|
@ -9,6 +9,7 @@ import com.ydool.staff.dto.PersonnelUpdateDto;
|
|||
import com.ydool.staff.entity.SelectRequest;
|
||||
import com.ydool.staff.excel.ExcelPersonnel;
|
||||
import com.ydool.staff.request.ChangeRequest;
|
||||
import com.ydool.staff.request.GiveAuditRequest;
|
||||
import com.ydool.staff.request.PersonnelDeleteRequest;
|
||||
import com.ydool.staff.request.PersonnelRequest;
|
||||
import com.ydool.staff.request.PersonnelUpdateRequest;
|
||||
|
@ -117,12 +118,8 @@ public class PersonnelController extends BaseController {
|
|||
|
||||
@PostMapping(value = "giveAudit")
|
||||
@ApiOperation(value = "送审")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "id",value = "人员id") ,
|
||||
@ApiImplicitParam(name = "type",value = "人员类型:personnel:人员 change:变更")
|
||||
})
|
||||
public AjaxResult giveAudit(String id,String type){
|
||||
return personnelService.giveAudit(id,type);
|
||||
public AjaxResult giveAudit(@RequestBody GiveAuditRequest request){
|
||||
return personnelService.giveAudit(request);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
package com.ydool.staff.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ydool.common.base.BaseEntity;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
@ -42,6 +39,9 @@ public class PersonnelDto {
|
|||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@ApiModelProperty(value = "审批状态 0 未审批 1 待审批,2已通过,3已拒绝")
|
||||
private Integer auditState;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -19,6 +19,9 @@ public class PersonnelUpdateDto {
|
|||
@ApiModelProperty(value = "id")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "变更前id")
|
||||
private String beforeId;
|
||||
|
||||
@ApiModelProperty(value = "统一社会信用代码")
|
||||
private String socialCreditCode;
|
||||
|
||||
|
|
|
@ -26,4 +26,8 @@ public class AuditRequest {
|
|||
@ApiModelProperty(value = "审批意见")
|
||||
private String auditOpinion;
|
||||
|
||||
@ApiModelProperty(value = "人员类型:personnel:人员 change:变更")
|
||||
private String type;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
package com.ydool.staff.request;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author msh
|
||||
* @version 1.0
|
||||
* @date 2023/2/21 10:01
|
||||
*/
|
||||
@Data
|
||||
public class GiveAuditRequest {
|
||||
|
||||
@ApiModelProperty(value = "ids")
|
||||
private String[] ids;
|
||||
|
||||
@ApiModelProperty(value = "人员类型:personnel 变更:change")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(value = "修改数据")
|
||||
private PersonnelUpdateRequest request;
|
||||
}
|
|
@ -5,6 +5,7 @@ import com.ydool.common.data.dto.AjaxResult;
|
|||
import com.ydool.staff.dto.AttachmentDto;
|
||||
import com.ydool.staff.entity.SelectRequest;
|
||||
import com.ydool.staff.request.ChangeRequest;
|
||||
import com.ydool.staff.request.GiveAuditRequest;
|
||||
import com.ydool.staff.request.PersonnelDeleteRequest;
|
||||
import com.ydool.staff.request.PersonnelRequest;
|
||||
import com.ydool.staff.request.PersonnelUpdateRequest;
|
||||
|
@ -66,7 +67,7 @@ public interface IPersonnelService {
|
|||
|
||||
AjaxResult getEntityParam();
|
||||
|
||||
AjaxResult giveAudit(String id, String type);
|
||||
AjaxResult giveAudit(GiveAuditRequest request);
|
||||
|
||||
List<AttachmentDto> nameAndPath(String file, String id);
|
||||
|
||||
|
|
|
@ -1,23 +1,18 @@
|
|||
package com.ydool.staff.service.impl;
|
||||
|
||||
import cn.dev33.satoken.stp.StpUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.extra.spring.SpringUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.ydool.common.base.BaseService;
|
||||
import com.ydool.common.cache.ConfigCache;
|
||||
import com.ydool.common.constant.ArgsConst;
|
||||
import com.ydool.common.data.dto.AjaxResult;
|
||||
import com.ydool.staff.dto.PersonnelStatementDto;
|
||||
import com.ydool.staff.entity.Audit;
|
||||
import com.ydool.staff.entity.AuditLog;
|
||||
import com.ydool.staff.entity.CompanyName;
|
||||
import com.ydool.staff.entity.Personnel;
|
||||
import com.ydool.staff.entity.PersonnelMiddle;
|
||||
import com.ydool.staff.mapper.AuditLogMapper;
|
||||
import com.ydool.staff.mapper.AuditMapper;
|
||||
import com.ydool.staff.mapper.CompanyNameMapper;
|
||||
import com.ydool.staff.mapper.PersonnelMapper;
|
||||
import com.ydool.staff.mapper.PersonnelMiddleMapper;
|
||||
import com.ydool.staff.request.AuditRequest;
|
||||
|
@ -74,16 +69,19 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
|
|||
String loginId = (String) StpUtil.getLoginId();
|
||||
Audit one = getOne(new LambdaQueryWrapper<Audit>()
|
||||
.eq(Audit::getPersonnelId, auditRequest.getPersonnelId())
|
||||
.eq(Audit::getAuditOrder, ArgsConst.WAITING).eq(Audit::getApprover, loginId));
|
||||
if (ObjectUtil.isEmpty(one)){
|
||||
.eq(Audit::getPerType,auditRequest.getType())
|
||||
.eq(Audit::getApprover, loginId));
|
||||
if (ArgsConst.WAITING.equals(one.getAuditState())){
|
||||
return AjaxResult.fail().msg("该用户不能审批!");
|
||||
}
|
||||
|
||||
if (ArgsConst.PASS.equals(one.getAuditState())){
|
||||
return AjaxResult.fail().msg("用户已审批,请勿重复操作!");
|
||||
}
|
||||
List<Audit> list = list(new LambdaQueryWrapper<Audit>().eq(Audit::getPersonnelId, auditRequest.getPersonnelId()));
|
||||
//同意
|
||||
if ("2".equals(auditRequest.getStatus())){
|
||||
for (Audit audit : list) {
|
||||
User byId = userMapper.selectById(audit.getAuditOrder());
|
||||
User byId = userMapper.selectById(audit.getApprover());
|
||||
Config director = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR));
|
||||
if (byId.getLoginName().equals(director.getParamValue())){
|
||||
one.setAuditOrder(ArgsConst.PASS);
|
||||
|
@ -107,7 +105,6 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
|
|||
saveAuditLog(auditRequest.getPersonnelId(),loginId,"一般终审通过");
|
||||
Personnel personnel = personnelMapper.selectById(auditRequest.getPersonnelId());
|
||||
PersonnelMiddle middle = personnelMiddleMapper.selectOne(new LambdaQueryWrapper<PersonnelMiddle>().eq(PersonnelMiddle::getBeforeId, personnel.getId()).eq(PersonnelMiddle::getState, "1"));
|
||||
System.out.println("middle = " + middle);
|
||||
Personnel personnelOne = personnelMapper.selectById(middle.getAfterId());
|
||||
String id = personnelOne.getId();
|
||||
personnelOne.setState("2");
|
||||
|
@ -119,27 +116,28 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
|
|||
personnelMapper.updateById(personnel);
|
||||
personnelMiddleMapper.updateById(middle);
|
||||
}
|
||||
|
||||
return update ? AjaxResult.ok().msg("审批成功!"):AjaxResult.fail().msg("审批成功!");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
//拒绝
|
||||
for (Audit audit : list) {
|
||||
List<Audit> auditList = list(new LambdaQueryWrapper<Audit>().eq(Audit::getPersonnelId, auditRequest.getPersonnelId()));
|
||||
User byId = userMapper.selectById(audit.getAuditOrder());
|
||||
Config director = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR));
|
||||
PersonnelMiddle middle = personnelMiddleMapper.selectOne(new LambdaQueryWrapper<PersonnelMiddle>().eq(PersonnelMiddle::getBeforeId, auditRequest.getPersonnelId()).eq(PersonnelMiddle::getState, "1"));
|
||||
Personnel afterPersonnel = personnelMapper.selectById(middle.getAfterId());
|
||||
Personnel personnel = personnelMapper.selectById(auditRequest.getPersonnelId());
|
||||
if (byId.getLoginName().equals(director.getParamValue())){
|
||||
one.setAuditOrder(ArgsConst.REJECT);
|
||||
one.setOpinion(audit.getOpinion());
|
||||
boolean update = updateById(one);
|
||||
if (update){
|
||||
|
||||
saveAuditLog(auditRequest.getPersonnelId(),loginId,"一般初审拒绝");
|
||||
Personnel personnel = personnelMapper.selectById(auditRequest.getPersonnelId());
|
||||
personnel.setAuditState(3);
|
||||
personnel.setAlterationSign("2");
|
||||
personnelMapper.updateById(personnel);
|
||||
updateByPer(afterPersonnel.getId(),personnel);
|
||||
for (Audit auditOne : auditList) {
|
||||
delete(auditOne.getId());
|
||||
}
|
||||
}
|
||||
return update ? AjaxResult.ok().msg("审批成功!"):AjaxResult.fail().msg("审批成功!");
|
||||
}
|
||||
|
@ -150,15 +148,13 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
|
|||
boolean update = updateById(one);
|
||||
if (update){
|
||||
saveAuditLog(auditRequest.getPersonnelId(),loginId,"一般终审拒绝");
|
||||
Personnel personnel = personnelMapper.selectById(auditRequest.getPersonnelId());
|
||||
personnel.setAuditState(3);
|
||||
personnel.setAlterationSign("2");
|
||||
personnelMapper.updateById(personnel);
|
||||
updateByPer(afterPersonnel.getId(),personnel);
|
||||
for (Audit auditOne : auditList) {
|
||||
delete(auditOne.getId());
|
||||
}
|
||||
}
|
||||
|
||||
return update ? AjaxResult.ok().msg("审批成功!"):AjaxResult.fail().msg("审批成功!");
|
||||
}
|
||||
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
@ -169,7 +165,12 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
|
|||
auditLog.setAuditState(auditSate);
|
||||
return auditLogMapper.insert(auditLog);
|
||||
}
|
||||
|
||||
public void updateByPer(String afterId,Personnel personnel){
|
||||
delete(afterId);
|
||||
personnel.setAuditState(0);
|
||||
personnel.setAlterationSign("0");
|
||||
personnelMapper.updateById(personnel);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@ import com.ydool.staff.mapper.PersonnelMapper;
|
|||
import com.ydool.staff.mapper.PersonnelMiddleMapper;
|
||||
import com.ydool.staff.request.AttachmentRequest;
|
||||
import com.ydool.staff.request.ChangeRequest;
|
||||
import com.ydool.staff.request.GiveAuditRequest;
|
||||
import com.ydool.staff.request.PersonnelDeleteRequest;
|
||||
import com.ydool.staff.request.PersonnelRequest;
|
||||
import com.ydool.staff.request.PersonnelUpdateRequest;
|
||||
|
@ -151,22 +152,19 @@ public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel
|
|||
}
|
||||
if (ObjectUtil.isEmpty(personnel))return AjaxResult.fail().msg("该人员不存在!");
|
||||
PersonnelUpdateDto personnelUpdateDto = BeanUtil.copyProperties(personnel, PersonnelUpdateDto.class);
|
||||
personnelUpdateDto.setPresentDept(deptMapper.selectById(personnelUpdateDto.getPresentDept()).getName());
|
||||
personnelUpdateDto.setCompanyName(companyNameMapper.selectById(personnelUpdateDto.getCompanyName()).getCompanyName());
|
||||
List<Audit> list = auditMapper.selectList(new LambdaQueryWrapper<Audit>()
|
||||
.eq(Audit::getPersonnelId, personnel.getId())
|
||||
.eq(Audit::getApprover,StpUtil.getLoginIdAsString()));
|
||||
for (Audit audit : list) {
|
||||
if (ArgsConst.WAITING.equals(audit.getAuditOrder())){
|
||||
personnelUpdateDto.setAuditBtn(true);
|
||||
}
|
||||
Audit audit = auditMapper.selectOne(new LambdaQueryWrapper<Audit>().eq(Audit::getPersonnelId,id)
|
||||
.eq(Audit::getPerType,ArgsConst.PERSONNEL)
|
||||
.eq(Audit::getApprover, StpUtil.getLoginIdAsString())
|
||||
.eq(Audit::getAuditOrder, ArgsConst.WAITING));
|
||||
if (ObjectUtil.isNotEmpty(audit)){
|
||||
personnelUpdateDto.setAuditBtn(true);
|
||||
}
|
||||
personnelUpdateDto.setBeforeId(id);
|
||||
personnelUpdateDto.setCardFiles(nameAndPath(personnel.getCardFile(), personnel.getId()));
|
||||
personnelUpdateDto.setEngageFiles(nameAndPath(personnel.getEngageFile(), personnel.getId()));
|
||||
personnelUpdateDto.setEducationFiles(nameAndPath(personnel.getEducationFile(), personnel.getId()));
|
||||
personnelUpdateDto.setJobTitleFiles(nameAndPath(personnel.getJobTitleFile(), personnel.getId()));
|
||||
personnelUpdateDto.setAuditFiles(nameAndPath(personnel.getAuditFile(), personnel.getId()));
|
||||
|
||||
return AjaxResult.ok().data(personnelUpdateDto);
|
||||
|
||||
|
||||
|
@ -507,40 +505,57 @@ public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel
|
|||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public AjaxResult giveAudit(String id, String type) {
|
||||
public AjaxResult giveAudit(GiveAuditRequest request) {
|
||||
String loginId = (String) StpUtil.getLoginId();
|
||||
if ("1".equals(get(id).getAuditState())) {
|
||||
return AjaxResult.fail().msg("该数据已送审,请勿重复操作!");
|
||||
String[] ids = request.getIds();
|
||||
if (ObjectUtil.isNotEmpty(request)){
|
||||
updatePersonnel(request.getRequest());
|
||||
}
|
||||
for(int i=0;i<2;i++ ){
|
||||
Audit audit = new Audit();
|
||||
audit.setPersonnelId(id);
|
||||
audit.setPerType(type);
|
||||
if(i==0){
|
||||
audit.setAuditState(ArgsConst.SUBMIT);
|
||||
audit.setAuditOrder(ArgsConst.GIVE_AUDIT);
|
||||
audit.setApprover(loginId);
|
||||
audit.setApproverTime(new Date());
|
||||
}else if(i==1){
|
||||
audit.setAuditOrder(ArgsConst.FIRST);
|
||||
Config config = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR));
|
||||
audit.setAuditOrder(ArgsConst.WAITING);
|
||||
User user = userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getLoginName, config.getParamValue()));
|
||||
audit.setApprover(user.getId());
|
||||
}else {
|
||||
audit.setAuditOrder(ArgsConst.LAST);
|
||||
Config config = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_LEADERSHIP));
|
||||
User user = userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getLoginName, config.getParamValue()));
|
||||
audit.setApprover(user.getId());
|
||||
for (String id : ids) {
|
||||
Personnel personnel1 = get(id);
|
||||
System.out.println("personnel1 = " + personnel1);
|
||||
if (1==(personnel1.getAuditState())) {
|
||||
return AjaxResult.fail().msg("该数据已送审,请勿重复操作!");
|
||||
}
|
||||
auditMapper.insert(audit);
|
||||
if ("0".equals(personnel1.getAlterationSign())){
|
||||
return AjaxResult.fail().msg("变更数据未保存,不能送审!");
|
||||
}
|
||||
|
||||
for(int i=0;i<=2;i++ ){
|
||||
Audit audit = new Audit();
|
||||
audit.setPersonnelId(id);
|
||||
audit.setPerType(request.getType());
|
||||
if(i==0){
|
||||
audit.setAuditState(ArgsConst.SUBMIT);
|
||||
audit.setAuditOrder(ArgsConst.GIVE_AUDIT);
|
||||
audit.setApprover(loginId);
|
||||
audit.setApproverTime(new Date());
|
||||
}else if(i==1){
|
||||
audit.setAuditOrder(ArgsConst.FIRST);
|
||||
Config config = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_PERSONNEL_DIRECTOR));
|
||||
audit.setAuditOrder(ArgsConst.WAITING);
|
||||
User user = userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getLoginName, config.getParamValue()));
|
||||
audit.setApprover(user.getId());
|
||||
}else {
|
||||
audit.setAuditOrder(ArgsConst.LAST);
|
||||
Config config = configMapper.selectOne(new LambdaQueryWrapper<Config>().eq(Config::getParamKey, ConfigCache.SYS_USER_LEADERSHIP));
|
||||
User user = userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getLoginName, config.getParamValue()));
|
||||
audit.setApprover(user.getId());
|
||||
}
|
||||
auditMapper.insert(audit);
|
||||
}
|
||||
Personnel personnel = get(id);
|
||||
personnel.setAuditState(1);
|
||||
updateById(personnel);
|
||||
auditService.saveAuditLog(id, loginId, "一般送审提交");
|
||||
|
||||
}
|
||||
Personnel personnel = get(id);
|
||||
personnel.setAuditState(1);
|
||||
personnel.setAlterationSign("1");
|
||||
updateById(personnel);
|
||||
Integer a = auditService.saveAuditLog(id, loginId, "一般送审提交");
|
||||
return a>0 ? AjaxResult.ok().msg("送审成功!") : AjaxResult.fail().msg("送审失败!");
|
||||
if (ids.length==1){
|
||||
return AjaxResult.ok().msg("送审成功!");
|
||||
}
|
||||
return AjaxResult.ok().msg("批量送审成功!");
|
||||
|
||||
|
||||
}
|
||||
|
||||
public PersonnelFailMsgVO checkPersonnelExportVO(PersonnelExportVO personnelExportVO) {
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{f as c,h as C,ag as a,o as h,R as k,S as e,a as y,d as l,W as d}from"./@vue-799d75fe.js";const A={class:"dialog-footer"},N={__name:"Approve",props:{},emits:["update:modelValue","handleApprove"],setup(V,{emit:p}){const s=V,u=c(!1),o=c({status:"2"}),m=()=>{u.value=!1,o.value={status:"2"},p("update:modelValue",!1)},v=()=>{m(),p("handleApprove",o.value)};return C(()=>s.modelValue,r=>{console.log(r,"newValue"),s.modelValue&&(u.value=s.modelValue)}),(r,t)=>{const b=a("el-input"),_=a("el-form-item"),i=a("el-radio"),g=a("el-radio-group"),w=a("el-form"),f=a("el-button"),x=a("el-dialog");return h(),k(x,{modelValue:u.value,"onUpdate:modelValue":t[2]||(t[2]=n=>u.value=n),title:"审批",width:"26%","before-close":m},{footer:e(()=>[y("span",A,[l(f,{onClick:m},{default:e(()=>[d("取消")]),_:1}),l(f,{type:"primary",onClick:v},{default:e(()=>[d(" 确认 ")]),_:1})])]),default:e(()=>[l(w,{model:o.value},{default:e(()=>[l(_,{label:"审批意见"},{default:e(()=>[l(b,{modelValue:o.value.auditOpinion,"onUpdate:modelValue":t[0]||(t[0]=n=>o.value.auditOpinion=n),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),l(_,{label:"审批状态"},{default:e(()=>[l(g,{modelValue:o.value.status,"onUpdate:modelValue":t[1]||(t[1]=n=>o.value.status=n)},{default:e(()=>[l(i,{label:"2"},{default:e(()=>[d("同意")]),_:1}),l(i,{label:"1"},{default:e(()=>[d("拒绝")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}};export{N as default};
|
|
@ -0,0 +1 @@
|
|||
System.register(["./@vue-legacy-6c3c82af.js"],(function(e,l){"use strict";var a,u,t,o,d,n,r,s,m;return{setters:[e=>{a=e.f,u=e.h,t=e.ag,o=e.o,d=e.R,n=e.S,r=e.a,s=e.d,m=e.W}],execute:function(){const l={class:"dialog-footer"};e("default",{__name:"Approve",props:{},emits:["update:modelValue","handleApprove"],setup(e,{emit:i}){const p=e,f=a(!1),v=a({status:"2"}),V=()=>{f.value=!1,v.value={status:"2"},i("update:modelValue",!1)},c=()=>{V(),i("handleApprove",v.value)};return u((()=>p.modelValue),(e=>{console.log(e,"newValue"),p.modelValue&&(f.value=p.modelValue)})),(e,a)=>{const u=t("el-input"),i=t("el-form-item"),p=t("el-radio"),_=t("el-radio-group"),g=t("el-form"),b=t("el-button"),y=t("el-dialog");return o(),d(y,{modelValue:f.value,"onUpdate:modelValue":a[2]||(a[2]=e=>f.value=e),title:"审批",width:"26%","before-close":V},{footer:n((()=>[r("span",l,[s(b,{onClick:V},{default:n((()=>[m("取消")])),_:1}),s(b,{type:"primary",onClick:c},{default:n((()=>[m(" 确认 ")])),_:1})])])),default:n((()=>[s(g,{model:v.value},{default:n((()=>[s(i,{label:"审批意见"},{default:n((()=>[s(u,{modelValue:v.value.auditOpinion,"onUpdate:modelValue":a[0]||(a[0]=e=>v.value.auditOpinion=e),rows:4,type:"textarea"},null,8,["modelValue"])])),_:1}),s(i,{label:"审批状态"},{default:n((()=>[s(_,{modelValue:v.value.status,"onUpdate:modelValue":a[1]||(a[1]=e=>v.value.status=e)},{default:n((()=>[s(p,{label:"2"},{default:n((()=>[m("同意")])),_:1}),s(p,{label:"1"},{default:n((()=>[m("拒绝")])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["model"])])),_:1},8,["modelValue"])}}})}}}));
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{h as v}from"./index-949b5609.js";import{c as g}from"./lodash.clonedeep-89ac42ac.js";import{_ as U}from"./_plugin-vue_export-helper-c27b6911.js";import{f as r,h as I,k as L,ag as d,o as m,c as b,d as s,S as l,a as j,W as _,F as A,a6 as F,R as M,X as q}from"./@vue-799d75fe.js";import"./vue-router-e054bd6d.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./element-plus-69b549ae.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-4d69b6da.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const z={class:"export"},G={class:"dialog-footer"},O={__name:"Export",props:{dialogVisible:[Boolean]},emits:["update:dialogVisible"],setup(k,{emit:x}){const C=k,p=r(!1),n=r([]),V=r({academy:"毕业院校",alterationSign:"变更标志",annualSalary:"年薪",birthday:"出生日期",companyName:"企业名称",contractModality:"合同形式",education:"学历",finalTrialRemark:"终审意见",firstTrialRemark:"初审意见",freshGraduate:"是否应届毕业生",gender:"性别",hireDate:"入职时间",hireType:"录用方式",jobTitle:"专业技术职称",nation:"民族",numberId:"身份证号",personnelCharacter:"人员性质",personnelType:"人员类型",politicsStatus:"政治面貌",position:"岗位职务",presentDept:"所在部门",qualification:"执业资格证书",receipts:"单据状态",recruitNumber:"人员招聘单号",remark:"备注",resignationTime:"离职时间",retirementTime:"退休时间",socialCreditCode:"统一社会信用代码",specialty:"专业",txfpEndTime:"退休返聘结束时间",txfpStartTime:"退休返聘开始时间",userName:"姓名",workState:"工作状态"}),c=r(),u=r(!1),o=r([]),f=()=>{p.value=!1,x("update:dialogVisible",!1),o.value=g(n.value),c.value=!1,u.value=!1},y=e=>{f(),e()},T=()=>{console.log(o.value),v.export("/api/person/export",{ids:o.value}).then(e=>{const t=window.URL.createObjectURL(e.data),i=document.createElement("a");i.download=decodeURIComponent(e.headers["content-disposition"].split(";")[1].split("=")[1]),i.href=t,i.click()})},w=e=>{o.value=e?n.value:[],u.value=!1},S=e=>{const t=e.length;c.value=t===n.value.length,u.value=t>0&&t<n.value.length};I(()=>C.dialogVisible,e=>{p.value=e,c.value=!0});const E=()=>{v.get("/api/person/getEntityParam").then(e=>{e.code===200&&(n.value=e.data,o.value=g(e.data))})};return L(()=>{E()}),(e,t)=>{const i=d("el-checkbox"),B=d("el-checkbox-group"),D=d("el-form"),h=d("el-button"),N=d("el-dialog");return m(),b("div",z,[s(N,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=a=>p.value=a),title:"导出选项",width:"36%","before-close":y},{footer:l(()=>[j("span",G,[s(h,{onClick:T},{default:l(()=>[_("导出")]),_:1}),s(h,{onClick:f,type:"primary"},{default:l(()=>[_("关闭")]),_:1})])]),default:l(()=>[s(D,null,{default:l(()=>[s(i,{modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=a=>c.value=a),label:"全选",class:"is-checked-all",size:"large",indeterminate:u.value,onChange:w},null,8,["modelValue","indeterminate"]),s(B,{modelValue:o.value,"onUpdate:modelValue":t[1]||(t[1]=a=>o.value=a),onChange:S},{default:l(()=>[(m(!0),b(A,null,F(n.value,(a,R)=>(m(),M(i,{class:"el-checkbox-width",label:a,key:R},{default:l(()=>[_(q(V.value[a]),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])])}}},pe=U(O,[["__scopeId","data-v-e0be88eb"]]);export{pe as default};
|
|
@ -0,0 +1 @@
|
|||
import{h as v}from"./index-f4a3d251.js";import{c as g}from"./lodash.clonedeep-89ac42ac.js";import{_ as U}from"./_plugin-vue_export-helper-c27b6911.js";import{f as r,h as I,k as L,ag as d,o as m,c as b,d as s,S as l,a as j,W as _,F as A,a6 as F,R as M,X as q}from"./@vue-799d75fe.js";import"./vue-router-e054bd6d.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const z={class:"export"},G={class:"dialog-footer"},O={__name:"Export",props:{dialogVisible:[Boolean]},emits:["update:dialogVisible"],setup(k,{emit:x}){const C=k,p=r(!1),n=r([]),V=r({academy:"毕业院校",alterationSign:"变更标志",annualSalary:"年薪",birthday:"出生日期",companyName:"企业名称",contractModality:"合同形式",education:"学历",finalTrialRemark:"终审意见",firstTrialRemark:"初审意见",freshGraduate:"是否应届毕业生",gender:"性别",hireDate:"入职时间",hireType:"录用方式",jobTitle:"专业技术职称",nation:"民族",numberId:"身份证号",personnelCharacter:"人员性质",personnelType:"人员类型",politicsStatus:"政治面貌",position:"岗位职务",presentDept:"所在部门",qualification:"执业资格证书",receipts:"单据状态",recruitNumber:"人员招聘单号",remark:"备注",resignationTime:"离职时间",retirementTime:"退休时间",socialCreditCode:"统一社会信用代码",specialty:"专业",txfpEndTime:"退休返聘结束时间",txfpStartTime:"退休返聘开始时间",userName:"姓名",workState:"工作状态"}),c=r(),u=r(!1),o=r([]),f=()=>{p.value=!1,x("update:dialogVisible",!1),o.value=g(n.value),c.value=!1,u.value=!1},y=e=>{f(),e()},T=()=>{console.log(o.value),v.export("/api/person/export",{ids:o.value}).then(e=>{const t=window.URL.createObjectURL(e.data),i=document.createElement("a");i.download=decodeURIComponent(e.headers["content-disposition"].split(";")[1].split("=")[1]),i.href=t,i.click()})},w=e=>{o.value=e?n.value:[],u.value=!1},S=e=>{const t=e.length;c.value=t===n.value.length,u.value=t>0&&t<n.value.length};I(()=>C.dialogVisible,e=>{p.value=e,c.value=!0});const E=()=>{v.get("/api/person/getEntityParam").then(e=>{e.code===200&&(n.value=e.data,o.value=g(e.data))})};return L(()=>{E()}),(e,t)=>{const i=d("el-checkbox"),B=d("el-checkbox-group"),D=d("el-form"),h=d("el-button"),N=d("el-dialog");return m(),b("div",z,[s(N,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=a=>p.value=a),title:"导出选项",width:"36%","before-close":y},{footer:l(()=>[j("span",G,[s(h,{onClick:T},{default:l(()=>[_("导出")]),_:1}),s(h,{onClick:f,type:"primary"},{default:l(()=>[_("关闭")]),_:1})])]),default:l(()=>[s(D,null,{default:l(()=>[s(i,{modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=a=>c.value=a),label:"全选",class:"is-checked-all",size:"large",indeterminate:u.value,onChange:w},null,8,["modelValue","indeterminate"]),s(B,{modelValue:o.value,"onUpdate:modelValue":t[1]||(t[1]=a=>o.value=a),onChange:S},{default:l(()=>[(m(!0),b(A,null,F(n.value,(a,R)=>(m(),M(i,{class:"el-checkbox-width",label:a,key:R},{default:l(()=>[_(q(V.value[a]),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])])}}},ue=U(O,[["__scopeId","data-v-e0be88eb"]]);export{ue as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import"./index-949b5609.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as V}from"./_plugin-vue_export-helper-c27b6911.js";import{f as b,a0 as u,ag as a,o as s,c as _,d as e,S as o,F as g,a6 as v}from"./@vue-799d75fe.js";import"./vue-router-e054bd6d.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./element-plus-69b549ae.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-4d69b6da.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const x={class:"tab-content"},F={__name:"Log",setup(w){const d=b(),t=u({name:""}),i=u({name:[{required:!0,message:"Please input Activity name",trigger:"blur"}]});return(y,l)=>{const n=a("el-input"),r=a("el-form-item"),p=a("el-col"),f=a("el-row"),c=a("el-form");return s(),_("div",x,[e(c,{ref_key:"ruleFormRef",ref:d,model:t,rules:i,"label-width":"208px"},{default:o(()=>[(s(),_(g,null,v(5,L=>e(f,null,{default:o(()=>[e(p,{span:8},{default:o(()=>[e(r,{label:"处理人:",prop:"name"},{default:o(()=>[e(n,{modelValue:t.name,"onUpdate:modelValue":l[0]||(l[0]=m=>t.name=m)},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:8},{default:o(()=>[e(r,{label:"处理时间:",prop:"name"},{default:o(()=>[e(n,{modelValue:t.name,"onUpdate:modelValue":l[1]||(l[1]=m=>t.name=m)},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:8},{default:o(()=>[e(r,{label:"处理状态:",prop:"name"},{default:o(()=>[e(n,{modelValue:t.name,"onUpdate:modelValue":l[2]||(l[2]=m=>t.name=m)},null,8,["modelValue"])]),_:1})]),_:1}),e(p,{span:24},{default:o(()=>[e(r,{label:"处理意见"},{default:o(()=>[e(n,{modelValue:t.name,"onUpdate:modelValue":l[3]||(l[3]=m=>t.name=m)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})),64))]),_:1},8,["model","rules"])])}}},T=V(F,[["__scopeId","data-v-3b78c5bf"]]);export{T as default};
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{h as g}from"./index-f4a3d251.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as y}from"./_plugin-vue_export-helper-c27b6911.js";import{a as x}from"./vue-router-e054bd6d.js";import{f as S,k as b,ag as _,o as i,c as m,R as u,V as k,F as L,a6 as w,S as o,d as c,a as t,X as r,ax as B,ay as I}from"./@vue-799d75fe.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const l=e=>(B("data-v-01c0cb66"),e=e(),I(),e),V={class:"tab-content"},C={class:"item-container"},N=l(()=>t("div",null,"处理人:",-1)),q={class:"item-container"},D=l(()=>t("div",null,"处理时间:",-1)),F={class:"item-container"},R=l(()=>t("div",null,"处理状态:",-1)),A={class:"item-container"},E=l(()=>t("div",null,"处理意见:",-1)),M={__name:"Log",setup(e){const d=x(),p=S([]),v=()=>{console.log(d.query.id),g.get(`/api/alteration/audtiLog?id=${d.query.id}`).then(a=>{console.log(a),a.code===200&&(p.value=a.data)})};return b(()=>{v()}),(a,X)=>{const h=_("el-empty"),s=_("el-col"),f=_("el-row");return i(),m("div",V,[p.value.length===0?(i(),u(h,{key:0,description:"暂无"})):k("",!0),(i(!0),m(L,null,w(p.value,n=>(i(),u(f,null,{default:o(()=>[c(s,{span:8},{default:o(()=>[t("div",C,[N,t("div",null,r(n.approver),1)])]),_:2},1024),c(s,{span:8},{default:o(()=>[t("div",q,[D,t("div",null,r(n.createdAt),1)])]),_:2},1024),c(s,{span:8},{default:o(()=>[t("div",F,[R,t("div",null,r(n.auditState),1)])]),_:2},1024),c(s,{span:24},{default:o(()=>[t("div",A,[E,t("div",null,r(n.opinion),1)])]),_:2},1024)]),_:2},1024))),256))])}}},rt=y(M,[["__scopeId","data-v-01c0cb66"]]);export{rt as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
System.register(["./@vue-legacy-6c3c82af.js","./NodeType-legacy-0acf3669.js","./optionConfig-legacy-708250f5.js","./approver-legacy-8f8c47f3.js","./@icon-park-legacy-af6e216d.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js"],(function(e,t){"use strict";var o,l,n,d,i,a,s,r,p,c,f,u,v,m,y,I,k,g,w,h,j,A,C,b;return{setters:[e=>{o=e.a0,l=e.aq,n=e.o,d=e.c,i=e.a,a=e.$,s=e.T,r=e.Y,p=e.d,c=e.u,f=e.M,u=e.X,v=e.aj,m=e.R,y=e.F,I=e.a6},e=>{k=e.default},e=>{g=e.r,w=e.t},e=>{h=e.a},e=>{j=e.C,A=e.E,C=e.P,b=e.a},null,null],execute:function(){const t={class:"y-flow-middle"},x={class:"y-flow-insert-wrapper"},q={class:"y-flow-insert"},z={key:0,class:"text"},N={class:"span"},E=i("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),L={class:"person-list"},W={class:"y-flow-line"};e("default",{__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(e,{emit:M}){const T=e,O=h(),R=o({roleArray:g,typeArray:w,defaultRole:"未知",activeIndex:-1}),V=(e,t)=>{M("addApprover",T.nodeItem,t)},_=()=>{M("addCondition",T.nodeItem,"add")},B=()=>{M("removeApprover",T.nodeItem,T.parentNode)};return(e,o)=>{const g=l("focus");return n(),d("div",t,[i("div",x,[i("div",q,[i("div",{class:"y-flow-node-wrapper",onMouseenter:o[4]||(o[4]=a((e=>R.activeIndex=T.nodeItem.nodeId),["self"])),onMouseleave:o[5]||(o[5]=a((e=>R.activeIndex=-1),["self"]))},[s(i("div",{class:"y-flow-node-del",onClick:B},[p(c(j),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[r,T.nodeItem.nodeId==R.activeIndex]]),i("div",{class:"y-flow-node",onClick:o[3]||(o[3]=e=>{return t=T.nodeItem,O.changeApprover(t),void O.toggleApproverVisible(!0);var t})},[i("div",{class:f(["y-flow-node-head",["approver"===T.nodeItem.type?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[i("div",{class:"y-flow-node-title",onClick:o[2]||(o[2]=a((e=>{return t=T.nodeItem,o=!0,void(t.titleEdit=o);var t,o}),["stop"]))},[T.nodeItem.titleEdit?s((n(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>T.nodeItem.title=e),onBlur:o[1]||(o[1]=e=>{return t=T.nodeItem,o=!1,t.title||(t.title="审批节点"),O.editTtitle(t.title),void(t.titleEdit=o);var t,o})},null,544)),[[v,T.nodeItem.title],[g]]):(n(),d("div",z,[i("span",N,u(T.nodeItem.title||T.nodeItem.name),1),p(c(A),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),"approver"===T.nodeItem.type?(n(),m(c(C),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(n(),m(c(b),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),E,i("div",L,[(n(!0),d(y,null,I(T.nodeItem.properties.persons,((e,t)=>(n(),d("div",{class:"person-add-item",key:t},u(e.realName),1)))),128))])]),i("div",W,[p(k,{branchItem:T.nodeItem,onAddApprover:V,onChangeCondition:_},null,8,["branchItem"])])],32)])])])}}})}}}));
|
||||
System.register(["./@vue-legacy-6c3c82af.js","./NodeType-legacy-0acf3669.js","./optionConfig-legacy-708250f5.js","./approver-legacy-8f8c47f3.js","./@icon-park-legacy-af6e216d.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js"],(function(e,t){"use strict";var o,l,n,d,i,a,s,r,p,c,f,u,v,m,y,I,k,g,h,w,j,A,C,b;return{setters:[e=>{o=e.a0,l=e.aq,n=e.o,d=e.c,i=e.a,a=e.$,s=e.T,r=e.Y,p=e.d,c=e.u,f=e.M,u=e.X,v=e.aj,m=e.R,y=e.F,I=e.a6},e=>{k=e.default},e=>{g=e.r,h=e.t},e=>{w=e.a},e=>{j=e.C,A=e.E,C=e.P,b=e.a},null,null],execute:function(){const t={class:"y-flow-middle"},x={class:"y-flow-insert-wrapper"},q={class:"y-flow-insert"},N={key:0,class:"text"},z={class:"span"},E=i("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),L={class:"person-list"},W={class:"y-flow-line"};e("default",{__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(e,{emit:M}){const T=e,O=w(),P=o({roleArray:g,typeArray:h,defaultRole:"未知",activeIndex:-1}),R=(e,t)=>{M("addApprover",T.nodeItem,t)},V=()=>{M("addCondition",T.nodeItem,"add")},_=()=>{M("removeApprover",T.nodeItem,T.parentNode)};return(e,o)=>{const g=l("focus");return n(),d("div",t,[i("div",x,[i("div",q,[i("div",{class:"y-flow-node-wrapper",onMouseenter:o[4]||(o[4]=a((e=>P.activeIndex=T.nodeItem.nodeId),["self"])),onMouseleave:o[5]||(o[5]=a((e=>P.activeIndex=-1),["self"]))},[s(i("div",{class:"y-flow-node-del",onClick:_},[p(c(j),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[r,T.nodeItem.nodeId==P.activeIndex]]),i("div",{class:"y-flow-node",onClick:o[3]||(o[3]=e=>{return t=T.nodeItem,O.changeApprover(t),void O.toggleApproverVisible(!0);var t})},[i("div",{class:f(["y-flow-node-head",["approver"===T.nodeItem.type?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[i("div",{class:"y-flow-node-title",onClick:o[2]||(o[2]=a((e=>{return t=T.nodeItem,o=!0,void(t.titleEdit=o);var t,o}),["stop"]))},[T.nodeItem.titleEdit?s((n(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>T.nodeItem.title=e),onBlur:o[1]||(o[1]=e=>{return t=T.nodeItem,o=!1,t.title||(t.title="审批节点"),O.editTtitle(t.title),void(t.titleEdit=o);var t,o})},null,544)),[[v,T.nodeItem.title],[g]]):(n(),d("div",N,[i("span",z,u(T.nodeItem.title||T.nodeItem.name),1),p(c(A),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),"approver"===T.nodeItem.type?(n(),m(c(C),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(n(),m(c(b),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),E,i("div",L,[(n(!0),d(y,null,I(T.nodeItem.properties.persons,((e,t)=>(n(),d("div",{class:"person-add-item",key:t},u(e.realName),1)))),128))])]),i("div",W,[p(k,{branchItem:T.nodeItem,onAddApprover:R,onChangeCondition:V},null,8,["branchItem"])])],32)])])])}}})}}}));
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{h as c}from"./index-f4a3d251.js";import{a as n}from"./vue-router-e054bd6d.js";import{_ as m}from"./_plugin-vue_export-helper-c27b6911.js";import{f as s,ag as l,o as _,c as d,d as e,S as u}from"./@vue-799d75fe.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const b={class:"tab-content"},f={__name:"Record",setup(h){const p=n(),a=s([]);return(()=>{let r=p.query.id;c.get(`/api/alteration/alterationPage?id=${r}`).then(o=>{o.code==200&&(console.log(o,"clearSearchclearSearch"),a.value=o.data)})})(),(r,o)=>{const t=l("el-table-column"),i=l("el-table");return _(),d("div",b,[e(i,{data:a.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:u(()=>[e(t,{type:"index",width:"80",align:"center",label:"序号"}),e(t,{prop:"details",label:"变更内容"}),e(t,{prop:"beforeChange",label:"变更前"}),e(t,{prop:"afterChange",label:"变更后"}),e(t,{prop:"createdName",label:"变更人"}),e(t,{prop:"createdAt",label:"变更时间"})]),_:1},8,["data"])])}}},G=m(f,[["__scopeId","data-v-5ee21545"]]);export{G as default};
|
|
@ -1 +0,0 @@
|
|||
import{h as i}from"./index-949b5609.js";import{a as n}from"./vue-router-e054bd6d.js";import{_ as m}from"./_plugin-vue_export-helper-c27b6911.js";import{f as s,ag as l,o as _,c as d,d as e,S as u}from"./@vue-799d75fe.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./element-plus-69b549ae.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-4d69b6da.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const b={class:"tab-content"},f={__name:"Record",setup(h){const p=n(),a=s([]);return(()=>{let r=p.query.id;i.get(`/api/alteration/alterationPage?id=${r}`).then(o=>{o.code==200&&(console.log(o,"clearSearchclearSearch"),a.value=o.data)})})(),(r,o)=>{const t=l("el-table-column"),c=l("el-table");return _(),d("div",b,[e(c,{data:a.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:u(()=>[e(t,{type:"index",width:"80",align:"center",label:"序号"}),e(t,{prop:"details",label:"变更内容"}),e(t,{prop:"beforeChange",label:"变更前"}),e(t,{prop:"afterChange",label:"变更后"}),e(t,{prop:"createdName",label:"变更人"}),e(t,{prop:"createdAt",label:"变更时间"})]),_:1},8,["data"])])}}},z=m(f,[["__scopeId","data-v-5ee21545"]]);export{z as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import"./index-949b5609.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as d}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import{l as _,o as s,c as n,a as i,F as u,a6 as m,L as p,O as v,u as f,M as b,X as y}from"./@vue-799d75fe.js";const h={class:"entDeclaration"},k={class:"entDeclaration-nav"},g=["onClick"],x={class:"entDeclaration-main"},A={__name:"Tab",props:{tabList:{type:Array,required:!0,default:()=>[]},isActive:{type:String,default:""}},emits:["clickItem"],setup(t,{emit:o}){const r=t,c=_(()=>e=>r.tabList.length-e);return(e,D)=>(s(),n("section",h,[i("nav",k,[(s(!0),n(u,null,m(t.tabList,(a,l)=>(s(),n("div",{style:v({zIndex:f(c)(l)}),class:b(["entDeclaration-nav-item",t.isActive===a?"active":""]),onClick:I=>o("clickItem",a)},y(a),15,g))),256))]),i("main",x,[p(e.$slots,"default",{isActive:t.isActive},void 0,!0)])]))}},F=d(A,[["__scopeId","data-v-441b1381"]]);export{F as T};
|
||||
import"./index-f4a3d251.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as d}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import{l as _,o as s,c as n,a as i,F as u,a6 as m,L as p,O as v,u as f,M as b,X as y}from"./@vue-799d75fe.js";const h={class:"entDeclaration"},k={class:"entDeclaration-nav"},g=["onClick"],x={class:"entDeclaration-main"},A={__name:"Tab",props:{tabList:{type:Array,required:!0,default:()=>[]},isActive:{type:String,default:""}},emits:["clickItem"],setup(t,{emit:o}){const r=t,c=_(()=>e=>r.tabList.length-e);return(e,D)=>(s(),n("section",h,[i("nav",k,[(s(!0),n(u,null,m(t.tabList,(a,l)=>(s(),n("div",{style:v({zIndex:f(c)(l)}),class:b(["entDeclaration-nav-item",t.isActive===a?"active":""]),onClick:I=>o("clickItem",a)},y(a),15,g))),256))]),i("main",x,[p(e.$slots,"default",{isActive:t.isActive},void 0,!0)])]))}},F=d(A,[["__scopeId","data-v-441b1381"]]);export{F as T};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{f as _,h as N,ag as r,o as i,c as n,d as p,S as d,W as S,T as A,Y as L,a as h,F as z,a6 as R,V as v,$ as b,X as T,R as $}from"./@vue-799d75fe.js";import{h as y}from"./index-f4a3d251.js";import{c as k}from"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as q}from"./_plugin-vue_export-helper-c27b6911.js";import"./vue-router-e054bd6d.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";const E={class:"upload"},I={class:"empty"},j=["onClick"],M={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(C,{emit:c}){const a=C;_([]);const t=_([]),g=e=>!0,m=e=>k(e),w=e=>k(e);N(()=>a.modelValue,e=>{if(e===""||e===void 0||!e)return t.value=[];if(a.type==="edit"&&!Array.isArray(e)&&typeof e=="string")return t.value=[];t.value=w(a.modelValue)},{immediate:!0});const x=e=>{let s=e.file;const l=new FormData;l.append("file",s),y.post("/api/attachment/upload",l).then(o=>{console.log(o,"res"),o.code==200&&(t.value.push({name:o.data.name,path:o.data.path,size:s.size,suffix:o.data.suffix}),c("update:modelValue",m(t.value)),console.log(a.modelValue,t.value))})},F=e=>{t.value.splice(e,1),c("update:modelValue",m(t.value))},V=e=>{y.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(s=>{const l=window.URL.createObjectURL(s),o=document.createElement("a");o.download=e.name,o.href=l,o.click()})};return(e,s)=>{const l=r("el-button"),o=r("el-upload"),B=r("CircleCloseFilled"),U=r("el-icon");return i(),n("div",E,[p(o,{"show-file-list":!1,"before-upload":g,"http-request":x,disabled:a.disabled},{default:d(()=>[p(l,{type:"primary",plain:"",disabled:a.disabled},{default:d(()=>[S("选择文件")]),_:1},8,["disabled"])]),_:1},8,["disabled"]),A(h("span",I,"未选择任何文件",512),[[L,t.value.length===0]]),t.value.length>0?(i(!0),n(z,{key:0},R(t.value,(u,f)=>(i(),n("span",{class:"fileBox",key:f,onClick:b(D=>V(u),["stop"])},[h("span",null,T(u.name),1),a.disabled?v("",!0):(i(),$(U,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:b(D=>F(f),["stop"])},{default:d(()=>[p(B)]),_:2},1032,["onClick"]))],8,j))),128)):v("",!0)])}}},me=q(M,[["__scopeId","data-v-c84f6ff9"]]);export{me as default};
|
|
@ -1 +0,0 @@
|
|||
import{f as _,h as N,ag as r,o as i,c as n,d as p,S as d,W as S,T as A,Y as L,a as h,F as z,a6 as R,V as v,$ as b,X as T,R as $}from"./@vue-799d75fe.js";import{h as y}from"./index-949b5609.js";import{c as k}from"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as q}from"./_plugin-vue_export-helper-c27b6911.js";import"./vue-router-e054bd6d.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./element-plus-69b549ae.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-4d69b6da.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const E={class:"upload"},I={class:"empty"},j=["onClick"],M={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(C,{emit:c}){const a=C;_([]);const t=_([]),g=e=>!0,m=e=>k(e),w=e=>k(e);N(()=>a.modelValue,e=>{if(e===""||e===void 0||!e)return t.value=[];if(a.type==="edit"&&!Array.isArray(e)&&typeof e=="string")return t.value=[];t.value=w(a.modelValue)},{immediate:!0});const x=e=>{let s=e.file;const l=new FormData;l.append("file",s),y.post("/api/attachment/upload",l).then(o=>{console.log(o,"res"),o.code==200&&(t.value.push({name:o.data.name,path:o.data.path,size:s.size,suffix:o.data.suffix}),c("update:modelValue",m(t.value)),console.log(a.modelValue,t.value))})},F=e=>{t.value.splice(e,1),c("update:modelValue",m(t.value))},V=e=>{y.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(s=>{const l=window.URL.createObjectURL(s),o=document.createElement("a");o.download=e.name,o.href=l,o.click()})};return(e,s)=>{const l=r("el-button"),o=r("el-upload"),B=r("CircleCloseFilled"),U=r("el-icon");return i(),n("div",E,[p(o,{"show-file-list":!1,"before-upload":g,"http-request":x,disabled:a.disabled},{default:d(()=>[p(l,{type:"primary",plain:"",disabled:a.disabled},{default:d(()=>[S("选择文件")]),_:1},8,["disabled"])]),_:1},8,["disabled"]),A(h("span",I,"未选择任何文件",512),[[L,t.value.length===0]]),t.value.length>0?(i(!0),n(z,{key:0},R(t.value,(u,f)=>(i(),n("span",{class:"fileBox",key:f,onClick:b(D=>V(u),["stop"])},[h("span",null,T(u.name),1),a.disabled?v("",!0):(i(),$(U,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:b(D=>F(f),["stop"])},{default:d(()=>[p(B)]),_:2},1032,["onClick"]))],8,j))),128)):v("",!0)])}}},ce=q(M,[["__scopeId","data-v-c84f6ff9"]]);export{ce as default};
|
|
@ -0,0 +1 @@
|
|||
System.register(["./@vue-legacy-6c3c82af.js","./index-legacy-91658d53.js","./lodash.clonedeep-legacy-930370dc.js","./Upload.vue_vue_type_style_index_0_scoped_c84f6ff9_lang-legacy-a323fc02.js","./_plugin-vue_export-helper-legacy-762b7923.js","./vue-router-legacy-68eee699.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./element-plus-legacy-165258b0.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@element-plus-legacy-109f3c36.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-a850f6c1.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js","./js-cookie-legacy-c7672909.js"],(function(e,l){"use strict";var a,s,t,n,o,u,d,c,i,p,r,y,g,m,f,j,v,h,_,b;return{setters:[e=>{a=e.f,s=e.h,t=e.ag,n=e.o,o=e.c,u=e.d,d=e.S,c=e.W,i=e.T,p=e.Y,r=e.a,y=e.F,g=e.a6,m=e.V,f=e.$,j=e.X,v=e.R},e=>{h=e.h},e=>{_=e.c},null,e=>{b=e._},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"upload"},k={class:"empty"},w=["onClick"],x={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:b}){const x=e;a([]);const V=a([]),C=e=>!0,z=e=>_(e);s((()=>x.modelValue),(e=>{return""!==e&&void 0!==e&&e&&("edit"!==x.type||Array.isArray(e)||"string"!=typeof e)?void(V.value=(l=x.modelValue,_(l))):V.value=[];var l}),{immediate:!0});const F=e=>{let l=e.file;const a=new FormData;a.append("file",l),h.post("/api/attachment/upload",a).then((e=>{console.log(e,"res"),200==e.code&&(V.value.push({name:e.data.name,path:e.data.path,size:l.size,suffix:e.data.suffix}),b("update:modelValue",z(V.value)),console.log(x.modelValue,V.value))}))};return(e,a)=>{const s=t("el-button"),_=t("el-upload"),U=t("CircleCloseFilled"),B=t("el-icon");return n(),o("div",l,[u(_,{"show-file-list":!1,"before-upload":C,"http-request":F,disabled:x.disabled},{default:d((()=>[u(s,{type:"primary",plain:"",disabled:x.disabled},{default:d((()=>[c("选择文件")])),_:1},8,["disabled"])])),_:1},8,["disabled"]),i(r("span",k,"未选择任何文件",512),[[p,0===V.value.length]]),V.value.length>0?(n(!0),o(y,{key:0},g(V.value,((e,l)=>(n(),o("span",{class:"fileBox",key:l,onClick:f((l=>(e=>{h.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then((l=>{const a=window.URL.createObjectURL(l),s=document.createElement("a");s.download=e.name,s.href=a,s.click()}))})(e)),["stop"])},[r("span",null,j(e.name),1),x.disabled?m("",!0):(n(),v(B,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:f((e=>(e=>{V.value.splice(e,1),b("update:modelValue",z(V.value))})(l)),["stop"])},{default:d((()=>[u(U)])),_:2},1032,["onClick"]))],8,w)))),128)):m("",!0)])}}};e("default",b(x,[["__scopeId","data-v-c84f6ff9"]]))}}}));
|
|
@ -1 +0,0 @@
|
|||
System.register(["./@vue-legacy-6c3c82af.js","./index-legacy-b670dc3e.js","./lodash.clonedeep-legacy-930370dc.js","./Upload.vue_vue_type_style_index_0_scoped_c84f6ff9_lang-legacy-a323fc02.js","./_plugin-vue_export-helper-legacy-762b7923.js","./vue-router-legacy-68eee699.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./element-plus-legacy-173ee141.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@element-plus-legacy-ca5ac6d2.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./dayjs-legacy-a850f6c1.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,l){"use strict";var a,s,t,n,o,u,d,c,i,p,r,y,m,g,f,j,v,h,_,b;return{setters:[e=>{a=e.f,s=e.h,t=e.ag,n=e.o,o=e.c,u=e.d,d=e.S,c=e.W,i=e.T,p=e.Y,r=e.a,y=e.F,m=e.a6,g=e.V,f=e.$,j=e.X,v=e.R},e=>{h=e.h},e=>{_=e.c},null,e=>{b=e._},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l={class:"upload"},k={class:"empty"},x=["onClick"],w={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:b}){const w=e;a([]);const V=a([]),C=e=>!0,z=e=>_(e);s((()=>w.modelValue),(e=>{return""!==e&&void 0!==e&&e&&("edit"!==w.type||Array.isArray(e)||"string"!=typeof e)?void(V.value=(l=w.modelValue,_(l))):V.value=[];var l}),{immediate:!0});const F=e=>{let l=e.file;const a=new FormData;a.append("file",l),h.post("/api/attachment/upload",a).then((e=>{console.log(e,"res"),200==e.code&&(V.value.push({name:e.data.name,path:e.data.path,size:l.size,suffix:e.data.suffix}),b("update:modelValue",z(V.value)),console.log(w.modelValue,V.value))}))};return(e,a)=>{const s=t("el-button"),_=t("el-upload"),U=t("CircleCloseFilled"),B=t("el-icon");return n(),o("div",l,[u(_,{"show-file-list":!1,"before-upload":C,"http-request":F,disabled:w.disabled},{default:d((()=>[u(s,{type:"primary",plain:"",disabled:w.disabled},{default:d((()=>[c("选择文件")])),_:1},8,["disabled"])])),_:1},8,["disabled"]),i(r("span",k,"未选择任何文件",512),[[p,0===V.value.length]]),V.value.length>0?(n(!0),o(y,{key:0},m(V.value,((e,l)=>(n(),o("span",{class:"fileBox",key:l,onClick:f((l=>(e=>{h.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then((l=>{const a=window.URL.createObjectURL(l),s=document.createElement("a");s.download=e.name,s.href=a,s.click()}))})(e)),["stop"])},[r("span",null,j(e.name),1),w.disabled?g("",!0):(n(),v(B,{key:0,class:"fileBoxDel",size:16,color:"#729880",onClick:f((e=>(e=>{V.value.splice(e,1),b("update:modelValue",z(V.value))})(l)),["stop"])},{default:d((()=>[u(U)])),_:2},1032,["onClick"]))],8,x)))),128)):g("",!0)])}}};e("default",b(w,[["__scopeId","data-v-c84f6ff9"]]))}}}));
|
|
@ -1 +0,0 @@
|
|||
import{_ as B}from"./TableBody-72eaca06.js";import{y as F}from"./yd_diaInput-c56a0aca.js";import{h as n}from"./index-949b5609.js";import{E as i}from"./element-plus-69b549ae.js";import{f as c,a0 as p,k as L,o as x,c as A,d as y,P as E}from"./@vue-799d75fe.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-4d69b6da.js";import"./lodash.clonedeep-89ac42ac.js";import"./dayjs-9729b6d9.js";import"./vue-router-e054bd6d.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const P={class:"example"},le={__name:"department",setup(q){const u=c(!1),d=p({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),l=p({value:!1,changeValue:e=>{l.value=e}}),h=p([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),b=c({code:"",name:"",pid:"",remarks:"",sortNo:0}),f=c({type:"create",name:"新增",id:""}),v=c({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),r=p({column:void 0,orderBy:void 0,value:void 0}),g=()=>{n.get("/api/dept/tree").then(e=>{e.code==200&&(console.log("res",e),h[0].options=e.data.data)})},s=()=>{d.tableType.tableLoading=!0,n.get("/api/dept/list",r).then(e=>{e.code==200&&(d.tableData=e.data,d.tableType.tableLoading=!1)}).catch(()=>{d.tableType.tableLoading=!1})},k=({type:e,data:t})=>{switch(console.log(e,t),e){case"create":w();break;case"edit":console.log(e,t),T(t);break;case"delete":N(t);break;case"sort":V(t);break;case"search":H(t);break}},N=e=>{const t=e.map(a=>a.id);console.log(t[0]),n.delete("/api/dept/remove",{params:{id:t[0]}}).then(a=>{a.code==200?(i({message:"删除成功",type:"success"}),s(),g()):i({message:a.message,type:"error"})})},_=(e,t,a)=>{if(console.log(e,t,a),e==="create"){let o={...t};t.pid===""&&(o={...o,pid:0}),n.post("/api/dept/save",o).then(m=>{console.log(m),m.code==200?(i({message:m.message,type:"success"}),l.value=!1,s(),g()):i.error(m.message)})}else e==="edit"&&(n.put(`/api/dept/edit?id=${a}`,t).then(o=>{o.code==200?(i({message:o.message,type:"success"}),l.value=!1,s()):i.error(o.message)}),console.log(a))},w=()=>{l.value=!0,f.value={type:"create",name:"新增",id:""},u.value=!1,b.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},T=e=>{const t=e[0].id;u.value=!1,n.get("/api/dept/detail",{id:t}).then(a=>{a.code===200&&(console.log(a),l.value=!0,b.value={paramKey:a.data.paramKey,paramValue:a.data.paramValue,remarks:a.data.remarks,sortNo:a.data.sortNo,code:a.data.data.code,name:a.data.data.name,pid:a.data.data.pid==0?"":a.data.data.pid,remarks:a.data.data.remarks,sortNo:a.data.data.sortNo},f.value={type:"edit",name:"编辑",id:t})})},H=e=>{console.log(e.value),r.value=e.value,s()},V=e=>{e.name===""?(r.orderBy=void 0,r.column=void 0):(r.orderBy=e.sortType,r.column=e.name),s()};return L(()=>{s(),g()}),(e,t)=>(x(),A("div",P,[y(B,E(d,{onHandleTableHeader:k}),null,16),y(F,{inputArray:h,onHandleFrom:_,dialogVisible:l,control:u.value,buttonName:f.value,ruleForm:b.value,rules:v.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}};export{le as default};
|
|
@ -0,0 +1 @@
|
|||
import{_ as B}from"./TableBody-89177887.js";import{y as F}from"./yd_diaInput-82ae4ab0.js";import{h as n}from"./index-f4a3d251.js";import{E as i}from"./element-plus-596887fa.js";import{f as c,a0 as p,k as L,o as x,c as A,d as y,P as E}from"./@vue-799d75fe.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-38db6609.js";import"./lodash.clonedeep-89ac42ac.js";import"./dayjs-9729b6d9.js";import"./vue-router-e054bd6d.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const P={class:"example"},re={__name:"department",setup(q){const u=c(!1),d=p({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),l=p({value:!1,changeValue:e=>{l.value=e}}),h=p([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),b=c({code:"",name:"",pid:"",remarks:"",sortNo:0}),f=c({type:"create",name:"新增",id:""}),v=c({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),r=p({column:void 0,orderBy:void 0,value:void 0}),g=()=>{n.get("/api/dept/tree").then(e=>{e.code==200&&(console.log("res",e),h[0].options=e.data.data)})},s=()=>{d.tableType.tableLoading=!0,n.get("/api/dept/list",r).then(e=>{e.code==200&&(d.tableData=e.data,d.tableType.tableLoading=!1)}).catch(()=>{d.tableType.tableLoading=!1})},k=({type:e,data:t})=>{switch(console.log(e,t),e){case"create":w();break;case"edit":console.log(e,t),T(t);break;case"delete":N(t);break;case"sort":V(t);break;case"search":H(t);break}},N=e=>{const t=e.map(a=>a.id);console.log(t[0]),n.delete("/api/dept/remove",{params:{id:t[0]}}).then(a=>{a.code==200?(i({message:"删除成功",type:"success"}),s(),g()):i({message:a.message,type:"error"})})},_=(e,t,a)=>{if(console.log(e,t,a),e==="create"){let o={...t};t.pid===""&&(o={...o,pid:0}),n.post("/api/dept/save",o).then(m=>{console.log(m),m.code==200?(i({message:m.message,type:"success"}),l.value=!1,s(),g()):i.error(m.message)})}else e==="edit"&&(n.put(`/api/dept/edit?id=${a}`,t).then(o=>{o.code==200?(i({message:o.message,type:"success"}),l.value=!1,s()):i.error(o.message)}),console.log(a))},w=()=>{l.value=!0,f.value={type:"create",name:"新增",id:""},u.value=!1,b.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},T=e=>{const t=e[0].id;u.value=!1,n.get("/api/dept/detail",{id:t}).then(a=>{a.code===200&&(console.log(a),l.value=!0,b.value={paramKey:a.data.paramKey,paramValue:a.data.paramValue,remarks:a.data.remarks,sortNo:a.data.sortNo,code:a.data.data.code,name:a.data.data.name,pid:a.data.data.pid==0?"":a.data.data.pid,remarks:a.data.data.remarks,sortNo:a.data.data.sortNo},f.value={type:"edit",name:"编辑",id:t})})},H=e=>{console.log(e.value),r.value=e.value,s()},V=e=>{e.name===""?(r.orderBy=void 0,r.column=void 0):(r.orderBy=e.sortType,r.column=e.name),s()};return L(()=>{s(),g()}),(e,t)=>(x(),A("div",P,[y(B,E(d,{onHandleTableHeader:k}),null,16),y(F,{inputArray:h,onHandleFrom:_,dialogVisible:l,control:u.value,buttonName:f.value,ruleForm:b.value,rules:v.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}};export{re as default};
|
|
@ -0,0 +1 @@
|
|||
System.register(["./TableBody-legacy-268e4388.js","./yd_diaInput-legacy-27ceea99.js","./index-legacy-91658d53.js","./element-plus-legacy-165258b0.js","./@vue-legacy-6c3c82af.js","./_plugin-vue_export-helper-legacy-762b7923.js","./@element-plus-legacy-109f3c36.js","./lodash.clonedeep-legacy-930370dc.js","./dayjs-legacy-a850f6c1.js","./vue-router-legacy-68eee699.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,a){"use strict";var l,t,o,s,r,d,n,c,u,i,p;return{setters:[e=>{l=e._},e=>{t=e.y},e=>{o=e.h},e=>{s=e.E},e=>{r=e.f,d=e.a0,n=e.k,c=e.o,u=e.c,i=e.d,p=e.P},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const a={class:"example"};e("default",{__name:"department",setup(e){const m=r(!1),g=d({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),y=d({value:!1,changeValue:e=>{y.value=e}}),b=d([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),v=r({code:"",name:"",pid:"",remarks:"",sortNo:0}),h=r({type:"create",name:"新增",id:""}),j=r({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),k=d({column:void 0,orderBy:void 0,value:void 0}),w=()=>{o.get("/api/dept/tree").then((e=>{200==e.code&&(console.log("res",e),b[0].options=e.data.data)}))},N=()=>{g.tableType.tableLoading=!0,o.get("/api/dept/list",k).then((e=>{200==e.code&&(g.tableData=e.data,g.tableType.tableLoading=!1)})).catch((()=>{g.tableType.tableLoading=!1}))},T=({type:e,data:a})=>{switch(console.log(e,a),e){case"create":H();break;case"edit":console.log(e,a),_(a);break;case"delete":f(a);break;case"sort":V(a);break;case"search":L(a)}},f=e=>{const a=e.map((e=>e.id));console.log(a[0]),o.delete("/api/dept/remove",{params:{id:a[0]}}).then((e=>{200==e.code?(s({message:"删除成功",type:"success"}),N(),w()):s({message:e.message,type:"error"})}))},x=(e,a,l)=>{if(console.log(e,a,l),"create"===e){let e={...a};""===a.pid&&(e={...e,pid:0}),o.post("/api/dept/save",e).then((e=>{console.log(e),200==e.code?(s({message:e.message,type:"success"}),y.value=!1,N(),w()):s.error(e.message)}))}else"edit"===e&&(o.put(`/api/dept/edit?id=${l}`,a).then((e=>{200==e.code?(s({message:e.message,type:"success"}),y.value=!1,N()):s.error(e.message)})),console.log(l))},H=()=>{y.value=!0,h.value={type:"create",name:"新增",id:""},m.value=!1,v.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},_=e=>{const a=e[0].id;m.value=!1,o.get("/api/dept/detail",{id:a}).then((e=>{200===e.code&&(console.log(e),y.value=!0,v.value={paramKey:e.data.paramKey,paramValue:e.data.paramValue,remarks:e.data.remarks,sortNo:e.data.sortNo,code:e.data.data.code,name:e.data.data.name,pid:0==e.data.data.pid?"":e.data.data.pid,remarks:e.data.data.remarks,sortNo:e.data.data.sortNo},h.value={type:"edit",name:"编辑",id:a})}))},L=e=>{console.log(e.value),k.value=e.value,N()},V=e=>{""===e.name?(k.orderBy=void 0,k.column=void 0):(k.orderBy=e.sortType,k.column=e.name),N()};return n((()=>{N(),w()})),(e,o)=>(c(),u("div",a,[i(l,p(g,{onHandleTableHeader:T}),null,16),i(t,{inputArray:b,onHandleFrom:x,dialogVisible:y,control:m.value,buttonName:h.value,ruleForm:v.value,rules:j.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}})}}}));
|
|
@ -1 +0,0 @@
|
|||
System.register(["./TableBody-legacy-f6947b01.js","./yd_diaInput-legacy-82a34261.js","./index-legacy-b670dc3e.js","./element-plus-legacy-173ee141.js","./@vue-legacy-6c3c82af.js","./_plugin-vue_export-helper-legacy-762b7923.js","./@element-plus-legacy-ca5ac6d2.js","./lodash.clonedeep-legacy-930370dc.js","./dayjs-legacy-a850f6c1.js","./vue-router-legacy-68eee699.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,a){"use strict";var l,t,o,s,r,d,n,c,i,u,p;return{setters:[e=>{l=e._},e=>{t=e.y},e=>{o=e.h},e=>{s=e.E},e=>{r=e.f,d=e.a0,n=e.k,c=e.o,i=e.c,u=e.d,p=e.P},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const a={class:"example"};e("default",{__name:"department",setup(e){const m=r(!1),g=d({tableType:{selection:!1,tableLoading:!1,tableIndex:!1,tableTree:!0,tableTreeName:"children",isHiddenPagination:!0,changeHeight:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"部门名称",show:!0},{name:"code",label:"部门编码",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[]}),y=d({value:!1,changeValue:e=>{y.value=e}}),b=d([{type:"treeSelect",title:"上级部门",model:"pid",placeholder:"请选择上级部门",control:!1,row:24,options:[]},{type:"input",title:"部门编码",model:"code",placeholder:"请输入部门编码",control:!1,row:24},{type:"input",title:"部门名称",placeholder:"请输入部门名称",control:!1,model:"name",row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),v=r({code:"",name:"",pid:"",remarks:"",sortNo:0}),h=r({type:"create",name:"新增",id:""}),j=r({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),k=d({column:void 0,orderBy:void 0,value:void 0}),w=()=>{o.get("/api/dept/tree").then((e=>{200==e.code&&(console.log("res",e),b[0].options=e.data.data)}))},N=()=>{g.tableType.tableLoading=!0,o.get("/api/dept/list",k).then((e=>{200==e.code&&(g.tableData=e.data,g.tableType.tableLoading=!1)})).catch((()=>{g.tableType.tableLoading=!1}))},T=({type:e,data:a})=>{switch(console.log(e,a),e){case"create":H();break;case"edit":console.log(e,a),_(a);break;case"delete":f(a);break;case"sort":V(a);break;case"search":L(a)}},f=e=>{const a=e.map((e=>e.id));console.log(a[0]),o.delete("/api/dept/remove",{params:{id:a[0]}}).then((e=>{200==e.code?(s({message:"删除成功",type:"success"}),N(),w()):s({message:e.message,type:"error"})}))},x=(e,a,l)=>{if(console.log(e,a,l),"create"===e){let e={...a};""===a.pid&&(e={...e,pid:0}),o.post("/api/dept/save",e).then((e=>{console.log(e),200==e.code?(s({message:e.message,type:"success"}),y.value=!1,N(),w()):s.error(e.message)}))}else"edit"===e&&(o.put(`/api/dept/edit?id=${l}`,a).then((e=>{200==e.code?(s({message:e.message,type:"success"}),y.value=!1,N()):s.error(e.message)})),console.log(l))},H=()=>{y.value=!0,h.value={type:"create",name:"新增",id:""},m.value=!1,v.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},_=e=>{const a=e[0].id;m.value=!1,o.get("/api/dept/detail",{id:a}).then((e=>{200===e.code&&(console.log(e),y.value=!0,v.value={paramKey:e.data.paramKey,paramValue:e.data.paramValue,remarks:e.data.remarks,sortNo:e.data.sortNo,code:e.data.data.code,name:e.data.data.name,pid:0==e.data.data.pid?"":e.data.data.pid,remarks:e.data.data.remarks,sortNo:e.data.data.sortNo},h.value={type:"edit",name:"编辑",id:a})}))},L=e=>{console.log(e.value),k.value=e.value,N()},V=e=>{""===e.name?(k.orderBy=void 0,k.column=void 0):(k.orderBy=e.sortType,k.column=e.name),N()};return n((()=>{N(),w()})),(e,o)=>(c(),i("div",a,[u(l,p(g,{onHandleTableHeader:T}),null,16),u(t,{inputArray:b,onHandleFrom:x,dialogVisible:y,control:m.value,buttonName:h.value,ruleForm:v.value,rules:j.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}})}}}));
|
|
@ -0,0 +1 @@
|
|||
import{_ as P}from"./TableBody-89177887.js";import{y as S}from"./yd_diaInput-82ae4ab0.js";import{h as g}from"./index-f4a3d251.js";import{u as V}from"./vue-router-e054bd6d.js";import{c as v}from"./lodash.clonedeep-89ac42ac.js";import{u as H}from"./useDictData-fee7cc16.js";import{E as L}from"./element-plus-596887fa.js";import{f as n,a0 as u,k as F,o as B,c as E,d as f,P as R}from"./@vue-799d75fe.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-38db6609.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./dayjs-9729b6d9.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const O={class:"example"},me={__name:"desTarget",setup($){const i=V(),y=n(!1),p=n(),t=u({tableType:{selection:!0,tableLoading:!1,tableIndex:!1},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增登记",icon:"Plus",permission:"rsgl:ryzbsb:create"},{type:"custom",name:"view",title:"查看",icon:"View",isOpen:"single"},"delete"]},{buttons:[{name:"mixInput",options:[{label:"审批单号",value:"approvalNumber"},{label:"企业名称",value:"companyName"}]},"advanced"]},{delete:"rsgl:ryzbsb:delete"}],tableList:[{name:"companyId",label:"企业名称",show:!0,width:200},{name:"approvalNumber",label:"审批单号",show:!0},{name:"checkNumber",label:"原核定用工指标人数",show:!0},{name:"activeStaff",label:"现在职人数(指标内)",show:!0},{name:"thisApprovalNumber",label:"本次核准后总指标人数",show:!0},{name:"createdId",label:"填报人",show:!0},{name:"createdAt",label:"填报时间",show:!0},{name:"",label:"初审人",show:!0},{name:"",label:"初审时间",show:!0},{name:"",label:"国资会审人",show:!0},{name:"",label:"国资会审时间",show:!0},{name:"",label:"编办会审人",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),r=u({value:!1,changeValue:e=>{r.value=e}}),d=u([{type:"input",title:"企业名称",model:"companyName",placeholder:"请输入",control:!1,row:24},{type:"input",title:"审批单号",model:"approvalNumber",placeholder:"请输入",control:!1,row:24},{type:"select",title:"单据状态",model:"documentStatus",control:!1,row:24,placeholder:"请选择",options:[]},{type:"datetime",title:"填报开始时间",model:"createdAt",control:!1,row:24,placeholder:"请选择"},{type:"datetime",title:"填报结束时间",model:"updatedAt",control:!1,row:24,placeholder:"请选择"}]),c={type:"personnel_indicators",current:t.pagination.current,size:t.pagination.pageSize},o=n({...c}),m=n({}),b=n({}),l=()=>{t.tableType.tableLoading=!0,g.get("/api/organization/selectOrganizationPersonnelIndicatorsList",o.value).then(e=>{e.code==200&&(t.tableData=e.data.records,t.tableType.tableLoading=!1,t.pagination.total=e.data.total)}).catch(()=>{t.tableType.tableLoading=!1})},w=({type:e,data:a})=>{switch(e){case"create":N();break;case"submission":console.log(e,a);break;case"edit":console.log(e,a),A(a);break;case"delete":console.log(e,a),k(a);break;case"advanced":console.log(e,a),I();break;case"accessory":console.log(e,a);break;case"view":console.log(e,a),T(a);break;case"mixInput":console.log(e,a),M(a);break}},_=e=>{console.log(e),console.log(e),t.pagination.current=e,o.value.current=e,l()},k=e=>{const a=e.map(s=>s.id);g.post("/api/organization/deleteOrganizationAndPersonnelIndicators",{ids:a}).then(s=>{s.code==200&&(L({message:"删除成功",type:"success"}),l())})},x=(e,a,s)=>{o.value={...o.value,...a},p.value.clearMixInput(),r.value=!1,l()},I=()=>{r.value=!0,b.value={type:"adsearch",name:"查询",id:""},m.value={approvalNumber:"",companyName:"",updatedAt:"",createdAt:"",documentStatus:""}},N=()=>{i.push("/grain/des-target-add?type=create")},T=e=>{i.push(`/grain/des-target-add?type=check&id=${e[0].id}`)},A=e=>{const a=e[0].id;i.push(`/grain/des-target-add?type=edit&id=${a}`)},M=e=>{if(console.log(e.seachMixSelect.value,e.seachMixInput.value),e.seachMixSelect.value===""||e.seachMixInput.value===""){o.value=v(c),l();return}o.value=v(c),o.value[e.seachMixSelect.value]=e.seachMixInput.value,l()};let h=n({}),z=["t_dict_invoices_state"];const D=()=>{H(z).then(e=>{h.value=e,d[2].options=h.value.t_dict_invoices_state})};return F(()=>{l(),D()}),(e,a)=>(B(),E("div",O,[f(P,R(t,{onHandleTableHeader:w,onHandleTablePagination:_,ref_key:"TableBodyRef",ref:p}),null,16),f(S,{inputArray:d,onHandleFrom:x,dialogVisible:r,control:y.value,buttonName:b.value,ruleForm:m.value,diawidth:24},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm"])]))}};export{me as default};
|
|
@ -1 +0,0 @@
|
|||
import{_ as P}from"./TableBody-72eaca06.js";import{y as S}from"./yd_diaInput-c56a0aca.js";import{h as g}from"./index-949b5609.js";import{u as V}from"./vue-router-e054bd6d.js";import{c as v}from"./lodash.clonedeep-89ac42ac.js";import{u as H}from"./useDictData-28662aa5.js";import{E as L}from"./element-plus-69b549ae.js";import{f as n,a0 as u,k as F,o as B,c as E,d as f,P as R}from"./@vue-799d75fe.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-4d69b6da.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./dayjs-9729b6d9.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const O={class:"example"},de={__name:"desTarget",setup($){const i=V(),y=n(!1),p=n(),t=u({tableType:{selection:!0,tableLoading:!1,tableIndex:!1},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增登记",icon:"Plus",permission:"rsgl:ryzbsb:create"},{type:"custom",name:"view",title:"查看",icon:"View",isOpen:"single"},"delete"]},{buttons:[{name:"mixInput",options:[{label:"审批单号",value:"approvalNumber"},{label:"企业名称",value:"companyName"}]},"advanced"]},{delete:"rsgl:ryzbsb:delete"}],tableList:[{name:"companyId",label:"企业名称",show:!0,width:200},{name:"approvalNumber",label:"审批单号",show:!0},{name:"checkNumber",label:"原核定用工指标人数",show:!0},{name:"activeStaff",label:"现在职人数(指标内)",show:!0},{name:"thisApprovalNumber",label:"本次核准后总指标人数",show:!0},{name:"createdId",label:"填报人",show:!0},{name:"createdAt",label:"填报时间",show:!0},{name:"",label:"初审人",show:!0},{name:"",label:"初审时间",show:!0},{name:"",label:"国资会审人",show:!0},{name:"",label:"国资会审时间",show:!0},{name:"",label:"编办会审人",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),r=u({value:!1,changeValue:e=>{r.value=e}}),d=u([{type:"input",title:"企业名称",model:"companyName",placeholder:"请输入",control:!1,row:24},{type:"input",title:"审批单号",model:"approvalNumber",placeholder:"请输入",control:!1,row:24},{type:"select",title:"单据状态",model:"documentStatus",control:!1,row:24,placeholder:"请选择",options:[]},{type:"datetime",title:"填报开始时间",model:"createdAt",control:!1,row:24,placeholder:"请选择"},{type:"datetime",title:"填报结束时间",model:"updatedAt",control:!1,row:24,placeholder:"请选择"}]),c={type:"personnel_indicators",current:t.pagination.current,size:t.pagination.pageSize},o=n({...c}),m=n({}),b=n({}),l=()=>{t.tableType.tableLoading=!0,g.get("/api/organization/selectOrganizationPersonnelIndicatorsList",o.value).then(e=>{e.code==200&&(t.tableData=e.data.records,t.tableType.tableLoading=!1,t.pagination.total=e.data.total)}).catch(()=>{t.tableType.tableLoading=!1})},w=({type:e,data:a})=>{switch(e){case"create":N();break;case"submission":console.log(e,a);break;case"edit":console.log(e,a),A(a);break;case"delete":console.log(e,a),k(a);break;case"advanced":console.log(e,a),I();break;case"accessory":console.log(e,a);break;case"view":console.log(e,a),T(a);break;case"mixInput":console.log(e,a),M(a);break}},_=e=>{console.log(e),console.log(e),t.pagination.current=e,o.value.current=e,l()},k=e=>{const a=e.map(s=>s.id);g.post("/api/organization/deleteOrganizationAndPersonnelIndicators",{ids:a}).then(s=>{s.code==200&&(L({message:"删除成功",type:"success"}),l())})},x=(e,a,s)=>{o.value={...o.value,...a},p.value.clearMixInput(),r.value=!1,l()},I=()=>{r.value=!0,b.value={type:"adsearch",name:"查询",id:""},m.value={approvalNumber:"",companyName:"",updatedAt:"",createdAt:"",documentStatus:""}},N=()=>{i.push("/grain/des-target-add?type=create")},T=e=>{i.push(`/grain/des-target-add?type=check&id=${e[0].id}`)},A=e=>{const a=e[0].id;i.push(`/grain/des-target-add?type=edit&id=${a}`)},M=e=>{if(console.log(e.seachMixSelect.value,e.seachMixInput.value),e.seachMixSelect.value===""||e.seachMixInput.value===""){o.value=v(c),l();return}o.value=v(c),o.value[e.seachMixSelect.value]=e.seachMixInput.value,l()};let h=n({}),z=["t_dict_invoices_state"];const D=()=>{H(z).then(e=>{h.value=e,d[2].options=h.value.t_dict_invoices_state})};return F(()=>{l(),D()}),(e,a)=>(B(),E("div",O,[f(P,R(t,{onHandleTableHeader:w,onHandleTablePagination:_,ref_key:"TableBodyRef",ref:p}),null,16),f(S,{inputArray:d,onHandleFrom:x,dialogVisible:r,control:y.value,buttonName:b.value,ruleForm:m.value,diawidth:24},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm"])]))}};export{de as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
System.register(["./TableBody-legacy-f6947b01.js","./yd_diaInput-legacy-82a34261.js","./index-legacy-b670dc3e.js","./vue-router-legacy-68eee699.js","./lodash.clonedeep-legacy-930370dc.js","./useDictData-legacy-5dee6fcc.js","./element-plus-legacy-173ee141.js","./@vue-legacy-6c3c82af.js","./_plugin-vue_export-helper-legacy-762b7923.js","./@element-plus-legacy-ca5ac6d2.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./dayjs-legacy-a850f6c1.js","./lodash-es-legacy-19b348e6.js","./@vueuse-legacy-d0edfa3e.js","./@popperjs-legacy-16895e05.js","./@ctrl-legacy-79e027b8.js","./async-validator-legacy-b9dd2ff7.js","./memoize-one-legacy-599ef04d.js","./escape-html-legacy-ae962a8c.js","./normalize-wheel-es-legacy-f7d8e481.js","./@floating-ui-legacy-212d790c.js"],(function(e,a){"use strict";var l,t,n,o,s,c,i,r,u,d,p,g,m,y;return{setters:[e=>{l=e._},e=>{t=e.y},e=>{n=e.h},e=>{o=e.u},e=>{s=e.c},e=>{c=e.u},e=>{i=e.E},e=>{r=e.f,u=e.a0,d=e.k,p=e.o,g=e.c,m=e.d,y=e.P},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const a={class:"example"};e("default",{__name:"desTarget",setup(e){const b=o(),v=r(!1),h=r(),j=u({tableType:{selection:!0,tableLoading:!1,tableIndex:!1},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增登记",icon:"Plus",permission:"rsgl:ryzbsb:create"},{type:"custom",name:"view",title:"查看",icon:"View",isOpen:"single"},"delete"]},{buttons:[{name:"mixInput",options:[{label:"审批单号",value:"approvalNumber"},{label:"企业名称",value:"companyName"}]},"advanced"]},{delete:"rsgl:ryzbsb:delete"}],tableList:[{name:"companyId",label:"企业名称",show:!0,width:200},{name:"approvalNumber",label:"审批单号",show:!0},{name:"checkNumber",label:"原核定用工指标人数",show:!0},{name:"activeStaff",label:"现在职人数(指标内)",show:!0},{name:"thisApprovalNumber",label:"本次核准后总指标人数",show:!0},{name:"createdId",label:"填报人",show:!0},{name:"createdAt",label:"填报时间",show:!0},{name:"",label:"初审人",show:!0},{name:"",label:"初审时间",show:!0},{name:"",label:"国资会审人",show:!0},{name:"",label:"国资会审时间",show:!0},{name:"",label:"编办会审人",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),w=u({value:!1,changeValue:e=>{w.value=e}}),x=u([{type:"input",title:"企业名称",model:"companyName",placeholder:"请输入",control:!1,row:24},{type:"input",title:"审批单号",model:"approvalNumber",placeholder:"请输入",control:!1,row:24},{type:"select",title:"单据状态",model:"documentStatus",control:!1,row:24,placeholder:"请选择",options:[]},{type:"datetime",title:"填报开始时间",model:"createdAt",control:!1,row:24,placeholder:"请选择"},{type:"datetime",title:"填报结束时间",model:"updatedAt",control:!1,row:24,placeholder:"请选择"}]),_={type:"personnel_indicators",current:j.pagination.current,size:j.pagination.pageSize},f=r({..._}),k=r({}),I=r({}),z=()=>{j.tableType.tableLoading=!0,n.get("/api/organization/selectOrganizationPersonnelIndicatorsList",f.value).then((e=>{200==e.code&&(j.tableData=e.data.records,j.tableType.tableLoading=!1,j.pagination.total=e.data.total)})).catch((()=>{j.tableType.tableLoading=!1}))},N=({type:e,data:a})=>{switch(e){case"create":L();break;case"submission":case"accessory":console.log(e,a);break;case"edit":console.log(e,a),P(a);break;case"delete":console.log(e,a),S(a);break;case"advanced":console.log(e,a),M();break;case"view":console.log(e,a),H(a);break;case"mixInput":console.log(e,a),D(a)}},A=e=>{console.log(e),console.log(e),j.pagination.current=e,f.value.current=e,z()},S=e=>{const a=e.map((e=>e.id));n.post("/api/organization/deleteOrganizationAndPersonnelIndicators",{ids:a}).then((e=>{200==e.code&&(i({message:"删除成功",type:"success"}),z())}))},T=(e,a,l)=>{f.value={...f.value,...a},h.value.clearMixInput(),w.value=!1,z()},M=()=>{w.value=!0,I.value={type:"adsearch",name:"查询",id:""},k.value={approvalNumber:"",companyName:"",updatedAt:"",createdAt:"",documentStatus:""}},L=()=>{b.push("/grain/des-target-add?type=create")},H=e=>{b.push(`/grain/des-target-add?type=check&id=${e[0].id}`)},P=e=>{const a=e[0].id;b.push(`/grain/des-target-add?type=edit&id=${a}`)},D=e=>{if(console.log(e.seachMixSelect.value,e.seachMixInput.value),""===e.seachMixSelect.value||""===e.seachMixInput.value)return f.value=s(_),void z();f.value=s(_),f.value[e.seachMixSelect.value]=e.seachMixInput.value,z()};let V=r({}),F=["t_dict_invoices_state"];return d((()=>{z(),c(F).then((e=>{V.value=e,x[2].options=V.value.t_dict_invoices_state}))})),(e,n)=>(p(),g("div",a,[m(l,y(j,{onHandleTableHeader:N,onHandleTablePagination:A,ref_key:"TableBodyRef",ref:h}),null,16),m(t,{inputArray:x,onHandleFrom:T,dialogVisible:w,control:v.value,buttonName:I.value,ruleForm:k.value,diawidth:24},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm"])]))}})}}}));
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import E from"./Upload-d1966acd.js";import{_ as N}from"./_plugin-vue_export-helper-c27b6911.js";import{f as o,a0 as g,n as P,ag as s,o as R,c as H,d as e,S as t,W as p,a as b}from"./@vue-799d75fe.js";import"./index-f4a3d251.js";import"./vue-router-e054bd6d.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./js-cookie-40e39767.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */const T={class:"ParMain"},j={class:"tab-content"},A={class:"dialog-footer"},D={__name:"details",setup(I){const _=o(4),c=o(100),v=o(!1),y=o(!1),k=o(!1),f=o(0);o("");const h=o(),m=g({name:""}),C=g({name:[{required:!0,message:"Please input Activity name",trigger:"blur"}]}),i=o(!1),x=[{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件一号"},{name:"池武丹",lastname:"李四",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件二号"},{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件三号"}],u=()=>{i.value=!0},V=n=>{console.log(`${n} items per page`)},z=n=>{console.log(`current page: ${n}`)};return P(()=>{f.value=window.innerHeight-320}),(n,a)=>{const r=s("el-table-column"),d=s("el-button"),q=s("el-table"),w=s("el-pagination"),F=s("el-form-item"),U=s("el-col"),S=s("el-row"),$=s("el-form"),B=s("el-dialog");return R(),H("div",T,[e(q,{data:x,"default-sort":{prop:"date",order:"descending"},height:f.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:t(()=>[e(r,{prop:"qiye",label:"附件名称",sortable:""}),e(r,{prop:"status",label:"文件类型",sortable:""}),e(r,{prop:"name",label:"上传人",sortable:""}),e(r,{prop:"lastname",label:"最后修改人",sortable:""}),e(r,{prop:"address",label:"最后修改日期",sortable:""}),e(r,{fixed:"right",label:"操作"},{default:t(()=>[e(d,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("修改")]),_:1}),e(d,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("删除")]),_:1}),e(d,{link:"",type:"primary",size:"large",onClick:u},{default:t(()=>[p("附件")]),_:1})]),_:1})]),_:1},8,["height"]),e(w,{style:{"margin-top":"100px"},"current-page":_.value,"onUpdate:current-page":a[0]||(a[0]=l=>_.value=l),"page-size":c.value,"onUpdate:page-size":a[1]||(a[1]=l=>c.value=l),"page-sizes":[100,200,300,400],small:v.value,disabled:k.value,background:y.value,layout:"->,total, prev, pager, next, jumper",total:400,onSizeChange:V,onCurrentChange:z},null,8,["current-page","page-size","small","disabled","background"]),e(B,{modelValue:i.value,"onUpdate:modelValue":a[5]||(a[5]=l=>i.value=l),title:"人员选调",width:"60%"},{footer:t(()=>[b("span",A,[e(d,{type:"primary",onClick:a[3]||(a[3]=l=>i.value=!1)},{default:t(()=>[p("保存")]),_:1}),e(d,{onClick:a[4]||(a[4]=l=>i.value=!1)},{default:t(()=>[p("关闭")]),_:1})])]),default:t(()=>[b("div",j,[e($,{ref_key:"ruleFormRef",ref:h,model:m,rules:C,"label-width":"180px",disabled:n.disabledVal,"hide-required-asterisk":n.hideRequired},{default:t(()=>[e(S,null,{default:t(()=>[e(U,{span:12},{default:t(()=>[e(F,{label:"相关附件:",class:"form-item-upload"},{default:t(()=>[e(E,{modelValue:m.name,"onUpdate:modelValue":a[2]||(a[2]=l=>m.name=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","hide-required-asterisk"])])]),_:1},8,["modelValue"])])}}},_e=N(D,[["__scopeId","data-v-41b38f3f"]]);export{_e as default};
|
|
@ -1 +0,0 @@
|
|||
import E from"./Upload-f518731f.js";import{_ as N}from"./_plugin-vue_export-helper-c27b6911.js";import{f as o,a0 as g,n as P,ag as s,o as R,c as H,d as e,S as t,W as p,a as b}from"./@vue-799d75fe.js";import"./index-949b5609.js";import"./vue-router-e054bd6d.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./element-plus-69b549ae.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-4d69b6da.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */const T={class:"ParMain"},j={class:"tab-content"},A={class:"dialog-footer"},D={__name:"details",setup(I){const _=o(4),c=o(100),v=o(!1),y=o(!1),k=o(!1),f=o(0);o("");const h=o(),m=g({name:""}),C=g({name:[{required:!0,message:"Please input Activity name",trigger:"blur"}]}),i=o(!1),x=[{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件一号"},{name:"池武丹",lastname:"李四",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件二号"},{name:"池武丹",lastname:"张三",address:"2021-12-24 00:00:00",status:"pdf",qiye:"附件三号"}],u=()=>{i.value=!0},V=n=>{console.log(`${n} items per page`)},z=n=>{console.log(`current page: ${n}`)};return P(()=>{f.value=window.innerHeight-320}),(n,a)=>{const r=s("el-table-column"),d=s("el-button"),q=s("el-table"),w=s("el-pagination"),F=s("el-form-item"),U=s("el-col"),S=s("el-row"),$=s("el-form"),B=s("el-dialog");return R(),H("div",T,[e(q,{data:x,"default-sort":{prop:"date",order:"descending"},height:f.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:t(()=>[e(r,{prop:"qiye",label:"附件名称",sortable:""}),e(r,{prop:"status",label:"文件类型",sortable:""}),e(r,{prop:"name",label:"上传人",sortable:""}),e(r,{prop:"lastname",label:"最后修改人",sortable:""}),e(r,{prop:"address",label:"最后修改日期",sortable:""}),e(r,{fixed:"right",label:"操作"},{default:t(()=>[e(d,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("修改")]),_:1}),e(d,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[p("删除")]),_:1}),e(d,{link:"",type:"primary",size:"large",onClick:u},{default:t(()=>[p("附件")]),_:1})]),_:1})]),_:1},8,["height"]),e(w,{style:{"margin-top":"100px"},"current-page":_.value,"onUpdate:current-page":a[0]||(a[0]=l=>_.value=l),"page-size":c.value,"onUpdate:page-size":a[1]||(a[1]=l=>c.value=l),"page-sizes":[100,200,300,400],small:v.value,disabled:k.value,background:y.value,layout:"->,total, prev, pager, next, jumper",total:400,onSizeChange:V,onCurrentChange:z},null,8,["current-page","page-size","small","disabled","background"]),e(B,{modelValue:i.value,"onUpdate:modelValue":a[5]||(a[5]=l=>i.value=l),title:"人员选调",width:"60%"},{footer:t(()=>[b("span",A,[e(d,{type:"primary",onClick:a[3]||(a[3]=l=>i.value=!1)},{default:t(()=>[p("保存")]),_:1}),e(d,{onClick:a[4]||(a[4]=l=>i.value=!1)},{default:t(()=>[p("关闭")]),_:1})])]),default:t(()=>[b("div",j,[e($,{ref_key:"ruleFormRef",ref:h,model:m,rules:C,"label-width":"180px",disabled:n.disabledVal,"hide-required-asterisk":n.hideRequired},{default:t(()=>[e(S,null,{default:t(()=>[e(U,{span:12},{default:t(()=>[e(F,{label:"相关附件:",class:"form-item-upload"},{default:t(()=>[e(E,{modelValue:m.name,"onUpdate:modelValue":a[2]||(a[2]=l=>m.name=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules","disabled","hide-required-asterisk"])])]),_:1},8,["modelValue"])])}}},ue=N(D,[["__scopeId","data-v-41b38f3f"]]);export{ue as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{a as T,u as j}from"./vue-router-e054bd6d.js";import{h as x}from"./index-949b5609.js";import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import{E as B}from"./element-plus-69b549ae.js";import{f as p,a0 as D,n as F,ag as _,aq as N,o as C,c as S,T as U,R as V,S as r,d as n,a as g,X as f,u as A,W as k}from"./@vue-799d75fe.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-4d69b6da.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const H={class:"ParMain"},M={__name:"detailsIndex",setup(O){const c=T();p(c.query.type),j();const L=p(!1),h=p(0),d=p(!1),v=p([]),l=D({current:1,size:12,id:c.query.id}),b=p(0),m=()=>{d.value=!0,console.log(c.query.type,"route.query.type"),l.type=c.query.type,x.get("/api/alteration/selectOrganizationFileList",l).then(t=>{console.log("res",t),t.code==200&&(console.log(t.data),v.value=t.data.records,b.value=t.data.total,d.value=!1)}).catch(()=>{d.value=!1})};m();let z={audit:"审批资料附件",card:"身份证附件",education:"学历证书附件",engage:"聘任证书附件",jobTitle:"职称证书附件",directors:"directors"};const y=(t,e)=>{if(console.log(t,e),t==="download")x.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(o=>{const i=window.URL.createObjectURL(o),s=document.createElement("a");s.download=e.name,s.href=i,s.click()});else if(t==="preview"){const o=e.suffix.toLowerCase()==="jpeg".toLowerCase(),i=e.suffix.toLowerCase()==="pdf".toLowerCase(),s=e.suffix.toLowerCase()==="png".toLowerCase(),w=e.suffix.toLowerCase()==="jpg".toLowerCase();if(o||i||s||w){const u=document.createElement("a");u.href=e.path,u.click(),window.open(e.path)}else B({message:"该文件类型暂不支持预览",type:"warning"})}},q=t=>{l.current=t,m()},E=t=>{l.current=t,m()};return F(()=>{h.value=window.innerHeight-320}),(t,e)=>{const o=_("el-table-column"),i=_("el-button"),s=_("el-table"),w=_("el-pagination"),u=N("loading");return C(),S("div",H,[U((C(),V(s,{data:v.value,"default-sort":{prop:"date",order:"descending"},height:h.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:r(()=>[n(o,{label:"序号",type:"index",width:"100",align:"center"}),n(o,{prop:"name",label:"附件名称"}),n(o,{label:"附件类型"},{default:r(a=>[g("span",null,f(A(z)[a.row.targetType]),1)]),_:1}),n(o,{label:"文件类型"},{default:r(a=>[g("span",null,f(a.row.suffix),1)]),_:1}),n(o,{prop:"createdId",label:"上传人"}),n(o,{label:"上传时间"},{default:r(a=>[g("span",null,f(a.row.createdAt.split(" ")[0]),1)]),_:1}),n(o,{prop:"updatedId",label:"最后修改人"}),n(o,{label:"最后修改日期"},{default:r(a=>[g("span",null,f(a.row.updatedAt.split(" ")[0]),1)]),_:1}),n(o,{fixed:"right",label:"操作",width:"120"},{default:r(a=>[n(i,{link:"",type:"primary",size:"large",onClick:I=>y("preview",a.row)},{default:r(()=>[k("预览")]),_:2},1032,["onClick"]),n(i,{link:"",type:"primary",size:"large",onClick:I=>y("download",a.row)},{default:r(()=>[k("下载")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","height"])),[[u,d.value]]),n(w,{style:{"margin-top":"100px"},"current-page":l.current,"onUpdate:current-page":e[0]||(e[0]=a=>l.current=a),"page-size":l.size,"onUpdate:page-size":e[1]||(e[1]=a=>l.size=a),background:L.value,layout:"->,total, prev, pager, next, jumper",total:b.value,onSizeChange:q,onCurrentChange:E},null,8,["current-page","page-size","background","total"])])}}},ce=R(M,[["__scopeId","data-v-56ff1069"]]);export{ce as default};
|
|
@ -0,0 +1 @@
|
|||
import{a as T,u as j}from"./vue-router-e054bd6d.js";import{h as x}from"./index-f4a3d251.js";import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import{E as B}from"./element-plus-596887fa.js";import{f as p,a0 as D,n as F,ag as _,aq as N,o as C,c as S,T as U,R as V,S as r,d as n,a as g,X as f,u as A,W as k}from"./@vue-799d75fe.js";import"./pinia-b1006f6e.js";import"./vue-demi-71ba0ef2.js";import"./axios-03edf72b.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const H={class:"ParMain"},M={__name:"detailsIndex",setup(O){const c=T();p(c.query.type),j();const L=p(!1),h=p(0),d=p(!1),v=p([]),l=D({current:1,size:12,id:c.query.id}),b=p(0),m=()=>{d.value=!0,console.log(c.query.type,"route.query.type"),l.type=c.query.type,x.get("/api/alteration/selectOrganizationFileList",l).then(t=>{console.log("res",t),t.code==200&&(console.log(t.data),v.value=t.data.records,b.value=t.data.total,d.value=!1)}).catch(()=>{d.value=!1})};m();let z={audit:"审批资料附件",card:"身份证附件",education:"学历证书附件",engage:"聘任证书附件",jobTitle:"职称证书附件",directors:"directors"};const y=(t,e)=>{if(console.log(t,e),t==="download")x.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(o=>{const i=window.URL.createObjectURL(o),s=document.createElement("a");s.download=e.name,s.href=i,s.click()});else if(t==="preview"){const o=e.suffix.toLowerCase()==="jpeg".toLowerCase(),i=e.suffix.toLowerCase()==="pdf".toLowerCase(),s=e.suffix.toLowerCase()==="png".toLowerCase(),w=e.suffix.toLowerCase()==="jpg".toLowerCase();if(o||i||s||w){const u=document.createElement("a");u.href=e.path,u.click(),window.open(e.path)}else B({message:"该文件类型暂不支持预览",type:"warning"})}},q=t=>{l.current=t,m()},E=t=>{l.current=t,m()};return F(()=>{h.value=window.innerHeight-320}),(t,e)=>{const o=_("el-table-column"),i=_("el-button"),s=_("el-table"),w=_("el-pagination"),u=N("loading");return C(),S("div",H,[U((C(),V(s,{data:v.value,"default-sort":{prop:"date",order:"descending"},height:h.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:r(()=>[n(o,{label:"序号",type:"index",width:"100",align:"center"}),n(o,{prop:"name",label:"附件名称"}),n(o,{label:"附件类型"},{default:r(a=>[g("span",null,f(A(z)[a.row.targetType]),1)]),_:1}),n(o,{label:"文件类型"},{default:r(a=>[g("span",null,f(a.row.suffix),1)]),_:1}),n(o,{prop:"createdId",label:"上传人"}),n(o,{label:"上传时间"},{default:r(a=>[g("span",null,f(a.row.createdAt.split(" ")[0]),1)]),_:1}),n(o,{prop:"updatedId",label:"最后修改人"}),n(o,{label:"最后修改日期"},{default:r(a=>[g("span",null,f(a.row.updatedAt.split(" ")[0]),1)]),_:1}),n(o,{fixed:"right",label:"操作",width:"120"},{default:r(a=>[n(i,{link:"",type:"primary",size:"large",onClick:I=>y("preview",a.row)},{default:r(()=>[k("预览")]),_:2},1032,["onClick"]),n(i,{link:"",type:"primary",size:"large",onClick:I=>y("download",a.row)},{default:r(()=>[k("下载")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","height"])),[[u,d.value]]),n(w,{style:{"margin-top":"100px"},"current-page":l.current,"onUpdate:current-page":e[0]||(e[0]=a=>l.current=a),"page-size":l.size,"onUpdate:page-size":e[1]||(e[1]=a=>l.size=a),background:L.value,layout:"->,total, prev, pager, next, jumper",total:b.value,onSizeChange:q,onCurrentChange:E},null,8,["current-page","page-size","background","total"])])}}},de=R(M,[["__scopeId","data-v-56ff1069"]]);export{de as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
import{_ as y}from"./TableBody-89177887.js";import{f as d,a0 as k,ag as i,o as S,c as V,d as t,S as o,P as H,W as m,a as _,X as z}from"./@vue-799d75fe.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./element-plus-596887fa.js";import"./lodash-es-b9271f86.js";import"./@vueuse-762dd9ca.js";import"./@element-plus-38db6609.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-0dc26b7a.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const x={class:"example"},D={style:{color:"#729880"}},B={class:"dialog-footer"},Q={__name:"example",setup(G){const v=d(),h=k({tableHeader:[{buttons:["create","edit","delete",{type:"custom",name:"customButton",title:"自定义",icon:"Message",isOpen:"custom",disabled:e=>{var a;return console.log(e,"selectData121341"),((a=e[0])==null?void 0:a.id)!==3},permission:void 0}]},{buttons:["search","advanced","refresh","filter","bulkDelete",{name:"mixInput",options:[{label:1,value:1},{label:1,value:1}]},{name:"sort",options:[{label:"按企业名称",value:1},{label:"按姓名",value:2}]},{type:"custom",name:"customButton",title:"自定义",icon:"Message",isOpen:"custom",disabled:!1}]},{create:void 0,edit:!1,delete:!1,search:!1,advanced:!1,refresh:!1,bulkDelete:!1,filter:!1}],tableType:{selection:!1,tableLoading:!1,tableIndex:!0,tableTree:!0,tableTreeName:"children",isHiddenPagination:!1,changeHeight:!1},tableList:[{type:"slot",name:"slotName",label:"插槽",show:!0,sortable:!0,sortableMethod:(e,a)=>(console.log(e.date),new Date(e.date).getTime()-new Date(a.date).getTime()),width:100},{name:"date",label:"时间",show:!0,sortable:"custom"},{name:"name",label:"姓名",show:!0},{name:"state",label:"状态",show:!0},{name:"city",label:"城市",show:!0},{name:"address",label:"地址",show:!0},{name:"zip",label:"邮编",show:!0}],tableData:[{id:1,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽",children:[{id:2,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:3,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"}]},{id:4,date:"2016-05-02",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:5,date:"2016-05-03",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:6,date:"2016-05-04",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:7,date:"2016-05-05",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"}],pagination:{pageSize:10,current:1,total:0}}),C=({type:e,data:a})=>{switch(console.log(e,a),e){case"create":console.log(e,a);break;case"edit":console.log(e,a);break;case"advanced":N();break}},T=e=>{console.log(e)},A=(e,a,s)=>{console.log(e,a,s)},u=e=>{console.log(e)},f=d(120),n=d({name:""}),r=d(!1),p=()=>{r.value=!1},N=()=>{r.value=!0};return(e,a)=>{const s=i("el-button"),b=i("el-input"),g=i("el-form-item"),L=i("el-form"),w=i("el-dialog");return S(),V("div",x,[t(y,H(h,{onHandleTableHeader:C,onHandleTablePagination:T,onHandleTableSort:A,ref_key:"TableBodyRef",ref:v}),{TableHeaderLeft:o(({selectData:l})=>[t(s,{onClick:c=>u(l)},{default:o(()=>[m("插槽")]),_:2},1032,["onClick"])]),TableHeaderRight:o(({selectData:l})=>[t(s,{onClick:c=>u(l)},{default:o(()=>[m("插槽")]),_:2},1032,["onClick"])]),slotName:o(({currentCol:l,currentData:c})=>[_("span",D,z(c),1)]),_:1},16),t(w,{modelValue:r.value,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value=l),title:"搜索更多"},{footer:o(()=>[_("span",B,[t(s,{onClick:p},{default:o(()=>[m("取消")]),_:1}),t(s,{type:"primary",onClick:p},{default:o(()=>[m(" 搜索 ")]),_:1})])]),default:o(()=>[t(L,{model:n.value},{default:o(()=>[t(g,{label:"企业名称","label-width":f.value},{default:o(()=>[t(b,{modelValue:n.value.name,"onUpdate:modelValue":a[0]||(a[0]=l=>n.value.name=l),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),t(g,{label:"公司地址","label-width":f.value},{default:o(()=>[t(b,{modelValue:n.value.name,"onUpdate:modelValue":a[1]||(a[1]=l=>n.value.name=l),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}};export{Q as default};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue