This commit is contained in:
zhuyy 2023-02-24 16:32:14 +08:00
parent 609ba9cd7d
commit 559023e1ce
131 changed files with 134 additions and 123 deletions

View File

@ -21,39 +21,40 @@ import org.apache.poi.ss.usermodel.VerticalAlignment;
@HeadStyle(horizontalAlignment = HorizontalAlignment.CENTER)
@ContentStyle(verticalAlignment = VerticalAlignment.CENTER)
public class ExcelPersonnelStatement {
@ExcelProperty(value = "主管部门名称" )
@ExcelProperty({"国有企业人事信息", "主管部门名称"})
@ApiModelProperty(value = "主管部门名称")
private String competentDeptName;
@ExcelProperty(value = "统一社会信用代码" )
@ExcelProperty({"国有企业人事信息", "统一社会信用代码"})
@ApiModelProperty(value = "统一社会信用代码")
private String socialCreditCode;
@ExcelProperty(value = "国有企业名称" )
@ExcelProperty({"国有企业人事信息", "国有企业名称"})
@ApiModelProperty(value = "国有企业名称")
private String competent;
@ExcelProperty(value = "注册资本" )
@ExcelProperty({"国有企业人事信息", "注册资本"})
@ApiModelProperty(value = "注册资本")
private Integer capital;
@ExcelProperty(value = "内设机构数" )
@ExcelProperty({"国有企业人事信息", "内设机构数"})
@ApiModelProperty(value = "内设机构数")
private Integer mechanismNum;
@ExcelProperty(value = "用工计划数" )
@ExcelProperty({"国有企业人事信息", "用工计划数"})
@ApiModelProperty(value = "用工计划数")
private Long EmploymentNum;
private Long employmentNum;
@ExcelProperty(value = "现用工人数" )
@ExcelProperty({"国有企业人事信息", "现用工人数"})
@ApiModelProperty(value = "现用工人数")
private Long num;
@ExcelProperty(value = "其中:用工计划数" )
@ExcelProperty({"国有企业人事信息", "其中:用工计划数"})
@ApiModelProperty(value = "其中:用工计划数")
private Integer thereIntoNum;
@ExcelProperty(value = "董监人数" )
@ExcelProperty({"国有企业人事信息", "董监人数"})
@ApiModelProperty(value = "董监人数")
private Integer supervisorsNum;
}

View File

@ -101,7 +101,7 @@ public class AuditServiceImpl extends BaseService<AuditMapper, Audit> implements
User user = userMapper.selectOne(new LambdaQueryWrapper<User>()
.eq(User::getLoginName, configMapper.selectOne(new LambdaQueryWrapper<Config>()
.eq(Config::getParamKey, ConfigCache.SYS_USER_LEADERSHIP)).getParamValue()));
Audit auditOne = getOne(new LambdaQueryWrapper<Audit>().eq(Audit::getApprover, user.getId()).eq(Audit::getPersonnelId, auditRequest.getPersonnelId()));
Audit auditOne = getOne(new LambdaQueryWrapper<Audit>().eq(Audit::getApprover, user.getId()).eq(Audit::getPerType,auditRequest.getType()).eq(Audit::getPersonnelId, auditRequest.getPersonnelId()));
auditOne.setAuditOrder(ArgsConst.WAITING);
updateById(auditOne);
if (ArgsConst.PERSONNEL.equals(auditRequest.getType())||ArgsConst.CHANGE.equals(auditRequest.getType())){

View File

@ -120,7 +120,7 @@ public class CompanyNameServiceImpl extends BaseService<CompanyNameMapper, Compa
mpjQueryWrapper.select("t.company_name, t.credit_code ");
mpjQueryWrapper.select("t.check_number ");
mpjQueryWrapper.select("SUM(IF( t1.work_state = '在职', IF ( t1.personnel_type = '指标内', 1, 0 ), 0 )) as target_inner ");
mpjQueryWrapper.select("t.residue_number ");
mpjQueryWrapper.select("t.residual_number ");
mpjQueryWrapper.select("SUM(IF( t1.personnel_type = '指标外', IF ( t1.work_state = '在职', 1, 0 ), 0 )) as target_outer ");
mpjQueryWrapper.leftJoin("t_lc_personnel t1 on t.id = t1.company_name ");
mpjQueryWrapper.eq(StrUtil.isNotBlank(companyId), "t.id", companyId);

View File

@ -76,7 +76,7 @@ public class ExchangeServiceImpl extends BaseService<ExchangeMapper, Exchange> i
@Override
public AjaxResult exchangePage(Page page,String userName,String numberId,String willCompanyName,String companyName,String receipts) {
QueryWrapper<Exchange> wrapper = new QueryWrapper<>();
wrapper.lambda().eq(StrUtil.isNotBlank(willCompanyName),Exchange::getWillCompanyId,willCompanyName).eq(Exchange::getState,"1")
wrapper.lambda().eq(StrUtil.isNotBlank(willCompanyName),Exchange::getWillCompanyId,willCompanyName)
.exists(StrUtil.isNotBlank(companyName),
"select p.id from t_lc_personnel p where t_lc_exchange.personnel_id = p.id and p.company_name = " +"'"+ companyName+"'")
.exists(StrUtil.isNotBlank(receipts),

View File

@ -165,10 +165,13 @@ public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel
}
if (ObjectUtil.isEmpty(personnel))return AjaxResult.fail().msg("该人员不存在!");
PersonnelUpdateDto personnelUpdateDto = BeanUtil.copyProperties(personnel, PersonnelUpdateDto.class);
Audit audit = auditMapper.selectOne(new LambdaQueryWrapper<Audit>().eq(Audit::getPersonnelId,id)
.eq(Audit::getPerType,ArgsConst.PERSONNEL)
LambdaQueryWrapper<Audit> wrapper = new LambdaQueryWrapper<Audit>()
.eq(Audit::getPersonnelId, id)
.eq(Audit::getPerType,personnelType)
.eq(Audit::getApprover, StpUtil.getLoginIdAsString())
.eq(Audit::getAuditOrder, ArgsConst.WAITING));
.eq(Audit::getAuditOrder, ArgsConst.WAITING);
Audit audit = auditMapper.selectOne(wrapper);
if (ObjectUtil.isNotEmpty(audit)){
personnelUpdateDto.setAuditBtn(true);
}
@ -188,6 +191,12 @@ public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel
public AjaxResult personnelByExchangeList() {
List<Personnel> list = list(new LambdaQueryWrapper<Personnel>().eq(Personnel::getState,"2").eq(Personnel::getWorkState,"在职"));
List<PersonnelByExchangeDto> dtos = BeanUtil.copyToList(list, PersonnelByExchangeDto.class);
for (PersonnelByExchangeDto dto : dtos) {
CompanyName companyName = companyNameMapper.selectById(dto.getCompanyName());
dto.setCompanyName(companyName.getCompanyName());
Dept dept = deptMapper.selectById(dto.getPresentDept());
dto.setPresentDept(dept.getName());
}
return AjaxResult.ok().data(dtos);
}
@ -465,6 +474,7 @@ public class PersonnelServiceImpl extends BaseService<PersonnelMapper, Personnel
.like(Personnel::getNumberId,request.getNumberId())
.exists(StrUtil.isNotBlank(request.getCompanyName()), "select t2.id from t_lc_company_name t2 where " +
"t_lc_personnel.company_name = t2.id and t2.company_name like '%" + request.getCompanyName() + "%'");
wrapper.lambda().orderByDesc(Personnel::getCreatedAt);
if ("desc".equals(orderBy) && StrUtil.isNotBlank(column)) {
wrapper.orderByDesc(column);
}

View File

@ -1 +1 @@
import{h as v}from"./index-5982f61d.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 o,a as j,W as _,F as A,a6 as F,R as M,X as q}from"./@vue-99409b8e.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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),l=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),n=r([]),f=()=>{p.value=!1,x("update:dialogVisible",!1),n.value=g(l.value),c.value=!1,u.value=!1},y=e=>{f(),e()},T=()=>{v.export("/api/person/export",{ids:n.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=>{n.value=e?l.value:[],u.value=!1},S=e=>{const t=e.length;c.value=t===l.value.length,u.value=t>0&&t<l.value.length};I(()=>C.dialogVisible,e=>{p.value=e,c.value=!0});const E=()=>{v.get("/api/person/getEntityParam").then(e=>{e.code===200&&(l.value=e.data,n.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:o(()=>[j("span",G,[s(h,{onClick:T},{default:o(()=>[_("导出")]),_:1}),s(h,{onClick:f,type:"primary"},{default:o(()=>[_("关闭")]),_:1})])]),default:o(()=>[s(D,null,{default:o(()=>[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:n.value,"onUpdate:modelValue":t[1]||(t[1]=a=>n.value=a),onChange:S},{default:o(()=>[(m(!0),b(A,null,F(l.value,(a,R)=>(m(),M(i,{class:"el-checkbox-width",label:a,key:R},{default:o(()=>[_(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};
import{h as v}from"./index-211a7271.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 o,a as j,W as _,F as A,a6 as F,R as M,X as q}from"./@vue-99409b8e.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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),l=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),n=r([]),f=()=>{p.value=!1,x("update:dialogVisible",!1),n.value=g(l.value),c.value=!1,u.value=!1},y=e=>{f(),e()},T=()=>{v.export("/api/person/export",{ids:n.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=>{n.value=e?l.value:[],u.value=!1},S=e=>{const t=e.length;c.value=t===l.value.length,u.value=t>0&&t<l.value.length};I(()=>C.dialogVisible,e=>{p.value=e,c.value=!0});const E=()=>{v.get("/api/person/getEntityParam").then(e=>{e.code===200&&(l.value=e.data,n.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:o(()=>[j("span",G,[s(h,{onClick:T},{default:o(()=>[_("导出")]),_:1}),s(h,{onClick:f,type:"primary"},{default:o(()=>[_("关闭")]),_:1})])]),default:o(()=>[s(D,null,{default:o(()=>[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:n.value,"onUpdate:modelValue":t[1]||(t[1]=a=>n.value=a),onChange:S},{default:o(()=>[(m(!0),b(A,null,F(l.value,(a,R)=>(m(),M(i,{class:"el-checkbox-width",label:a,key:R},{default:o(()=>[_(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};

View File

@ -0,0 +1 @@
import{h as y}from"./index-211a7271.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as x}from"./_plugin-vue_export-helper-c27b6911.js";import{a as S}from"./vue-router-3caf458d.js";import{f as b,k,ag as _,o as s,c as u,R as v,V as L,F as w,a6 as B,S as e,d as i,a as t,X as r,ax as I,ay as V}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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 p=o=>(I("data-v-16a0ab5c"),o=o(),V(),o),q={class:"tab-content"},C={class:"item-container"},N=p(()=>t("div",null,"处理人:",-1)),D={class:"item-container"},F=p(()=>t("div",null,"处理时间:",-1)),R={class:"item-container"},T=p(()=>t("div",null,"处理状态:",-1)),$={class:"item-container"},A=p(()=>t("div",null,"处理意见:",-1)),E={__name:"Log",setup(o){const d=S(),c=b([]),h=()=>{let m={edit:"personnel",change:"change",approve:"personnel",approve_change:"change"};y.get(`/api/alteration/audtiLog?id=${d.query.id}&personnelType=${m[d.query.type]}`).then(l=>{l.code===200&&(c.value=l.data)})};return k(()=>{h()}),(m,l)=>{const g=_("el-empty"),a=_("el-col"),f=_("el-row");return s(),u("div",q,[c.value.length===0?(s(),v(g,{key:0,description:"暂无"})):L("",!0),(s(!0),u(w,null,B(c.value,n=>(s(),v(f,null,{default:e(()=>[i(a,{span:8},{default:e(()=>[t("div",C,[N,t("div",null,r(n.approver),1)])]),_:2},1024),i(a,{span:8},{default:e(()=>[t("div",D,[F,t("div",null,r(n.createdAt),1)])]),_:2},1024),i(a,{span:8},{default:e(()=>[t("div",R,[T,t("div",null,r(n.auditState),1)])]),_:2},1024),i(a,{span:24},{default:e(()=>[t("div",$,[A,t("div",null,r(n.opinion),1)])]),_:2},1024)]),_:2},1024))),256))])}}},pt=x(E,[["__scopeId","data-v-16a0ab5c"]]);export{pt as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{h as g}from"./index-5982f61d.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-3caf458d.js";import{f as S,k as b,ag as _,o as n,c as d,R as m,V as k,F as L,a6 as w,S as o,d as i,a as t,X as c,ax as B,ay as I}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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 r=e=>(B("data-v-01c0cb66"),e=e(),I(),e),V={class:"tab-content"},C={class:"item-container"},N=r(()=>t("div",null,"处理人:",-1)),q={class:"item-container"},D=r(()=>t("div",null,"处理时间:",-1)),F={class:"item-container"},R=r(()=>t("div",null,"处理状态:",-1)),A={class:"item-container"},E=r(()=>t("div",null,"处理意见:",-1)),M={__name:"Log",setup(e){const u=x(),l=S([]),v=()=>{g.get(`/api/alteration/audtiLog?id=${u.query.id}`).then(p=>{p.code===200&&(l.value=p.data)})};return b(()=>{v()}),(p,X)=>{const h=_("el-empty"),a=_("el-col"),f=_("el-row");return n(),d("div",V,[l.value.length===0?(n(),m(h,{key:0,description:"暂无"})):k("",!0),(n(!0),d(L,null,w(l.value,s=>(n(),m(f,null,{default:o(()=>[i(a,{span:8},{default:o(()=>[t("div",C,[N,t("div",null,c(s.approver),1)])]),_:2},1024),i(a,{span:8},{default:o(()=>[t("div",q,[D,t("div",null,c(s.createdAt),1)])]),_:2},1024),i(a,{span:8},{default:o(()=>[t("div",F,[R,t("div",null,c(s.auditState),1)])]),_:2},1024),i(a,{span:24},{default:o(()=>[t("div",A,[E,t("div",null,c(s.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

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

View File

@ -0,0 +1 @@
import{h as c}from"./index-211a7271.js";import{a as i}from"./vue-router-3caf458d.js";import{_ as s}from"./_plugin-vue_export-helper-c27b6911.js";import{f as m,ag as l,o as _,c as d,d as t,S as h}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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 u={class:"tab-content"},b={__name:"Record",setup(f){const o=i(),a=m([]);return(()=>{let r=o.query.id,p={edit:"personnel",change:"change",approve:"personnel",approve_change:"change"};c.get(`/api/alteration/alterationPage?id=${r}&personnelType=${p[o.query.type]}`).then(e=>{e.code==200&&(a.value=e.data)})})(),(r,p)=>{const e=l("el-table-column"),n=l("el-table");return _(),d("div",u,[t(n,{data:a.value,style:{width:"100%"},"header-cell-style":{background:"#EEF1F4"}},{default:h(()=>[t(e,{type:"index",width:"80",align:"center",label:"序号"}),t(e,{prop:"details",label:"变更内容"}),t(e,{prop:"beforeChange",label:"变更前"}),t(e,{prop:"afterChange",label:"变更后"}),t(e,{prop:"createdName",label:"变更人"}),t(e,{prop:"createdAt",label:"变更时间"})]),_:1},8,["data"])])}}},z=s(b,[["__scopeId","data-v-cd583a47"]]);export{z as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{h as c}from"./index-5982f61d.js";import{a as n}from"./vue-router-3caf458d.js";import{_ as s}from"./_plugin-vue_export-helper-c27b6911.js";import{f as m,ag as l,o as _,c as d,d as e,S as u}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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=m([]);return(()=>{let r=p.query.id;c.get(`/api/alteration/alterationPage?id=${r}`).then(o=>{o.code==200&&(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=s(f,[["__scopeId","data-v-5ee21545"]]);export{G 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

View File

@ -1 +1 @@
import"./index-5982f61d.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-99409b8e.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-211a7271.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-99409b8e.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};

View File

@ -1 +1 @@
import{f as _,h as L,ag as r,o as i,c as n,d as p,S as d,W as N,T as S,Y as A,a as h,F as z,a6 as R,V as v,$ as b,X as T,R as $}from"./@vue-99409b8e.js";import{h as y}from"./index-5982f61d.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-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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(w,{emit:c}){const a=w;_([]);const t=_([]),C=e=>!0,m=e=>k(e),g=e=>k(e);L(()=>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=g(a.modelValue)},{immediate:!0});const F=e=>{let s=e.file;const l=new FormData;l.append("file",s),y.post("/api/attachment/upload",l).then(o=>{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)))})},x=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":C,"http-request":F,disabled:a.disabled},{default:d(()=>[p(l,{type:"primary",plain:"",disabled:a.disabled},{default:d(()=>[N("选择文件")]),_:1},8,["disabled"])]),_:1},8,["disabled"]),S(h("span",I,"未选择任何文件",512),[[A,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=>x(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};
import{f as _,h as L,ag as r,o as i,c as n,d as p,S as d,W as N,T as S,Y as A,a as h,F as z,a6 as R,V as v,$ as b,X as T,R as $}from"./@vue-99409b8e.js";import{h as y}from"./index-211a7271.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-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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(w,{emit:c}){const a=w;_([]);const t=_([]),C=e=>!0,m=e=>k(e),g=e=>k(e);L(()=>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=g(a.modelValue)},{immediate:!0});const F=e=>{let s=e.file;const l=new FormData;l.append("file",s),y.post("/api/attachment/upload",l).then(o=>{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)))})},x=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":C,"http-request":F,disabled:a.disabled},{default:d(()=>[p(l,{type:"primary",plain:"",disabled:a.disabled},{default:d(()=>[N("选择文件")]),_:1},8,["disabled"])]),_:1},8,["disabled"]),S(h("span",I,"未选择任何文件",512),[[A,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=>x(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};

View File

@ -1 +1 @@
System.register(["./@vue-legacy-6c3c82af.js","./index-legacy-d629f20a.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"]]))}}}));
System.register(["./@vue-legacy-6c3c82af.js","./index-legacy-9d2bf9d5.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"]]))}}}));

View File

@ -1 +1 @@
import{u as b}from"./vue-router-3caf458d.js";import{h,t as k,a as x}from"./index-5982f61d.js";import{E as c}from"./element-plus-15eb8ab3.js";import{f as u,ag as t,o as C,R as y,S as s,a as F,d as r,W as g}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const Y={__name:"change_password",setup(R){const m=b(),i=u(!0),p=u(null),P=u({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(d,e,a)=>{e!==o.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),o=u({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),_=()=>{p.value.validate(d=>{if(d)h.put("/api/auth/editPassword",{newPassword:o.value.newPassword,oldPassword:o.value.oldPassword}).then(e=>{e.code===200?(k.data.clear("user"),x("token"),c({message:e.message,type:"success"}),m.push("/grain/login")):c({message:e.message,type:"error"})});else return!1})},w=d=>{m.go(-1)};return(d,e)=>{const a=t("el-input"),n=t("el-form-item"),v=t("el-form"),f=t("el-button"),V=t("el-dialog");return C(),y(V,{modelValue:i.value,"onUpdate:modelValue":e[3]||(e[3]=l=>i.value=l),title:"修改密码",width:"350px","before-close":w},{footer:s(()=>[F("span",null,[r(f,{type:"primary",onClick:_},{default:s(()=>[g("保存")]),_:1}),r(f,{onClick:w},{default:s(()=>[g("关闭")]),_:1})])]),default:s(()=>[r(v,{ref_key:"ruleFormRef",ref:p,model:o.value,rules:P.value,"label-width":"100px"},{default:s(()=>[r(n,{label:"旧密码",prop:"oldPassword"},{default:s(()=>[r(a,{modelValue:o.value.oldPassword,"onUpdate:modelValue":e[0]||(e[0]=l=>o.value.oldPassword=l),"show-password":""},null,8,["modelValue"])]),_:1}),r(n,{label:"新密码",prop:"newPassword"},{default:s(()=>[r(a,{modelValue:o.value.newPassword,"onUpdate:modelValue":e[1]||(e[1]=l=>o.value.newPassword=l),"show-password":""},null,8,["modelValue"])]),_:1}),r(n,{label:"新密码确认",prop:"confirmPassword"},{default:s(()=>[r(a,{modelValue:o.value.confirmPassword,"onUpdate:modelValue":e[2]||(e[2]=l=>o.value.confirmPassword=l),"show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}};export{Y as default};
import{u as b}from"./vue-router-3caf458d.js";import{h,t as k,a as x}from"./index-211a7271.js";import{E as c}from"./element-plus-15eb8ab3.js";import{f as u,ag as t,o as C,R as y,S as s,a as F,d as r,W as g}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const Y={__name:"change_password",setup(R){const m=b(),i=u(!0),p=u(null),P=u({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(d,e,a)=>{e!==o.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),o=u({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),_=()=>{p.value.validate(d=>{if(d)h.put("/api/auth/editPassword",{newPassword:o.value.newPassword,oldPassword:o.value.oldPassword}).then(e=>{e.code===200?(k.data.clear("user"),x("token"),c({message:e.message,type:"success"}),m.push("/grain/login")):c({message:e.message,type:"error"})});else return!1})},w=d=>{m.go(-1)};return(d,e)=>{const a=t("el-input"),n=t("el-form-item"),v=t("el-form"),f=t("el-button"),V=t("el-dialog");return C(),y(V,{modelValue:i.value,"onUpdate:modelValue":e[3]||(e[3]=l=>i.value=l),title:"修改密码",width:"350px","before-close":w},{footer:s(()=>[F("span",null,[r(f,{type:"primary",onClick:_},{default:s(()=>[g("保存")]),_:1}),r(f,{onClick:w},{default:s(()=>[g("关闭")]),_:1})])]),default:s(()=>[r(v,{ref_key:"ruleFormRef",ref:p,model:o.value,rules:P.value,"label-width":"100px"},{default:s(()=>[r(n,{label:"旧密码",prop:"oldPassword"},{default:s(()=>[r(a,{modelValue:o.value.oldPassword,"onUpdate:modelValue":e[0]||(e[0]=l=>o.value.oldPassword=l),"show-password":""},null,8,["modelValue"])]),_:1}),r(n,{label:"新密码",prop:"newPassword"},{default:s(()=>[r(a,{modelValue:o.value.newPassword,"onUpdate:modelValue":e[1]||(e[1]=l=>o.value.newPassword=l),"show-password":""},null,8,["modelValue"])]),_:1}),r(n,{label:"新密码确认",prop:"confirmPassword"},{default:s(()=>[r(a,{modelValue:o.value.confirmPassword,"onUpdate:modelValue":e[2]||(e[2]=l=>o.value.confirmPassword=l),"show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}}};export{Y as default};

View File

@ -1 +1 @@
System.register(["./vue-router-legacy-68eee699.js","./index-legacy-d629f20a.js","./element-plus-legacy-165258b0.js","./@vue-legacy-6c3c82af.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./_plugin-vue_export-helper-legacy-762b7923.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"],(function(e,l){"use strict";var a,s,o,r,u,d,n,t,g,c,i,w,m;return{setters:[e=>{a=e.u},e=>{s=e.h,o=e.t,r=e.a},e=>{u=e.E},e=>{d=e.f,n=e.ag,t=e.o,g=e.R,c=e.S,i=e.a,w=e.d,m=e.W},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",{__name:"change_password",setup(e){const l=a(),p=d(!0),y=d(null),f=d({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(e,l,a)=>{console.log(v.newPassword),console.log(l),l!==v.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),v=d({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),j=()=>{y.value.validate((e=>{if(!e)return console.log("error submit!"),!1;s.put("/api/auth/editPassword",{newPassword:v.value.newPassword,oldPassword:v.value.oldPassword}).then((e=>{200===e.code?(o.data.clear("user"),r("token"),u({message:e.message,type:"success"}),l.push("/grain/login")):u({message:e.message,type:"error"})}))}))},P=e=>{l.go(-1)};return(e,l)=>{const a=n("el-input"),s=n("el-form-item"),o=n("el-form"),r=n("el-button"),u=n("el-dialog");return t(),g(u,{modelValue:p.value,"onUpdate:modelValue":l[3]||(l[3]=e=>p.value=e),title:"修改密码",width:"350px","before-close":P},{footer:c((()=>[i("span",null,[w(r,{type:"primary",onClick:j},{default:c((()=>[m("保存")])),_:1}),w(r,{onClick:P},{default:c((()=>[m("关闭")])),_:1})])])),default:c((()=>[w(o,{ref_key:"ruleFormRef",ref:y,model:v.value,rules:f.value,"label-width":"100px"},{default:c((()=>[w(s,{label:"旧密码",prop:"oldPassword"},{default:c((()=>[w(a,{modelValue:v.value.oldPassword,"onUpdate:modelValue":l[0]||(l[0]=e=>v.value.oldPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),w(s,{label:"新密码",prop:"newPassword"},{default:c((()=>[w(a,{modelValue:v.value.newPassword,"onUpdate:modelValue":l[1]||(l[1]=e=>v.value.newPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),w(s,{label:"新密码确认",prop:"confirmPassword"},{default:c((()=>[w(a,{modelValue:v.value.confirmPassword,"onUpdate:modelValue":l[2]||(l[2]=e=>v.value.confirmPassword=e),"show-password":""},null,8,["modelValue"])])),_:1})])),_:1},8,["model","rules"])])),_:1},8,["modelValue"])}}})}}}));
System.register(["./vue-router-legacy-68eee699.js","./index-legacy-9d2bf9d5.js","./element-plus-legacy-165258b0.js","./@vue-legacy-6c3c82af.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js","./axios-legacy-6abb032a.js","./form-data-legacy-f3fd8c46.js","./js-cookie-legacy-c7672909.js","./_plugin-vue_export-helper-legacy-762b7923.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"],(function(e,l){"use strict";var a,s,o,r,u,d,n,t,g,c,i,w,m;return{setters:[e=>{a=e.u},e=>{s=e.h,o=e.t,r=e.a},e=>{u=e.E},e=>{d=e.f,n=e.ag,t=e.o,g=e.R,c=e.S,i=e.a,w=e.d,m=e.W},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",{__name:"change_password",setup(e){const l=a(),p=d(!0),y=d(null),f=d({oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"},{validator:(e,l,a)=>{console.log(v.newPassword),console.log(l),l!==v.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),v=d({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),j=()=>{y.value.validate((e=>{if(!e)return console.log("error submit!"),!1;s.put("/api/auth/editPassword",{newPassword:v.value.newPassword,oldPassword:v.value.oldPassword}).then((e=>{200===e.code?(o.data.clear("user"),r("token"),u({message:e.message,type:"success"}),l.push("/grain/login")):u({message:e.message,type:"error"})}))}))},P=e=>{l.go(-1)};return(e,l)=>{const a=n("el-input"),s=n("el-form-item"),o=n("el-form"),r=n("el-button"),u=n("el-dialog");return t(),g(u,{modelValue:p.value,"onUpdate:modelValue":l[3]||(l[3]=e=>p.value=e),title:"修改密码",width:"350px","before-close":P},{footer:c((()=>[i("span",null,[w(r,{type:"primary",onClick:j},{default:c((()=>[m("保存")])),_:1}),w(r,{onClick:P},{default:c((()=>[m("关闭")])),_:1})])])),default:c((()=>[w(o,{ref_key:"ruleFormRef",ref:y,model:v.value,rules:f.value,"label-width":"100px"},{default:c((()=>[w(s,{label:"旧密码",prop:"oldPassword"},{default:c((()=>[w(a,{modelValue:v.value.oldPassword,"onUpdate:modelValue":l[0]||(l[0]=e=>v.value.oldPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),w(s,{label:"新密码",prop:"newPassword"},{default:c((()=>[w(a,{modelValue:v.value.newPassword,"onUpdate:modelValue":l[1]||(l[1]=e=>v.value.newPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),w(s,{label:"新密码确认",prop:"confirmPassword"},{default:c((()=>[w(a,{modelValue:v.value.confirmPassword,"onUpdate:modelValue":l[2]||(l[2]=e=>v.value.confirmPassword=e),"show-password":""},null,8,["modelValue"])])),_:1})])),_:1},8,["model","rules"])])),_:1},8,["modelValue"])}}})}}}));

View File

@ -1 +1 @@
import{_ as B}from"./TableBody-d97f5e0f.js";import{y as F}from"./yd_diaInput-342d82aa.js";import{h as n}from"./index-5982f61d.js";import{E as d}from"./element-plus-15eb8ab3.js";import{f as m,a0 as c,k as L,o as x,c as A,d as y,P as E}from"./@vue-99409b8e.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-12a4a04c.js";import"./lodash.clonedeep-89ac42ac.js";import"./dayjs-9729b6d9.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-a1293421.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 p=m(!1),i=c({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=c({value:!1,changeValue:e=>{l.value=e}}),h=c([{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}]),u=m({code:"",name:"",pid:"",remarks:"",sortNo:0}),b=m({type:"create",name:"新增",id:""}),v=m({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),r=c({column:void 0,orderBy:void 0,value:void 0}),f=()=>{n.get("/api/dept/tree").then(e=>{e.code==200&&(h[0].options=e.data.data)})},s=()=>{i.tableType.tableLoading=!0,n.get("/api/dept/list",r).then(e=>{e.code==200&&(i.tableData=e.data,i.tableType.tableLoading=!1)}).catch(()=>{i.tableType.tableLoading=!1})},k=({type:e,data:t})=>{switch(e){case"create":w();break;case"edit":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);n.delete("/api/dept/remove",{params:{id:t[0]}}).then(a=>{a.code==200?(d({message:"删除成功",type:"success"}),s(),f()):d({message:a.message,type:"error"})})},_=(e,t,a)=>{if(e==="create"){let o={...t};t.pid===""&&(o={...o,pid:0}),n.post("/api/dept/save",o).then(g=>{g.code==200?(d({message:g.message,type:"success"}),l.value=!1,s(),f()):d.error(g.message)})}else e==="edit"&&n.put(`/api/dept/edit?id=${a}`,t).then(o=>{o.code==200?(d({message:o.message,type:"success"}),l.value=!1,s()):d.error(o.message)})},w=()=>{l.value=!0,b.value={type:"create",name:"新增",id:""},p.value=!1,u.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},T=e=>{const t=e[0].id;p.value=!1,n.get("/api/dept/detail",{id:t}).then(a=>{a.code===200&&(l.value=!0,u.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},b.value={type:"edit",name:"编辑",id:t})})},H=e=>{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(),f()}),(e,t)=>(x(),A("div",P,[y(B,E(i,{onHandleTableHeader:k}),null,16),y(F,{inputArray:h,onHandleFrom:_,dialogVisible:l,control:p.value,buttonName:b.value,ruleForm:u.value,rules:v.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}};export{re as default};
import{_ as B}from"./TableBody-d97f5e0f.js";import{y as F}from"./yd_diaInput-22ecf497.js";import{h as n}from"./index-211a7271.js";import{E as d}from"./element-plus-15eb8ab3.js";import{f as m,a0 as c,k as L,o as x,c as A,d as y,P as E}from"./@vue-99409b8e.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-12a4a04c.js";import"./lodash.clonedeep-89ac42ac.js";import"./dayjs-9729b6d9.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-a1293421.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 p=m(!1),i=c({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=c({value:!1,changeValue:e=>{l.value=e}}),h=c([{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}]),u=m({code:"",name:"",pid:"",remarks:"",sortNo:0}),b=m({type:"create",name:"新增",id:""}),v=m({code:[{required:!0,message:"请输入部门编码",trigger:"blur"}],name:[{required:!0,message:"请输入部门名称",trigger:"blur"}]}),r=c({column:void 0,orderBy:void 0,value:void 0}),f=()=>{n.get("/api/dept/tree").then(e=>{e.code==200&&(h[0].options=e.data.data)})},s=()=>{i.tableType.tableLoading=!0,n.get("/api/dept/list",r).then(e=>{e.code==200&&(i.tableData=e.data,i.tableType.tableLoading=!1)}).catch(()=>{i.tableType.tableLoading=!1})},k=({type:e,data:t})=>{switch(e){case"create":w();break;case"edit":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);n.delete("/api/dept/remove",{params:{id:t[0]}}).then(a=>{a.code==200?(d({message:"删除成功",type:"success"}),s(),f()):d({message:a.message,type:"error"})})},_=(e,t,a)=>{if(e==="create"){let o={...t};t.pid===""&&(o={...o,pid:0}),n.post("/api/dept/save",o).then(g=>{g.code==200?(d({message:g.message,type:"success"}),l.value=!1,s(),f()):d.error(g.message)})}else e==="edit"&&n.put(`/api/dept/edit?id=${a}`,t).then(o=>{o.code==200?(d({message:o.message,type:"success"}),l.value=!1,s()):d.error(o.message)})},w=()=>{l.value=!0,b.value={type:"create",name:"新增",id:""},p.value=!1,u.value={code:"",name:"",pid:"",remarks:"",sortNo:0}},T=e=>{const t=e[0].id;p.value=!1,n.get("/api/dept/detail",{id:t}).then(a=>{a.code===200&&(l.value=!0,u.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},b.value={type:"edit",name:"编辑",id:t})})},H=e=>{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(),f()}),(e,t)=>(x(),A("div",P,[y(B,E(i,{onHandleTableHeader:k}),null,16),y(F,{inputArray:h,onHandleFrom:_,dialogVisible:l,control:p.value,buttonName:b.value,ruleForm:u.value,rules:v.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm","rules"])]))}};export{re as default};

View File

@ -1 +1 @@
System.register(["./TableBody-legacy-268e4388.js","./yd_diaInput-legacy-7dfb3c24.js","./index-legacy-d629f20a.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"])]))}})}}}));
System.register(["./TableBody-legacy-268e4388.js","./yd_diaInput-legacy-2a9a9aec.js","./index-legacy-9d2bf9d5.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"])]))}})}}}));

View File

@ -1 +1 @@
import E from"./Upload-1873d3e6.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 d,a as b}from"./@vue-99409b8e.js";import"./index-5982f61d.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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"}]}),r=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=()=>{r.value=!0},V=p=>{},z=p=>{};return P(()=>{f.value=window.innerHeight-320}),(p,a)=>{const n=s("el-table-column"),i=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(n,{prop:"qiye",label:"附件名称",sortable:""}),e(n,{prop:"status",label:"文件类型",sortable:""}),e(n,{prop:"name",label:"上传人",sortable:""}),e(n,{prop:"lastname",label:"最后修改人",sortable:""}),e(n,{prop:"address",label:"最后修改日期",sortable:""}),e(n,{fixed:"right",label:"操作"},{default:t(()=>[e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[d("修改")]),_:1}),e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[d("删除")]),_:1}),e(i,{link:"",type:"primary",size:"large",onClick:u},{default:t(()=>[d("附件")]),_: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:r.value,"onUpdate:modelValue":a[5]||(a[5]=l=>r.value=l),title:"人员选调",width:"60%"},{footer:t(()=>[b("span",A,[e(i,{type:"primary",onClick:a[3]||(a[3]=l=>r.value=!1)},{default:t(()=>[d("保存")]),_:1}),e(i,{onClick:a[4]||(a[4]=l=>r.value=!1)},{default:t(()=>[d("关闭")]),_:1})])]),default:t(()=>[b("div",j,[e($,{ref_key:"ruleFormRef",ref:h,model:m,rules:C,"label-width":"180px",disabled:p.disabledVal,"hide-required-asterisk":p.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};
import E from"./Upload-361f231a.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 d,a as b}from"./@vue-99409b8e.js";import"./index-211a7271.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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"}]}),r=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=()=>{r.value=!0},V=p=>{},z=p=>{};return P(()=>{f.value=window.innerHeight-320}),(p,a)=>{const n=s("el-table-column"),i=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(n,{prop:"qiye",label:"附件名称",sortable:""}),e(n,{prop:"status",label:"文件类型",sortable:""}),e(n,{prop:"name",label:"上传人",sortable:""}),e(n,{prop:"lastname",label:"最后修改人",sortable:""}),e(n,{prop:"address",label:"最后修改日期",sortable:""}),e(n,{fixed:"right",label:"操作"},{default:t(()=>[e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[d("修改")]),_:1}),e(i,{link:"",type:"primary",size:"large",onClick:u,style:{"margin-right":"36px"}},{default:t(()=>[d("删除")]),_:1}),e(i,{link:"",type:"primary",size:"large",onClick:u},{default:t(()=>[d("附件")]),_: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:r.value,"onUpdate:modelValue":a[5]||(a[5]=l=>r.value=l),title:"人员选调",width:"60%"},{footer:t(()=>[b("span",A,[e(i,{type:"primary",onClick:a[3]||(a[3]=l=>r.value=!1)},{default:t(()=>[d("保存")]),_:1}),e(i,{onClick:a[4]||(a[4]=l=>r.value=!1)},{default:t(()=>[d("关闭")]),_:1})])]),default:t(()=>[b("div",j,[e($,{ref_key:"ruleFormRef",ref:h,model:m,rules:C,"label-width":"180px",disabled:p.disabledVal,"hide-required-asterisk":p.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};

View File

@ -1 +1 @@
import{a as T,u as j}from"./vue-router-3caf458d.js";import{h as x}from"./index-5982f61d.js";import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import{E as B}from"./element-plus-15eb8ab3.js";import{f as p,a0 as D,n as F,ag as u,aq as N,o as C,c as S,T as U,R as V,S as l,d as o,a as _,X as g,u as A,W as k}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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 f=T();p(f.query.type),j();const L=p(!1),h=p(0),c=p(!1),v=p([]),r=D({current:1,size:12,id:f.query.id}),y=p(0),m=()=>{c.value=!0,r.type=f.query.type,x.get("/api/alteration/selectOrganizationFileList",r).then(n=>{n.code==200&&(v.value=n.data.records,y.value=n.data.total,c.value=!1)}).catch(()=>{c.value=!1})};m();let z={audit:"审批资料附件",card:"身份证附件",education:"学历证书附件",engage:"聘任证书附件",jobTitle:"职称证书附件",directors:"directors"};const b=(n,e)=>{if(n==="download")x.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(a=>{const i=window.URL.createObjectURL(a),s=document.createElement("a");s.download=e.name,s.href=i,s.click()});else if(n==="preview"){const a=e.suffix.toLowerCase()==="jpeg".toLowerCase(),i=e.suffix.toLowerCase()==="pdf".toLowerCase(),s=e.suffix.toLowerCase()==="png".toLowerCase(),w=e.suffix.toLowerCase()==="jpg".toLowerCase();if(a||i||s||w){const d=document.createElement("a");d.href=e.path,d.click(),window.open(e.path)}else B({message:"该文件类型暂不支持预览",type:"warning"})}},q=n=>{r.current=n,m()},E=n=>{r.current=n,m()};return F(()=>{h.value=window.innerHeight-320}),(n,e)=>{const a=u("el-table-column"),i=u("el-button"),s=u("el-table"),w=u("el-pagination"),d=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:l(()=>[o(a,{label:"序号",type:"index",width:"100",align:"center"}),o(a,{prop:"name",label:"附件名称"}),o(a,{label:"附件类型"},{default:l(t=>[_("span",null,g(A(z)[t.row.targetType]),1)]),_:1}),o(a,{label:"文件类型"},{default:l(t=>[_("span",null,g(t.row.suffix),1)]),_:1}),o(a,{prop:"createdId",label:"上传人"}),o(a,{label:"上传时间"},{default:l(t=>[_("span",null,g(t.row.createdAt.split(" ")[0]),1)]),_:1}),o(a,{prop:"updatedId",label:"最后修改人"}),o(a,{label:"最后修改日期"},{default:l(t=>[_("span",null,g(t.row.updatedAt.split(" ")[0]),1)]),_:1}),o(a,{fixed:"right",label:"操作",width:"120"},{default:l(t=>[o(i,{link:"",type:"primary",size:"large",onClick:I=>b("preview",t.row)},{default:l(()=>[k("预览")]),_:2},1032,["onClick"]),o(i,{link:"",type:"primary",size:"large",onClick:I=>b("download",t.row)},{default:l(()=>[k("下载")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","height"])),[[d,c.value]]),o(w,{style:{"margin-top":"100px"},"current-page":r.current,"onUpdate:current-page":e[0]||(e[0]=t=>r.current=t),"page-size":r.size,"onUpdate:page-size":e[1]||(e[1]=t=>r.size=t),background:L.value,layout:"->,total, prev, pager, next, jumper",total:y.value,onSizeChange:q,onCurrentChange:E},null,8,["current-page","page-size","background","total"])])}}},de=R(M,[["__scopeId","data-v-56ff1069"]]);export{de as default};
import{a as T,u as j}from"./vue-router-3caf458d.js";import{h as x}from"./index-211a7271.js";import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import{E as B}from"./element-plus-15eb8ab3.js";import{f as p,a0 as D,n as F,ag as u,aq as N,o as C,c as S,T as U,R as V,S as l,d as o,a as _,X as g,u as A,W as k}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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 f=T();p(f.query.type),j();const L=p(!1),h=p(0),c=p(!1),v=p([]),r=D({current:1,size:12,id:f.query.id}),y=p(0),m=()=>{c.value=!0,r.type=f.query.type,x.get("/api/alteration/selectOrganizationFileList",r).then(n=>{n.code==200&&(v.value=n.data.records,y.value=n.data.total,c.value=!1)}).catch(()=>{c.value=!1})};m();let z={audit:"审批资料附件",card:"身份证附件",education:"学历证书附件",engage:"聘任证书附件",jobTitle:"职称证书附件",directors:"directors"};const b=(n,e)=>{if(n==="download")x.downloadFile("/api/alteration/download",{params:{fileName:e.name,path:e.path},responseType:"blob"}).then(a=>{const i=window.URL.createObjectURL(a),s=document.createElement("a");s.download=e.name,s.href=i,s.click()});else if(n==="preview"){const a=e.suffix.toLowerCase()==="jpeg".toLowerCase(),i=e.suffix.toLowerCase()==="pdf".toLowerCase(),s=e.suffix.toLowerCase()==="png".toLowerCase(),w=e.suffix.toLowerCase()==="jpg".toLowerCase();if(a||i||s||w){const d=document.createElement("a");d.href=e.path,d.click(),window.open(e.path)}else B({message:"该文件类型暂不支持预览",type:"warning"})}},q=n=>{r.current=n,m()},E=n=>{r.current=n,m()};return F(()=>{h.value=window.innerHeight-320}),(n,e)=>{const a=u("el-table-column"),i=u("el-button"),s=u("el-table"),w=u("el-pagination"),d=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:l(()=>[o(a,{label:"序号",type:"index",width:"100",align:"center"}),o(a,{prop:"name",label:"附件名称"}),o(a,{label:"附件类型"},{default:l(t=>[_("span",null,g(A(z)[t.row.targetType]),1)]),_:1}),o(a,{label:"文件类型"},{default:l(t=>[_("span",null,g(t.row.suffix),1)]),_:1}),o(a,{prop:"createdId",label:"上传人"}),o(a,{label:"上传时间"},{default:l(t=>[_("span",null,g(t.row.createdAt.split(" ")[0]),1)]),_:1}),o(a,{prop:"updatedId",label:"最后修改人"}),o(a,{label:"最后修改日期"},{default:l(t=>[_("span",null,g(t.row.updatedAt.split(" ")[0]),1)]),_:1}),o(a,{fixed:"right",label:"操作",width:"120"},{default:l(t=>[o(i,{link:"",type:"primary",size:"large",onClick:I=>b("preview",t.row)},{default:l(()=>[k("预览")]),_:2},1032,["onClick"]),o(i,{link:"",type:"primary",size:"large",onClick:I=>b("download",t.row)},{default:l(()=>[k("下载")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","height"])),[[d,c.value]]),o(w,{style:{"margin-top":"100px"},"current-page":r.current,"onUpdate:current-page":e[0]||(e[0]=t=>r.current=t),"page-size":r.size,"onUpdate:page-size":e[1]||(e[1]=t=>r.size=t),background:L.value,layout:"->,total, prev, pager, next, jumper",total:y.value,onSizeChange:q,onCurrentChange:E},null,8,["current-page","page-size","background","total"])])}}},de=R(M,[["__scopeId","data-v-56ff1069"]]);export{de as default};

View File

@ -1 +1 @@
import{h as q}from"./index-5982f61d.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as Q}from"./_plugin-vue_export-helper-c27b6911.js";import{u as Y,a as Z}from"./vue-router-3caf458d.js";/* empty css */import{l as g,f as y,a0 as U,k as ee,ag as r,o as p,c as v,d as a,S as n,M as $,u as b,F as I,a6 as R,a as o,W as _,R as te,X as oe,ax as ae,ay as le}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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 S=f=>(ae("data-v-fbd83d87"),f=f(),le(),f),ne={class:"tab-content"},se=S(()=>o("div",{class:"contents"},null,-1)),re={class:"table-buttons"},me={class:"recruit-add-table-container"},ce=S(()=>o("thead",null,[o("tr",null,[o("th",{class:"ratc-ind"}),o("th",{class:"ratc-ind"},"序号"),o("th",{class:"ratc-content"},"姓名"),o("th",{class:"ratc-content",style:{width:"42%"}},"职务")])],-1)),ie={class:"ratc-ind"},de={class:"ratc-ind"},ue={class:"fixed-form-item"},pe={__name:"fromtwo",setup(f){const x=Y(),i=Z(),V=g(()=>!["create","edit"].includes(i.query.type));g(()=>i.query.type==="create");const k=g(()=>i.query.type==="edit"),h=y(),l=U({mechments:[],attachments:[]}),B=U({creditCode:[{required:!0,message:"请输入统一社会信用代码",trigger:"blur"}],companyName:[{required:!0,message:"请输入企业名称",trigger:"blur"}]}),C=y(""),P=async e=>{e&&await e.validate(async(t,F)=>{})},L=e=>{e&&(e.resetFields(),l.mechments=[],l.attachments=[],c.value=[],C.value="")},M=()=>{x.go(-1)},c=y({}),z=e=>{},T=()=>{l.mechments.push({mechanismName:"",mechanismFunction:"",responsiblePerson:"",remark:""})},W=()=>{for(let e in c.value)c.value[e]&&l.mechments.splice(e,1);c.value=[]},N=y([]),X=()=>{q.get("/api/company/companyList").then(e=>{e.code==200&&(N.value=e.data)})},j=e=>{C.value=e,q.get(`/api/company/companyName?id=${e}`).then(t=>{t.code==200&&(l.creditCode=t.data.creditCode)})},A=()=>{var e;((e=i.query)==null?void 0:e.type)==="edit"&&i.query.id};return ee(()=>{X(),A()}),(e,t)=>{const F=r("el-option"),E=r("el-select"),G=r("el-form-item"),D=r("el-col"),d=r("el-button"),H=r("el-popconfirm"),J=r("el-checkbox"),w=r("el-input"),K=r("el-row"),O=r("el-form");return p(),v("div",ne,[a(O,{ref_key:"ruleFormRef",ref:h,model:l,rules:B,"label-width":"208px",disabled:b(V),class:$(b(V)?"el-form-diabled":"")},{default:n(()=>[a(K,null,{default:n(()=>[a(D,{span:24},{default:n(()=>[a(G,{label:"党组织书记:",prop:"companyName",class:$(b(k)?"form-item-diabled":"")},{default:n(()=>[a(E,{modelValue:l.companyName,"onUpdate:modelValue":t[0]||(t[0]=s=>l.companyName=s),placeholder:"请选择",onChange:j,disabled:b(k)},{default:n(()=>[(p(!0),v(I,null,R(N.value,s=>(p(),te(F,{label:s.companyName,value:s.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","disabled"])]),_:1},8,["class"])]),_:1}),se,a(D,{span:24},{default:n(()=>[o("div",re,[a(d,{type:"primary",onClick:t[1]||(t[1]=s=>T()),icon:"Plus"},{default:n(()=>[_(" 新增明细 ")]),_:1}),a(H,{title:"是否要删除吗?"},{reference:n(()=>[a(d,{type:"primary",onClick:t[2]||(t[2]=s=>W()),icon:"Delete"},{default:n(()=>[_(" 删除明细 ")]),_:1})]),_:1})]),o("div",me,[o("table",null,[ce,o("tbody",null,[(p(!0),v(I,null,R(l.mechments,(s,m)=>(p(),v("tr",null,[o("td",ie,[a(J,{modelValue:c.value[m],"onUpdate:modelValue":u=>c.value[m]=u,onChange:z},null,8,["modelValue","onUpdate:modelValue"])]),o("td",de,oe(m+1),1),o("td",null,[a(w,{modelValue:l.mechments[m].mechanismName,"onUpdate:modelValue":u=>l.mechments[m].mechanismName=u},null,8,["modelValue","onUpdate:modelValue"])]),o("td",null,[a(w,{modelValue:l.mechments[m].mechanismFunction,"onUpdate:modelValue":u=>l.mechments[m].mechanismFunction=u},null,8,["modelValue","onUpdate:modelValue"])])]))),256))])])])]),_:1})]),_:1}),o("div",ue,[a(d,{type:"primary",onClick:t[3]||(t[3]=s=>P(h.value))},{default:n(()=>[_(" 保存 ")]),_:1}),a(d,{type:"primary",onClick:t[4]||(t[4]=s=>M(h.value))},{default:n(()=>[_(" 关闭 ")]),_:1}),a(d,{onClick:t[5]||(t[5]=s=>L(h.value))},{default:n(()=>[_("重置")]),_:1})])]),_:1},8,["model","rules","disabled","class"])])}}},Me=Q(pe,[["__scopeId","data-v-fbd83d87"]]);export{Me as default};
import{h as q}from"./index-211a7271.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css */import{_ as Q}from"./_plugin-vue_export-helper-c27b6911.js";import{u as Y,a as Z}from"./vue-router-3caf458d.js";/* empty css */import{l as g,f as y,a0 as U,k as ee,ag as r,o as p,c as v,d as a,S as n,M as $,u as b,F as I,a6 as R,a as o,W as _,R as te,X as oe,ax as ae,ay as le}from"./@vue-99409b8e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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 S=f=>(ae("data-v-fbd83d87"),f=f(),le(),f),ne={class:"tab-content"},se=S(()=>o("div",{class:"contents"},null,-1)),re={class:"table-buttons"},me={class:"recruit-add-table-container"},ce=S(()=>o("thead",null,[o("tr",null,[o("th",{class:"ratc-ind"}),o("th",{class:"ratc-ind"},"序号"),o("th",{class:"ratc-content"},"姓名"),o("th",{class:"ratc-content",style:{width:"42%"}},"职务")])],-1)),ie={class:"ratc-ind"},de={class:"ratc-ind"},ue={class:"fixed-form-item"},pe={__name:"fromtwo",setup(f){const x=Y(),i=Z(),V=g(()=>!["create","edit"].includes(i.query.type));g(()=>i.query.type==="create");const k=g(()=>i.query.type==="edit"),h=y(),l=U({mechments:[],attachments:[]}),B=U({creditCode:[{required:!0,message:"请输入统一社会信用代码",trigger:"blur"}],companyName:[{required:!0,message:"请输入企业名称",trigger:"blur"}]}),C=y(""),P=async e=>{e&&await e.validate(async(t,F)=>{})},L=e=>{e&&(e.resetFields(),l.mechments=[],l.attachments=[],c.value=[],C.value="")},M=()=>{x.go(-1)},c=y({}),z=e=>{},T=()=>{l.mechments.push({mechanismName:"",mechanismFunction:"",responsiblePerson:"",remark:""})},W=()=>{for(let e in c.value)c.value[e]&&l.mechments.splice(e,1);c.value=[]},N=y([]),X=()=>{q.get("/api/company/companyList").then(e=>{e.code==200&&(N.value=e.data)})},j=e=>{C.value=e,q.get(`/api/company/companyName?id=${e}`).then(t=>{t.code==200&&(l.creditCode=t.data.creditCode)})},A=()=>{var e;((e=i.query)==null?void 0:e.type)==="edit"&&i.query.id};return ee(()=>{X(),A()}),(e,t)=>{const F=r("el-option"),E=r("el-select"),G=r("el-form-item"),D=r("el-col"),d=r("el-button"),H=r("el-popconfirm"),J=r("el-checkbox"),w=r("el-input"),K=r("el-row"),O=r("el-form");return p(),v("div",ne,[a(O,{ref_key:"ruleFormRef",ref:h,model:l,rules:B,"label-width":"208px",disabled:b(V),class:$(b(V)?"el-form-diabled":"")},{default:n(()=>[a(K,null,{default:n(()=>[a(D,{span:24},{default:n(()=>[a(G,{label:"党组织书记:",prop:"companyName",class:$(b(k)?"form-item-diabled":"")},{default:n(()=>[a(E,{modelValue:l.companyName,"onUpdate:modelValue":t[0]||(t[0]=s=>l.companyName=s),placeholder:"请选择",onChange:j,disabled:b(k)},{default:n(()=>[(p(!0),v(I,null,R(N.value,s=>(p(),te(F,{label:s.companyName,value:s.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue","disabled"])]),_:1},8,["class"])]),_:1}),se,a(D,{span:24},{default:n(()=>[o("div",re,[a(d,{type:"primary",onClick:t[1]||(t[1]=s=>T()),icon:"Plus"},{default:n(()=>[_(" 新增明细 ")]),_:1}),a(H,{title:"是否要删除吗?"},{reference:n(()=>[a(d,{type:"primary",onClick:t[2]||(t[2]=s=>W()),icon:"Delete"},{default:n(()=>[_(" 删除明细 ")]),_:1})]),_:1})]),o("div",me,[o("table",null,[ce,o("tbody",null,[(p(!0),v(I,null,R(l.mechments,(s,m)=>(p(),v("tr",null,[o("td",ie,[a(J,{modelValue:c.value[m],"onUpdate:modelValue":u=>c.value[m]=u,onChange:z},null,8,["modelValue","onUpdate:modelValue"])]),o("td",de,oe(m+1),1),o("td",null,[a(w,{modelValue:l.mechments[m].mechanismName,"onUpdate:modelValue":u=>l.mechments[m].mechanismName=u},null,8,["modelValue","onUpdate:modelValue"])]),o("td",null,[a(w,{modelValue:l.mechments[m].mechanismFunction,"onUpdate:modelValue":u=>l.mechments[m].mechanismFunction=u},null,8,["modelValue","onUpdate:modelValue"])])]))),256))])])])]),_:1})]),_:1}),o("div",ue,[a(d,{type:"primary",onClick:t[3]||(t[3]=s=>P(h.value))},{default:n(()=>[_(" 保存 ")]),_:1}),a(d,{type:"primary",onClick:t[4]||(t[4]=s=>M(h.value))},{default:n(()=>[_(" 关闭 ")]),_:1}),a(d,{onClick:t[5]||(t[5]=s=>L(h.value))},{default:n(()=>[_("重置")]),_:1})])]),_:1},8,["model","rules","disabled","class"])])}}},Me=Q(pe,[["__scopeId","data-v-fbd83d87"]]);export{Me as default};

View File

@ -1 +1 @@
System.register(["./index-legacy-d629f20a.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","./fromtwo.vue_vue_type_style_index_0_scoped_fbd83d87_lang-legacy-e9aa2c7e.js","./@vue-legacy-6c3c82af.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,t,n,s,c,u,o,d,m,i,r,y,p,g,f,h,v,_,j,b,V,k,x;return{setters:[e=>{a=e.h},null,null,e=>{t=e._},e=>{n=e.u,s=e.a},null,e=>{c=e.l,u=e.f,o=e.a0,d=e.k,m=e.ag,i=e.o,r=e.c,y=e.d,p=e.S,g=e.M,f=e.u,h=e.F,v=e.a6,_=e.a,j=e.W,b=e.R,V=e.X,k=e.ax,x=e.ay},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l=e=>(k("data-v-fbd83d87"),e=e(),x(),e),C={class:"tab-content"},N=l((()=>_("div",{class:"contents"},null,-1))),w={class:"table-buttons"},U={class:"recruit-add-table-container"},q=l((()=>_("thead",null,[_("tr",null,[_("th",{class:"ratc-ind"}),_("th",{class:"ratc-ind"},"序号"),_("th",{class:"ratc-content"},"姓名"),_("th",{class:"ratc-content",style:{width:"42%"}},"职务")])],-1))),F={class:"ratc-ind"},z={class:"ratc-ind"},P={class:"fixed-form-item"};e("default",t({__name:"fromtwo",setup(e){const l=n(),t=s(),k=c((()=>!["create","edit"].includes(t.query.type)));c((()=>"create"===t.query.type));const x=c((()=>"edit"===t.query.type)),R=u(),S=o({mechments:[],attachments:[]}),D=o({creditCode:[{required:!0,message:"请输入统一社会信用代码",trigger:"blur"}],companyName:[{required:!0,message:"请输入企业名称",trigger:"blur"}]}),I=u(""),L=u({}),M=e=>{console.log(L.value,e)},W=u([]),X=e=>{I.value=e,a.get(`/api/company/companyName?id=${e}`).then((e=>{200==e.code&&(S.creditCode=e.data.creditCode)}))};return d((()=>{a.get("/api/company/companyList").then((e=>{200==e.code&&(console.log(e.data),W.value=e.data)})),"edit"===t.query?.type&&t.query.id})),(e,a)=>{const t=m("el-option"),n=m("el-select"),s=m("el-form-item"),c=m("el-col"),u=m("el-button"),o=m("el-popconfirm"),d=m("el-checkbox"),$=m("el-input"),A=m("el-row"),B=m("el-form");return i(),r("div",C,[y(B,{ref_key:"ruleFormRef",ref:R,model:S,rules:D,"label-width":"208px",disabled:f(k),class:g(f(k)?"el-form-diabled":"")},{default:p((()=>[y(A,null,{default:p((()=>[y(c,{span:24},{default:p((()=>[y(s,{label:"党组织书记:",prop:"companyName",class:g(f(x)?"form-item-diabled":"")},{default:p((()=>[y(n,{modelValue:S.companyName,"onUpdate:modelValue":a[0]||(a[0]=e=>S.companyName=e),placeholder:"请选择",onChange:X,disabled:f(x)},{default:p((()=>[(i(!0),r(h,null,v(W.value,(e=>(i(),b(t,{label:e.companyName,value:e.id},null,8,["label","value"])))),256))])),_:1},8,["modelValue","disabled"])])),_:1},8,["class"])])),_:1}),N,y(c,{span:24},{default:p((()=>[_("div",w,[y(u,{type:"primary",onClick:a[1]||(a[1]=e=>{S.mechments.push({mechanismName:"",mechanismFunction:"",responsiblePerson:"",remark:""})}),icon:"Plus"},{default:p((()=>[j(" 新增明细 ")])),_:1}),y(o,{title:"是否要删除吗?"},{reference:p((()=>[y(u,{type:"primary",onClick:a[2]||(a[2]=e=>(()=>{for(let e in L.value)L.value[e]&&S.mechments.splice(e,1);L.value=[]})()),icon:"Delete"},{default:p((()=>[j(" 删除明细 ")])),_:1})])),_:1})]),_("div",U,[_("table",null,[q,_("tbody",null,[(i(!0),r(h,null,v(S.mechments,((e,l)=>(i(),r("tr",null,[_("td",F,[y(d,{modelValue:L.value[l],"onUpdate:modelValue":e=>L.value[l]=e,onChange:M},null,8,["modelValue","onUpdate:modelValue"])]),_("td",z,V(l+1),1),_("td",null,[y($,{modelValue:S.mechments[l].mechanismName,"onUpdate:modelValue":e=>S.mechments[l].mechanismName=e},null,8,["modelValue","onUpdate:modelValue"])]),_("td",null,[y($,{modelValue:S.mechments[l].mechanismFunction,"onUpdate:modelValue":e=>S.mechments[l].mechanismFunction=e},null,8,["modelValue","onUpdate:modelValue"])])])))),256))])])])])),_:1})])),_:1}),_("div",P,[y(u,{type:"primary",onClick:a[3]||(a[3]=e=>(async e=>{e&&await e.validate((async(e,l)=>{e?console.log(S):console.log("error submit!",l)}))})(R.value))},{default:p((()=>[j(" 保存 ")])),_:1}),y(u,{type:"primary",onClick:a[4]||(a[4]=e=>(R.value,void l.go(-1)))},{default:p((()=>[j(" 关闭 ")])),_:1}),y(u,{onClick:a[5]||(a[5]=e=>{var l;(l=R.value)&&(l.resetFields(),S.mechments=[],S.attachments=[],L.value=[],I.value="")})},{default:p((()=>[j("重置")])),_:1})])])),_:1},8,["model","rules","disabled","class"])])}}},[["__scopeId","data-v-fbd83d87"]]))}}}));
System.register(["./index-legacy-9d2bf9d5.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","./fromtwo.vue_vue_type_style_index_0_scoped_fbd83d87_lang-legacy-e9aa2c7e.js","./@vue-legacy-6c3c82af.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,t,n,s,c,u,o,d,m,i,r,y,p,g,f,h,v,_,j,b,V,k,x;return{setters:[e=>{a=e.h},null,null,e=>{t=e._},e=>{n=e.u,s=e.a},null,e=>{c=e.l,u=e.f,o=e.a0,d=e.k,m=e.ag,i=e.o,r=e.c,y=e.d,p=e.S,g=e.M,f=e.u,h=e.F,v=e.a6,_=e.a,j=e.W,b=e.R,V=e.X,k=e.ax,x=e.ay},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){const l=e=>(k("data-v-fbd83d87"),e=e(),x(),e),C={class:"tab-content"},N=l((()=>_("div",{class:"contents"},null,-1))),w={class:"table-buttons"},U={class:"recruit-add-table-container"},q=l((()=>_("thead",null,[_("tr",null,[_("th",{class:"ratc-ind"}),_("th",{class:"ratc-ind"},"序号"),_("th",{class:"ratc-content"},"姓名"),_("th",{class:"ratc-content",style:{width:"42%"}},"职务")])],-1))),F={class:"ratc-ind"},z={class:"ratc-ind"},P={class:"fixed-form-item"};e("default",t({__name:"fromtwo",setup(e){const l=n(),t=s(),k=c((()=>!["create","edit"].includes(t.query.type)));c((()=>"create"===t.query.type));const x=c((()=>"edit"===t.query.type)),R=u(),S=o({mechments:[],attachments:[]}),D=o({creditCode:[{required:!0,message:"请输入统一社会信用代码",trigger:"blur"}],companyName:[{required:!0,message:"请输入企业名称",trigger:"blur"}]}),I=u(""),L=u({}),M=e=>{console.log(L.value,e)},W=u([]),X=e=>{I.value=e,a.get(`/api/company/companyName?id=${e}`).then((e=>{200==e.code&&(S.creditCode=e.data.creditCode)}))};return d((()=>{a.get("/api/company/companyList").then((e=>{200==e.code&&(console.log(e.data),W.value=e.data)})),"edit"===t.query?.type&&t.query.id})),(e,a)=>{const t=m("el-option"),n=m("el-select"),s=m("el-form-item"),c=m("el-col"),u=m("el-button"),o=m("el-popconfirm"),d=m("el-checkbox"),$=m("el-input"),A=m("el-row"),B=m("el-form");return i(),r("div",C,[y(B,{ref_key:"ruleFormRef",ref:R,model:S,rules:D,"label-width":"208px",disabled:f(k),class:g(f(k)?"el-form-diabled":"")},{default:p((()=>[y(A,null,{default:p((()=>[y(c,{span:24},{default:p((()=>[y(s,{label:"党组织书记:",prop:"companyName",class:g(f(x)?"form-item-diabled":"")},{default:p((()=>[y(n,{modelValue:S.companyName,"onUpdate:modelValue":a[0]||(a[0]=e=>S.companyName=e),placeholder:"请选择",onChange:X,disabled:f(x)},{default:p((()=>[(i(!0),r(h,null,v(W.value,(e=>(i(),b(t,{label:e.companyName,value:e.id},null,8,["label","value"])))),256))])),_:1},8,["modelValue","disabled"])])),_:1},8,["class"])])),_:1}),N,y(c,{span:24},{default:p((()=>[_("div",w,[y(u,{type:"primary",onClick:a[1]||(a[1]=e=>{S.mechments.push({mechanismName:"",mechanismFunction:"",responsiblePerson:"",remark:""})}),icon:"Plus"},{default:p((()=>[j(" 新增明细 ")])),_:1}),y(o,{title:"是否要删除吗?"},{reference:p((()=>[y(u,{type:"primary",onClick:a[2]||(a[2]=e=>(()=>{for(let e in L.value)L.value[e]&&S.mechments.splice(e,1);L.value=[]})()),icon:"Delete"},{default:p((()=>[j(" 删除明细 ")])),_:1})])),_:1})]),_("div",U,[_("table",null,[q,_("tbody",null,[(i(!0),r(h,null,v(S.mechments,((e,l)=>(i(),r("tr",null,[_("td",F,[y(d,{modelValue:L.value[l],"onUpdate:modelValue":e=>L.value[l]=e,onChange:M},null,8,["modelValue","onUpdate:modelValue"])]),_("td",z,V(l+1),1),_("td",null,[y($,{modelValue:S.mechments[l].mechanismName,"onUpdate:modelValue":e=>S.mechments[l].mechanismName=e},null,8,["modelValue","onUpdate:modelValue"])]),_("td",null,[y($,{modelValue:S.mechments[l].mechanismFunction,"onUpdate:modelValue":e=>S.mechments[l].mechanismFunction=e},null,8,["modelValue","onUpdate:modelValue"])])])))),256))])])])])),_:1})])),_:1}),_("div",P,[y(u,{type:"primary",onClick:a[3]||(a[3]=e=>(async e=>{e&&await e.validate((async(e,l)=>{e?console.log(S):console.log("error submit!",l)}))})(R.value))},{default:p((()=>[j(" 保存 ")])),_:1}),y(u,{type:"primary",onClick:a[4]||(a[4]=e=>(R.value,void l.go(-1)))},{default:p((()=>[j(" 关闭 ")])),_:1}),y(u,{onClick:a[5]||(a[5]=e=>{var l;(l=R.value)&&(l.resetFields(),S.mechments=[],S.attachments=[],L.value=[],I.value="")})},{default:p((()=>[j("重置")])),_:1})])])),_:1},8,["model","rules","disabled","class"])])}}},[["__scopeId","data-v-fbd83d87"]]))}}}));

View File

@ -1 +1 @@
import{d as a}from"./pinia-8e4f3b7e.js";import{h as r}from"./index-5982f61d.js";const o=a("generalData",{state:()=>({PersonData:"",departmentTree:[]}),getters:{getPersonList:e=>{}},actions:{getDepartmentTreeselect:function(){let e=this;r.get("/api/system/dept/treeselect").then(t=>{e.departmentTree=t.data})}}});export{o as g};
import{d as a}from"./pinia-8e4f3b7e.js";import{h as r}from"./index-211a7271.js";const o=a("generalData",{state:()=>({PersonData:"",departmentTree:[]}),getters:{getPersonList:e=>{}},actions:{getDepartmentTreeselect:function(){let e=this;r.get("/api/system/dept/treeselect").then(t=>{e.departmentTree=t.data})}}});export{o as g};

View File

@ -1 +1 @@
System.register(["./pinia-legacy-f291703e.js","./index-legacy-d629f20a.js"],(function(e,t){"use strict";var s,n;return{setters:[e=>{s=e.d},e=>{n=e.h}],execute:function(){e("g",s("generalData",{state:()=>({PersonData:"",departmentTree:[]}),getters:{getPersonList:e=>{}},actions:{getDepartmentTreeselect:function(){let e=this;n.get("/api/system/dept/treeselect").then((t=>{e.departmentTree=t.data}))}}}))}}}));
System.register(["./pinia-legacy-f291703e.js","./index-legacy-9d2bf9d5.js"],(function(e,t){"use strict";var s,n;return{setters:[e=>{s=e.d},e=>{n=e.h}],execute:function(){e("g",s("generalData",{state:()=>({PersonData:"",departmentTree:[]}),getters:{getPersonList:e=>{}},actions:{getDepartmentTreeselect:function(){let e=this;n.get("/api/system/dept/treeselect").then((t=>{e.departmentTree=t.data}))}}}))}}}));

View File

@ -1 +1 @@
import{d as p}from"./pinia-8e4f3b7e.js";import{g as F}from"./generalData-a8ab0b5c.js";import{u as N,a as C}from"./vue-router-3caf458d.js";import"./index-5982f61d.js";import{a0 as x,ag as d,o,c as s,a,X as _,u as V,F as B,a6 as D,d as r,S as n,W as i}from"./@vue-99409b8e.js";const $=p("mian",{state:()=>({configName:" ",configValue:""}),actions:{reviseConfigName(t){this.$patch(e=>{e.configName=t})},reviseConfigValue(t){this.$patch(e=>{e.configName=t})}}}),T=p("designForm",{state:()=>({formDetail:{title:"",intro:"",files:[],forms:[]}}),actions:{}});const j={class:"design-header"},w={class:"nav"},M={class:"oper"},O={__name:"header",emits:["submitForm"],setup(t,{emit:e}){const{getDepartmentTreeselect:g}=F(),f=$();T(),g();const c=N(),l=C(),h=x({routers:[{title:"表单设计",path:`/design/designForm/${l.params.id}`},{title:"流程设计",path:`/design/designFlow/${l.params.id}`}]}),v=()=>{c.push("/")},y=()=>{e("submitForm")},S=()=>{c.push("/auditSetting")};return(R,z)=>{const b=d("router-link"),m=d("el-button");return o(),s("div",j,[a("h2",{class:"title",onClick:v},_(V(f).configName),1),a("div",w,[(o(!0),s(B,null,D(h.routers,(u,k)=>(o(),s("div",{class:"nav-box",key:k},[r(b,{to:{path:u.path},"active-class":"on"},{default:n(()=>[i(_(u.title),1)]),_:2},1032,["to"])]))),128))]),a("div",M,[r(m,{type:"primary",onClick:y},{default:n(()=>[i("保存")]),_:1}),r(m,{type:"primary",onClick:S},{default:n(()=>[i("返回")]),_:1})])])}}},X=Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"}));export{O as _,T as d,X as h};
import{d as p}from"./pinia-8e4f3b7e.js";import{g as F}from"./generalData-6cf50580.js";import{u as N,a as C}from"./vue-router-3caf458d.js";import"./index-211a7271.js";import{a0 as x,ag as d,o,c as s,a,X as _,u as V,F as B,a6 as D,d as r,S as n,W as i}from"./@vue-99409b8e.js";const $=p("mian",{state:()=>({configName:" ",configValue:""}),actions:{reviseConfigName(t){this.$patch(e=>{e.configName=t})},reviseConfigValue(t){this.$patch(e=>{e.configName=t})}}}),T=p("designForm",{state:()=>({formDetail:{title:"",intro:"",files:[],forms:[]}}),actions:{}});const j={class:"design-header"},w={class:"nav"},M={class:"oper"},O={__name:"header",emits:["submitForm"],setup(t,{emit:e}){const{getDepartmentTreeselect:g}=F(),f=$();T(),g();const c=N(),l=C(),h=x({routers:[{title:"表单设计",path:`/design/designForm/${l.params.id}`},{title:"流程设计",path:`/design/designFlow/${l.params.id}`}]}),v=()=>{c.push("/")},y=()=>{e("submitForm")},S=()=>{c.push("/auditSetting")};return(R,z)=>{const b=d("router-link"),m=d("el-button");return o(),s("div",j,[a("h2",{class:"title",onClick:v},_(V(f).configName),1),a("div",w,[(o(!0),s(B,null,D(h.routers,(u,k)=>(o(),s("div",{class:"nav-box",key:k},[r(b,{to:{path:u.path},"active-class":"on"},{default:n(()=>[i(_(u.title),1)]),_:2},1032,["to"])]))),128))]),a("div",M,[r(m,{type:"primary",onClick:y},{default:n(()=>[i("保存")]),_:1}),r(m,{type:"primary",onClick:S},{default:n(()=>[i("返回")]),_:1})])])}}},X=Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"}));export{O as _,T as d,X as h};

View File

@ -1 +0,0 @@
import{a0 as N,f as g,ag as r,o as R,c as b,a as l,d as t,S as n,a7 as C}from"./@vue-99409b8e.js";import{u as U,a as B}from"./vue-router-3caf458d.js";import{t as w,a as p,h as E,s as d}from"./index-5982f61d.js";import"./jsencrypt-92720e80.js";import{u as K}from"./perms-16f64a29.js";import{E as v}from"./element-plus-15eb8ab3.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const P=""+new URL("login_02-7ace4b93.png",import.meta.url).href;const L={id:"login"},S=l("div",{class:"login_left"},[l("img",{src:P,alt:""})],-1),q={id:"login_form"},z=l("h2",{class:"title"},"账号登录",-1),D=l("span",{class:"info1"},"登 录",-1),ie={__name:"index",setup(M){const h=U(),y=B(),k=K(),a=N({user:"",password:""}),i=g(!1),u=g();y.query.type==="logout"&&(w.data.clear("user"),p("token"),p("username"),p("deptName"));const _=async()=>{u.value.validate(async c=>{if(c){i.value=!0;var o={userName:a.user,password:a.password};E.post("/api/auth/login",o).then(e=>{if(e.code==200){var s={token:e.data.tokenValue,name:e.data.name,menus:e.data.menus,perms:e.data.perms,need_init_password:e.data.need_init_password,deptName:e.data.deptName};w.data.set("user",s),d("token",s.token),d("username",s.name),d("deptName",s.deptName),k.changePerms(e.data.perms),v.success("登录成功"),i.value=!1,h.push("/")}else v.error(e.message),i.value=!1})}})};return(c,o)=>{const e=r("el-input"),s=r("el-form-item"),f=r("el-row"),V=r("el-button"),x=r("el-form");return R(),b("div",L,[S,l("div",q,[z,t(x,{model:a,size:"large",ref_key:"formRef",ref:u,onKeyup:C(_,["enter","native"])},{default:n(()=>[t(f,{span:22},{default:n(()=>[t(s,{prop:"user"},{default:n(()=>[t(e,{modelValue:a.user,"onUpdate:modelValue":o[0]||(o[0]=m=>a.user=m),style:{width:"100%"},placeholder:"请输入登录账号","prefix-icon":"User"},null,8,["modelValue"])]),_:1})]),_:1}),t(f,{span:22},{default:n(()=>[t(s,{prop:"password"},{default:n(()=>[t(e,{modelValue:a.password,"onUpdate:modelValue":o[1]||(o[1]=m=>a.password=m),style:{width:"100%"},type:"password",placeholder:"请输入登录密码","prefix-icon":"Lock","show-password":""},null,8,["modelValue"])]),_:1})]),_:1}),t(V,{class:"login-btn-submit",type:"primary",round:"",onClick:o[2]||(o[2]=m=>_()),loading:i.value,color:"#729880",style:{width:"100%"}},{default:n(()=>[D]),_:1},8,["loading"])]),_:1},8,["model","onKeyup"])])])}}};export{ie 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

View File

@ -0,0 +1 @@
import{a0 as N,f as g,ag as r,o as R,c as b,a as l,d as t,S as n,a7 as C}from"./@vue-99409b8e.js";import{u as U,a as B}from"./vue-router-3caf458d.js";import{t as w,a as p,h as E,s as d}from"./index-211a7271.js";import"./jsencrypt-92720e80.js";import{u as K}from"./perms-33c87bb6.js";import{E as v}from"./element-plus-15eb8ab3.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";const P=""+new URL("login_02-7ace4b93.png",import.meta.url).href;const L={id:"login"},S=l("div",{class:"login_left"},[l("img",{src:P,alt:""})],-1),q={id:"login_form"},z=l("h2",{class:"title"},"账号登录",-1),D=l("span",{class:"info1"},"登 录",-1),me={__name:"index",setup(I){const h=U(),y=B(),k=K(),a=N({user:"",password:""}),m=g(!1),u=g();y.query.type==="logout"&&(w.data.clear("user"),p("token"),p("username"),p("deptName"));const _=async()=>{u.value.validate(async c=>{if(c){m.value=!0;var o={userName:a.user,password:a.password};E.post("/api/auth/login",o).then(e=>{if(e.code==200){var s={token:e.data.tokenValue,name:e.data.name,menus:e.data.menus,perms:e.data.perms,need_init_password:e.data.need_init_password,deptName:e.data.deptName,userImage:e.data.image};w.data.set("user",s),d("token",s.token),d("username",s.name),d("deptName",s.deptName),k.changePerms(e.data.perms),v.success("登录成功"),m.value=!1,h.push("/")}else v.error(e.message),m.value=!1})}})};return(c,o)=>{const e=r("el-input"),s=r("el-form-item"),f=r("el-row"),V=r("el-button"),x=r("el-form");return R(),b("div",L,[S,l("div",q,[z,t(x,{model:a,size:"large",ref_key:"formRef",ref:u,onKeyup:C(_,["enter","native"])},{default:n(()=>[t(f,{span:22},{default:n(()=>[t(s,{prop:"user"},{default:n(()=>[t(e,{modelValue:a.user,"onUpdate:modelValue":o[0]||(o[0]=i=>a.user=i),style:{width:"100%"},placeholder:"请输入登录账号","prefix-icon":"User"},null,8,["modelValue"])]),_:1})]),_:1}),t(f,{span:22},{default:n(()=>[t(s,{prop:"password"},{default:n(()=>[t(e,{modelValue:a.password,"onUpdate:modelValue":o[1]||(o[1]=i=>a.password=i),style:{width:"100%"},type:"password",placeholder:"请输入登录密码","prefix-icon":"Lock","show-password":""},null,8,["modelValue"])]),_:1})]),_:1}),t(V,{class:"login-btn-submit",type:"primary",round:"",onClick:o[2]||(o[2]=i=>_()),loading:m.value,color:"#729880",style:{width:"100%"}},{default:n(()=>[D]),_:1},8,["loading"])]),_:1},8,["model","onKeyup"])])])}}};export{me as default};

View File

@ -1 +1 @@
import{ag as a,o as u,R as l,as as f}from"./@vue-99409b8e.js";import{u as d,s as g,m as _,r as y}from"./index-5982f61d.js";import{i as h,z as v}from"./element-plus-15eb8ab3.js";import{Q as P}from"./@element-plus-12a4a04c.js";import{u as w}from"./perms-16f64a29.js";import{c as b}from"./pinia-8e4f3b7e.js";import"./vue-router-3caf458d.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./vue-demi-71ba0ef2.js";function k(){import("data:text/javascript,")}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))n(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function m(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerpolicy&&(r.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?r.credentials="include":e.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(e){if(e.ep)return;e.ep=!0;const r=m(e);fetch(e.href,r)}})();const L={__name:"App",setup(t){const o=d();return document.title=o.title,(m,n)=>{const e=a("router-view");return u(),l(e)}}};let c=[];function p(t,o){c=w(),o&&!c.perms.includes(o)&&t.parentNode&&t.parentNode.removeChild(t)}const N={mounted(t,o){p(t,o.value)},updated(t,o){p(t,o.value)}};g("host",window.location.host);const O=b(),i=f(L);for(const[t,o]of Object.entries(P))i.component(t,o);i.use(h,{locale:v});i.config.globalProperties.$msg=_;i.use(O);i.use(y);i.directive("permission",N);i.mount("#app");export{k as __vite_legacy_guard};
import{ag as a,o as u,R as l,as as f}from"./@vue-99409b8e.js";import{u as d,s as g,m as _,r as y}from"./index-211a7271.js";import{i as h,z as v}from"./element-plus-15eb8ab3.js";import{Q as P}from"./@element-plus-12a4a04c.js";import{u as w}from"./perms-33c87bb6.js";import{c as b}from"./pinia-8e4f3b7e.js";import"./vue-router-3caf458d.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.js";import"./memoize-one-297ddbcb.js";import"./escape-html-1d60d822.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-f831ca66.js";import"./vue-demi-71ba0ef2.js";function k(){import("data:text/javascript,")}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))n(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function m(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerpolicy&&(r.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?r.credentials="include":e.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(e){if(e.ep)return;e.ep=!0;const r=m(e);fetch(e.href,r)}})();const L={__name:"App",setup(t){const o=d();return document.title=o.title,(m,n)=>{const e=a("router-view");return u(),l(e)}}};let c=[];function p(t,o){c=w(),o&&!c.perms.includes(o)&&t.parentNode&&t.parentNode.removeChild(t)}const N={mounted(t,o){p(t,o.value)},updated(t,o){p(t,o.value)}};g("host",window.location.host);const O=b(),i=f(L);for(const[t,o]of Object.entries(P))i.component(t,o);i.use(h,{locale:v});i.config.globalProperties.$msg=_;i.use(O);i.use(y);i.directive("permission",N);i.mount("#app");export{k as __vite_legacy_guard};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{f as s,o,R as p,S as l,T as i,d as c,V as y,Y as m}from"./@vue-99409b8e.js";import{T as v}from"./Tab-4f76561e.js";import f from"./Personnel-817684b4.js";import q from"./Log-d351815e.js";import d from"./Record-aa4125b0.js";import{a as h}from"./vue-router-3caf458d.js";import"./index-5982f61d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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"./_plugin-vue_export-helper-c27b6911.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css *//* empty css */import"./useDictData-51355500.js";import"./Upload-1873d3e6.js";import"./Approve-f2c5f731.js";const Z={__name:"index",setup($){const r=h(),a=s(["人员信息"]);(r.query.type==="edit"||r.query.type==="change"||r.query.type==="approve"||r.query.type==="approve_change")&&(a.value=["人员信息","处理日志","变更记录"]);const u=s("人员信息"),n=e=>{u.value=e};return(e,g)=>(o(),p(v,{tabList:a.value,isActive:u.value,onClickItem:n},{default:l(({isActive:t})=>[i(c(f,null,null,512),[[m,t==="人员信息"]]),e.$route.query.type==="edit"||e.$route.query.type==="change"||e.$route.query.type==="approve"||e.$route.query.type==="approve_change"?i((o(),p(q,{key:0},null,512)),[[m,t==="处理日志"]]):y("",!0),e.$route.query.type==="edit"||e.$route.query.type==="change"||e.$route.query.type==="approve"||e.$route.query.type==="approve_change"?i((o(),p(d,{key:1},null,512)),[[m,t==="变更记录"]]):y("",!0)]),_:1},8,["tabList","isActive"]))}};export{Z as default};
import{f as s,o,R as p,S as l,T as i,d as c,V as y,Y as m}from"./@vue-99409b8e.js";import{T as v}from"./Tab-fb31f3dc.js";import f from"./Personnel-784dbd64.js";import q from"./Log-8c89f64b.js";import d from"./Record-7c305e06.js";import{a as h}from"./vue-router-3caf458d.js";import"./index-211a7271.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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"./_plugin-vue_export-helper-c27b6911.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css *//* empty css */import"./useDictData-a1e23c2b.js";import"./Upload-361f231a.js";import"./Approve-f2c5f731.js";const Z={__name:"index",setup($){const r=h(),a=s(["人员信息"]);(r.query.type==="edit"||r.query.type==="change"||r.query.type==="approve"||r.query.type==="approve_change")&&(a.value=["人员信息","处理日志","变更记录"]);const u=s("人员信息"),n=e=>{u.value=e};return(e,g)=>(o(),p(v,{tabList:a.value,isActive:u.value,onClickItem:n},{default:l(({isActive:t})=>[i(c(f,null,null,512),[[m,t==="人员信息"]]),e.$route.query.type==="edit"||e.$route.query.type==="change"||e.$route.query.type==="approve"||e.$route.query.type==="approve_change"?i((o(),p(q,{key:0},null,512)),[[m,t==="处理日志"]]):y("",!0),e.$route.query.type==="edit"||e.$route.query.type==="change"||e.$route.query.type==="approve"||e.$route.query.type==="approve_change"?i((o(),p(d,{key:1},null,512)),[[m,t==="变更记录"]]):y("",!0)]),_:1},8,["tabList","isActive"]))}};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

View File

@ -1 +1 @@
System.register(["./@vue-legacy-6c3c82af.js","./Tab-legacy-8cc344d1.js","./Personnel-legacy-9caaa0c7.js","./Log-legacy-47c40233.js","./Record-legacy-8f2290a5.js","./vue-router-legacy-68eee699.js","./index-legacy-d629f20a.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","./_plugin-vue_export-helper-legacy-762b7923.js","./lodash.clonedeep-legacy-930370dc.js","./Upload.vue_vue_type_style_index_0_scoped_c84f6ff9_lang-legacy-a323fc02.js","./Personnel.vue_vue_type_style_index_0_scoped_9c2b1892_lang-legacy-a8a5e4f0.js","./useDictData-legacy-4dffc23f.js","./Upload-legacy-2f5417f1.js","./Approve-legacy-88ac8cdb.js"],(function(e,l){"use strict";var u,a,n,s,t,y,c,r,o,p,g,j,i;return{setters:[e=>{u=e.f,a=e.o,n=e.R,s=e.S,t=e.T,y=e.d,c=e.V,r=e.Y},e=>{o=e.T},e=>{p=e.default},e=>{g=e.default},e=>{j=e.default},e=>{i=e.a},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",{__name:"index",setup(e){const l=i(),d=u(["人员信息"]);"edit"!==l.query.type&&"change"!==l.query.type&&"approve"!==l.query.type&&"approve_change"!==l.query.type||(d.value=["人员信息","处理日志","变更记录"]);const v=u("人员信息"),_=e=>{v.value=e};return(e,l)=>(a(),n(o,{tabList:d.value,isActive:v.value,onClickItem:_},{default:s((({isActive:l})=>[t(y(p,null,null,512),[[r,"人员信息"===l]]),"edit"===e.$route.query.type||"change"===e.$route.query.type||"approve"===e.$route.query.type||"approve_change"===e.$route.query.type?t((a(),n(g,{key:0},null,512)),[[r,"处理日志"===l]]):c("",!0),"edit"===e.$route.query.type||"change"===e.$route.query.type||"approve"===e.$route.query.type||"approve_change"===e.$route.query.type?t((a(),n(j,{key:1},null,512)),[[r,"变更记录"===l]]):c("",!0)])),_:1},8,["tabList","isActive"]))}})}}}));
System.register(["./@vue-legacy-6c3c82af.js","./Tab-legacy-83c28bb7.js","./Personnel-legacy-c1848ab3.js","./Log-legacy-ebbae8e9.js","./Record-legacy-af6e74a8.js","./vue-router-legacy-68eee699.js","./index-legacy-9d2bf9d5.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","./_plugin-vue_export-helper-legacy-762b7923.js","./lodash.clonedeep-legacy-930370dc.js","./Upload.vue_vue_type_style_index_0_scoped_c84f6ff9_lang-legacy-a323fc02.js","./Personnel.vue_vue_type_style_index_0_scoped_fd110557_lang-legacy-a0eba994.js","./useDictData-legacy-2ef39914.js","./Upload-legacy-fcf179a5.js","./Approve-legacy-88ac8cdb.js"],(function(e,l){"use strict";var u,a,n,s,t,y,c,r,o,p,g,j,i;return{setters:[e=>{u=e.f,a=e.o,n=e.R,s=e.S,t=e.T,y=e.d,c=e.V,r=e.Y},e=>{o=e.T},e=>{p=e.default},e=>{g=e.default},e=>{j=e.default},e=>{i=e.a},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){e("default",{__name:"index",setup(e){const l=i(),d=u(["人员信息"]);"edit"!==l.query.type&&"change"!==l.query.type&&"approve"!==l.query.type&&"approve_change"!==l.query.type||(d.value=["人员信息","处理日志","变更记录"]);const v=u("人员信息"),_=e=>{v.value=e};return(e,l)=>(a(),n(o,{tabList:d.value,isActive:v.value,onClickItem:_},{default:s((({isActive:l})=>[t(y(p,null,null,512),[[r,"人员信息"===l]]),"edit"===e.$route.query.type||"change"===e.$route.query.type||"approve"===e.$route.query.type||"approve_change"===e.$route.query.type?t((a(),n(g,{key:0},null,512)),[[r,"处理日志"===l]]):c("",!0),"edit"===e.$route.query.type||"change"===e.$route.query.type||"approve"===e.$route.query.type||"approve_change"===e.$route.query.type?t((a(),n(j,{key:1},null,512)),[[r,"变更记录"===l]]):c("",!0)])),_:1},8,["tabList","isActive"]))}})}}}));

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

View File

@ -1 +1 @@
import{T as m}from"./Tab-4f76561e.js";import p from"./fromone-9048b688.js";import"./index-5982f61d.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css *//* empty css */import{a0 as e,f as a,o as s,R as c,S as n,d as l}from"./@vue-99409b8e.js";import"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import"./Upload-1873d3e6.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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 J={__name:"innTionDetails",setup(_){const o=e([]),t=a("机构信息"),r=i=>{t.value=i};return(i,f)=>(s(),c(m,{tabList:o,isActive:t.value,onClickItem:r},{default:n(({isActive:u})=>[l(p)]),_:1},8,["tabList","isActive"]))}};export{J as default};
import{T as m}from"./Tab-fb31f3dc.js";import p from"./fromone-a7b269c8.js";import"./index-211a7271.js";import"./lodash.clonedeep-89ac42ac.js";/* empty css *//* empty css */import{a0 as e,f as a,o as s,R as c,S as n,d as l}from"./@vue-99409b8e.js";import"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import"./Upload-361f231a.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./element-plus-15eb8ab3.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@element-plus-12a4a04c.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./dayjs-9729b6d9.js";import"./async-validator-a1293421.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 J={__name:"innTionDetails",setup(_){const o=e([]),t=a("机构信息"),r=i=>{t.value=i};return(i,f)=>(s(),c(m,{tabList:o,isActive:t.value,onClickItem:r},{default:n(({isActive:u})=>[l(p)]),_:1},8,["tabList","isActive"]))}};export{J as default};

View File

@ -1 +1 @@
System.register(["./Tab-legacy-8cc344d1.js","./fromone-legacy-5e63f117.js","./index-legacy-d629f20a.js","./lodash.clonedeep-legacy-930370dc.js","./Upload.vue_vue_type_style_index_0_scoped_c84f6ff9_lang-legacy-a323fc02.js","./fromtwo.vue_vue_type_style_index_0_scoped_fbd83d87_lang-legacy-e9aa2c7e.js","./@vue-legacy-6c3c82af.js","./_plugin-vue_export-helper-legacy-762b7923.js","./Personnel.vue_vue_type_style_index_0_scoped_9c2b1892_lang-legacy-a8a5e4f0.js","./Upload-legacy-2f5417f1.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(l,e){"use strict";var s,a,n,u,c,t,y,g;return{setters:[l=>{s=l.T},l=>{a=l.default},null,null,null,null,l=>{n=l.a0,u=l.f,c=l.o,t=l.R,y=l.S,g=l.d},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){l("default",{__name:"innTionDetails",setup(l){const e=n([]),o=u("机构信息"),j=l=>{o.value=l};return(l,n)=>(c(),t(s,{tabList:e,isActive:o.value,onClickItem:j},{default:y((({isActive:l})=>[g(a)])),_:1},8,["tabList","isActive"]))}})}}}));
System.register(["./Tab-legacy-83c28bb7.js","./fromone-legacy-d0f8540f.js","./index-legacy-9d2bf9d5.js","./lodash.clonedeep-legacy-930370dc.js","./Upload.vue_vue_type_style_index_0_scoped_c84f6ff9_lang-legacy-a323fc02.js","./fromtwo.vue_vue_type_style_index_0_scoped_fbd83d87_lang-legacy-e9aa2c7e.js","./@vue-legacy-6c3c82af.js","./_plugin-vue_export-helper-legacy-762b7923.js","./Personnel.vue_vue_type_style_index_0_scoped_fd110557_lang-legacy-a0eba994.js","./Upload-legacy-fcf179a5.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(l,e){"use strict";var s,a,n,u,c,t,y,g;return{setters:[l=>{s=l.T},l=>{a=l.default},null,null,null,null,l=>{n=l.a0,u=l.f,c=l.o,t=l.R,y=l.S,g=l.d},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){l("default",{__name:"innTionDetails",setup(l){const e=n([]),o=u("机构信息"),j=l=>{o.value=l};return(l,n)=>(c(),t(s,{tabList:e,isActive:o.value,onClickItem:j},{default:y((({isActive:l})=>[g(a)])),_:1},8,["tabList","isActive"]))}})}}}));

View File

@ -1 +1 @@
import{_ as M}from"./TableBody-d97f5e0f.js";import{y as w}from"./yd_diaInput-342d82aa.js";import{h as p}from"./index-5982f61d.js";import{u as N}from"./vue-router-3caf458d.js";import{_ as P}from"./_plugin-vue_export-helper-c27b6911.js";import{E as u}from"./element-plus-15eb8ab3.js";import{f as r,a0 as s,k as S,o as V,c as A,d,S as B,a as H,X as L,P as F}from"./@vue-99409b8e.js";import"./@element-plus-12a4a04c.js";import"./lodash.clonedeep-89ac42ac.js";import"./dayjs-9729b6d9.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-a1293421.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"},C={__name:"innTionIndex",setup(E){const i=N(),m=r(!1),g=r({type:"create",name:"新增",id:""}),a=s({tableType:{selection:!0,tableLoading:!1,tableIndex:!1},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增申报",icon:"Plus",isOpen:"custom",disabled:!1},{type:"custom",name:"check",title:"查看",icon:"Printer",isOpen:"single"},{type:"custom",name:"accessory",title:"附件",icon:"Printer",isOpen:"single"}]},{buttons:[{name:"mixInput",options:[{label:"企业名称",value:"companyName"}]},"bulkDelete"]}],tableList:[{name:"companyName",label:"企业名称",show:!0},{name:"updatedName",label:"最后修改人",show:!0},{type:"slot",name:"updatedAt",label:"最后修改日期",show:!0,sortable:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),b=s([{type:"input",title:"企业名称",model:"name",placeholder:"请输入参数名称",row:8,control:!0},{type:"input",title:"最后修改人",placeholder:"请输入参数键名",model:"paramKey",control:!0,row:8},{type:"datetime",title:"最后修改日期",model:"paramValue",placeholder:"请输入参数键值",row:8,control:!0}]),y=r({name:"",paramKey:"",paramValue:""}),h=(e,t,n)=>{},l=r({current:a.pagination.current,size:a.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0}),o=()=>{a.tableType.tableLoading=!0,p.get("/api/organization/selectOrganizationList",l.value).then(e=>{e.code==200&&(a.tableData=e.data.records,a.tableType.tableLoading=!1,a.pagination.total=e.data.total)}).catch(()=>{a.tableType.tableLoading=!1})},f=({type:e,data:t})=>{switch(e){case"create":I();break;case"edit":T(t);break;case"bulkDelete":x(t);break;case"derive":break;case"accessory":v(t);break;case"mixInput":k(t);break;case"check":z(t);break}},c=s({value:!1,changeValue:e=>{c.value=e}}),_=e=>{a.pagination.current=e,l.value.current=e,o()},v=e=>{const t=e[0].id;i.push(`/grain/detals?id=${t}&type=organization`)},x=e=>{const t=e.map(n=>n.id);p.post("/api/organization/deleteOrganization",{ids:t}).then(n=>{n.code==200?(u({message:"删除成功",type:"success"}),o()):u.error(n.message)})},k=e=>{if(e.seachMixSelect.value===""||e.seachMixInput.value===""){l.value={current:a.pagination.current,size:a.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0},o();return}l.value[e.seachMixSelect.value]=e.seachMixInput.value,o()},I=()=>{i.push("/grain/innDetails?type=create")},T=e=>{i.push("/grain/innDetails?type=edit&id="+e[0].id)},z=e=>{i.push("/grain/innDetails?type=check&id="+e[0].id)};return S(()=>{o()}),(e,t)=>(V(),A("div",O,[d(M,F(a,{onHandleTableHeader:f,onHandleTablePagination:_}),{updatedAt:B(({currentCol:n,currentData:D})=>[H("span",null,L(D.split(" ")[0]),1)]),_:1},16),d(w,{inputArray:b,onHandleFrom:h,dialogVisible:c,control:m.value,buttonName:g.value,ruleForm:y.value},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm"])]))}},ue=P(C,[["__scopeId","data-v-17ab9844"]]);export{ue as default};
import{_ as M}from"./TableBody-d97f5e0f.js";import{y as w}from"./yd_diaInput-22ecf497.js";import{h as p}from"./index-211a7271.js";import{u as N}from"./vue-router-3caf458d.js";import{_ as P}from"./_plugin-vue_export-helper-c27b6911.js";import{E as u}from"./element-plus-15eb8ab3.js";import{f as r,a0 as s,k as S,o as V,c as A,d,S as B,a as H,X as L,P as F}from"./@vue-99409b8e.js";import"./@element-plus-12a4a04c.js";import"./lodash.clonedeep-89ac42ac.js";import"./dayjs-9729b6d9.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-a1293421.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"},C={__name:"innTionIndex",setup(E){const i=N(),m=r(!1),g=r({type:"create",name:"新增",id:""}),a=s({tableType:{selection:!0,tableLoading:!1,tableIndex:!1},tableHeader:[{buttons:[{type:"custom",name:"create",title:"新增申报",icon:"Plus",isOpen:"custom",disabled:!1},{type:"custom",name:"check",title:"查看",icon:"Printer",isOpen:"single"},{type:"custom",name:"accessory",title:"附件",icon:"Printer",isOpen:"single"}]},{buttons:[{name:"mixInput",options:[{label:"企业名称",value:"companyName"}]},"bulkDelete"]}],tableList:[{name:"companyName",label:"企业名称",show:!0},{name:"updatedName",label:"最后修改人",show:!0},{type:"slot",name:"updatedAt",label:"最后修改日期",show:!0,sortable:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),b=s([{type:"input",title:"企业名称",model:"name",placeholder:"请输入参数名称",row:8,control:!0},{type:"input",title:"最后修改人",placeholder:"请输入参数键名",model:"paramKey",control:!0,row:8},{type:"datetime",title:"最后修改日期",model:"paramValue",placeholder:"请输入参数键值",row:8,control:!0}]),y=r({name:"",paramKey:"",paramValue:""}),h=(e,t,n)=>{},l=r({current:a.pagination.current,size:a.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0}),o=()=>{a.tableType.tableLoading=!0,p.get("/api/organization/selectOrganizationList",l.value).then(e=>{e.code==200&&(a.tableData=e.data.records,a.tableType.tableLoading=!1,a.pagination.total=e.data.total)}).catch(()=>{a.tableType.tableLoading=!1})},f=({type:e,data:t})=>{switch(e){case"create":I();break;case"edit":T(t);break;case"bulkDelete":x(t);break;case"derive":break;case"accessory":v(t);break;case"mixInput":k(t);break;case"check":z(t);break}},c=s({value:!1,changeValue:e=>{c.value=e}}),_=e=>{a.pagination.current=e,l.value.current=e,o()},v=e=>{const t=e[0].id;i.push(`/grain/detals?id=${t}&type=organization`)},x=e=>{const t=e.map(n=>n.id);p.post("/api/organization/deleteOrganization",{ids:t}).then(n=>{n.code==200?(u({message:"删除成功",type:"success"}),o()):u.error(n.message)})},k=e=>{if(e.seachMixSelect.value===""||e.seachMixInput.value===""){l.value={current:a.pagination.current,size:a.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0},o();return}l.value[e.seachMixSelect.value]=e.seachMixInput.value,o()},I=()=>{i.push("/grain/innDetails?type=create")},T=e=>{i.push("/grain/innDetails?type=edit&id="+e[0].id)},z=e=>{i.push("/grain/innDetails?type=check&id="+e[0].id)};return S(()=>{o()}),(e,t)=>(V(),A("div",O,[d(M,F(a,{onHandleTableHeader:f,onHandleTablePagination:_}),{updatedAt:B(({currentCol:n,currentData:D})=>[H("span",null,L(D.split(" ")[0]),1)]),_:1},16),d(w,{inputArray:b,onHandleFrom:h,dialogVisible:c,control:m.value,buttonName:g.value,ruleForm:y.value},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm"])]))}},ue=P(C,[["__scopeId","data-v-17ab9844"]]);export{ue as default};

View File

@ -1 +1 @@
import{_ as H}from"./TableBody-d97f5e0f.js";import{y as B}from"./yd_diaInput-342d82aa.js";import{h as i}from"./index-5982f61d.js";import{E as m}from"./element-plus-15eb8ab3.js";import{f,a0 as c,k as K,o as S,c as F,d as g,P as L}from"./@vue-99409b8e.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-12a4a04c.js";import"./lodash.clonedeep-89ac42ac.js";import"./dayjs-9729b6d9.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-a1293421.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:"parameter",setup(A){const p=f(!1),l=c({tableType:{selection:!0,tableLoading:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"参数名称",show:!0},{name:"paramKey",label:"参数键名",show:!0},{name:"paramValue",label:"参数键值",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),s=c({value:!1,changeValue:e=>{s.value=e}}),h=c([{type:"input",title:"参数名称",model:"name",placeholder:"请输入参数名称",control:!1,row:24},{type:"input",title:"参数键名",placeholder:"请输入参数键名",control:!1,model:"paramKey",row:24},{type:"input",title:"参数键值",model:"paramValue",placeholder:"请输入参数键值",control:!1,row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),d=f({name:"",paramKey:"",paramValue:"",remarks:"",sortNo:0}),u=f({type:"create",name:"新增",id:""}),r=c({current:l.pagination.current,size:l.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0}),n=()=>{l.tableType.tableLoading=!0,i.get("/api/config/list",r).then(e=>{e.code==200&&(l.tableData=e.data.records,l.tableType.tableLoading=!1,l.pagination.total=e.data.total)}).catch(()=>{l.tableType.tableLoading=!1})},y=({type:e,data:a})=>{switch(e){case"create":w();break;case"edit":T(a);break;case"delete":k(a);break;case"sort":b(a);break;case"search":N(a);break}},v=e=>{l.pagination.current=e,r.current=e,n()},k=e=>{const a=e.map(t=>t.id);i.post("/api/config/removeBatch",{ids:a}).then(t=>{t.code==200&&(m({message:"删除成功",type:"success"}),n())})},_=(e,a,t)=>{e==="create"?i.post("/api/config/save",a).then(o=>{o.code==200?(m({message:o.message,type:"success"}),s.value=!1,n()):m.error(o.message)}):e==="edit"&&i.put(`/api/config/edit?id=${t}`,a).then(o=>{o.code==200?(m({message:o.message,type:"success"}),s.value=!1,n()):m.error(o.message)})},w=()=>{s.value=!0,u.value={type:"create",name:"新增",id:""},p.value=!1,d.value={name:"",paramKey:"",paramValue:"",remarks:"",sortNo:0}},T=e=>{const a=e[0].id;p.value=!1,i.get("/api/config/detail",{id:a}).then(t=>{t.code===200&&(s.value=!0,d.value={name:t.data.name,paramKey:t.data.paramKey,paramValue:t.data.paramValue,remarks:t.data.remarks,sortNo:t.data.sortNo},u.value={type:"edit",name:"编辑",id:a})})},N=e=>{r.value=e.value,n()},b=e=>{e.name===""?(r.orderBy=void 0,r.column=void 0):(r.orderBy=e.sortType,r.column=e.name),n()},V=(e,a,t)=>{let o;t?o=t.match(/^asc|desc/)[0]:o=void 0,b({name:o&&a,sortType:o})};return K(()=>{n()}),(e,a)=>(S(),F("div",P,[g(H,L(l,{onHandleTableHeader:y,onHandleTablePagination:v,onHandleTableSort:V}),null,16),g(B,{inputArray:h,onHandleFrom:_,dialogVisible:s,control:p.value,buttonName:u.value,ruleForm:d.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm"])]))}};export{re as default};
import{_ as H}from"./TableBody-d97f5e0f.js";import{y as B}from"./yd_diaInput-22ecf497.js";import{h as i}from"./index-211a7271.js";import{E as m}from"./element-plus-15eb8ab3.js";import{f,a0 as c,k as K,o as S,c as F,d as g,P as L}from"./@vue-99409b8e.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./@element-plus-12a4a04c.js";import"./lodash.clonedeep-89ac42ac.js";import"./dayjs-9729b6d9.js";import"./vue-router-3caf458d.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";import"./axios-46f5fd04.js";import"./form-data-d2a9677b.js";import"./js-cookie-40e39767.js";import"./lodash-es-b9271f86.js";import"./@vueuse-c162c6d2.js";import"./@popperjs-c75af06c.js";import"./@ctrl-1c80e935.js";import"./async-validator-a1293421.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:"parameter",setup(A){const p=f(!1),l=c({tableType:{selection:!0,tableLoading:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"参数名称",show:!0},{name:"paramKey",label:"参数键名",show:!0},{name:"paramValue",label:"参数键值",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),s=c({value:!1,changeValue:e=>{s.value=e}}),h=c([{type:"input",title:"参数名称",model:"name",placeholder:"请输入参数名称",control:!1,row:24},{type:"input",title:"参数键名",placeholder:"请输入参数键名",control:!1,model:"paramKey",row:24},{type:"input",title:"参数键值",model:"paramValue",placeholder:"请输入参数键值",control:!1,row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),d=f({name:"",paramKey:"",paramValue:"",remarks:"",sortNo:0}),u=f({type:"create",name:"新增",id:""}),r=c({current:l.pagination.current,size:l.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0}),n=()=>{l.tableType.tableLoading=!0,i.get("/api/config/list",r).then(e=>{e.code==200&&(l.tableData=e.data.records,l.tableType.tableLoading=!1,l.pagination.total=e.data.total)}).catch(()=>{l.tableType.tableLoading=!1})},y=({type:e,data:a})=>{switch(e){case"create":w();break;case"edit":T(a);break;case"delete":k(a);break;case"sort":b(a);break;case"search":N(a);break}},v=e=>{l.pagination.current=e,r.current=e,n()},k=e=>{const a=e.map(t=>t.id);i.post("/api/config/removeBatch",{ids:a}).then(t=>{t.code==200&&(m({message:"删除成功",type:"success"}),n())})},_=(e,a,t)=>{e==="create"?i.post("/api/config/save",a).then(o=>{o.code==200?(m({message:o.message,type:"success"}),s.value=!1,n()):m.error(o.message)}):e==="edit"&&i.put(`/api/config/edit?id=${t}`,a).then(o=>{o.code==200?(m({message:o.message,type:"success"}),s.value=!1,n()):m.error(o.message)})},w=()=>{s.value=!0,u.value={type:"create",name:"新增",id:""},p.value=!1,d.value={name:"",paramKey:"",paramValue:"",remarks:"",sortNo:0}},T=e=>{const a=e[0].id;p.value=!1,i.get("/api/config/detail",{id:a}).then(t=>{t.code===200&&(s.value=!0,d.value={name:t.data.name,paramKey:t.data.paramKey,paramValue:t.data.paramValue,remarks:t.data.remarks,sortNo:t.data.sortNo},u.value={type:"edit",name:"编辑",id:a})})},N=e=>{r.value=e.value,n()},b=e=>{e.name===""?(r.orderBy=void 0,r.column=void 0):(r.orderBy=e.sortType,r.column=e.name),n()},V=(e,a,t)=>{let o;t?o=t.match(/^asc|desc/)[0]:o=void 0,b({name:o&&a,sortType:o})};return K(()=>{n()}),(e,a)=>(S(),F("div",P,[g(H,L(l,{onHandleTableHeader:y,onHandleTablePagination:v,onHandleTableSort:V}),null,16),g(B,{inputArray:h,onHandleFrom:_,dialogVisible:s,control:p.value,buttonName:u.value,ruleForm:d.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm"])]))}};export{re as default};

View File

@ -1 +1 @@
System.register(["./TableBody-legacy-268e4388.js","./yd_diaInput-legacy-7dfb3c24.js","./index-legacy-d629f20a.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,n,s,r,c,u,i,d,m;return{setters:[e=>{l=e._},e=>{t=e.y},e=>{o=e.h},e=>{n=e.E},e=>{s=e.f,r=e.a0,c=e.k,u=e.o,i=e.c,d=e.d,m=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:"parameter",setup(e){const p=s(!1),g=r({tableType:{selection:!0,tableLoading:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"参数名称",show:!0},{name:"paramKey",label:"参数键名",show:!0},{name:"paramValue",label:"参数键值",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),y=r({value:!1,changeValue:e=>{y.value=e}}),v=r([{type:"input",title:"参数名称",model:"name",placeholder:"请输入参数名称",control:!1,row:24},{type:"input",title:"参数键名",placeholder:"请输入参数键名",control:!1,model:"paramKey",row:24},{type:"input",title:"参数键值",model:"paramValue",placeholder:"请输入参数键值",control:!1,row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),b=s({name:"",paramKey:"",paramValue:"",remarks:"",sortNo:0}),h=s({type:"create",name:"新增",id:""}),j=r({current:g.pagination.current,size:g.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0}),w=()=>{g.tableType.tableLoading=!0,o.get("/api/config/list",j).then((e=>{200==e.code&&(g.tableData=e.data.records,g.tableType.tableLoading=!1,g.pagination.total=e.data.total)})).catch((()=>{g.tableType.tableLoading=!1}))},f=({type:e,data:a})=>{switch(console.log(e,a),e){case"create":V();break;case"edit":console.log(e,a),H(a);break;case"delete":T(a);break;case"sort":_(a);break;case"search":K(a)}},k=e=>{g.pagination.current=e,j.current=e,w()},T=e=>{const a=e.map((e=>e.id));o.post("/api/config/removeBatch",{ids:a}).then((e=>{200==e.code&&(n({message:"删除成功",type:"success"}),w())}))},N=(e,a,l)=>{"create"===e?o.post("/api/config/save",a).then((e=>{200==e.code?(n({message:e.message,type:"success"}),y.value=!1,w()):n.error(e.message)})):"edit"===e&&(o.put(`/api/config/edit?id=${l}`,a).then((e=>{200==e.code?(n({message:e.message,type:"success"}),y.value=!1,w()):n.error(e.message)})),console.log(l))},V=()=>{y.value=!0,h.value={type:"create",name:"新增",id:""},p.value=!1,b.value={name:"",paramKey:"",paramValue:"",remarks:"",sortNo:0}},H=e=>{const a=e[0].id;p.value=!1,o.get("/api/config/detail",{id:a}).then((e=>{200===e.code&&(y.value=!0,b.value={name:e.data.name,paramKey:e.data.paramKey,paramValue:e.data.paramValue,remarks:e.data.remarks,sortNo:e.data.sortNo},h.value={type:"edit",name:"编辑",id:a})}))},K=e=>{console.log(e.value),j.value=e.value,w()},_=e=>{""===e.name?(j.orderBy=void 0,j.column=void 0):(j.orderBy=e.sortType,j.column=e.name),w()},x=(e,a,l)=>{let t;t=l?l.match(/^asc|desc/)[0]:void 0,_({name:t&&a,sortType:t})};return c((()=>{w()})),(e,o)=>(u(),i("div",a,[d(l,m(g,{onHandleTableHeader:f,onHandleTablePagination:k,onHandleTableSort:x}),null,16),d(t,{inputArray:v,onHandleFrom:N,dialogVisible:y,control:p.value,buttonName:h.value,ruleForm:b.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm"])]))}})}}}));
System.register(["./TableBody-legacy-268e4388.js","./yd_diaInput-legacy-2a9a9aec.js","./index-legacy-9d2bf9d5.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,n,s,r,c,u,i,d,m;return{setters:[e=>{l=e._},e=>{t=e.y},e=>{o=e.h},e=>{n=e.E},e=>{s=e.f,r=e.a0,c=e.k,u=e.o,i=e.c,d=e.d,m=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:"parameter",setup(e){const p=s(!1),g=r({tableType:{selection:!0,tableLoading:!1},tableHeader:[{buttons:["create","edit","delete"]},{buttons:[{name:"sort",options:[{label:"排序",value:"sortNo"},{label:"创建时间",value:"createdAt"}]},"search"]}],tableList:[{name:"name",label:"参数名称",show:!0},{name:"paramKey",label:"参数键名",show:!0},{name:"paramValue",label:"参数键值",show:!0},{name:"remarks",label:"备注",show:!0},{name:"sortNo",label:"排序",show:!0}],tableData:[],pagination:{pageSize:10,current:1,total:0}}),y=r({value:!1,changeValue:e=>{y.value=e}}),v=r([{type:"input",title:"参数名称",model:"name",placeholder:"请输入参数名称",control:!1,row:24},{type:"input",title:"参数键名",placeholder:"请输入参数键名",control:!1,model:"paramKey",row:24},{type:"input",title:"参数键值",model:"paramValue",placeholder:"请输入参数键值",control:!1,row:24},{type:"number",title:"排序",model:"sortNo",row:24},{type:"input",title:"备注",control:!1,placeholder:"请输入备注",model:"remarks",row:24}]),b=s({name:"",paramKey:"",paramValue:"",remarks:"",sortNo:0}),h=s({type:"create",name:"新增",id:""}),j=r({current:g.pagination.current,size:g.pagination.pageSize,column:void 0,orderBy:void 0,value:void 0}),w=()=>{g.tableType.tableLoading=!0,o.get("/api/config/list",j).then((e=>{200==e.code&&(g.tableData=e.data.records,g.tableType.tableLoading=!1,g.pagination.total=e.data.total)})).catch((()=>{g.tableType.tableLoading=!1}))},f=({type:e,data:a})=>{switch(console.log(e,a),e){case"create":V();break;case"edit":console.log(e,a),H(a);break;case"delete":T(a);break;case"sort":_(a);break;case"search":K(a)}},k=e=>{g.pagination.current=e,j.current=e,w()},T=e=>{const a=e.map((e=>e.id));o.post("/api/config/removeBatch",{ids:a}).then((e=>{200==e.code&&(n({message:"删除成功",type:"success"}),w())}))},N=(e,a,l)=>{"create"===e?o.post("/api/config/save",a).then((e=>{200==e.code?(n({message:e.message,type:"success"}),y.value=!1,w()):n.error(e.message)})):"edit"===e&&(o.put(`/api/config/edit?id=${l}`,a).then((e=>{200==e.code?(n({message:e.message,type:"success"}),y.value=!1,w()):n.error(e.message)})),console.log(l))},V=()=>{y.value=!0,h.value={type:"create",name:"新增",id:""},p.value=!1,b.value={name:"",paramKey:"",paramValue:"",remarks:"",sortNo:0}},H=e=>{const a=e[0].id;p.value=!1,o.get("/api/config/detail",{id:a}).then((e=>{200===e.code&&(y.value=!0,b.value={name:e.data.name,paramKey:e.data.paramKey,paramValue:e.data.paramValue,remarks:e.data.remarks,sortNo:e.data.sortNo},h.value={type:"edit",name:"编辑",id:a})}))},K=e=>{console.log(e.value),j.value=e.value,w()},_=e=>{""===e.name?(j.orderBy=void 0,j.column=void 0):(j.orderBy=e.sortType,j.column=e.name),w()},x=(e,a,l)=>{let t;t=l?l.match(/^asc|desc/)[0]:void 0,_({name:t&&a,sortType:t})};return c((()=>{w()})),(e,o)=>(u(),i("div",a,[d(l,m(g,{onHandleTableHeader:f,onHandleTablePagination:k,onHandleTableSort:x}),null,16),d(t,{inputArray:v,onHandleFrom:N,dialogVisible:y,control:p.value,buttonName:h.value,ruleForm:b.value,diawidth:25},null,8,["inputArray","dialogVisible","control","buttonName","ruleForm"])]))}})}}}));

Some files were not shown because too many files have changed in this diff Show More