update view

This commit is contained in:
mash 2023-05-06 14:57:15 +08:00
parent 61aa88ce41
commit a3bb75cdbe
258 changed files with 172 additions and 161 deletions

View File

@ -8,8 +8,6 @@ import com.ydool.common.data.dto.AjaxResult;
import com.ydool.common.exception.AjaxResultException;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

View File

@ -36,6 +36,7 @@ public class SqlLogInterceptor implements Interceptor {
statement = (Statement) firstArg;
}
MetaObject stmtMetaObj = SystemMetaObject.forObject(statement);
try {
statement = (Statement) stmtMetaObj.getValue("stmt.statement");
} catch (Exception e) {

View File

@ -16,9 +16,9 @@ spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/lc_oa?useSSL=false&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
url: jdbc:mysql://10.0.0.54:3306/lc_oa?useSSL=false&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: Wang09211108
password: zyy200916
druid:
# 下面为连接池的补充设置,应用到上面所有数据源中
# 初始化大小,最小,最大

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{h as v}from"./index-43f81e9c.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 p,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"./tools-0351b48a.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,d=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=()=>{d.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=>{d.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=p("el-checkbox"),B=p("el-checkbox-group"),D=p("el-form"),h=p("el-button"),N=p("el-dialog");return m(),b("div",z,[s(N,{modelValue:d.value,"onUpdate:modelValue":t[2]||(t[2]=a=>d.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"])])}}},me=U(O,[["__scopeId","data-v-e0be88eb"]]);export{me as default};

View File

@ -1 +0,0 @@
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};

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 y}from"./index-43f81e9c.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"./tools-0351b48a.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))])}}},ct=x(E,[["__scopeId","data-v-16a0ab5c"]]);export{ct as default};

View File

@ -1 +0,0 @@
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 +1 @@
import{a0 as x,aq as E,o as r,c as d,a as o,$ as f,T as c,Y as b,d as m,u as i,M as $,X as v,aj as N,R as u,F as q,a6 as z}from"./@vue-99409b8e.js";import B from"./NodeType-b9faf171.js";import{r as L,t as M}from"./optionConfig-cdce2392.js";import{a as S}from"./approver-80cdff93.js";import{C as D,E as V,P as W,a as j}from"./@icon-park-35d1953e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";const T={class:"y-flow-middle"},F={class:"y-flow-insert-wrapper"},O={class:"y-flow-insert"},P={key:0,class:"text"},R={class:"span"},U=o("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),X={class:"person-list"},Y={class:"y-flow-line"},te={__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(y,{emit:a}){const e=y,l=S(),p=x({roleArray:L,typeArray:M,defaultRole:"未知",activeIndex:-1}),I=(s,t)=>{a("addApprover",e.nodeItem,t)},w=()=>{a("addCondition",e.nodeItem,"add")},k=()=>{a("removeApprover",e.nodeItem,e.parentNode)},h=(s,t)=>{s.titleEdit=t},_=(s,t)=>{s.title||(s.title="审批节点"),l.editTtitle(s.title),s.titleEdit=t},A=s=>{l.changeApprover(s),l.toggleApproverVisible(!0)};return(s,t)=>{const C=E("focus");return r(),d("div",T,[o("div",F,[o("div",O,[o("div",{class:"y-flow-node-wrapper",onMouseenter:t[4]||(t[4]=f(n=>p.activeIndex=e.nodeItem.nodeId,["self"])),onMouseleave:t[5]||(t[5]=f(n=>p.activeIndex=-1,["self"]))},[c(o("div",{class:"y-flow-node-del",onClick:k},[m(i(D),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[b,e.nodeItem.nodeId==p.activeIndex]]),o("div",{class:"y-flow-node",onClick:t[3]||(t[3]=n=>A(e.nodeItem))},[o("div",{class:$(["y-flow-node-head",[e.nodeItem.type==="approver"?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[o("div",{class:"y-flow-node-title",onClick:t[2]||(t[2]=f(n=>h(e.nodeItem,!0),["stop"]))},[e.nodeItem.titleEdit?c((r(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":t[0]||(t[0]=n=>e.nodeItem.title=n),onBlur:t[1]||(t[1]=n=>_(e.nodeItem,!1))},null,544)),[[N,e.nodeItem.title],[C]]):(r(),d("div",P,[o("span",R,v(e.nodeItem.title||e.nodeItem.name),1),m(i(V),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),e.nodeItem.type==="approver"?(r(),u(i(W),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(r(),u(i(j),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),U,o("div",X,[(r(!0),d(q,null,z(e.nodeItem.properties.persons,(n,g)=>(r(),d("div",{class:"person-add-item",key:g},v(n.realName),1))),128))])]),o("div",Y,[m(B,{branchItem:e.nodeItem,onAddApprover:I,onChangeCondition:w},null,8,["branchItem"])])],32)])])])}}};export{te as default};
import{a0 as x,aq as E,o as r,c as d,a as o,$ as f,T as c,Y as b,d as m,u as i,M as $,X as v,aj as N,R as u,F as q,a6 as z}from"./@vue-99409b8e.js";import B from"./NodeType-c84535f0.js";import{r as L,t as M}from"./optionConfig-cdce2392.js";import{a as S}from"./approver-80cdff93.js";import{C as D,E as V,P as W,a as j}from"./@icon-park-35d1953e.js";import"./pinia-8e4f3b7e.js";import"./vue-demi-71ba0ef2.js";const T={class:"y-flow-middle"},F={class:"y-flow-insert-wrapper"},O={class:"y-flow-insert"},P={key:0,class:"text"},R={class:"span"},U=o("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),X={class:"person-list"},Y={class:"y-flow-line"},te={__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(y,{emit:a}){const e=y,l=S(),p=x({roleArray:L,typeArray:M,defaultRole:"未知",activeIndex:-1}),I=(s,t)=>{a("addApprover",e.nodeItem,t)},w=()=>{a("addCondition",e.nodeItem,"add")},k=()=>{a("removeApprover",e.nodeItem,e.parentNode)},h=(s,t)=>{s.titleEdit=t},_=(s,t)=>{s.title||(s.title="审批节点"),l.editTtitle(s.title),s.titleEdit=t},A=s=>{l.changeApprover(s),l.toggleApproverVisible(!0)};return(s,t)=>{const C=E("focus");return r(),d("div",T,[o("div",F,[o("div",O,[o("div",{class:"y-flow-node-wrapper",onMouseenter:t[4]||(t[4]=f(n=>p.activeIndex=e.nodeItem.nodeId,["self"])),onMouseleave:t[5]||(t[5]=f(n=>p.activeIndex=-1,["self"]))},[c(o("div",{class:"y-flow-node-del",onClick:k},[m(i(D),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[b,e.nodeItem.nodeId==p.activeIndex]]),o("div",{class:"y-flow-node",onClick:t[3]||(t[3]=n=>A(e.nodeItem))},[o("div",{class:$(["y-flow-node-head",[e.nodeItem.type==="approver"?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[o("div",{class:"y-flow-node-title",onClick:t[2]||(t[2]=f(n=>h(e.nodeItem,!0),["stop"]))},[e.nodeItem.titleEdit?c((r(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":t[0]||(t[0]=n=>e.nodeItem.title=n),onBlur:t[1]||(t[1]=n=>_(e.nodeItem,!1))},null,544)),[[N,e.nodeItem.title],[C]]):(r(),d("div",P,[o("span",R,v(e.nodeItem.title||e.nodeItem.name),1),m(i(V),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),e.nodeItem.type==="approver"?(r(),u(i(W),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(r(),u(i(j),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),U,o("div",X,[(r(!0),d(q,null,z(e.nodeItem.properties.persons,(n,g)=>(r(),d("div",{class:"person-add-item",key:g},v(n.realName),1))),128))])]),o("div",Y,[m(B,{branchItem:e.nodeItem,onAddApprover:I,onChangeCondition:w},null,8,["branchItem"])])],32)])])])}}};export{te as default};

View File

@ -1 +1 @@
System.register(["./@vue-legacy-6c3c82af.js","./NodeType-legacy-0acf3669.js","./optionConfig-legacy-708250f5.js","./approver-legacy-8f8c47f3.js","./@icon-park-legacy-af6e216d.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js"],(function(e,t){"use strict";var o,l,n,d,i,a,s,r,p,c,f,u,v,m,y,I,k,g,w,h,j,A,C,b;return{setters:[e=>{o=e.a0,l=e.aq,n=e.o,d=e.c,i=e.a,a=e.$,s=e.T,r=e.Y,p=e.d,c=e.u,f=e.M,u=e.X,v=e.aj,m=e.R,y=e.F,I=e.a6},e=>{k=e.default},e=>{g=e.r,w=e.t},e=>{h=e.a},e=>{j=e.C,A=e.E,C=e.P,b=e.a},null,null],execute:function(){const t={class:"y-flow-middle"},x={class:"y-flow-insert-wrapper"},q={class:"y-flow-insert"},N={key:0,class:"text"},z={class:"span"},E=i("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),L={class:"person-list"},W={class:"y-flow-line"};e("default",{__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(e,{emit:M}){const T=e,O=h(),R=o({roleArray:g,typeArray:w,defaultRole:"未知",activeIndex:-1}),V=(e,t)=>{M("addApprover",T.nodeItem,t)},_=()=>{M("addCondition",T.nodeItem,"add")},B=()=>{M("removeApprover",T.nodeItem,T.parentNode)};return(e,o)=>{const g=l("focus");return n(),d("div",t,[i("div",x,[i("div",q,[i("div",{class:"y-flow-node-wrapper",onMouseenter:o[4]||(o[4]=a((e=>R.activeIndex=T.nodeItem.nodeId),["self"])),onMouseleave:o[5]||(o[5]=a((e=>R.activeIndex=-1),["self"]))},[s(i("div",{class:"y-flow-node-del",onClick:B},[p(c(j),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[r,T.nodeItem.nodeId==R.activeIndex]]),i("div",{class:"y-flow-node",onClick:o[3]||(o[3]=e=>{return t=T.nodeItem,O.changeApprover(t),void O.toggleApproverVisible(!0);var t})},[i("div",{class:f(["y-flow-node-head",["approver"===T.nodeItem.type?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[i("div",{class:"y-flow-node-title",onClick:o[2]||(o[2]=a((e=>{return t=T.nodeItem,o=!0,void(t.titleEdit=o);var t,o}),["stop"]))},[T.nodeItem.titleEdit?s((n(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>T.nodeItem.title=e),onBlur:o[1]||(o[1]=e=>{return t=T.nodeItem,o=!1,t.title||(t.title="审批节点"),O.editTtitle(t.title),void(t.titleEdit=o);var t,o})},null,544)),[[v,T.nodeItem.title],[g]]):(n(),d("div",N,[i("span",z,u(T.nodeItem.title||T.nodeItem.name),1),p(c(A),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),"approver"===T.nodeItem.type?(n(),m(c(C),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(n(),m(c(b),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),E,i("div",L,[(n(!0),d(y,null,I(T.nodeItem.properties.persons,((e,t)=>(n(),d("div",{class:"person-add-item",key:t},u(e.realName),1)))),128))])]),i("div",W,[p(k,{branchItem:T.nodeItem,onAddApprover:V,onChangeCondition:_},null,8,["branchItem"])])],32)])])])}}})}}}));
System.register(["./@vue-legacy-6c3c82af.js","./NodeType-legacy-013be3c3.js","./optionConfig-legacy-708250f5.js","./approver-legacy-8f8c47f3.js","./@icon-park-legacy-af6e216d.js","./pinia-legacy-f291703e.js","./vue-demi-legacy-97cfbb01.js"],(function(e,t){"use strict";var o,l,n,d,i,a,s,r,p,c,f,u,v,m,y,I,k,g,w,h,j,A,C,b;return{setters:[e=>{o=e.a0,l=e.aq,n=e.o,d=e.c,i=e.a,a=e.$,s=e.T,r=e.Y,p=e.d,c=e.u,f=e.M,u=e.X,v=e.aj,m=e.R,y=e.F,I=e.a6},e=>{k=e.default},e=>{g=e.r,w=e.t},e=>{h=e.a},e=>{j=e.C,A=e.E,C=e.P,b=e.a},null,null],execute:function(){const t={class:"y-flow-middle"},x={class:"y-flow-insert-wrapper"},q={class:"y-flow-insert"},N={key:0,class:"text"},z={class:"span"},E=i("div",{class:"y-flow-apply-list y-flow-head"},"节点负责人:",-1),L={class:"person-list"},W={class:"y-flow-line"};e("default",{__name:"NodeItem",props:{parentNode:{type:Object,default:{}},nodeItem:{type:Object,default:{}}},emits:["addApprover","addCondition","removeApprover"],setup(e,{emit:M}){const T=e,O=h(),R=o({roleArray:g,typeArray:w,defaultRole:"未知",activeIndex:-1}),S=(e,t)=>{M("addApprover",T.nodeItem,t)},V=()=>{M("addCondition",T.nodeItem,"add")},_=()=>{M("removeApprover",T.nodeItem,T.parentNode)};return(e,o)=>{const g=l("focus");return n(),d("div",t,[i("div",x,[i("div",q,[i("div",{class:"y-flow-node-wrapper",onMouseenter:o[4]||(o[4]=a((e=>R.activeIndex=T.nodeItem.nodeId),["self"])),onMouseleave:o[5]||(o[5]=a((e=>R.activeIndex=-1),["self"]))},[s(i("div",{class:"y-flow-node-del",onClick:_},[p(c(j),{theme:"outline",size:"20",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})],512),[[r,T.nodeItem.nodeId==R.activeIndex]]),i("div",{class:"y-flow-node",onClick:o[3]||(o[3]=e=>{return t=T.nodeItem,O.changeApprover(t),void O.toggleApproverVisible(!0);var t})},[i("div",{class:f(["y-flow-node-head",["approver"===T.nodeItem.type?"y-flow-actual-approverbg":"y-flow-actual-fillbg"]])},[i("div",{class:"y-flow-node-title",onClick:o[2]||(o[2]=a((e=>{return t=T.nodeItem,o=!0,void(t.titleEdit=o);var t,o}),["stop"]))},[T.nodeItem.titleEdit?s((n(),d("input",{key:1,class:"y-input",type:"text","onUpdate:modelValue":o[0]||(o[0]=e=>T.nodeItem.title=e),onBlur:o[1]||(o[1]=e=>{return t=T.nodeItem,o=!1,t.title||(t.title="审批节点"),O.editTtitle(t.title),void(t.titleEdit=o);var t,o})},null,544)),[[v,T.nodeItem.title],[g]]):(n(),d("div",N,[i("span",z,u(T.nodeItem.title||T.nodeItem.name),1),p(c(A),{theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})]))]),"approver"===T.nodeItem.type?(n(),m(c(C),{key:0,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"})):(n(),m(c(b),{key:1,theme:"outline",size:"18",fill:"#fff",strokeWidth:3,strokeLinecap:"square"}))],2),E,i("div",L,[(n(!0),d(y,null,I(T.nodeItem.properties.persons,((e,t)=>(n(),d("div",{class:"person-add-item",key:t},u(e.realName),1)))),128))])]),i("div",W,[p(k,{branchItem:T.nodeItem,onAddApprover:S,onChangeCondition:V},null,8,["branchItem"])])],32)])])])}}})}}}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
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};

View File

@ -0,0 +1 @@
import{h as c}from"./index-43f81e9c.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"./tools-0351b48a.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"])])}}},G=s(b,[["__scopeId","data-v-cd583a47"]]);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

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-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};
import"./index-43f81e9c.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};

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

@ -1 +0,0 @@
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

@ -0,0 +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-43f81e9c.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"./tools-0351b48a.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)])}}},ue=q(M,[["__scopeId","data-v-c84f6ff9"]]);export{ue as default};

View File

@ -0,0 +1 @@
System.register(["./@vue-legacy-6c3c82af.js","./index-legacy-0e518233.js","./lodash.clonedeep-legacy-930370dc.js","./Upload.vue_vue_type_style_index_0_scoped_c84f6ff9_lang-legacy-c5aff7a3.js","./_plugin-vue_export-helper-legacy-762b7923.js","./vue-router-legacy-68eee699.js","./tools-legacy-fa9cbc87.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,null],execute:function(){const l={class:"upload"},x={class:"empty"},k=["onClick"],w={__name:"Upload",props:{modelValue:{},type:{type:String,default:"create"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:b}){const w=e;a([]);const V=a([]),C=e=>!0,z=e=>_(e);s((()=>w.modelValue),(e=>{return""!==e&&void 0!==e&&e&&("edit"!==w.type||Array.isArray(e)||"string"!=typeof e)?void(V.value=(l=w.modelValue,_(l))):V.value=[];var l}),{immediate:!0});const F=e=>{let l=e.file;const a=new FormData;a.append("file",l),h.post("/api/attachment/upload",a).then((e=>{console.log(e,"res"),200==e.code&&(V.value.push({name:e.data.name,path:e.data.path,size:l.size,suffix:e.data.suffix}),b("update:modelValue",z(V.value)),console.log(w.modelValue,V.value))}))};return(e,a)=>{const s=t("el-button"),_=t("el-upload"),U=t("CircleCloseFilled"),B=t("el-icon");return n(),o("div",l,[u(_,{"show-file-list":!1,"before-upload":C,"http-request":F,disabled:w.disabled},{default:d((()=>[u(s,{type:"primary",plain:"",disabled:w.disabled},{default:d((()=>[c("选择文件")])),_:1},8,["disabled"])])),_:1},8,["disabled"]),i(r("span",x,"未选择任何文件",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),w.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,k)))),128)):m("",!0)])}}};e("default",b(w,[["__scopeId","data-v-c84f6ff9"]]))}}}));

View File

@ -1 +0,0 @@
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"]]))}}}));

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1 +0,0 @@
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

@ -0,0 +1 @@
import{u as b}from"./vue-router-3caf458d.js";import{h,a as k}from"./index-43f81e9c.js";import{t as x}from"./tools-0351b48a.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 Z={__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?(x.data.clear("user"),k("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{Z as default};

View File

@ -1 +0,0 @@
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

@ -0,0 +1 @@
System.register(["./vue-router-legacy-68eee699.js","./index-legacy-0e518233.js","./tools-legacy-fa9cbc87.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.a},e=>{r=e.t},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(j.newPassword),console.log(l),l!==j.value.newPassword?a(new Error("密码不一致")):a()},trigger:"blur"}]}),j=d({oldPassword:void 0,newPassword:void 0,confirmPassword:void 0}),v=()=>{y.value.validate((e=>{if(!e)return console.log("error submit!"),!1;s.put("/api/auth/editPassword",{newPassword:j.value.newPassword,oldPassword:j.value.oldPassword}).then((e=>{200===e.code?(r.data.clear("user"),o("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:v},{default:c((()=>[m("保存")])),_:1}),w(r,{onClick:P},{default:c((()=>[m("关闭")])),_:1})])])),default:c((()=>[w(o,{ref_key:"ruleFormRef",ref:y,model:j.value,rules:f.value,"label-width":"100px"},{default:c((()=>[w(s,{label:"旧密码",prop:"oldPassword"},{default:c((()=>[w(a,{modelValue:j.value.oldPassword,"onUpdate:modelValue":l[0]||(l[0]=e=>j.value.oldPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),w(s,{label:"新密码",prop:"newPassword"},{default:c((()=>[w(a,{modelValue:j.value.newPassword,"onUpdate:modelValue":l[1]||(l[1]=e=>j.value.newPassword=e),"show-password":""},null,8,["modelValue"])])),_:1}),w(s,{label:"新密码确认",prop:"confirmPassword"},{default:c((()=>[w(a,{modelValue:j.value.confirmPassword,"onUpdate:modelValue":l[2]||(l[2]=e=>j.value.confirmPassword=e),"show-password":""},null,8,["modelValue"])])),_:1})])),_:1},8,["model","rules"])])),_:1},8,["modelValue"])}}})}}}));

View File

@ -1 +0,0 @@
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

@ -0,0 +1 @@
import{_ as B}from"./TableBody-c1a47c03.js";import{y as F}from"./yd_diaInput-3caa5159.js";import{h as n}from"./index-43f81e9c.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"./tools-0351b48a.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"},se={__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{se as default};

View File

@ -1 +0,0 @@
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

@ -0,0 +1 @@
System.register(["./TableBody-legacy-03a4978f.js","./yd_diaInput-legacy-d33bba87.js","./index-legacy-0e518233.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","./tools-legacy-fa9cbc87.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,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"])]))}})}}}));

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

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