重建ReadAll组件并更新index引用
ReadAll组件已根据新的index-574ec709.js进行重建,并更新了index.html中的脚本引用,以反映这一更改。
This commit is contained in:
parent
64cbd763fc
commit
8daedaba75
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{r as w,D as y,t as V,b as c,o as u,i as x,w as _,h as F,e as m,c as C,l as A,v as k,d as B,k as S,F as N,g as q}from"./index-296085fa.js";import{_ as D}from"./_plugin-vue_export-helper-c27b6911.js";const b={name:"Upload",props:{modelValue:{type:String,default:""},accept:{type:String,default:"image/gif, image/jpeg, image/png"}},emits:["update:modelValue"],setup(o,{emit:f}){const a=w([]),l=e=>e.join(","),h=e=>{let t=[];return e==null||e==""?t=[]:Array.isArray(e)?e.map(n=>{t.push(n.preview)}):t=e.split(","),t};y(()=>[...a.value],e=>{f("update:modelValue",l(a.value))}),y(()=>o.modelValue,()=>{a.value=h(o.modelValue)},{immediate:!0});const v=e=>{let t=e.file;const n=new FormData;n.append("file",t),F.post("/api/attachment/upload",n).then(g=>{g.code==200&&a.value.push(g.data.path)})},r=()=>{},i=()=>{},d=e=>{a.value.splice(e,1)},p=e=>{let t=e.split("/");return t[t.length-1]},s=e=>{window.open(e)};return{fileList:a,request:v,...V(o),handleAvatarSuccess:r,handleRemove:i,delImageUrl:d,handleName:p,openPath:s}}},L=q("附件上传"),U=["onClick"];function j(o,f,a,l,h,v){const r=c("el-button"),i=c("CircleCloseFilled"),d=c("el-icon"),p=c("el-upload");return u(),x(p,{class:"avatar-uploader",accept:a.accept,"show-file-list":!1,"on-success":l.handleAvatarSuccess,"http-request":l.request},{default:_(()=>[m(r,{type:"primary"},{default:_(()=>[L]),_:1}),(u(!0),C(N,null,A(l.fileList,(s,e)=>(u(),C("div",{class:"fileBox",key:e,onClick:k(t=>l.openPath(s),["stop"])},[B("span",null,S(l.handleName(s)),1),m(d,{class:"fileBoxDel",size:18,color:"red",onClick:k(t=>l.delImageUrl(e),["stop"])},{default:_(()=>[m(i)]),_:2},1032,["onClick"])],8,U))),128))]),_:1},8,["accept","on-success","http-request"])}const R=D(b,[["render",j]]);export{R as default};
|
||||
import{r as w,D as y,t as V,b as c,o as u,i as x,w as _,h as F,e as m,c as C,l as A,v as k,d as B,k as S,F as N,g as q}from"./index-574ec709.js";import{_ as D}from"./_plugin-vue_export-helper-c27b6911.js";const b={name:"Upload",props:{modelValue:{type:String,default:""},accept:{type:String,default:"image/gif, image/jpeg, image/png"}},emits:["update:modelValue"],setup(o,{emit:f}){const a=w([]),l=e=>e.join(","),h=e=>{let t=[];return e==null||e==""?t=[]:Array.isArray(e)?e.map(n=>{t.push(n.preview)}):t=e.split(","),t};y(()=>[...a.value],e=>{f("update:modelValue",l(a.value))}),y(()=>o.modelValue,()=>{a.value=h(o.modelValue)},{immediate:!0});const v=e=>{let t=e.file;const n=new FormData;n.append("file",t),F.post("/api/attachment/upload",n).then(g=>{g.code==200&&a.value.push(g.data.path)})},r=()=>{},i=()=>{},d=e=>{a.value.splice(e,1)},p=e=>{let t=e.split("/");return t[t.length-1]},s=e=>{window.open(e)};return{fileList:a,request:v,...V(o),handleAvatarSuccess:r,handleRemove:i,delImageUrl:d,handleName:p,openPath:s}}},L=q("附件上传"),U=["onClick"];function j(o,f,a,l,h,v){const r=c("el-button"),i=c("CircleCloseFilled"),d=c("el-icon"),p=c("el-upload");return u(),x(p,{class:"avatar-uploader",accept:a.accept,"show-file-list":!1,"on-success":l.handleAvatarSuccess,"http-request":l.request},{default:_(()=>[m(r,{type:"primary"},{default:_(()=>[L]),_:1}),(u(!0),C(N,null,A(l.fileList,(s,e)=>(u(),C("div",{class:"fileBox",key:e,onClick:k(t=>l.openPath(s),["stop"])},[B("span",null,S(l.handleName(s)),1),m(d,{class:"fileBoxDel",size:18,color:"red",onClick:k(t=>l.delImageUrl(e),["stop"])},{default:_(()=>[m(i)]),_:2},1032,["onClick"])],8,U))),128))]),_:1},8,["accept","on-success","http-request"])}const R=D(b,[["render",j]]);export{R as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{_ as r}from"./_plugin-vue_export-helper-c27b6911.js";import{r as c,o as u,c as _,d as t,k as n,F as d,H as i,I as p,g as e}from"./index-296085fa.js";const s=o=>(i("data-v-8e590339"),o=o(),p(),o),h={class:"card"},g=s(()=>t("p",null,[e(" Edit "),t("code",null,"components/HelloWorld.vue"),e(" to test HMR ")],-1)),m=s(()=>t("p",null,[e(" Check out "),t("a",{href:"https://vuejs.org/guide/quick-start.html#local",target:"_blank"},"create-vue"),e(", the official Vue + Vite starter ")],-1)),v=s(()=>t("p",null,[e(" Install "),t("a",{href:"https://github.com/vuejs/language-tools",target:"_blank"},"Volar"),e(" in your IDE for a better DX ")],-1)),f=s(()=>t("p",{class:"read-the-docs"},"Click on the Vite and Vue logos to learn more",-1)),k={props:{msg:String},setup(o){const a=c(0);return(I,l)=>(u(),_(d,null,[t("h1",null,n(o.msg),1),t("div",h,[t("button",{type:"button",onClick:l[0]||(l[0]=V=>a.value++)},"count is "+n(a.value),1),g]),m,v,f],64))}},y=r(k,[["__scopeId","data-v-8e590339"]]);export{y as default};
|
||||
import{_ as r}from"./_plugin-vue_export-helper-c27b6911.js";import{r as c,o as u,c as _,d as t,k as n,F as d,H as i,I as p,g as e}from"./index-574ec709.js";const s=o=>(i("data-v-8e590339"),o=o(),p(),o),h={class:"card"},g=s(()=>t("p",null,[e(" Edit "),t("code",null,"components/HelloWorld.vue"),e(" to test HMR ")],-1)),m=s(()=>t("p",null,[e(" Check out "),t("a",{href:"https://vuejs.org/guide/quick-start.html#local",target:"_blank"},"create-vue"),e(", the official Vue + Vite starter ")],-1)),v=s(()=>t("p",null,[e(" Install "),t("a",{href:"https://github.com/vuejs/language-tools",target:"_blank"},"Volar"),e(" in your IDE for a better DX ")],-1)),f=s(()=>t("p",{class:"read-the-docs"},"Click on the Vite and Vue logos to learn more",-1)),k={props:{msg:String},setup(o){const a=c(0);return(I,l)=>(u(),_(d,null,[t("h1",null,n(o.msg),1),t("div",h,[t("button",{type:"button",onClick:l[0]||(l[0]=V=>a.value++)},"count is "+n(a.value),1),g]),m,v,f],64))}},y=r(k,[["__scopeId","data-v-8e590339"]]);export{y as default};
|
|
@ -1 +1 @@
|
|||
import{r as k,D as g,t as y,b as s,o as _,i as V,w as m,h as x,c as w,l as A,v as C,e as n,F}from"./index-296085fa.js";import{_ as S}from"./_plugin-vue_export-helper-c27b6911.js";const q={name:"Upload",props:{modelValue:{type:String,default:""},accept:{type:String,default:"image/gif, image/jpeg, image/png"}},emits:["update:modelValue"],setup(c,{emit:f}){const a=k([]),l=e=>e.join(","),h=e=>{let t=[];return e==null||e==""?t=[]:Array.isArray(e)?e.map(o=>{t.push(o.preview)}):t=e.split(","),t};g(()=>[...a.value],e=>{f("update:modelValue",l(a.value))}),g(()=>c.modelValue,()=>{a.value=h(c.modelValue)},{immediate:!0});const v=e=>{let t=e.file;const o=new FormData;o.append("file",t),x.post("/api/attachment/upload",o).then(i=>{i.code==200&&a.value.push(i.data.path)})},d=()=>{},u=()=>{},r=e=>{a.value.splice(e,1)},p=e=>{window.open(e)};return{fileList:a,request:v,...y(c),handleAvatarSuccess:d,handleRemove:u,delImageUrl:r,openPath:p}}},B=["onClick"];function P(c,f,a,l,h,v){const d=s("el-image"),u=s("CircleCloseFilled"),r=s("el-icon"),p=s("Plus"),e=s("el-upload");return _(),V(e,{class:"avatar-uploader",accept:a.accept,"show-file-list":!1,"on-success":l.handleAvatarSuccess,"http-request":l.request},{default:m(()=>[(_(!0),w(F,null,A(l.fileList,(t,o)=>(_(),w("div",{class:"imgBox",key:o,onClick:C(i=>l.openPath(t),["stop"])},[n(d,{src:t,class:"avatar",fit:"contain",width:"50",height:"50"},null,8,["src"]),n(r,{class:"del",size:18,color:"red",onClick:C(i=>l.delImageUrl(o),["stop"])},{default:m(()=>[n(u)]),_:2},1032,["onClick"])],8,B))),128)),n(r,{class:"avatar-uploader-icon"},{default:m(()=>[n(p)]),_:1})]),_:1},8,["accept","on-success","http-request"])}const L=S(q,[["render",P]]);export{L as default};
|
||||
import{r as k,D as g,t as y,b as s,o as _,i as V,w as m,h as x,c as w,l as A,v as C,e as n,F}from"./index-574ec709.js";import{_ as S}from"./_plugin-vue_export-helper-c27b6911.js";const q={name:"Upload",props:{modelValue:{type:String,default:""},accept:{type:String,default:"image/gif, image/jpeg, image/png"}},emits:["update:modelValue"],setup(c,{emit:f}){const a=k([]),l=e=>e.join(","),h=e=>{let t=[];return e==null||e==""?t=[]:Array.isArray(e)?e.map(o=>{t.push(o.preview)}):t=e.split(","),t};g(()=>[...a.value],e=>{f("update:modelValue",l(a.value))}),g(()=>c.modelValue,()=>{a.value=h(c.modelValue)},{immediate:!0});const v=e=>{let t=e.file;const o=new FormData;o.append("file",t),x.post("/api/attachment/upload",o).then(i=>{i.code==200&&a.value.push(i.data.path)})},d=()=>{},u=()=>{},r=e=>{a.value.splice(e,1)},p=e=>{window.open(e)};return{fileList:a,request:v,...y(c),handleAvatarSuccess:d,handleRemove:u,delImageUrl:r,openPath:p}}},B=["onClick"];function P(c,f,a,l,h,v){const d=s("el-image"),u=s("CircleCloseFilled"),r=s("el-icon"),p=s("Plus"),e=s("el-upload");return _(),V(e,{class:"avatar-uploader",accept:a.accept,"show-file-list":!1,"on-success":l.handleAvatarSuccess,"http-request":l.request},{default:m(()=>[(_(!0),w(F,null,A(l.fileList,(t,o)=>(_(),w("div",{class:"imgBox",key:o,onClick:C(i=>l.openPath(t),["stop"])},[n(d,{src:t,class:"avatar",fit:"contain",width:"50",height:"50"},null,8,["src"]),n(r,{class:"del",size:18,color:"red",onClick:C(i=>l.delImageUrl(o),["stop"])},{default:m(()=>[n(u)]),_:2},1032,["onClick"])],8,B))),128)),n(r,{class:"avatar-uploader-icon"},{default:m(()=>[n(p)]),_:1})]),_:1},8,["accept","on-success","http-request"])}const L=S(q,[["render",P]]);export{L as default};
|
|
@ -1 +1 @@
|
|||
import{_ as e}from"./_plugin-vue_export-helper-c27b6911.js";import{r as _}from"./index-296085fa.js";const t={setup(s){return _(!1),(r,a)=>null}},f=e(t,[["__scopeId","data-v-4fc2e1ef"]]);export{f as default};
|
||||
import{_ as e}from"./_plugin-vue_export-helper-c27b6911.js";import{r as _}from"./index-574ec709.js";const t={setup(s){return _(!1),(r,a)=>null}},f=e(t,[["__scopeId","data-v-4fc2e1ef"]]);export{f as default};
|
|
@ -1 +1 @@
|
|||
import w from"./TableData-122deacb.js";import C from"./TableHeader-b8143e84.js";import k from"./TablePagination-4c26d7ff.js";import{r as n,n as x,D as R,o as h,c as B,e as T,w as d,i as P,j as q,Q as b}from"./index-296085fa.js";import"./_plugin-vue_export-helper-c27b6911.js";const M={class:"table-body"},E={props:{tableHeader:{type:Array,required:!0},tableType:{type:Object,required:!0},tableList:{type:Array,required:!0},tableData:{type:Array,required:!0},pagination:{type:Object},treeShow:{type:Boolean}},emits:["handleTableHeader","handleTablePagination","handleTableSort","handleTree","fruitValueChange"],setup(t,{expose:g,emit:l}){const c=t;console.log(c);const o=n(),i=n(),u=n(!0),f=n(!0),D=e=>{u.value=e},H=e=>{f.value=e},v=e=>{c.tableList.map(a=>{e.indexOf(a.name)!=-1?a.show=!0:a.show=!1})},y=(e,a)=>{if(e==="search")return l("handleTableHeader",{type:e,data:a});if(e==="mixInput")return l("handleTableHeader",{type:e,data:a});if(e==="sort")return l("handleTableHeader",{type:e,data:a});l("handleTableHeader",{type:e,data:i.value.selectData})},I=(e,a)=>{l("file",e,a)},S=e=>{l("handleTablePagination",e)},p=(e,a,s)=>{l("handleTableSort",e,a,s)},m=e=>{l("handleTree",e)},r=n([]);return x(()=>{R(()=>i.value.selectData,e=>{r.value=e},{deep:!0})}),g({clearMixInput:()=>{o.value.clearMixInput()},clearSearch:()=>{o.value.clearSearch()}}),(e,a)=>(h(),B("div",M,[T(C,{tableHeader:t.tableHeader,disabledIf:u.value,singleDisabledIf:f.value,tableList:t.tableList,onFilter:v,onHandle:y,onFile:I,ref_key:"TableHeaderRef",ref:o,selectData:r.value},{TableHeaderLeft:d(()=>[b(e.$slots,"TableHeaderLeft",{selectData:r.value})]),TableHeaderRight:d(()=>[b(e.$slots,"TableHeaderRight",{selectData:r.value})]),_:3},8,["tableHeader","disabledIf","singleDisabledIf","tableList","selectData"]),T(w,{tableList:t.tableList,tableData:t.tableData,treeShow:t.treeShow,tableType:t.tableType,onChangeDisabledIf:D,onChangeSingleDisabledIf:H,onHandleSortChange:p,onHandleTree:m,ref_key:"TableDataRef",ref:i},{default:d(({currentCol:s,currentData:L})=>[b(e.$slots,s.name,{currentCol:s,currentData:L})]),_:3},8,["tableList","tableData","treeShow","tableType"]),t.tableType.isHiddenPagination?q("",!0):(h(),P(k,{key:0,pagination:t.pagination,onHandle:S},null,8,["pagination"]))]))}};export{E as default};
|
||||
import w from"./TableData-2933ed34.js";import C from"./TableHeader-25adb54f.js";import k from"./TablePagination-499a7e7b.js";import{r as n,n as x,D as R,o as h,c as B,e as T,w as d,i as P,j as q,Q as b}from"./index-574ec709.js";import"./_plugin-vue_export-helper-c27b6911.js";const M={class:"table-body"},E={props:{tableHeader:{type:Array,required:!0},tableType:{type:Object,required:!0},tableList:{type:Array,required:!0},tableData:{type:Array,required:!0},pagination:{type:Object},treeShow:{type:Boolean}},emits:["handleTableHeader","handleTablePagination","handleTableSort","handleTree","fruitValueChange"],setup(t,{expose:g,emit:l}){const c=t;console.log(c);const o=n(),i=n(),u=n(!0),f=n(!0),D=e=>{u.value=e},H=e=>{f.value=e},v=e=>{c.tableList.map(a=>{e.indexOf(a.name)!=-1?a.show=!0:a.show=!1})},y=(e,a)=>{if(e==="search")return l("handleTableHeader",{type:e,data:a});if(e==="mixInput")return l("handleTableHeader",{type:e,data:a});if(e==="sort")return l("handleTableHeader",{type:e,data:a});l("handleTableHeader",{type:e,data:i.value.selectData})},I=(e,a)=>{l("file",e,a)},S=e=>{l("handleTablePagination",e)},p=(e,a,s)=>{l("handleTableSort",e,a,s)},m=e=>{l("handleTree",e)},r=n([]);return x(()=>{R(()=>i.value.selectData,e=>{r.value=e},{deep:!0})}),g({clearMixInput:()=>{o.value.clearMixInput()},clearSearch:()=>{o.value.clearSearch()}}),(e,a)=>(h(),B("div",M,[T(C,{tableHeader:t.tableHeader,disabledIf:u.value,singleDisabledIf:f.value,tableList:t.tableList,onFilter:v,onHandle:y,onFile:I,ref_key:"TableHeaderRef",ref:o,selectData:r.value},{TableHeaderLeft:d(()=>[b(e.$slots,"TableHeaderLeft",{selectData:r.value})]),TableHeaderRight:d(()=>[b(e.$slots,"TableHeaderRight",{selectData:r.value})]),_:3},8,["tableHeader","disabledIf","singleDisabledIf","tableList","selectData"]),T(w,{tableList:t.tableList,tableData:t.tableData,treeShow:t.treeShow,tableType:t.tableType,onChangeDisabledIf:D,onChangeSingleDisabledIf:H,onHandleSortChange:p,onHandleTree:m,ref_key:"TableDataRef",ref:i},{default:d(({currentCol:s,currentData:L})=>[b(e.$slots,s.name,{currentCol:s,currentData:L})]),_:3},8,["tableList","tableData","treeShow","tableType"]),t.tableType.isHiddenPagination?q("",!0):(h(),P(k,{key:0,pagination:t.pagination,onHandle:S},null,8,["pagination"]))]))}};export{E as default};
|
|
@ -1 +1 @@
|
|||
import{_ as A}from"./_plugin-vue_export-helper-c27b6911.js";import{r as i,A as O,S as V,D as w,b as x,p as j,o as n,c as r,d as C,e as F,w as p,q as M,i as s,y as k,f as S,K as $,F as b,l as D,j as u,Q as q,U as K}from"./index-296085fa.js";const Q={class:"trees"},U=["onClick"],G={props:{tableList:{type:Array,default:()=>[]},tableType:{type:Object,default:()=>({})},tableData:{type:Array,default:()=>[]},treeShow:{type:Boolean,default:!1}},emits:["changeDisabledIf","changeSingleDisabledIf","handleSortChange","handleTree"],setup(l,{expose:m,emit:d}){const o=l,B=a=>({backgroundColor:"#0b2197",color:"#fff"}),H=a=>({backgroundColor:"#0c369c !important",color:"#fff",textAlign:"center"}),h=i(),y=i(0),f=i(200);O(()=>{o.tableType.changeHeight&&(f.value=o.tableType.changeHeight),y.value=window.innerHeight-f.value,window.addEventListener("resize",()=>{y.value=window.innerHeight-f.value})});const t=i([]),I=V(()=>({row:a})=>{if(t.value.includes(a))return"slecleRowColor "}),R=a=>{t.value=a};w(t,a=>{d("changeDisabledIf",!(a.length>0)),d("changeSingleDisabledIf",a.length!=1)},{deep:!0});const E=a=>{o.tableType.selection?t.value.indexOf(a)>-1?(t.value.splice(t.value.indexOf(a),1),h.value.toggleRowSelection(a,!1)):(t.value.push(a),h.value.toggleRowSelection(a,!0)):t.value[0]=a};w(()=>o.tableData,()=>{o.tableType.selection||(t.value=[])});const L=a=>{d("handleTree",a)},N=({column:a,prop:T,order:g})=>{d("handleSortChange",a,T,g)};return m({selectData:t}),(a,T)=>{const g=x("el-scrollbar"),c=x("el-table-column"),z=j("loading");return n(),r("div",{class:"table-data",style:k([{display:"flex",position:"relative"},l.tableType.popupBox?{height:"520px"}:{}])},[C("div",Q,[F(g,{height:"60vh"},{default:p(()=>[l.treeShow?(n(),r(b,{key:0},D(100,e=>C("div",{key:e,class:"treeData",onClick:v=>L(e)},null,8,U)),64)):u("",!0)]),_:1})]),M((n(),s(S(K),{data:l.tableData,ref_key:"multipleTableRef",ref:h,style:k({width:"100%","font-size":l.tableType.dpBox?"18px":""}),height:l.tableType.popupBox?520:y.value,"row-class-name":S(I),"row-key":l.tableType.tableTree?"id":void 0,"tree-props":{children:l.tableType.tableTreeName?l.tableType.tableTreeName:"children"},stripe:l.tableType.stripe,"header-cell-style":l.tableType.headerColor?H:{background:"#eef1f6",color:"#606266"},"cell-style":l.tableType.headerColor?{"text-align":"center"}:"","row-style":l.tableType.rowState?B:"",onRowClick:E,onSelectionChange:R,onSortChange:N,"default-expand-all":l.tableType.isExpand?l.tableType.isExpand:!1,border:!l.tableType.popupBox,class:$({"is-border":!l.tableType.popupBox})},{default:p(()=>[l.tableType.tableIndex?(n(),s(c,{key:0,type:"index",width:"80",align:"center",label:"序号"})):u("",!0),l.tableType.selection?(n(),s(c,{key:1,type:"selection",width:"55"})):u("",!0),(n(!0),r(b,null,D(l.tableList,e=>(n(),r(b,null,[e.show?(n(),r(b,{key:0},[e.type==="slot"?(n(),s(c,{key:e.name,width:e.width,label:e.label,sortable:e.sortable,"sort-method":e.sortableMethod,prop:e.name,fixed:e.fixed,align:e.align},{default:p(v=>[q(a.$slots,"default",{currentCol:e,currentData:v.row},void 0,!0)]),_:2},1032,["width","label","sortable","sort-method","prop","fixed","align"])):(n(),s(c,{key:e.label,prop:e.name,label:e.label,width:e.width,sortable:e.sortable,"sort-method":e.sortableMethod,fixed:e.fixed,align:e.align},null,8,["prop","label","width","sortable","sort-method","fixed","align"]))],64)):u("",!0)],64))),256))]),_:3},8,["data","style","height","row-class-name","row-key","tree-props","stripe","header-cell-style","cell-style","row-style","default-expand-all","border","class"])),[[z,l.tableType.tableLoading]])],4)}}},W=A(G,[["__scopeId","data-v-b289584d"]]);export{W as default};
|
||||
import{_ as A}from"./_plugin-vue_export-helper-c27b6911.js";import{r as i,A as O,S as V,D as w,b as x,p as j,o as n,c as r,d as C,e as F,w as p,q as M,i as s,y as k,f as S,K as $,F as b,l as D,j as u,Q as q,U as K}from"./index-574ec709.js";const Q={class:"trees"},U=["onClick"],G={props:{tableList:{type:Array,default:()=>[]},tableType:{type:Object,default:()=>({})},tableData:{type:Array,default:()=>[]},treeShow:{type:Boolean,default:!1}},emits:["changeDisabledIf","changeSingleDisabledIf","handleSortChange","handleTree"],setup(l,{expose:m,emit:d}){const o=l,B=a=>({backgroundColor:"#0b2197",color:"#fff"}),H=a=>({backgroundColor:"#0c369c !important",color:"#fff",textAlign:"center"}),h=i(),y=i(0),f=i(200);O(()=>{o.tableType.changeHeight&&(f.value=o.tableType.changeHeight),y.value=window.innerHeight-f.value,window.addEventListener("resize",()=>{y.value=window.innerHeight-f.value})});const t=i([]),I=V(()=>({row:a})=>{if(t.value.includes(a))return"slecleRowColor "}),R=a=>{t.value=a};w(t,a=>{d("changeDisabledIf",!(a.length>0)),d("changeSingleDisabledIf",a.length!=1)},{deep:!0});const E=a=>{o.tableType.selection?t.value.indexOf(a)>-1?(t.value.splice(t.value.indexOf(a),1),h.value.toggleRowSelection(a,!1)):(t.value.push(a),h.value.toggleRowSelection(a,!0)):t.value[0]=a};w(()=>o.tableData,()=>{o.tableType.selection||(t.value=[])});const L=a=>{d("handleTree",a)},N=({column:a,prop:T,order:g})=>{d("handleSortChange",a,T,g)};return m({selectData:t}),(a,T)=>{const g=x("el-scrollbar"),c=x("el-table-column"),z=j("loading");return n(),r("div",{class:"table-data",style:k([{display:"flex",position:"relative"},l.tableType.popupBox?{height:"520px"}:{}])},[C("div",Q,[F(g,{height:"60vh"},{default:p(()=>[l.treeShow?(n(),r(b,{key:0},D(100,e=>C("div",{key:e,class:"treeData",onClick:v=>L(e)},null,8,U)),64)):u("",!0)]),_:1})]),M((n(),s(S(K),{data:l.tableData,ref_key:"multipleTableRef",ref:h,style:k({width:"100%","font-size":l.tableType.dpBox?"18px":""}),height:l.tableType.popupBox?520:y.value,"row-class-name":S(I),"row-key":l.tableType.tableTree?"id":void 0,"tree-props":{children:l.tableType.tableTreeName?l.tableType.tableTreeName:"children"},stripe:l.tableType.stripe,"header-cell-style":l.tableType.headerColor?H:{background:"#eef1f6",color:"#606266"},"cell-style":l.tableType.headerColor?{"text-align":"center"}:"","row-style":l.tableType.rowState?B:"",onRowClick:E,onSelectionChange:R,onSortChange:N,"default-expand-all":l.tableType.isExpand?l.tableType.isExpand:!1,border:!l.tableType.popupBox,class:$({"is-border":!l.tableType.popupBox})},{default:p(()=>[l.tableType.tableIndex?(n(),s(c,{key:0,type:"index",width:"80",align:"center",label:"序号"})):u("",!0),l.tableType.selection?(n(),s(c,{key:1,type:"selection",width:"55"})):u("",!0),(n(!0),r(b,null,D(l.tableList,e=>(n(),r(b,null,[e.show?(n(),r(b,{key:0},[e.type==="slot"?(n(),s(c,{key:e.name,width:e.width,label:e.label,sortable:e.sortable,"sort-method":e.sortableMethod,prop:e.name,fixed:e.fixed,align:e.align},{default:p(v=>[q(a.$slots,"default",{currentCol:e,currentData:v.row},void 0,!0)]),_:2},1032,["width","label","sortable","sort-method","prop","fixed","align"])):(n(),s(c,{key:e.label,prop:e.name,label:e.label,width:e.width,sortable:e.sortable,"sort-method":e.sortableMethod,fixed:e.fixed,align:e.align},null,8,["prop","label","width","sortable","sort-method","fixed","align"]))],64)):u("",!0)],64))),256))]),_:3},8,["data","style","height","row-class-name","row-key","tree-props","stripe","header-cell-style","cell-style","row-style","default-expand-all","border","class"])),[[z,l.tableType.tableLoading]])],4)}}},W=A(G,[["__scopeId","data-v-b289584d"]]);export{W as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{_ as l}from"./_plugin-vue_export-helper-c27b6911.js";import{r as s,b as c,o as r,c as p,e as g,K as _}from"./index-296085fa.js";const d={props:{pagination:{type:Object,required:!0}},emits:["handle"],setup(a,{emit:t}){const n=s(!0),o=e=>{t("handle",e)};return(e,u)=>{const i=c("el-pagination");return r(),p("div",{class:_(["table-pagination",{fd:a.pagination.dpBox}])},[g(i,{class:"ydool_pagination","page-size":a.pagination.pageSize,layout:"->,total, prev, pager, next, jumper",total:a.pagination.total,onCurrentChange:o,background:n.value,small:""},null,8,["page-size","total","background"])],2)}}},b=l(d,[["__scopeId","data-v-aa8f7c33"]]);export{b as default};
|
||||
import{_ as l}from"./_plugin-vue_export-helper-c27b6911.js";import{r as s,b as c,o as r,c as p,e as g,K as _}from"./index-574ec709.js";const d={props:{pagination:{type:Object,required:!0}},emits:["handle"],setup(a,{emit:t}){const n=s(!0),o=e=>{t("handle",e)};return(e,u)=>{const i=c("el-pagination");return r(),p("div",{class:_(["table-pagination",{fd:a.pagination.dpBox}])},[g(i,{class:"ydool_pagination","page-size":a.pagination.pageSize,layout:"->,total, prev, pager, next, jumper",total:a.pagination.total,onCurrentChange:o,background:n.value,small:""},null,8,["page-size","total","background"])],2)}}},b=l(d,[["__scopeId","data-v-aa8f7c33"]]);export{b as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{m as O,u as D,a as C,r as x,b as n,p as Q,o as k,c as W,e as t,w as a,q as B,i as j,f as r,h as b,E as u,d as N,g as _}from"./index-296085fa.js";/* empty css */const X={class:"common-layout"},Y=_("查询"),Z=_("新建"),ee={class:"txl_bd"},te=_("修改信息"),ae=_("查看属性"),le=_("删除"),oe={class:"fy"},ne={class:"dialog-footer"},se=_("取消"),ie=_(" 确认 "),ue={setup(de){O();const U=D();C({data:{}}),D();const g=x(!0),m=x(!1),f=x(!1),A=l=>{v.current=l,d()},F=l=>{v.current=l,d()},i=C({duka:!1,playerId:"",rfId:"",total:0,text:"新建",data:[]}),s=C({}),v=C({current:1,size:20,batchesCode:"",batchesName:"",batchesDescription:""}),d=()=>{let l=v;g.value=!0,b.get("/api/attributeClassification/page",l).then(e=>{e.code==200?(g.value=!1,i.total=e.data.total,i.data=e.data.records):u.error(e.message)}).catch(e=>{g.value=!1})},I=()=>{let l={attributeClassificationName:s.attributeClassificationName};m.value=!0,i.text=="新建"?b.post("/api/attributeClassification/add",l).then(e=>{e.code==200?(u.success(e.message),m.value=!1,d(),f.value=!1):u.error(e.message)}).catch(e=>{m.value=!1}):b.put(`/api/attributeClassification/edit/${s.id}`,l).then(e=>{e.code==200?(u.success(e.message),m.value=!1,d(),f.value=!1):u.error(e.message)}).catch(e=>{m.value=!1})},L=l=>{let e={};b.delete(`/api/attributeClassification/delete/${l.id}`,e).then(p=>{p.code==200?(u.success(p.message),d()):u.error(p.message)})},w=l=>{l?(s.attributeClassificationName=l.attributeClassificationName,s.id=l.id,i.text="修改"):(s.mfcCode=[],s.mfcName="",s.mfcDescription="",i.text="新建"),f.value=!0},P=l=>{U.push(l)},V=()=>{f.value=!1};return d(),(l,e)=>{const p=n("el-input"),h=n("el-col"),c=n("el-button"),$=n("el-row"),R=n("el-header"),y=n("el-table-column"),S=n("el-popconfirm"),q=n("el-table"),M=n("el-pagination"),T=n("el-main"),G=n("el-container"),H=n("el-form-item"),J=n("el-form"),K=n("el-dialog"),z=Q("loading");return k(),W("div",X,[t(G,null,{default:a(()=>[t(R,null,{default:a(()=>[t($,{gutter:1,justify:"space-between"},{default:a(()=>[t(h,{span:6},{default:a(()=>[t(p,{modelValue:r(v).attributeClassificationName,"onUpdate:modelValue":e[0]||(e[0]=o=>r(v).attributeClassificationName=o),placeholder:"属性分类名称"},null,8,["modelValue"])]),_:1}),t(h,{span:6,style:{flex:"0 0 25%",display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:a(()=>[t(c,{type:" primary",color:"#4179FC",onClick:e[1]||(e[1]=o=>d())},{default:a(()=>[Y]),_:1}),t(c,{type:"primary",color:"#4179FC",onClick:e[2]||(e[2]=o=>w())},{default:a(()=>[Z]),_:1})]),_:1})]),_:1})]),_:1}),t(T,null,{default:a(()=>[N("div",ee,[B((k(),j(q,{data:r(i).data,height:"100%",lazy:""},{default:a(()=>[t(y,{prop:"attributeClassificationName",label:"属性分类名称"}),t(y,{prop:"createdAt",label:"创建日期"}),t(y,{fixed:"right",label:"操作",width:"300"},{default:a(o=>[t(c,{link:"",type:"primary",size:"small",onClick:E=>w(o.row)},{default:a(()=>[te]),_:2},1032,["onClick"]),t(c,{link:"",size:"small",onClick:E=>P("/home/attribute?id="+o.row.id)},{default:a(()=>[ae]),_:2},1032,["onClick"]),t(S,{title:"确认删除",onConfirm:E=>L(o.row)},{reference:a(()=>[t(c,{link:"",type:"danger",size:"small"},{default:a(()=>[le]),_:1})]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"])),[[z,g.value]])]),N("div",oe,[t(M,{total:r(i).total,class:"ydool_pagination",layout:"->,total, prev, pager, next, jumper","page-size":20,onSizeChange:A,onCurrentChange:F},null,8,["total"])])]),_:1})]),_:1}),B((k(),j(K,{style:{height:"max-content"},modelValue:f.value,"onUpdate:modelValue":e[6]||(e[6]=o=>f.value=o),title:r(i).text,width:"30%","align-center":"",onClose:e[7]||(e[7]=o=>V())},{footer:a(()=>[N("div",ne,[t(c,{onClick:e[4]||(e[4]=o=>V())},{default:a(()=>[se]),_:1}),t(c,{type:"primary",onClick:e[5]||(e[5]=o=>I())},{default:a(()=>[ie]),_:1})])]),default:a(()=>[t(J,{model:l.form,"label-width":"100px"},{default:a(()=>[t($,{gutter:24},{default:a(()=>[t(h,{span:24},{default:a(()=>[t(H,{label:"属性分类名称:"},{default:a(()=>[t(p,{modelValue:r(s).attributeClassificationName,"onUpdate:modelValue":e[3]||(e[3]=o=>r(s).attributeClassificationName=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])),[[z,m.value]])])}}};export{ue as default};
|
||||
import{m as O,u as D,a as C,r as x,b as n,p as Q,o as k,c as W,e as t,w as a,q as B,i as j,f as r,h as b,E as u,d as N,g as _}from"./index-574ec709.js";/* empty css */const X={class:"common-layout"},Y=_("查询"),Z=_("新建"),ee={class:"txl_bd"},te=_("修改信息"),ae=_("查看属性"),le=_("删除"),oe={class:"fy"},ne={class:"dialog-footer"},se=_("取消"),ie=_(" 确认 "),ue={setup(de){O();const U=D();C({data:{}}),D();const g=x(!0),m=x(!1),f=x(!1),A=l=>{v.current=l,d()},F=l=>{v.current=l,d()},i=C({duka:!1,playerId:"",rfId:"",total:0,text:"新建",data:[]}),s=C({}),v=C({current:1,size:20,batchesCode:"",batchesName:"",batchesDescription:""}),d=()=>{let l=v;g.value=!0,b.get("/api/attributeClassification/page",l).then(e=>{e.code==200?(g.value=!1,i.total=e.data.total,i.data=e.data.records):u.error(e.message)}).catch(e=>{g.value=!1})},I=()=>{let l={attributeClassificationName:s.attributeClassificationName};m.value=!0,i.text=="新建"?b.post("/api/attributeClassification/add",l).then(e=>{e.code==200?(u.success(e.message),m.value=!1,d(),f.value=!1):u.error(e.message)}).catch(e=>{m.value=!1}):b.put(`/api/attributeClassification/edit/${s.id}`,l).then(e=>{e.code==200?(u.success(e.message),m.value=!1,d(),f.value=!1):u.error(e.message)}).catch(e=>{m.value=!1})},L=l=>{let e={};b.delete(`/api/attributeClassification/delete/${l.id}`,e).then(p=>{p.code==200?(u.success(p.message),d()):u.error(p.message)})},w=l=>{l?(s.attributeClassificationName=l.attributeClassificationName,s.id=l.id,i.text="修改"):(s.mfcCode=[],s.mfcName="",s.mfcDescription="",i.text="新建"),f.value=!0},P=l=>{U.push(l)},V=()=>{f.value=!1};return d(),(l,e)=>{const p=n("el-input"),h=n("el-col"),c=n("el-button"),$=n("el-row"),R=n("el-header"),y=n("el-table-column"),S=n("el-popconfirm"),q=n("el-table"),M=n("el-pagination"),T=n("el-main"),G=n("el-container"),H=n("el-form-item"),J=n("el-form"),K=n("el-dialog"),z=Q("loading");return k(),W("div",X,[t(G,null,{default:a(()=>[t(R,null,{default:a(()=>[t($,{gutter:1,justify:"space-between"},{default:a(()=>[t(h,{span:6},{default:a(()=>[t(p,{modelValue:r(v).attributeClassificationName,"onUpdate:modelValue":e[0]||(e[0]=o=>r(v).attributeClassificationName=o),placeholder:"属性分类名称"},null,8,["modelValue"])]),_:1}),t(h,{span:6,style:{flex:"0 0 25%",display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:a(()=>[t(c,{type:" primary",color:"#4179FC",onClick:e[1]||(e[1]=o=>d())},{default:a(()=>[Y]),_:1}),t(c,{type:"primary",color:"#4179FC",onClick:e[2]||(e[2]=o=>w())},{default:a(()=>[Z]),_:1})]),_:1})]),_:1})]),_:1}),t(T,null,{default:a(()=>[N("div",ee,[B((k(),j(q,{data:r(i).data,height:"100%",lazy:""},{default:a(()=>[t(y,{prop:"attributeClassificationName",label:"属性分类名称"}),t(y,{prop:"createdAt",label:"创建日期"}),t(y,{fixed:"right",label:"操作",width:"300"},{default:a(o=>[t(c,{link:"",type:"primary",size:"small",onClick:E=>w(o.row)},{default:a(()=>[te]),_:2},1032,["onClick"]),t(c,{link:"",size:"small",onClick:E=>P("/home/attribute?id="+o.row.id)},{default:a(()=>[ae]),_:2},1032,["onClick"]),t(S,{title:"确认删除",onConfirm:E=>L(o.row)},{reference:a(()=>[t(c,{link:"",type:"danger",size:"small"},{default:a(()=>[le]),_:1})]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"])),[[z,g.value]])]),N("div",oe,[t(M,{total:r(i).total,class:"ydool_pagination",layout:"->,total, prev, pager, next, jumper","page-size":20,onSizeChange:A,onCurrentChange:F},null,8,["total"])])]),_:1})]),_:1}),B((k(),j(K,{style:{height:"max-content"},modelValue:f.value,"onUpdate:modelValue":e[6]||(e[6]=o=>f.value=o),title:r(i).text,width:"30%","align-center":"",onClose:e[7]||(e[7]=o=>V())},{footer:a(()=>[N("div",ne,[t(c,{onClick:e[4]||(e[4]=o=>V())},{default:a(()=>[se]),_:1}),t(c,{type:"primary",onClick:e[5]||(e[5]=o=>I())},{default:a(()=>[ie]),_:1})])]),default:a(()=>[t(J,{model:l.form,"label-width":"100px"},{default:a(()=>[t($,{gutter:24},{default:a(()=>[t(h,{span:24},{default:a(()=>[t(H,{label:"属性分类名称:"},{default:a(()=>[t(p,{modelValue:r(s).attributeClassificationName,"onUpdate:modelValue":e[3]||(e[3]=o=>r(s).attributeClassificationName=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])),[[z,m.value]])])}}};export{ue as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{e as i}from"./index-c765cce5.js";import{u as h,r as P,a as V,b as m,o as g,c as x,d,e as t,w as r,f as a,h as S,E as w,g as n}from"./index-296085fa.js";import{_ as b}from"./_plugin-vue_export-helper-c27b6911.js";const $={class:"body"},k={class:"revise"},B={class:"past"},C=n("旧密码:"),E={class:"past"},F=n("新密码:"),N={class:"past"},R=n("重新输入密码:"),U={class:"confirm"},I=n("确定"),A={setup(M){const f=h(),l=P(!0),p=()=>{l.value=!1},s=V({formState:{oldPassword:"",newPassword:"",rePassword:""}}),v=()=>{let c={oldPassword:i(s.formState.oldPassword),newPassword:i(s.formState.newPassword),rePassword:i(s.formState.rePassword)};S.post("/api/upms/admin/edit_password",c).then(e=>{console.log(e),e.code===200?(w.success(e.message),f.push("/home"),s.formState={}):w.error(e.message)})};return(c,e)=>{const u=m("el-text"),_=m("el-input"),y=m("el-button");return g(),x("div",$,[d("div",k,[d("div",B,[t(u,{class:"past_right"},{default:r(()=>[C]),_:1}),t(_,{modelValue:a(s).formState.oldPassword,"onUpdate:modelValue":e[0]||(e[0]=o=>a(s).formState.oldPassword=o),placeholder:"请输入",style:{width:"300px"},readonly:l.value,onFocus:e[1]||(e[1]=o=>p())},null,8,["modelValue","readonly"])]),d("div",E,[t(u,{class:"past_right"},{default:r(()=>[F]),_:1}),t(_,{modelValue:a(s).formState.newPassword,"onUpdate:modelValue":e[2]||(e[2]=o=>a(s).formState.newPassword=o),"show-password":"true",placeholder:"请输入",style:{width:"300px"},readonly:l.value,onFocus:e[3]||(e[3]=o=>p())},null,8,["modelValue","readonly"])]),d("div",N,[t(u,{class:"past_right"},{default:r(()=>[R]),_:1}),t(_,{modelValue:a(s).formState.rePassword,"onUpdate:modelValue":e[4]||(e[4]=o=>a(s).formState.rePassword=o),placeholder:"请输入","show-password":"true",style:{width:"300px"},readonly:l.value,onFocus:e[5]||(e[5]=o=>p())},null,8,["modelValue","readonly"])]),d("div",U,[t(y,{type:"primary",onClick:e[6]||(e[6]=o=>v())},{default:r(()=>[I]),_:1})])])])}}},q=b(A,[["__scopeId","data-v-90228594"]]);export{q as default};
|
||||
import{e as i}from"./index-c765cce5.js";import{u as h,r as P,a as V,b as m,o as g,c as x,d,e as t,w as r,f as a,h as S,E as w,g as n}from"./index-574ec709.js";import{_ as b}from"./_plugin-vue_export-helper-c27b6911.js";const $={class:"body"},k={class:"revise"},B={class:"past"},C=n("旧密码:"),E={class:"past"},F=n("新密码:"),N={class:"past"},R=n("重新输入密码:"),U={class:"confirm"},I=n("确定"),A={setup(M){const f=h(),l=P(!0),p=()=>{l.value=!1},s=V({formState:{oldPassword:"",newPassword:"",rePassword:""}}),v=()=>{let c={oldPassword:i(s.formState.oldPassword),newPassword:i(s.formState.newPassword),rePassword:i(s.formState.rePassword)};S.post("/api/upms/admin/edit_password",c).then(e=>{console.log(e),e.code===200?(w.success(e.message),f.push("/home"),s.formState={}):w.error(e.message)})};return(c,e)=>{const u=m("el-text"),_=m("el-input"),y=m("el-button");return g(),x("div",$,[d("div",k,[d("div",B,[t(u,{class:"past_right"},{default:r(()=>[C]),_:1}),t(_,{modelValue:a(s).formState.oldPassword,"onUpdate:modelValue":e[0]||(e[0]=o=>a(s).formState.oldPassword=o),placeholder:"请输入",style:{width:"300px"},readonly:l.value,onFocus:e[1]||(e[1]=o=>p())},null,8,["modelValue","readonly"])]),d("div",E,[t(u,{class:"past_right"},{default:r(()=>[F]),_:1}),t(_,{modelValue:a(s).formState.newPassword,"onUpdate:modelValue":e[2]||(e[2]=o=>a(s).formState.newPassword=o),"show-password":"true",placeholder:"请输入",style:{width:"300px"},readonly:l.value,onFocus:e[3]||(e[3]=o=>p())},null,8,["modelValue","readonly"])]),d("div",N,[t(u,{class:"past_right"},{default:r(()=>[R]),_:1}),t(_,{modelValue:a(s).formState.rePassword,"onUpdate:modelValue":e[4]||(e[4]=o=>a(s).formState.rePassword=o),placeholder:"请输入","show-password":"true",style:{width:"300px"},readonly:l.value,onFocus:e[5]||(e[5]=o=>p())},null,8,["modelValue","readonly"])]),d("div",U,[t(y,{type:"primary",onClick:e[6]||(e[6]=o=>v())},{default:r(()=>[I]),_:1})])])])}}},q=b(A,[["__scopeId","data-v-90228594"]]);export{q as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{r as x,t as v,b as f,o as m,c as y,d as t,y as b,f as o,e as k,w as l,F as C,g as h}from"./index-296085fa.js";const g=h(" 提示 "),B=t("div",null,"确定要删除节点 线索新增 ,删除后后面的节点数据将清空 ?",-1),N={props:{contextMenuData:{type:Object,default:()=>{}}},emits:["deletedata","cancel"],setup(c,{emit:a}){const i=c,e=x(!1),{contextMenuData:n}=v(i),d=()=>{e.value=!0},r=()=>{a("deletedata")},u=()=>{a("cancel")};return(D,s)=>{const _=f("a-modal");return m(),y(C,null,[t("div",{class:"context-menu",style:b({top:o(n).axis.y+"px",left:o(n).axis.x+"px"})},[t("div",{onClick:d},"删除")],4),k(_,{visible:e.value,"onUpdate:visible":s[0]||(s[0]=p=>e.value=p),onOk:r,onCancel:u},{title:l(()=>[g]),default:l(()=>[B]),_:1},8,["visible"])],64)}}};export{N as default};
|
||||
import{r as x,t as v,b as f,o as m,c as y,d as t,y as b,f as o,e as k,w as l,F as C,g as h}from"./index-574ec709.js";const g=h(" 提示 "),B=t("div",null,"确定要删除节点 线索新增 ,删除后后面的节点数据将清空 ?",-1),N={props:{contextMenuData:{type:Object,default:()=>{}}},emits:["deletedata","cancel"],setup(c,{emit:a}){const i=c,e=x(!1),{contextMenuData:n}=v(i),d=()=>{e.value=!0},r=()=>{a("deletedata")},u=()=>{a("cancel")};return(D,s)=>{const _=f("a-modal");return m(),y(C,null,[t("div",{class:"context-menu",style:b({top:o(n).axis.y+"px",left:o(n).axis.x+"px"})},[t("div",{onClick:d},"删除")],4),k(_,{visible:e.value,"onUpdate:visible":s[0]||(s[0]=p=>e.value=p),onOk:r,onCancel:u},{title:l(()=>[g]),default:l(()=>[B]),_:1},8,["visible"])],64)}}};export{N as default};
|
|
@ -1 +1 @@
|
|||
import{C as m,E as f,h as g,B as x,b as d,o as w,i as b,w as l,e as c,d as p,g as i}from"./index-296085fa.js";import{_ as v}from"./_plugin-vue_export-helper-c27b6911.js";const B={data(){return{title:"",width:400,visible:!1,grape:"",api:"",loading:!1,loadingInstance:{},uploadHeader:{"x-token":"1212"}}},methods:{handlerBefore(){this.loadingInstance=m.service({text:"导入中..."})},handlerSuccess(e){this.loadingInstance.close(),e.code==200&&this.$alert(e.message,"导入结果",{confirmButtonText:"确定"}),e.code==400&&f.error(e.message)},handlerError(){this.loadingInstance.close()},download(){g.download(`/xzht/api/data/excel/${this.grape}/template`)},open(e,o=400,n){let r=x.data.get("user");this.uploadHeader["x-token"]=`Bearer ${r.token}`,console.log(r),this.title=e,this.width=o,this.visible=!0,this.grape=n,this.api=`/xzht/api/data/excel/${this.grape}/import`}}},k=i("选择文件上传"),V={class:"el-upload__tip"},C=i(' 仅允许导入"xls"或者"xlsx"格式文件, 点击'),E=i("下载模板 ");function I(e,o,n,r,t,s){const h=d("el-button"),u=d("el-upload"),_=d("el-dialog");return w(),b(_,{title:t.title,modelValue:t.visible,"onUpdate:modelValue":o[1]||(o[1]=a=>t.visible=a),width:t.width,"destroy-on-close":"",onClosed:o[2]||(o[2]=a=>e.$emit("closed"))},{default:l(()=>[c(u,{class:"upload-demo",action:t.api,"on-error":s.handlerError,"before-upload":s.handlerBefore,"on-success":s.handlerSuccess,"show-file-list":!1,headers:t.uploadHeader},{tip:l(()=>[p("div",V,[C,p("a",{href:"javascript:;",onClick:o[0]||(o[0]=(...a)=>s.download&&s.download(...a)),style:{color:"red"}},"【这里】"),E])]),default:l(()=>[c(h,{size:"small",type:"primary"},{default:l(()=>[k]),_:1})]),_:1},8,["action","on-error","before-upload","on-success","headers"])]),_:1},8,["title","modelValue","width"])}const H=v(B,[["render",I]]);export{H as default};
|
||||
import{C as m,E as f,h as g,B as x,b as d,o as w,i as b,w as l,e as c,d as p,g as i}from"./index-574ec709.js";import{_ as v}from"./_plugin-vue_export-helper-c27b6911.js";const B={data(){return{title:"",width:400,visible:!1,grape:"",api:"",loading:!1,loadingInstance:{},uploadHeader:{"x-token":"1212"}}},methods:{handlerBefore(){this.loadingInstance=m.service({text:"导入中..."})},handlerSuccess(e){this.loadingInstance.close(),e.code==200&&this.$alert(e.message,"导入结果",{confirmButtonText:"确定"}),e.code==400&&f.error(e.message)},handlerError(){this.loadingInstance.close()},download(){g.download(`/xzht/api/data/excel/${this.grape}/template`)},open(e,o=400,n){let r=x.data.get("user");this.uploadHeader["x-token"]=`Bearer ${r.token}`,console.log(r),this.title=e,this.width=o,this.visible=!0,this.grape=n,this.api=`/xzht/api/data/excel/${this.grape}/import`}}},k=i("选择文件上传"),V={class:"el-upload__tip"},C=i(' 仅允许导入"xls"或者"xlsx"格式文件, 点击'),E=i("下载模板 ");function I(e,o,n,r,t,s){const h=d("el-button"),u=d("el-upload"),_=d("el-dialog");return w(),b(_,{title:t.title,modelValue:t.visible,"onUpdate:modelValue":o[1]||(o[1]=a=>t.visible=a),width:t.width,"destroy-on-close":"",onClosed:o[2]||(o[2]=a=>e.$emit("closed"))},{default:l(()=>[c(u,{class:"upload-demo",action:t.api,"on-error":s.handlerError,"before-upload":s.handlerBefore,"on-success":s.handlerSuccess,"show-file-list":!1,headers:t.uploadHeader},{tip:l(()=>[p("div",V,[C,p("a",{href:"javascript:;",onClick:o[0]||(o[0]=(...a)=>s.download&&s.download(...a)),style:{color:"red"}},"【这里】"),E])]),default:l(()=>[c(h,{size:"small",type:"primary"},{default:l(()=>[k]),_:1})]),_:1},8,["action","on-error","before-upload","on-success","headers"])]),_:1},8,["title","modelValue","width"])}const H=v(B,[["render",I]]);export{H as default};
|
|
@ -1 +1 @@
|
|||
import{a as u,r as n,b as p,p as g,q as y,f as l,o as m,i as v,h as r,E as _}from"./index-296085fa.js";const K={emits:["hideShow"],setup(x,{expose:d,emit:D}){const a=u({treeData:[],loading:!0,checkedKeys:[],params:{}}),h=n(!1),f=(c,t)=>{console.log(t),a.params=t,r.get(c,t).then(s=>{if(s.code==200){a.loading=!1,a.treeData=s.data,console.log(s.checked);let e=JSON.parse(JSON.stringify(s.checked));i(s.data,e),console.log(e),a.checkedKeys=e}})},o=n(),k=c=>{let t=[];o.value.getCheckedNodes().map(e=>{t.push(e.key)}),o.value.getHalfCheckedKeys().map(e=>{t.push(e)}),c.loading=!0;let s=t.join(",");a.params.ids=s,r.post(c.action.postUrl,a.params).then(e=>{e.code==200&&(_.success("提交成功"),c.visibled=!1,c.loading=!1)})},i=(c,t)=>{for(let s=0;s<c.length;s++){const e=c[s];e.children&&e.children.length>0&&(t.indexOf(e.value)!=-1&&t.splice(t.indexOf(e.value),1),i(e.children,t))}};return d({initTreeData:f,postSubmit:k}),(c,t)=>{const s=p("el-tree"),e=g("loading");return y((m(),v(s,{data:l(a).treeData,selectable:!1,"show-checkbox":"",ref_key:"treeRef",ref:o,"node-key":"key","check-strictly":h.value,"default-checked-keys":l(a).checkedKeys,"empty-text":"暂无数据"},null,8,["data","check-strictly","default-checked-keys"])),[[e,l(a).loading]])}}};export{K as default};
|
||||
import{a as u,r as n,b as p,p as g,q as y,f as l,o as m,i as v,h as r,E as _}from"./index-574ec709.js";const K={emits:["hideShow"],setup(x,{expose:d,emit:D}){const a=u({treeData:[],loading:!0,checkedKeys:[],params:{}}),h=n(!1),f=(c,t)=>{console.log(t),a.params=t,r.get(c,t).then(s=>{if(s.code==200){a.loading=!1,a.treeData=s.data,console.log(s.checked);let e=JSON.parse(JSON.stringify(s.checked));i(s.data,e),console.log(e),a.checkedKeys=e}})},o=n(),k=c=>{let t=[];o.value.getCheckedNodes().map(e=>{t.push(e.key)}),o.value.getHalfCheckedKeys().map(e=>{t.push(e)}),c.loading=!0;let s=t.join(",");a.params.ids=s,r.post(c.action.postUrl,a.params).then(e=>{e.code==200&&(_.success("提交成功"),c.visibled=!1,c.loading=!1)})},i=(c,t)=>{for(let s=0;s<c.length;s++){const e=c[s];e.children&&e.children.length>0&&(t.indexOf(e.value)!=-1&&t.splice(t.indexOf(e.value),1),i(e.children,t))}};return d({initTreeData:f,postSubmit:k}),(c,t)=>{const s=p("el-tree"),e=g("loading");return y((m(),v(s,{data:l(a).treeData,selectable:!1,"show-checkbox":"",ref_key:"treeRef",ref:o,"node-key":"key","check-strictly":h.value,"default-checked-keys":l(a).checkedKeys,"empty-text":"暂无数据"},null,8,["data","check-strictly","default-checked-keys"])),[[e,l(a).loading]])}}};export{K as default};
|
|
@ -1 +0,0 @@
|
|||
import{r as u,a as _,m as Q,u as I,A as N,b as n,p as W,o as b,c as q,e as t,w as a,g as d,k as E,d as X,q as Y,i as A,f as y,j as D,h as g,E as h}from"./index-296085fa.js";/* empty css */import{_ as Z}from"./_plugin-vue_export-helper-c27b6911.js";const ee={class:"common-layout"},te=d("选择配置项"),ae=d("全选"),le=d("重置"),oe=d("确认"),se=d("返回"),ne={class:"txl_bd"},re={key:0},ce=d(E("")),ie={setup(ue){const v=u(!0),f=u(!0),V=async()=>{o.value=!0,v.value=!1,f.value=!f.value,await N(),v.value=!0,setTimeout(()=>{o.value=!1},500)};u([]),_({checkStrictly:!1});const k=Q(),B=I();_({data:{}}),I();const o=u(!0),x=u(!1);u();const S=u(!1);u();const F=l=>{o.value=!0;let e=[],s=[];c.data.map(r=>{e.push(...r.attributeList)}),e.map(r=>{s.push(r.id)}),c.total=s,setTimeout(()=>{o.value=!1},500)},c=_({duka:!1,playerId:"",rfId:"",total:[],total2:[],text:"新建",data:[],serch:[]});_({}),_({batchesCode:[{required:!0}],batchesName:[{required:!0}],batchesDescription:[{required:!0}],mfcId:[{required:!0}],ruleId:[{required:!0}]});const L=_({current:1,size:20,batchesCode:"",batchesName:"",batchesDescription:"",mfcId:""}),T=()=>{let l=L;o.value=!0,g.get("/api/mfc/attributeOptions",l).then(e=>{if(e.code==200){o.value=!1;let s=[];e.data.map(r=>{r.attributeName=r.attributeClassificationName,s.push(r.id)}),c.data=e.data}else h.error(e.message)}).catch(e=>{o.value=!1})},C=()=>{o.value=!0;let l={mfcId:k.query.id};o.value=!0,g.get("/api/mfc/attributeByBatchId",l).then(e=>{e.code==200?(c.total=[],c.total=e.data,o.value=!1):(o.value=!1,h.error(e.message))}).catch(e=>{o.value=!1})};function $(l){if(!Array.isArray(l))throw Error("TypeError: 参数必须为数组类型");let e=[];for(let s=0;s<l.length;s++)e.indexOf(l[s])===-1&&e.push(l[s]);return e}const z=async()=>{let l={mfcId:k.query.id,attributeIdList:$(c.total)};g.post("/api/mfc/editAttribute",l).then(e=>{e.code==200?(x.value=!1,S.value=!1,w(),h.success(e.message)):h.error(e.message)}).catch(e=>{x.value=!1})},R=l=>{console.log(l)},w=l=>{B.back()};return N(()=>{C(),T()}),(l,e)=>{const s=n("el-text"),r=n("el-col"),p=n("el-button"),j=n("el-row"),O=n("el-header"),m=n("el-table-column"),P=n("el-checkbox"),M=n("el-checkbox-group"),U=n("el-table"),G=n("el-main"),H=n("el-container"),J=W("loading");return b(),q("div",ee,[t(H,null,{default:a(()=>[t(O,null,{default:a(()=>[t(j,{gutter:24},{default:a(()=>[t(r,{span:4},{default:a(()=>[t(s,{class:"mx-1",tag:"b",size:"large"},{default:a(()=>[te]),_:1})]),_:1}),t(r,{span:20,style:{display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:a(()=>[t(p,{type:" primary",color:"#4179FC",onClick:e[0]||(e[0]=i=>V())},{default:a(()=>[d(E(f.value==!1?"展开":"收起"),1)]),_:1}),t(p,{type:" primary",color:"#4179FC",onClick:e[1]||(e[1]=i=>F())},{default:a(()=>[ae]),_:1}),t(p,{type:" primary",color:"#4179FC",onClick:e[2]||(e[2]=i=>C())},{default:a(()=>[le]),_:1}),t(p,{type:" primary",color:"#4179FC",onClick:e[3]||(e[3]=i=>z())},{default:a(()=>[oe]),_:1}),t(p,{type:"primary",color:"#4179FC",onClick:e[4]||(e[4]=i=>w())},{default:a(()=>[se]),_:1})]),_:1})]),_:1})]),_:1}),t(G,null,{default:a(()=>[X("div",ne,[v.value?Y((b(),A(U,{key:0,"header-cell-style":{background:"#dbe3eb",color:"#606266"},data:y(c).data,height:"100%",lazy:"","row-key":"id","default-expand-all":f.value,onSelectionChange:R,"tree-props":{children:"attributeList",hasChildren:"hasChildren",checkStrictly:!1}},{default:a(()=>[t(m,{prop:"attributeName",label:"分类/字段"}),t(m,{prop:"attributeDescription",label:"字段说明"}),t(m,{prop:"attributeRemarks",label:"字段备注"}),t(m,{label:"选中字段"},{default:a(i=>[i.row.attributeList?D("",!0):(b(),q("div",re,[t(M,{modelValue:y(c).total,"onUpdate:modelValue":e[5]||(e[5]=K=>y(c).total=K)},{default:a(()=>[(b(),A(P,{key:i.row.id,label:i.row.id,value:i.row.id},{default:a(()=>[ce]),_:2},1032,["label","value"]))]),_:2},1032,["modelValue"])]))]),_:1})]),_:1},8,["data","default-expand-all"])),[[J,o.value]]):D("",!0)])]),_:1})]),_:1})])}}},fe=Z(ie,[["__scopeId","data-v-51b4ac58"]]);export{fe as default};
|
|
@ -0,0 +1 @@
|
|||
import{r as u,a as _,m as Q,u as D,A as E,b as r,p as W,o as m,c as y,e as t,w as a,g as d,k as C,d as X,q as Y,i as V,j as g,f as k,h as x,E as b}from"./index-574ec709.js";/* empty css */import{_ as Z}from"./_plugin-vue_export-helper-c27b6911.js";const ee={class:"common-layout"},te=d("选择配置项"),ae=d("全选"),le=d("重置"),oe=d("确认"),se=d("返回"),ne={class:"txl_bd"},re={key:0},ce={key:0},ie=d(C("")),ue={setup(de){const v=u(!0),h=u(!0),w=async()=>{o.value=!0,v.value=!1,h.value=!h.value,await E(),v.value=!0,setTimeout(()=>{o.value=!1},500)};u([]),_({checkStrictly:!1});const I=Q(),B=D();_({data:{}}),D();const o=u(!0),N=u(!1);u();const L=u(!1);u();const S=l=>{o.value=!0;let e=[],n=[];i.data.map(c=>{e.push(...c.attributeList)}),e.map(c=>{n.push(c.id)}),i.total=n,setTimeout(()=>{o.value=!1},500)},i=_({duka:!1,playerId:"",rfId:"",total:[],total2:[],text:"新建",data:[],serch:[]});_({}),_({batchesCode:[{required:!0}],batchesName:[{required:!0}],batchesDescription:[{required:!0}],mfcId:[{required:!0}],ruleId:[{required:!0}]});const F=_({current:1,size:20,batchesCode:"",batchesName:"",batchesDescription:"",mfcId:""}),T=()=>{let l=F;o.value=!0,x.get("/api/mfc/attributeOptions",l).then(e=>{if(e.code==200){o.value=!1;let n=[];e.data.map(c=>{c.attributeName=c.attributeClassificationName,n.push(c.id)}),i.data=e.data}else b.error(e.message)}).catch(e=>{o.value=!1})},q=()=>{o.value=!0;let l={mfcId:I.query.id};o.value=!0,x.get("/api/mfc/attributeByBatchId",l).then(e=>{e.code==200?(i.total=[],i.total=e.data,o.value=!1):(o.value=!1,b.error(e.message))}).catch(e=>{o.value=!1})};function $(l){if(!Array.isArray(l))throw Error("TypeError: 参数必须为数组类型");let e=[];for(let n=0;n<l.length;n++)e.indexOf(l[n])===-1&&e.push(l[n]);return e}const z=async()=>{let l={mfcId:I.query.id,attributeIdList:$(i.total)};x.post("/api/mfc/editAttribute",l).then(e=>{e.code==200?(N.value=!1,L.value=!1,A(),b.success(e.message)):b.error(e.message)}).catch(e=>{N.value=!1})},R=l=>{console.log(l)},A=l=>{B.back()};return E(()=>{q(),T(),w()}),(l,e)=>{const n=r("el-text"),c=r("el-col"),p=r("el-button"),j=r("el-row"),O=r("el-header"),f=r("el-table-column"),P=r("el-checkbox"),M=r("el-checkbox-group"),U=r("el-table"),G=r("el-main"),H=r("el-container"),J=W("loading");return m(),y("div",ee,[t(H,null,{default:a(()=>[t(O,null,{default:a(()=>[t(j,{gutter:24},{default:a(()=>[t(c,{span:4},{default:a(()=>[t(n,{class:"mx-1",tag:"b",size:"large"},{default:a(()=>[te]),_:1})]),_:1}),t(c,{span:20,style:{display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:a(()=>[t(p,{type:" primary",color:"#4179FC",onClick:e[0]||(e[0]=s=>w())},{default:a(()=>[d(C(h.value==!1?"展开":"收起"),1)]),_:1}),t(p,{type:" primary",color:"#4179FC",onClick:e[1]||(e[1]=s=>S())},{default:a(()=>[ae]),_:1}),t(p,{type:" primary",color:"#4179FC",onClick:e[2]||(e[2]=s=>q())},{default:a(()=>[le]),_:1}),t(p,{type:" primary",color:"#4179FC",onClick:e[3]||(e[3]=s=>z())},{default:a(()=>[oe]),_:1}),t(p,{type:"primary",color:"#4179FC",onClick:e[4]||(e[4]=s=>A())},{default:a(()=>[se]),_:1})]),_:1})]),_:1})]),_:1}),t(G,null,{default:a(()=>[X("div",ne,[v.value?Y((m(),V(U,{key:0,"header-cell-style":{background:"#dbe3eb",color:"#606266"},data:k(i).data,height:"100%",lazy:"","row-key":"id","default-expand-all":h.value,onSelectionChange:R,"tree-props":{children:"attributeList",hasChildren:"hasChildren",checkStrictly:!1}},{default:a(()=>[t(f,{prop:"attributeName",label:"分类/字段"}),t(f,{prop:"attributeDescription",label:"字段说明"}),t(f,{prop:"attributeRemarks",label:"字段备注"}),t(f,{prop:"locked",label:"是/否锁定"},{default:a(s=>[s.row.attributeList?g("",!0):(m(),y("div",re,C(s.row.locked==!0?"已锁定":"未锁定"),1))]),_:1}),t(f,{label:"选中字段"},{default:a(s=>[s.row.attributeList?g("",!0):(m(),y("div",ce,[t(M,{modelValue:k(i).total,"onUpdate:modelValue":e[5]||(e[5]=K=>k(i).total=K)},{default:a(()=>[(m(),V(P,{key:s.row.id,label:s.row.id,value:s.row.id},{default:a(()=>[ie]),_:2},1032,["label","value"]))]),_:2},1032,["modelValue"])]))]),_:1})]),_:1},8,["data","default-expand-all"])),[[J,o.value]]):g("",!0)])]),_:1})]),_:1})])}}},me=Z(ue,[["__scopeId","data-v-9d6e6adc"]]);export{me as default};
|
|
@ -0,0 +1 @@
|
|||
.el-header[data-v-9d6e6adc]{line-height:60px}.txl_bd[data-v-9d6e6adc]{margin:auto;height:calc(100vh - 180px)}.fy[data-v-9d6e6adc]{display:flex;width:100%;justify-content:end;margin-top:20px}.el-select[data-v-9d6e6adc],.el-cascader[data-v-9d6e6adc],.el-input[data-v-9d6e6adc]{width:100%}.el-button .el-button[data-v-9d6e6adc]{margin-left:12px}
|
|
@ -1 +0,0 @@
|
|||
.el-header[data-v-51b4ac58]{line-height:60px}.txl_bd[data-v-51b4ac58]{margin:auto;height:calc(100vh - 180px)}.fy[data-v-51b4ac58]{display:flex;width:100%;justify-content:end;margin-top:20px}.el-select[data-v-51b4ac58],.el-cascader[data-v-51b4ac58],.el-input[data-v-51b4ac58]{width:100%}.el-button .el-button[data-v-51b4ac58]{margin-left:12px}
|
|
@ -0,0 +1 @@
|
|||
.el-header[data-v-7a99fdd2]{line-height:60px}.txl_bd[data-v-7a99fdd2]{margin:auto;height:calc(100vh - 180px)}.fy[data-v-7a99fdd2]{display:flex;width:100%;justify-content:end;margin-top:20px}.el-select[data-v-7a99fdd2],.el-cascader[data-v-7a99fdd2],.el-input[data-v-7a99fdd2]{width:100%}.el-button .el-button[data-v-7a99fdd2]{margin-left:12px}
|
|
@ -0,0 +1 @@
|
|||
import{r as n,a as u,m as U,u as I,A as V,b as o,p as M,o as p,c as v,e as t,w as l,g as f,k as w,d as G,q as H,i as J,j as y,f as K,h as L,E as g}from"./index-574ec709.js";/* empty css */import{_ as O}from"./_plugin-vue_export-helper-c27b6911.js";const Q={class:"common-layout"},W=f("填写属性值"),X=f("确认"),Y=f("返回"),Z={class:"txl_bd"},ee={key:0},te={key:0},ae={setup(le){const b=n(!0),_=n(!0),C=async()=>{c.value=!0,b.value=!1,_.value=!_.value,await V(),b.value=!0,setTimeout(()=>{c.value=!1},500)};n([]),u({checkStrictly:!1});const N=U(),D=I();u({data:{}}),I();const c=n(!0),k=n(!1);n();const q=n(!1);n();const m=u({duka:!1,playerId:"",rfId:"",total:0,text:"新建",data:[],serch:[]});u({}),u({batchesCode:[{required:!0}],batchesName:[{required:!0}],batchesDescription:[{required:!0}],mfcId:[{required:!0}],ruleId:[{required:!0}]}),u({current:1,size:20,batchesCode:"",batchesName:"",batchesDescription:"",mfcId:""});const S=()=>{let r={mfcId:N.query.id};c.value=!0,L.get("/api/mfc/attributeValueDetail",r).then(a=>{if(a.code==200){c.value=!1;let e=[];a.data.attributeClassificationList.map(i=>{i.attributeName=i.attributeClassificationName,e.push(i.id)}),m.data=a.data.attributeClassificationList,console.log(1)}else g.error(a.message)}).catch(a=>{c.value=!1})},A=async()=>{let r=[];m.data.map(e=>{e.attributeList.map(i=>{i.attributeClassificationId=e.attributeClassificationId}),r.push(...e.attributeList)});let a=[];r.map(e=>{a.push({mfcId:e.mfcId,batchesId:e.batchesId,attributeClassificationId:e.attributeClassificationId,attributeId:e.attributeId,attributeValue:e.attributeValue})}),L.post("/api/mfc/editAttributeValueBatch",{attributeValueList:a}).then(e=>{e.code==200?(k.value=!1,q.value=!1,x(),g.success(e.message)):g.error(e.message)}).catch(e=>{k.value=!1})},B=r=>{},x=r=>{D.back()};return V(()=>{S(),C()}),(r,a)=>{const e=o("el-text"),i=o("el-col"),h=o("el-button"),E=o("el-row"),z=o("el-header"),d=o("el-table-column"),F=o("el-input"),R=o("el-table"),T=o("el-main"),$=o("el-container"),j=M("loading");return p(),v("div",Q,[t($,null,{default:l(()=>[t(z,null,{default:l(()=>[t(E,{gutter:24},{default:l(()=>[t(i,{span:4},{default:l(()=>[t(e,{class:"mx-1",tag:"b",size:"large"},{default:l(()=>[W]),_:1})]),_:1}),t(i,{span:20,style:{display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:l(()=>[t(h,{type:" primary",color:"#4179FC",onClick:a[0]||(a[0]=s=>C())},{default:l(()=>[f(w(_.value==!1?"展开":"收起"),1)]),_:1}),t(h,{type:" primary",color:"#4179FC",onClick:a[1]||(a[1]=s=>A())},{default:l(()=>[X]),_:1}),t(h,{type:"primary",color:"#4179FC",onClick:a[2]||(a[2]=s=>x())},{default:l(()=>[Y]),_:1})]),_:1})]),_:1})]),_:1}),t(T,null,{default:l(()=>[G("div",Z,[b.value?H((p(),J(R,{key:0,data:K(m).data,height:"100%",lazy:"","row-key":"attributeClassificationId","default-expand-all":_.value,onSelectionChange:B,"header-cell-style":{background:"#dbe3eb",color:"#606266"},"tree-props":{children:"attributeList",hasChildren:"hasChildren",checkStrictly:!1}},{default:l(()=>[t(d,{prop:"attributeName",label:"分类/字段"}),t(d,{prop:"attributeDescription",label:"字段说明"}),t(d,{prop:"attributeRemarks",label:"字段备注"}),t(d,{prop:"locked",label:"是/否锁定"},{default:l(s=>[s.row.attributeList?y("",!0):(p(),v("div",ee,w(s.row.locked==!0?"已锁定":"未锁定"),1))]),_:1}),t(d,{label:"当前属性值"},{default:l(s=>[s.row.attributeList?y("",!0):(p(),v("div",te,[t(F,{rows:4,type:"textarea",modelValue:s.row.attributeValue,"onUpdate:modelValue":P=>s.row.attributeValue=P,placeholder:"请输入"},null,8,["modelValue","onUpdate:modelValue"])]))]),_:1})]),_:1},8,["data","default-expand-all"])),[[j,c.value]]):y("",!0)])]),_:1})]),_:1})])}}},ne=O(ae,[["__scopeId","data-v-7a99fdd2"]]);export{ne as default};
|
|
@ -1 +0,0 @@
|
|||
import{r as n,a as u,m as P,u as C,A as x,b as o,p as U,o as h,c as k,e as a,w as l,g as p,k as M,d as G,q as H,i as J,j as I,f as K,h as V,E as v}from"./index-296085fa.js";/* empty css */import{_ as O}from"./_plugin-vue_export-helper-c27b6911.js";const Q={class:"common-layout"},W=p("填写属性值"),X=p("确认"),Y=p("返回"),Z={class:"txl_bd"},ee={key:0},te={setup(ae){const f=n(!0),d=n(!0),w=async()=>{r.value=!0,f.value=!1,d.value=!d.value,await x(),f.value=!0,setTimeout(()=>{r.value=!1},500)};n([]),u({checkStrictly:!1});const N=P(),D=C();u({data:{}}),C();const r=n(!0),y=n(!1);n();const L=n(!1);n();const b=u({duka:!1,playerId:"",rfId:"",total:0,text:"新建",data:[],serch:[]});u({}),u({batchesCode:[{required:!0}],batchesName:[{required:!0}],batchesDescription:[{required:!0}],mfcId:[{required:!0}],ruleId:[{required:!0}]}),u({current:1,size:20,batchesCode:"",batchesName:"",batchesDescription:"",mfcId:""});const q=()=>{let i={mfcId:N.query.id};r.value=!0,V.get("/api/mfc/attributeValueDetail",i).then(t=>{if(t.code==200){r.value=!1;let e=[];t.data.attributeClassificationList.map(s=>{s.attributeName=s.attributeClassificationName,e.push(s.id)}),b.data=t.data.attributeClassificationList,console.log(1)}else v.error(t.message)}).catch(t=>{r.value=!1})},S=async()=>{let i=[];b.data.map(e=>{e.attributeList.map(s=>{s.attributeClassificationId=e.attributeClassificationId}),i.push(...e.attributeList)});let t=[];i.map(e=>{t.push({mfcId:e.mfcId,batchesId:e.batchesId,attributeClassificationId:e.attributeClassificationId,attributeId:e.attributeId,attributeValue:e.attributeValue})}),V.post("/api/mfc/editAttributeValueBatch",{attributeValueList:t}).then(e=>{e.code==200?(y.value=!1,L.value=!1,g(),v.success(e.message)):v.error(e.message)}).catch(e=>{y.value=!1})},A=i=>{},g=i=>{D.back()};return x(()=>{q()}),(i,t)=>{const e=o("el-text"),s=o("el-col"),m=o("el-button"),B=o("el-row"),E=o("el-header"),_=o("el-table-column"),z=o("el-input"),F=o("el-table"),R=o("el-main"),T=o("el-container"),$=U("loading");return h(),k("div",Q,[a(T,null,{default:l(()=>[a(E,null,{default:l(()=>[a(B,{gutter:24},{default:l(()=>[a(s,{span:4},{default:l(()=>[a(e,{class:"mx-1",tag:"b",size:"large"},{default:l(()=>[W]),_:1})]),_:1}),a(s,{span:20,style:{display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:l(()=>[a(m,{type:" primary",color:"#4179FC",onClick:t[0]||(t[0]=c=>w())},{default:l(()=>[p(M(d.value==!1?"展开":"收起"),1)]),_:1}),a(m,{type:" primary",color:"#4179FC",onClick:t[1]||(t[1]=c=>S())},{default:l(()=>[X]),_:1}),a(m,{type:"primary",color:"#4179FC",onClick:t[2]||(t[2]=c=>g())},{default:l(()=>[Y]),_:1})]),_:1})]),_:1})]),_:1}),a(R,null,{default:l(()=>[G("div",Z,[f.value?H((h(),J(F,{key:0,data:K(b).data,height:"100%",lazy:"","row-key":"attributeClassificationId","default-expand-all":d.value,onSelectionChange:A,"header-cell-style":{background:"#dbe3eb",color:"#606266"},"tree-props":{children:"attributeList",hasChildren:"hasChildren",checkStrictly:!1}},{default:l(()=>[a(_,{prop:"attributeName",label:"分类/字段"}),a(_,{prop:"attributeDescription",label:"字段说明"}),a(_,{prop:"attributeRemarks",label:"字段备注"}),a(_,{label:"属性值"},{default:l(c=>[c.row.attributeList?I("",!0):(h(),k("div",ee,[a(z,{rows:3,type:"textarea",modelValue:c.row.attributeValue,"onUpdate:modelValue":j=>c.row.attributeValue=j,placeholder:"请输入"},null,8,["modelValue","onUpdate:modelValue"])]))]),_:1})]),_:1},8,["data","default-expand-all"])),[[$,r.value]]):I("",!0)])]),_:1})]),_:1})])}}},ne=O(te,[["__scopeId","data-v-5e0e3165"]]);export{ne as default};
|
|
@ -1 +0,0 @@
|
|||
.el-header[data-v-5e0e3165]{line-height:60px}.txl_bd[data-v-5e0e3165]{margin:auto;height:calc(100vh - 180px)}.fy[data-v-5e0e3165]{display:flex;width:100%;justify-content:end;margin-top:20px}.el-select[data-v-5e0e3165],.el-cascader[data-v-5e0e3165],.el-input[data-v-5e0e3165]{width:100%}.el-button .el-button[data-v-5e0e3165]{margin-left:12px}
|
|
@ -0,0 +1 @@
|
|||
.el-header[data-v-6acf55b2]{line-height:60px}.txl_bd[data-v-6acf55b2]{margin:auto;height:calc(100vh - 180px)}.fy[data-v-6acf55b2]{display:flex;width:100%;justify-content:end;margin-top:20px}.el-select[data-v-6acf55b2],.el-cascader[data-v-6acf55b2],.el-input[data-v-6acf55b2]{width:100%}.el-button .el-button[data-v-6acf55b2]{margin-left:12px}
|
|
@ -0,0 +1 @@
|
|||
import{r,a as u,m as U,u as w,A as V,b as s,p as M,o as p,c as v,e as t,w as l,g as b,k as L,d as G,q as H,i as J,j as y,f as K,h as N,E as g}from"./index-574ec709.js";/* empty css */import{_ as O}from"./_plugin-vue_export-helper-c27b6911.js";const Q={class:"common-layout"},W=b("更改属性值(注:已锁定属性值不可更改)"),X=b("确认"),Y=b("返回"),Z={class:"txl_bd"},ee={key:0},te={key:0},ae={setup(le){const f=r(!0),_=r(!0),C=async()=>{c.value=!0,f.value=!1,_.value=!_.value,await V(),f.value=!0,setTimeout(()=>{c.value=!1},500)};r([]),u({checkStrictly:!1});const k=U(),q=w();u({data:{}}),w();const c=r(!0),x=r(!1);r();const D=r(!1);r();const m=u({duka:!1,playerId:"",rfId:"",total:0,text:"新建",data:[],serch:[]});u({}),u({batchesCode:[{required:!0}],batchesName:[{required:!0}],batchesDescription:[{required:!0}],mfcId:[{required:!0}],ruleId:[{required:!0}]}),u({current:1,size:20,batchesCode:"",batchesName:"",batchesDescription:"",mfcId:""});const S=()=>{let i={batchesId:k.query.id};c.value=!0,N.get("/api/batches/attributeValueDetail",i).then(a=>{if(a.code==200){c.value=!1;let e=[];a.data.attributeClassificationList.map(n=>{n.attributeName=n.attributeClassificationName,e.push(n.id)}),m.data=a.data.attributeClassificationList,console.log(1)}else g.error(a.message)}).catch(a=>{c.value=!1})},A=async()=>{let i=[];m.data.map(e=>{e.attributeList.map(n=>{n.attributeClassificationId=e.attributeClassificationId}),i.push(...e.attributeList)});let a=[];i.map(e=>{a.push({mfcId:e.mfcId,batchesId:k.query.id,attributeClassificationId:e.attributeClassificationId,attributeId:e.attributeId,attributeValue:e.attributeValue})}),N.post("/api/batches/editAttributeValueBatch",{attributeValueList:a}).then(e=>{e.code==200?(x.value=!1,D.value=!1,I(),g.success(e.message)):g.error(e.message)}).catch(e=>{x.value=!1})},B=i=>{console.log(i)},I=i=>{q.back()};return V(()=>{S(),C()}),(i,a)=>{const e=s("el-text"),n=s("el-col"),h=s("el-button"),E=s("el-row"),z=s("el-header"),d=s("el-table-column"),F=s("el-input"),R=s("el-table"),T=s("el-main"),$=s("el-container"),j=M("loading");return p(),v("div",Q,[t($,null,{default:l(()=>[t(z,null,{default:l(()=>[t(E,{gutter:24},{default:l(()=>[t(n,{span:16},{default:l(()=>[t(e,{class:"mx-1",tag:"b",size:"large"},{default:l(()=>[W]),_:1})]),_:1}),t(n,{span:8,style:{display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:l(()=>[t(h,{type:" primary",color:"#4179FC",onClick:a[0]||(a[0]=o=>C())},{default:l(()=>[b(L(_.value==!1?"展开":"收起"),1)]),_:1}),t(h,{type:" primary",color:"#4179FC",onClick:a[1]||(a[1]=o=>A())},{default:l(()=>[X]),_:1}),t(h,{type:"primary",color:"#4179FC",onClick:a[2]||(a[2]=o=>I())},{default:l(()=>[Y]),_:1})]),_:1})]),_:1})]),_:1}),t(T,null,{default:l(()=>[G("div",Z,[f.value?H((p(),J(R,{key:0,data:K(m).data,height:"100%",lazy:"","header-cell-style":{background:"#dbe3eb",color:"#606266"},"row-key":"attributeClassificationId","default-expand-all":_.value,onSelectionChange:B,"tree-props":{children:"attributeList",hasChildren:"hasChildren",checkStrictly:!1}},{default:l(()=>[t(d,{prop:"attributeName",label:"分类/字段"}),t(d,{prop:"attributeDescription",label:"字段说明"}),t(d,{prop:"attributeRemarks",label:"字段备注"}),t(d,{prop:"locked",label:"是/否锁定"},{default:l(o=>[o.row.attributeList?y("",!0):(p(),v("div",ee,L(o.row.locked==!0?"已锁定":"未锁定"),1))]),_:1}),t(d,{label:"当前属性值"},{default:l(o=>[o.row.attributeList?y("",!0):(p(),v("div",te,[t(F,{rows:4,type:"textarea",disabled:o.row.locked,modelValue:o.row.attributeValue,"onUpdate:modelValue":P=>o.row.attributeValue=P,placeholder:"请输入"},null,8,["disabled","modelValue","onUpdate:modelValue"])]))]),_:1})]),_:1},8,["data","default-expand-all"])),[[j,c.value]]):y("",!0)])]),_:1})]),_:1})])}}},ne=O(ae,[["__scopeId","data-v-6acf55b2"]]);export{ne as default};
|
|
@ -1 +0,0 @@
|
|||
.el-header[data-v-5a7af2b3]{line-height:60px}.txl_bd[data-v-5a7af2b3]{margin:auto;height:calc(100vh - 180px)}.fy[data-v-5a7af2b3]{display:flex;width:100%;justify-content:end;margin-top:20px}.el-select[data-v-5a7af2b3],.el-cascader[data-v-5a7af2b3],.el-input[data-v-5a7af2b3]{width:100%}.el-button .el-button[data-v-5a7af2b3]{margin-left:12px}
|
|
@ -1 +0,0 @@
|
|||
import{r,a as u,m as U,u as I,A as w,b as s,p as M,o as p,c as v,e as t,w as l,g as b,k as V,d as G,q as H,i as J,j as y,f as K,h as L,E as g}from"./index-296085fa.js";/* empty css */import{_ as O}from"./_plugin-vue_export-helper-c27b6911.js";const Q={class:"common-layout"},W=b("更改属性值(注:已锁定属性值不可更改)"),X=b("确认"),Y=b("返回"),Z={class:"txl_bd"},ee={key:0},te={key:0},ae={setup(le){const f=r(!0),_=r(!0),N=async()=>{c.value=!0,f.value=!1,_.value=!_.value,await w(),f.value=!0,setTimeout(()=>{c.value=!1},500)};r([]),u({checkStrictly:!1});const C=U(),q=I();u({data:{}}),I();const c=r(!0),k=r(!1);r();const D=r(!1);r();const m=u({duka:!1,playerId:"",rfId:"",total:0,text:"新建",data:[],serch:[]});u({}),u({batchesCode:[{required:!0}],batchesName:[{required:!0}],batchesDescription:[{required:!0}],mfcId:[{required:!0}],ruleId:[{required:!0}]}),u({current:1,size:20,batchesCode:"",batchesName:"",batchesDescription:"",mfcId:""});const S=()=>{let i={batchesId:C.query.id};c.value=!0,L.get("/api/batches/attributeValueDetail",i).then(a=>{if(a.code==200){c.value=!1;let e=[];a.data.attributeClassificationList.map(n=>{n.attributeName=n.attributeClassificationName,e.push(n.id)}),m.data=a.data.attributeClassificationList,console.log(1)}else g.error(a.message)}).catch(a=>{c.value=!1})},A=async()=>{let i=[];m.data.map(e=>{e.attributeList.map(n=>{n.attributeClassificationId=e.attributeClassificationId}),i.push(...e.attributeList)});let a=[];i.map(e=>{a.push({mfcId:e.mfcId,batchesId:C.query.id,attributeClassificationId:e.attributeClassificationId,attributeId:e.attributeId,attributeValue:e.attributeValue})}),L.post("/api/batches/editAttributeValueBatch",{attributeValueList:a}).then(e=>{e.code==200?(k.value=!1,D.value=!1,x(),g.success(e.message)):g.error(e.message)}).catch(e=>{k.value=!1})},B=i=>{console.log(i)},x=i=>{q.back()};return w(()=>{S()}),(i,a)=>{const e=s("el-text"),n=s("el-col"),h=s("el-button"),E=s("el-row"),z=s("el-header"),d=s("el-table-column"),F=s("el-input"),R=s("el-table"),T=s("el-main"),$=s("el-container"),j=M("loading");return p(),v("div",Q,[t($,null,{default:l(()=>[t(z,null,{default:l(()=>[t(E,{gutter:24},{default:l(()=>[t(n,{span:16},{default:l(()=>[t(e,{class:"mx-1",tag:"b",size:"large"},{default:l(()=>[W]),_:1})]),_:1}),t(n,{span:8,style:{display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:l(()=>[t(h,{type:" primary",color:"#4179FC",onClick:a[0]||(a[0]=o=>N())},{default:l(()=>[b(V(_.value==!1?"展开":"收起"),1)]),_:1}),t(h,{type:" primary",color:"#4179FC",onClick:a[1]||(a[1]=o=>A())},{default:l(()=>[X]),_:1}),t(h,{type:"primary",color:"#4179FC",onClick:a[2]||(a[2]=o=>x())},{default:l(()=>[Y]),_:1})]),_:1})]),_:1})]),_:1}),t(T,null,{default:l(()=>[G("div",Z,[f.value?H((p(),J(R,{key:0,data:K(m).data,height:"100%",lazy:"","header-cell-style":{background:"#dbe3eb",color:"#606266"},"row-key":"attributeClassificationId","default-expand-all":_.value,onSelectionChange:B,"tree-props":{children:"attributeList",hasChildren:"hasChildren",checkStrictly:!1}},{default:l(()=>[t(d,{prop:"attributeName",label:"分类/字段"}),t(d,{prop:"attributeDescription",label:"字段说明"}),t(d,{prop:"attributeRemarks",label:"字段备注"}),t(d,{prop:"locked",label:"是/否锁定"},{default:l(o=>[o.row.attributeList?y("",!0):(p(),v("div",ee,V(o.row.locked==!0?"已锁定":"未锁定"),1))]),_:1}),t(d,{label:"属性值"},{default:l(o=>[o.row.attributeList?y("",!0):(p(),v("div",te,[t(F,{rows:3,type:"textarea",disabled:o.row.locked,modelValue:o.row.attributeValue,"onUpdate:modelValue":P=>o.row.attributeValue=P,placeholder:"请输入"},null,8,["disabled","modelValue","onUpdate:modelValue"])]))]),_:1})]),_:1},8,["data","default-expand-all"])),[[j,c.value]]):y("",!0)])]),_:1})]),_:1})])}}},ne=O(ae,[["__scopeId","data-v-5a7af2b3"]]);export{ne as default};
|
|
@ -0,0 +1 @@
|
|||
.el-header[data-v-86f51840]{line-height:60px}.txl_bd[data-v-86f51840]{margin:auto;height:calc(100vh - 180px)}.fy[data-v-86f51840]{display:flex;width:100%;justify-content:end;margin-top:20px}.el-select[data-v-86f51840],.el-cascader[data-v-86f51840],.el-input[data-v-86f51840]{width:100%}.el-button .el-button[data-v-86f51840]{margin-left:12px}
|
|
@ -0,0 +1 @@
|
|||
import{r as s,a as c,m as T,u as k,A as x,b as l,p as j,o as _,c as m,e,w as t,g as h,k as C,d as F,q as U,i as $,j as b,f as M,h as G,E as H}from"./index-574ec709.js";/* empty css */import{_ as J}from"./_plugin-vue_export-helper-c27b6911.js";const K={class:"common-layout"},O=h("查看属性值"),P=h("返回"),Q={class:"txl_bd"},W={key:0},X={key:0},Y={setup(Z){const p=s(!0),d=s(!0),v=async()=>{n.value=!0,p.value=!1,d.value=!d.value,await x(),p.value=!0,setTimeout(()=>{n.value=!1},500)};s([]),c({checkStrictly:!1});const w=T(),V=k();c({data:{}}),k();const n=s(!0);s(!1),s(),s(!1),s();const g=c({duka:!1,playerId:"",rfId:"",total:0,text:"新建",data:[],serch:[]});c({}),c({batchesCode:[{required:!0}],batchesName:[{required:!0}],batchesDescription:[{required:!0}],mfcId:[{required:!0}],ruleId:[{required:!0}]}),c({current:1,size:20,batchesCode:"",batchesName:"",batchesDescription:"",mfcId:""});const N=()=>{let i={code:w.query.id};n.value=!0,G.get("/api/code/getAttributeValueDetail",i).then(a=>{if(a.code==200){n.value=!1;let f=[];a.data.attributeClassificationList.map(r=>{r.attributeName=r.attributeClassificationName,f.push(r.id)}),g.data=a.data.attributeClassificationList,console.log(1)}else H.error(a.message)}).catch(a=>{n.value=!1})},q=i=>{console.log(i)},D=i=>{V.back()};return x(()=>{N(),v()}),(i,a)=>{const f=l("el-text"),r=l("el-col"),y=l("el-button"),I=l("el-row"),L=l("el-header"),u=l("el-table-column"),S=l("el-input"),A=l("el-table"),E=l("el-main"),B=l("el-container"),z=j("loading");return _(),m("div",K,[e(B,null,{default:t(()=>[e(L,null,{default:t(()=>[e(I,{gutter:24},{default:t(()=>[e(r,{span:16},{default:t(()=>[e(f,{class:"mx-1",tag:"b",size:"large"},{default:t(()=>[O]),_:1})]),_:1}),e(r,{span:8,style:{display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:t(()=>[e(y,{type:" primary",color:"#4179FC",onClick:a[0]||(a[0]=o=>v())},{default:t(()=>[h(C(d.value==!1?"展开":"收起"),1)]),_:1}),e(y,{type:"primary",color:"#4179FC",onClick:a[1]||(a[1]=o=>D())},{default:t(()=>[P]),_:1})]),_:1})]),_:1})]),_:1}),e(E,null,{default:t(()=>[F("div",Q,[p.value?U((_(),$(A,{key:0,data:M(g).data,height:"100%",lazy:"","header-cell-style":{background:"#dbe3eb",color:"#606266"},"row-key":"attributeClassificationId","default-expand-all":d.value,onSelectionChange:q,"tree-props":{children:"attributeList",hasChildren:"hasChildren",checkStrictly:!1}},{default:t(()=>[e(u,{prop:"attributeName",label:"分类/字段"}),e(u,{prop:"attributeDescription",label:"字段说明"}),e(u,{prop:"attributeRemarks",label:"字段备注"}),e(u,{prop:"locked",label:"是/否锁定"},{default:t(o=>[o.row.attributeList?b("",!0):(_(),m("div",W,C(o.row.locked==!0?"已锁定":"未锁定"),1))]),_:1}),e(u,{label:"当前属性值"},{default:t(o=>[o.row.attributeList?b("",!0):(_(),m("div",X,[e(S,{rows:4,disabled:"",type:"textarea",modelValue:o.row.attributeValue,"onUpdate:modelValue":R=>o.row.attributeValue=R,placeholder:"暂未输入"},null,8,["modelValue","onUpdate:modelValue"])]))]),_:1})]),_:1},8,["data","default-expand-all"])),[[z,n.value]]):b("",!0)])]),_:1})]),_:1})])}}},le=J(Y,[["__scopeId","data-v-86f51840"]]);export{le as default};
|
|
@ -1 +1 @@
|
|||
import w from"./TableBody-1d3a05fa.js";import{r,a as k,b as i,o as S,c as V,e as o,w as t,R as H,f as z,d as h,k as D,g as m}from"./index-296085fa.js";import"./TableData-122deacb.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./TableHeader-b8143e84.js";import"./TablePagination-4c26d7ff.js";const x={class:"example"},B=m("插槽"),G=m("插槽"),P={style:{color:"#729880"}},R={class:"dialog-footer"},I=m("取消"),M=m(" 搜索 "),q={setup(U){const v=r(),u=k({tableHeader:[{buttons:["create","edit","delete",{type:"custom",name:"customButton",title:"自定义",icon:"Message",isOpen:"custom",disabled:a=>{var e;return((e=a[0])==null?void 0:e.id)!==3},permission:void 0}]},{buttons:["search","advanced","refresh","filter","bulkDelete",{name:"mixInput",options:[{label:1,value:1},{label:1,value:1}]},{name:"sort",options:[{label:"按企业名称",value:1},{label:"按姓名",value:2}]},{type:"custom",name:"customButton",title:"自定义",icon:"Message",isOpen:"custom",disabled:!1}]},{create:void 0,edit:!1,detail:!1,delete:!1,search:!1,advanced:!1,refresh:!1,bulkDelete:!1,filter:!1}],tableType:{selection:!1,tableLoading:!1,tableIndex:!0,tableTree:!0,tableTreeName:"children",isExpand:!0,isHiddenPagination:!1,changeHeight:!1},tableList:[{type:"slot",name:"slotName",label:"插槽",show:!0,sortable:!0,sortableMethod:(a,e)=>new Date(a.date).getTime()-new Date(e.date).getTime(),width:100},{name:"date",label:"时间",show:!0,sortable:"custom"},{name:"name",label:"姓名",show:!0},{name:"state",label:"状态",show:!0},{name:"city",label:"城市",show:!0},{name:"address",label:"地址",show:!0},{name:"zip",label:"邮编",show:!0}],tableData:[{id:1,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽",children:[{id:2,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:3,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"}]},{id:4,date:"2016-05-02",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:5,date:"2016-05-03",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:6,date:"2016-05-04",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:7,date:"2016-05-05",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"}],pagination:{pageSize:20,current:1,total:0}}),C=({type:a,data:e})=>{switch(console.log(a,e),a){case"create":break;case"edit":break;case"advanced":N();break}},T=a=>{u.pagination.current=a,getData()},A=(a,e,s)=>{console.log(a,e,s)},f=a=>{console.log(a)},p=r(120),n=r({name:""}),d=r(!1),b=()=>{d.value=!1},N=()=>{d.value=!0};return(a,e)=>{const s=i("el-button"),_=i("el-input"),g=i("el-form-item"),y=i("el-form"),L=i("el-dialog");return S(),V("div",x,[o(w,H(z(u),{onHandleTableHeader:C,onHandleTablePagination:T,onHandleTableSort:A,ref_key:"TableBodyRef",ref:v}),{TableHeaderLeft:t(({selectData:l})=>[o(s,{onClick:c=>f(l)},{default:t(()=>[B]),_:2},1032,["onClick"])]),TableHeaderRight:t(({selectData:l})=>[o(s,{onClick:c=>f(l)},{default:t(()=>[G]),_:2},1032,["onClick"])]),slotName:t(({currentCol:l,currentData:c})=>[h("span",P,D(c),1)]),_:1},16),o(L,{modelValue:d.value,"onUpdate:modelValue":e[2]||(e[2]=l=>d.value=l),title:"搜索更多"},{footer:t(()=>[h("span",R,[o(s,{onClick:b},{default:t(()=>[I]),_:1}),o(s,{type:"primary",onClick:b},{default:t(()=>[M]),_:1})])]),default:t(()=>[o(y,{model:n.value},{default:t(()=>[o(g,{label:"企业名称","label-width":p.value},{default:t(()=>[o(_,{modelValue:n.value.name,"onUpdate:modelValue":e[0]||(e[0]=l=>n.value.name=l),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),o(g,{label:"公司地址","label-width":p.value},{default:t(()=>[o(_,{modelValue:n.value.name,"onUpdate:modelValue":e[1]||(e[1]=l=>n.value.name=l),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}};export{q as default};
|
||||
import w from"./TableBody-185bd369.js";import{r,a as k,b as i,o as S,c as V,e as o,w as t,R as H,f as z,d as h,k as D,g as m}from"./index-574ec709.js";import"./TableData-2933ed34.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./TableHeader-25adb54f.js";import"./TablePagination-499a7e7b.js";const x={class:"example"},B=m("插槽"),G=m("插槽"),P={style:{color:"#729880"}},R={class:"dialog-footer"},I=m("取消"),M=m(" 搜索 "),q={setup(U){const v=r(),u=k({tableHeader:[{buttons:["create","edit","delete",{type:"custom",name:"customButton",title:"自定义",icon:"Message",isOpen:"custom",disabled:a=>{var e;return((e=a[0])==null?void 0:e.id)!==3},permission:void 0}]},{buttons:["search","advanced","refresh","filter","bulkDelete",{name:"mixInput",options:[{label:1,value:1},{label:1,value:1}]},{name:"sort",options:[{label:"按企业名称",value:1},{label:"按姓名",value:2}]},{type:"custom",name:"customButton",title:"自定义",icon:"Message",isOpen:"custom",disabled:!1}]},{create:void 0,edit:!1,detail:!1,delete:!1,search:!1,advanced:!1,refresh:!1,bulkDelete:!1,filter:!1}],tableType:{selection:!1,tableLoading:!1,tableIndex:!0,tableTree:!0,tableTreeName:"children",isExpand:!0,isHiddenPagination:!1,changeHeight:!1},tableList:[{type:"slot",name:"slotName",label:"插槽",show:!0,sortable:!0,sortableMethod:(a,e)=>new Date(a.date).getTime()-new Date(e.date).getTime(),width:100},{name:"date",label:"时间",show:!0,sortable:"custom"},{name:"name",label:"姓名",show:!0},{name:"state",label:"状态",show:!0},{name:"city",label:"城市",show:!0},{name:"address",label:"地址",show:!0},{name:"zip",label:"邮编",show:!0}],tableData:[{id:1,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽",children:[{id:2,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:3,date:"2016-05-01",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"}]},{id:4,date:"2016-05-02",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:5,date:"2016-05-03",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:6,date:"2016-05-04",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"},{id:7,date:"2016-05-05",name:"Tom",state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036",slotName:"插槽"}],pagination:{pageSize:20,current:1,total:0}}),C=({type:a,data:e})=>{switch(console.log(a,e),a){case"create":break;case"edit":break;case"advanced":N();break}},T=a=>{u.pagination.current=a,getData()},A=(a,e,s)=>{console.log(a,e,s)},f=a=>{console.log(a)},p=r(120),n=r({name:""}),d=r(!1),b=()=>{d.value=!1},N=()=>{d.value=!0};return(a,e)=>{const s=i("el-button"),_=i("el-input"),g=i("el-form-item"),y=i("el-form"),L=i("el-dialog");return S(),V("div",x,[o(w,H(z(u),{onHandleTableHeader:C,onHandleTablePagination:T,onHandleTableSort:A,ref_key:"TableBodyRef",ref:v}),{TableHeaderLeft:t(({selectData:l})=>[o(s,{onClick:c=>f(l)},{default:t(()=>[B]),_:2},1032,["onClick"])]),TableHeaderRight:t(({selectData:l})=>[o(s,{onClick:c=>f(l)},{default:t(()=>[G]),_:2},1032,["onClick"])]),slotName:t(({currentCol:l,currentData:c})=>[h("span",P,D(c),1)]),_:1},16),o(L,{modelValue:d.value,"onUpdate:modelValue":e[2]||(e[2]=l=>d.value=l),title:"搜索更多"},{footer:t(()=>[h("span",R,[o(s,{onClick:b},{default:t(()=>[I]),_:1}),o(s,{type:"primary",onClick:b},{default:t(()=>[M]),_:1})])]),default:t(()=>[o(y,{model:n.value},{default:t(()=>[o(g,{label:"企业名称","label-width":p.value},{default:t(()=>[o(_,{modelValue:n.value.name,"onUpdate:modelValue":e[0]||(e[0]=l=>n.value.name=l),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),o(g,{label:"公司地址","label-width":p.value},{default:t(()=>[o(_,{modelValue:n.value.name,"onUpdate:modelValue":e[1]||(e[1]=l=>n.value.name=l),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}};export{q as default};
|
|
@ -1 +1 @@
|
|||
import{r as i,a as y,b as t,o as k,i as w,w as n,R as x,f as D,e,d as J}from"./index-296085fa.js";const h=J("span",{class:"text-gray-500"},"-",-1),B={setup(U){const s=i(!1),r=y({title:"新增",width:"30%",formType:"slot",formJosnRules:{},formJosnLabelWidth:"120px",formJosnElement:[{type:"input",cloSpan:24,disabled:!1,label:"姓名",placeholder:"请填写姓名",model:"name"}],formJosnDisabled:!1,formJsonData:{}}),p=c=>{s.value=!1},o=i({});return(c,l)=>{const _=t("el-input"),m=t("el-form-item"),u=t("el-option"),f=t("el-select"),v=t("el-date-picker"),d=t("el-col"),V=t("el-time-picker"),b=t("el-form"),g=t("FormDialog");return k(),w(g,x({modelValue:s.value,"onUpdate:modelValue":l[4]||(l[4]=a=>s.value=a)},D(r),{onHandleSubmit:p}),{default:n(()=>[e(b,{model:o.value,"label-width":"120px"},{default:n(()=>[e(m,{label:"Activity name"},{default:n(()=>[e(_,{modelValue:o.value.name,"onUpdate:modelValue":l[0]||(l[0]=a=>o.value.name=a)},null,8,["modelValue"])]),_:1}),e(m,{label:"Activity zone"},{default:n(()=>[e(f,{modelValue:o.value.region,"onUpdate:modelValue":l[1]||(l[1]=a=>o.value.region=a),placeholder:"please select your zone"},{default:n(()=>[e(u,{label:"Zone one",value:"shanghai"}),e(u,{label:"Zone two",value:"beijing"})]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"Activity time"},{default:n(()=>[e(d,{span:11},{default:n(()=>[e(v,{modelValue:o.value.date1,"onUpdate:modelValue":l[2]||(l[2]=a=>o.value.date1=a),type:"date",placeholder:"Pick a date",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(d,{span:2,class:"text-center"},{default:n(()=>[h]),_:1}),e(d,{span:11},{default:n(()=>[e(V,{modelValue:o.value.date2,"onUpdate:modelValue":l[3]||(l[3]=a=>o.value.date2=a),placeholder:"Pick a time",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},16,["modelValue"])}}};export{B as default};
|
||||
import{r as i,a as y,b as t,o as k,i as w,w as n,R as x,f as D,e,d as J}from"./index-574ec709.js";const h=J("span",{class:"text-gray-500"},"-",-1),B={setup(U){const s=i(!1),r=y({title:"新增",width:"30%",formType:"slot",formJosnRules:{},formJosnLabelWidth:"120px",formJosnElement:[{type:"input",cloSpan:24,disabled:!1,label:"姓名",placeholder:"请填写姓名",model:"name"}],formJosnDisabled:!1,formJsonData:{}}),p=c=>{s.value=!1},o=i({});return(c,l)=>{const _=t("el-input"),m=t("el-form-item"),u=t("el-option"),f=t("el-select"),v=t("el-date-picker"),d=t("el-col"),V=t("el-time-picker"),b=t("el-form"),g=t("FormDialog");return k(),w(g,x({modelValue:s.value,"onUpdate:modelValue":l[4]||(l[4]=a=>s.value=a)},D(r),{onHandleSubmit:p}),{default:n(()=>[e(b,{model:o.value,"label-width":"120px"},{default:n(()=>[e(m,{label:"Activity name"},{default:n(()=>[e(_,{modelValue:o.value.name,"onUpdate:modelValue":l[0]||(l[0]=a=>o.value.name=a)},null,8,["modelValue"])]),_:1}),e(m,{label:"Activity zone"},{default:n(()=>[e(f,{modelValue:o.value.region,"onUpdate:modelValue":l[1]||(l[1]=a=>o.value.region=a),placeholder:"please select your zone"},{default:n(()=>[e(u,{label:"Zone one",value:"shanghai"}),e(u,{label:"Zone two",value:"beijing"})]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"Activity time"},{default:n(()=>[e(d,{span:11},{default:n(()=>[e(v,{modelValue:o.value.date1,"onUpdate:modelValue":l[2]||(l[2]=a=>o.value.date1=a),type:"date",placeholder:"Pick a date",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(d,{span:2,class:"text-center"},{default:n(()=>[h]),_:1}),e(d,{span:11},{default:n(()=>[e(V,{modelValue:o.value.date2,"onUpdate:modelValue":l[3]||(l[3]=a=>o.value.date2=a),placeholder:"Pick a time",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},16,["modelValue"])}}};export{B as default};
|
|
@ -1 +1 @@
|
|||
import{u as useRouter,t as toRefs,a as reactive,r as ref,n as onMounted,b as resolveComponent,p as resolveDirective,q as withDirectives,o as openBlock,c as createElementBlock,e as createVNode,w as withCtx,f as unref,i as createBlock,j as createCommentVNode,h as http,E as ElMessage,F as Fragment,l as renderList,g as createTextVNode}from"./index-296085fa.js";import{e as emitter}from"./Bus-7f99bbc0.js";import _sfc_main$1 from"./index-300c91ac.js";import"./index-4ef1e46d.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-eecf3f53.js";/* empty css */import"./Images-230f8ecc.js";const tableData_vue_vue_type_style_index_0_lang="",tableData_vue_vue_type_style_index_1_lang="",tabTable_vue_vue_type_style_index_0_lang="",formData_vue_vue_type_style_index_0_lang="",_hoisted_1={class:"form-box"},_hoisted_2=createTextVNode(" 返回"),_hoisted_3=createTextVNode(" 提交"),_sfc_main={props:{grape:{type:Object,default:{}},dialog:{type:Object,default:{}}},setup(__props,{expose}){const props=__props,router=useRouter(),{grape,dialog}=toRefs(props),data=reactive({formList:null,ruleData:{},tabTable:null,saving:!1}),formData=ref({id:""}),loading=ref(!0);let url=`/api/build/${grape.value.name}/${dialog.value.mode}`;const getGrapeFormData=()=>{http.get(url,{id:dialog.value.id}).then(t=>{t.code==200&&(formData.value=t.data.data,data.formList=t.data.formList,data.ruleData=t.data.ruleList,data.tabTable=t.data.tabTable,loading.value=!1)})},getData=()=>formData.value,formRef=ref(),tabTableRef=ref(),tableData=ref([]),submitFormData=t=>{formRef.value.validate(async r=>{if(r)if(grape.value.name=="RkOrder")tableData.value=tabTableRef.value.getTabTableData(),tableData.value.map(a=>{a.num=a.price*a.amount,a.wzSpecId_mapping.map(o=>{a.wzSpecId==o.value&&(a.wzSpecTitle=o.label)})}),console.log(tableData.value),console.log(data.tabTable,"数据");else{data.saving=!0;let a=`/api/modify/${grape.value.name}`,o={data:formData.value};if(dialog.value.mode=="add"){let l={};for(let n in grape.value.params)l[grape.value.params[n]]=t[n];o.data={...o.data,...l}}data.tabTable&&(o.tabData=tabTableRef.value.getTabTableData()),http[dialog.value.mode=="add"?"post":"put"](a,o).then(l=>{l.code==200?(ElMessage.success("操作成功"),!dialog.value.isDialog&&grape.value.formSubmitUrl?router.push({path:grape.value.formSubmitUrl,query:{id:l.data.id}}):emitter.emit(grape.value.name,{})):ElMessage.error(l.message)})}})},evalExpr=expr=>eval(expr);return onMounted(()=>{getGrapeFormData()}),expose({getData,submitFormData}),(t,r)=>{const a=resolveComponent("el-form-item"),o=resolveComponent("el-col"),l=resolveComponent("el-row"),n=resolveComponent("el-input"),u=resolveComponent("el-form"),s=resolveComponent("el-button"),i=resolveDirective("loading");return withDirectives((openBlock(),createElementBlock("div",_hoisted_1,[createVNode(u,{model:formData.value,rules:unref(data).ruleData,labelWidth:unref(grape).labelWidth,"label-position":"right",ref_key:"formRef",ref:formRef},{default:withCtx(()=>[unref(data).formList?(openBlock(),createBlock(l,{key:0,gutter:10},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(data).formList,e=>(openBlock(),createElementBlock(Fragment,{key:e.name},[!e.showOn||evalExpr(e.showOn)?(openBlock(),createBlock(o,{key:0,span:e.span},{default:withCtx(()=>[createVNode(a,{label:e.label,prop:e.name},{default:withCtx(()=>[createVNode(unref(_sfc_main$1),{data:e,model:formData.value},null,8,["data","model"])]),_:2},1032,["label","prop"])]),_:2},1032,["span"])):createCommentVNode("",!0)],64))),128))]),_:1})):createCommentVNode("",!0),createVNode(n,{type:"hidden",modelValue:formData.value[unref(grape).primaryKey],"onUpdate:modelValue":r[0]||(r[0]=e=>formData.value[unref(grape).primaryKey]=e)},null,8,["modelValue"])]),_:1},8,["model","rules","labelWidth"]),unref(dialog).isDialog?createCommentVNode("",!0):(openBlock(),createBlock(l,{key:0,type:"flex",justify:"end",style:{"margin-top":"10px"}},{default:withCtx(()=>[unref(dialog).mode=="edit"?(openBlock(),createBlock(s,{key:0,type:"primary",onClick:r[1]||(r[1]=e=>unref(router).go(-1)),plain:""},{default:withCtx(()=>[_hoisted_2]),_:1})):createCommentVNode("",!0),withDirectives((openBlock(),createBlock(s,{type:"primary",onClick:r[2]||(r[2]=e=>submitFormData())},{default:withCtx(()=>[_hoisted_3]),_:1})),[[i,t.saving]])]),_:1}))])),[[i,loading.value]])}}};export{_sfc_main as default};
|
||||
import{u as useRouter,t as toRefs,a as reactive,r as ref,n as onMounted,b as resolveComponent,p as resolveDirective,q as withDirectives,o as openBlock,c as createElementBlock,e as createVNode,w as withCtx,f as unref,i as createBlock,j as createCommentVNode,h as http,E as ElMessage,F as Fragment,l as renderList,g as createTextVNode}from"./index-574ec709.js";import{e as emitter}from"./Bus-7f99bbc0.js";import _sfc_main$1 from"./index-725d7425.js";import"./index-fa0d2c11.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-8ebd1b79.js";/* empty css */import"./Images-a3eb1170.js";const tableData_vue_vue_type_style_index_0_lang="",tableData_vue_vue_type_style_index_1_lang="",tabTable_vue_vue_type_style_index_0_lang="",formData_vue_vue_type_style_index_0_lang="",_hoisted_1={class:"form-box"},_hoisted_2=createTextVNode(" 返回"),_hoisted_3=createTextVNode(" 提交"),_sfc_main={props:{grape:{type:Object,default:{}},dialog:{type:Object,default:{}}},setup(__props,{expose}){const props=__props,router=useRouter(),{grape,dialog}=toRefs(props),data=reactive({formList:null,ruleData:{},tabTable:null,saving:!1}),formData=ref({id:""}),loading=ref(!0);let url=`/api/build/${grape.value.name}/${dialog.value.mode}`;const getGrapeFormData=()=>{http.get(url,{id:dialog.value.id}).then(t=>{t.code==200&&(formData.value=t.data.data,data.formList=t.data.formList,data.ruleData=t.data.ruleList,data.tabTable=t.data.tabTable,loading.value=!1)})},getData=()=>formData.value,formRef=ref(),tabTableRef=ref(),tableData=ref([]),submitFormData=t=>{formRef.value.validate(async r=>{if(r)if(grape.value.name=="RkOrder")tableData.value=tabTableRef.value.getTabTableData(),tableData.value.map(a=>{a.num=a.price*a.amount,a.wzSpecId_mapping.map(o=>{a.wzSpecId==o.value&&(a.wzSpecTitle=o.label)})}),console.log(tableData.value),console.log(data.tabTable,"数据");else{data.saving=!0;let a=`/api/modify/${grape.value.name}`,o={data:formData.value};if(dialog.value.mode=="add"){let l={};for(let n in grape.value.params)l[grape.value.params[n]]=t[n];o.data={...o.data,...l}}data.tabTable&&(o.tabData=tabTableRef.value.getTabTableData()),http[dialog.value.mode=="add"?"post":"put"](a,o).then(l=>{l.code==200?(ElMessage.success("操作成功"),!dialog.value.isDialog&&grape.value.formSubmitUrl?router.push({path:grape.value.formSubmitUrl,query:{id:l.data.id}}):emitter.emit(grape.value.name,{})):ElMessage.error(l.message)})}})},evalExpr=expr=>eval(expr);return onMounted(()=>{getGrapeFormData()}),expose({getData,submitFormData}),(t,r)=>{const a=resolveComponent("el-form-item"),o=resolveComponent("el-col"),l=resolveComponent("el-row"),n=resolveComponent("el-input"),u=resolveComponent("el-form"),s=resolveComponent("el-button"),i=resolveDirective("loading");return withDirectives((openBlock(),createElementBlock("div",_hoisted_1,[createVNode(u,{model:formData.value,rules:unref(data).ruleData,labelWidth:unref(grape).labelWidth,"label-position":"right",ref_key:"formRef",ref:formRef},{default:withCtx(()=>[unref(data).formList?(openBlock(),createBlock(l,{key:0,gutter:10},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(data).formList,e=>(openBlock(),createElementBlock(Fragment,{key:e.name},[!e.showOn||evalExpr(e.showOn)?(openBlock(),createBlock(o,{key:0,span:e.span},{default:withCtx(()=>[createVNode(a,{label:e.label,prop:e.name},{default:withCtx(()=>[createVNode(unref(_sfc_main$1),{data:e,model:formData.value},null,8,["data","model"])]),_:2},1032,["label","prop"])]),_:2},1032,["span"])):createCommentVNode("",!0)],64))),128))]),_:1})):createCommentVNode("",!0),createVNode(n,{type:"hidden",modelValue:formData.value[unref(grape).primaryKey],"onUpdate:modelValue":r[0]||(r[0]=e=>formData.value[unref(grape).primaryKey]=e)},null,8,["modelValue"])]),_:1},8,["model","rules","labelWidth"]),unref(dialog).isDialog?createCommentVNode("",!0):(openBlock(),createBlock(l,{key:0,type:"flex",justify:"end",style:{"margin-top":"10px"}},{default:withCtx(()=>[unref(dialog).mode=="edit"?(openBlock(),createBlock(s,{key:0,type:"primary",onClick:r[1]||(r[1]=e=>unref(router).go(-1)),plain:""},{default:withCtx(()=>[_hoisted_2]),_:1})):createCommentVNode("",!0),withDirectives((openBlock(),createBlock(s,{type:"primary",onClick:r[2]||(r[2]=e=>submitFormData())},{default:withCtx(()=>[_hoisted_3]),_:1})),[[i,t.saving]])]),_:1}))])),[[i,loading.value]])}}};export{_sfc_main as default};
|
|
@ -1 +1 @@
|
|||
import{m as W,u as $,a as p,r as b,A as X,b as l,p as Y,o as C,c as Z,e as t,w as o,q as N,i as z,f as r,d as x,g as d,k as ee,h as y,E as f}from"./index-296085fa.js";/* empty css */const te={class:"common-layout"},oe=d("查询"),ae=d("新建"),le=d("返回"),ne={class:"txl_bd"},se={class:"fy"},re={class:"dialog-footer"},ce=d("取消"),de=d(" 确认 "),me={setup(ue){const k=W(),D=$();p({data:{}}),$();const g=b(!0),h=b(!1),E=b(),u=b(!1),B=a=>{i.current=a,_()},R=a=>{i.current=a,_()},s=p({duka:!1,playerId:"",rfId:"",total:0,text:"新建",data:[],serch:[]}),v=p({});p({batchesCode:[{required:!0}],batchesName:[{required:!0}],batchesDescription:[{required:!0}],mfcId:[{required:!0}],ruleId:[{required:!0}]});const i=p({current:1,size:20,code:"",batchesId:k.query.id}),_=()=>{let a=i;g.value=!0,y.get("/api/batches/codePage",a).then(e=>{e.code==200?(g.value=!1,s.total=e.data.total,s.data=e.data.records):f.error(e.message)}).catch(e=>{g.value=!1})},F=()=>{let a={};y.get("/api/mfc/list",a).then(e=>{e.code==200?s.serch=e.data:f.error(e.message)}).catch(e=>{})},P=()=>{let a={};y.get("/api/rule/list",a).then(e=>{e.code==200?s.serch2=e.data:f.error(e.message)}).catch(e=>{})},S=async()=>{h.value=!0,y.post(`/api/batches/generateCode?batchesId=${k.query.id}&count=${v.count*1}`,{}).then(a=>{a.code==200?(f.success(a.message),h.value=!1,_(),u.value=!1):f.error(a.message)}).catch(a=>{h.value=!1})},U=a=>{v.count=1,s.text="新建",u.value=!0},j=a=>{D.back()},V=()=>{u.value=!1};return X(()=>{P(),F(),_()}),(a,e)=>{const A=l("el-input"),c=l("el-col"),m=l("el-button"),w=l("el-row"),L=l("el-header"),q=l("el-table-column"),T=l("el-table"),M=l("el-pagination"),G=l("el-main"),H=l("el-container"),J=l("el-input-number"),K=l("el-form-item"),O=l("el-form"),Q=l("el-dialog"),I=Y("loading");return C(),Z("div",te,[t(H,null,{default:o(()=>[t(L,null,{default:o(()=>[t(w,{gutter:24},{default:o(()=>[t(c,{span:5},{default:o(()=>[t(A,{modelValue:r(i).code,"onUpdate:modelValue":e[0]||(e[0]=n=>r(i).code=n),placeholder:"编号"},null,8,["modelValue"])]),_:1}),t(c,{span:3}),t(c,{span:4}),t(c,{span:4}),t(c,{span:8,style:{display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:o(()=>[t(m,{type:" primary",color:"#4179FC",onClick:e[1]||(e[1]=n=>_())},{default:o(()=>[oe]),_:1}),t(m,{type:"primary",color:"#4179FC",onClick:e[2]||(e[2]=n=>U())},{default:o(()=>[ae]),_:1}),t(m,{type:"primary",color:"#4179FC",onClick:e[3]||(e[3]=n=>j())},{default:o(()=>[le]),_:1})]),_:1})]),_:1})]),_:1}),t(G,null,{default:o(()=>[x("div",ne,[N((C(),z(T,{data:r(s).data,height:"100%",lazy:""},{default:o(()=>[t(q,{prop:"code",label:"批次编号"}),t(q,{prop:"rule",label:"规则"},{default:o(n=>[d(ee(n.row.rule.ruleName?n.row.rule.ruleName:""),1)]),_:1})]),_:1},8,["data"])),[[I,g.value]])]),x("div",se,[t(M,{total:r(s).total,class:"ydool_pagination",layout:"->,total, prev, pager, next, jumper","page-size":20,onSizeChange:B,onCurrentChange:R},null,8,["total"])])]),_:1})]),_:1}),N((C(),z(Q,{style:{height:"max-content"},modelValue:u.value,"onUpdate:modelValue":e[6]||(e[6]=n=>u.value=n),title:r(s).text,width:"30%","align-center":"",onClose:e[7]||(e[7]=n=>V())},{footer:o(()=>[x("div",re,[t(m,{onClick:e[5]||(e[5]=n=>V())},{default:o(()=>[ce]),_:1}),t(m,{type:"primary",onClick:S},{default:o(()=>[de]),_:1})])]),default:o(()=>[t(O,{model:a.form,"label-width":"100px",ref_key:"formRef",ref:E},{default:o(()=>[t(w,{gutter:24},{default:o(()=>[t(c,{span:24},{default:o(()=>[t(K,{label:"生成条数:",prop:"batchesId"},{default:o(()=>[t(J,{modelValue:r(v).count,"onUpdate:modelValue":e[4]||(e[4]=n=>r(v).count=n),min:1,max:1e6,"controls-position":"right"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])),[[I,h.value]])])}}};export{me as default};
|
||||
import{m as W,u as $,a as p,r as b,A as X,b as l,p as Y,o as C,c as Z,e as t,w as o,q as N,i as z,f as r,d as x,g as d,k as ee,h as y,E as f}from"./index-574ec709.js";/* empty css */const te={class:"common-layout"},oe=d("查询"),ae=d("新建"),le=d("返回"),ne={class:"txl_bd"},se={class:"fy"},re={class:"dialog-footer"},ce=d("取消"),de=d(" 确认 "),me={setup(ue){const k=W(),D=$();p({data:{}}),$();const g=b(!0),h=b(!1),E=b(),u=b(!1),B=a=>{i.current=a,_()},R=a=>{i.current=a,_()},s=p({duka:!1,playerId:"",rfId:"",total:0,text:"新建",data:[],serch:[]}),v=p({});p({batchesCode:[{required:!0}],batchesName:[{required:!0}],batchesDescription:[{required:!0}],mfcId:[{required:!0}],ruleId:[{required:!0}]});const i=p({current:1,size:20,code:"",batchesId:k.query.id}),_=()=>{let a=i;g.value=!0,y.get("/api/batches/codePage",a).then(e=>{e.code==200?(g.value=!1,s.total=e.data.total,s.data=e.data.records):f.error(e.message)}).catch(e=>{g.value=!1})},F=()=>{let a={};y.get("/api/mfc/list",a).then(e=>{e.code==200?s.serch=e.data:f.error(e.message)}).catch(e=>{})},P=()=>{let a={};y.get("/api/rule/list",a).then(e=>{e.code==200?s.serch2=e.data:f.error(e.message)}).catch(e=>{})},S=async()=>{h.value=!0,y.post(`/api/batches/generateCode?batchesId=${k.query.id}&count=${v.count*1}`,{}).then(a=>{a.code==200?(f.success(a.message),h.value=!1,_(),u.value=!1):f.error(a.message)}).catch(a=>{h.value=!1})},U=a=>{v.count=1,s.text="新建",u.value=!0},j=a=>{D.back()},V=()=>{u.value=!1};return X(()=>{P(),F(),_()}),(a,e)=>{const A=l("el-input"),c=l("el-col"),m=l("el-button"),w=l("el-row"),L=l("el-header"),q=l("el-table-column"),T=l("el-table"),M=l("el-pagination"),G=l("el-main"),H=l("el-container"),J=l("el-input-number"),K=l("el-form-item"),O=l("el-form"),Q=l("el-dialog"),I=Y("loading");return C(),Z("div",te,[t(H,null,{default:o(()=>[t(L,null,{default:o(()=>[t(w,{gutter:24},{default:o(()=>[t(c,{span:5},{default:o(()=>[t(A,{modelValue:r(i).code,"onUpdate:modelValue":e[0]||(e[0]=n=>r(i).code=n),placeholder:"编号"},null,8,["modelValue"])]),_:1}),t(c,{span:3}),t(c,{span:4}),t(c,{span:4}),t(c,{span:8,style:{display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:o(()=>[t(m,{type:" primary",color:"#4179FC",onClick:e[1]||(e[1]=n=>_())},{default:o(()=>[oe]),_:1}),t(m,{type:"primary",color:"#4179FC",onClick:e[2]||(e[2]=n=>U())},{default:o(()=>[ae]),_:1}),t(m,{type:"primary",color:"#4179FC",onClick:e[3]||(e[3]=n=>j())},{default:o(()=>[le]),_:1})]),_:1})]),_:1})]),_:1}),t(G,null,{default:o(()=>[x("div",ne,[N((C(),z(T,{data:r(s).data,height:"100%",lazy:""},{default:o(()=>[t(q,{prop:"code",label:"批次编号"}),t(q,{prop:"rule",label:"规则"},{default:o(n=>[d(ee(n.row.rule.ruleName?n.row.rule.ruleName:""),1)]),_:1})]),_:1},8,["data"])),[[I,g.value]])]),x("div",se,[t(M,{total:r(s).total,class:"ydool_pagination",layout:"->,total, prev, pager, next, jumper","page-size":20,onSizeChange:B,onCurrentChange:R},null,8,["total"])])]),_:1})]),_:1}),N((C(),z(Q,{style:{height:"max-content"},modelValue:u.value,"onUpdate:modelValue":e[6]||(e[6]=n=>u.value=n),title:r(s).text,width:"30%","align-center":"",onClose:e[7]||(e[7]=n=>V())},{footer:o(()=>[x("div",re,[t(m,{onClick:e[5]||(e[5]=n=>V())},{default:o(()=>[ce]),_:1}),t(m,{type:"primary",onClick:S},{default:o(()=>[de]),_:1})])]),default:o(()=>[t(O,{model:a.form,"label-width":"100px",ref_key:"formRef",ref:E},{default:o(()=>[t(w,{gutter:24},{default:o(()=>[t(c,{span:24},{default:o(()=>[t(K,{label:"生成条数:",prop:"batchesId"},{default:o(()=>[t(J,{modelValue:r(v).count,"onUpdate:modelValue":e[4]||(e[4]=n=>r(v).count=n),min:1,max:1e6,"controls-position":"right"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])),[[I,h.value]])])}}};export{me as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
import{m as Z,u as E,a as p,r as y,A as ee,b as n,p as te,o as u,c as k,e as l,w as a,q as R,i as C,f as s,F as L,l as M,d as D,g as c,k as f,h as V,E as h}from"./index-296085fa.js";/* empty css */const le={class:"common-layout"},ae=c("查询"),oe={class:"txl_bd"},ne={class:"fy"},se={class:"dialog-footer"},re=c("取消"),de=c(" 确认 "),me={setup(ce){const q=Z();E(),p({data:{}}),E();const b=y(!0),g=y(!1),P=y(),v=y(!1),S=o=>{r.current=o,_()},j=o=>{r.current=o,_()},d=p({duka:!1,playerId:"",rfId:"",total:0,text:"新建",data:[],serch:[]}),w=p({});p({batchesCode:[{required:!0}],batchesName:[{required:!0}],batchesDescription:[{required:!0}],mfcId:[{required:!0}],ruleId:[{required:!0}]});const r=p({current:1,size:20,batchesCode:"",batchesName:"",batchesDescription:"",mfcId:""}),_=()=>{let o=r;o.batchesId=q.query.id,b.value=!0,V.get("/api/batches/codePage",o).then(t=>{t.code==200?(b.value=!1,d.total=t.data.total,d.data=t.data.records):h.error(t.message)}).catch(t=>{b.value=!1})},A=()=>{let o={};V.get("/api/mfc/list",o).then(t=>{t.code==200?d.serch=t.data:h.error(t.message)}).catch(t=>{})},T=()=>{let o={};V.get("/api/rule/list",o).then(t=>{t.code==200?d.serch2=t.data:h.error(t.message)}).catch(t=>{})},G=async()=>{g.value=!0,V.post(`/api/batches/generateCode?batchesId=${q.query.id}&count=${w.count*1}`,{}).then(o=>{o.code==200?(h.success(o.message),g.value=!1,_(),v.value=!1):h.error(o.message)}).catch(o=>{g.value=!1})},U=()=>{v.value=!1};return ee(()=>{T(),A(),_()}),(o,t)=>{const x=n("el-input"),i=n("el-col"),z=n("el-option"),F=n("el-select"),N=n("el-button"),$=n("el-row"),H=n("el-header"),m=n("el-table-column"),J=n("el-table"),K=n("el-pagination"),O=n("el-main"),Q=n("el-container"),W=n("el-form-item"),X=n("el-form"),Y=n("el-dialog"),B=te("loading");return u(),k("div",le,[l(Q,null,{default:a(()=>[l(H,null,{default:a(()=>[l($,{gutter:24},{default:a(()=>[l(i,{span:4},{default:a(()=>[l(x,{modelValue:s(r).code,"onUpdate:modelValue":t[0]||(t[0]=e=>s(r).code=e),placeholder:"编号"},null,8,["modelValue"])]),_:1}),l(i,{span:4},{default:a(()=>[l(x,{modelValue:s(r).batchesDescription,"onUpdate:modelValue":t[1]||(t[1]=e=>s(r).batchesDescription=e),placeholder:"批次描述"},null,8,["modelValue"])]),_:1}),l(i,{span:4},{default:a(()=>[l(F,{modelValue:s(r).ruleId,"onUpdate:modelValue":t[2]||(t[2]=e=>s(r).ruleId=e),placeholder:"请选择规则",clearable:""},{default:a(()=>[(u(!0),k(L,null,M(s(d).serch2,(e,I)=>(u(),C(z,{key:I,label:e.ruleName,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(i,{span:4},{default:a(()=>[l(F,{modelValue:s(r).mfcId,"onUpdate:modelValue":t[3]||(t[3]=e=>s(r).mfcId=e),placeholder:"请选择MFC",clearable:""},{default:a(()=>[(u(!0),k(L,null,M(s(d).serch,(e,I)=>(u(),C(z,{key:I,label:e.mfcName,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(i,{span:8,style:{display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:a(()=>[l(N,{type:" primary",color:"#4179FC",onClick:t[4]||(t[4]=e=>_())},{default:a(()=>[ae]),_:1})]),_:1})]),_:1})]),_:1}),l(O,null,{default:a(()=>[D("div",oe,[R((u(),C(J,{data:s(d).data,height:"100%",lazy:""},{default:a(()=>[l(m,{prop:"code",label:"编码编号"}),l(m,{prop:"batchesCode",label:"批次编号"},{default:a(e=>[c(f(e.row.batches.batchesCode?e.row.batches.batchesCode:""),1)]),_:1}),l(m,{prop:"batchesName",label:"批次描述"},{default:a(e=>[c(f(e.row.batches.batchesName?e.row.batches.batchesName:""),1)]),_:1}),l(m,{prop:"batchesDescription",label:"批次备注"},{default:a(e=>[c(f(e.row.batches.batchesDescription?e.row.batches.batchesDescription:""),1)]),_:1}),l(m,{prop:"mfcId",label:"MFC"},{default:a(e=>[c(f(e.row.mfc.mfcName?e.row.mfc.mfcName:""),1)]),_:1}),l(m,{prop:"rule",label:"规则"},{default:a(e=>[c(f(e.row.rule.ruleName?e.row.rule.ruleName:""),1)]),_:1})]),_:1},8,["data"])),[[B,b.value]])]),D("div",ne,[l(K,{total:s(d).total,class:"ydool_pagination",layout:"->,total, prev, pager, next, jumper","page-size":20,onSizeChange:S,onCurrentChange:j},null,8,["total"])])]),_:1})]),_:1}),R((u(),C(Y,{style:{height:"max-content"},modelValue:v.value,"onUpdate:modelValue":t[7]||(t[7]=e=>v.value=e),title:s(d).text,width:"30%","align-center":"",onClose:t[8]||(t[8]=e=>U())},{footer:a(()=>[D("div",se,[l(N,{onClick:t[6]||(t[6]=e=>U())},{default:a(()=>[re]),_:1}),l(N,{type:"primary",onClick:G},{default:a(()=>[de]),_:1})])]),default:a(()=>[l(X,{model:o.form,"label-width":"100px",ref_key:"formRef",ref:P},{default:a(()=>[l($,{gutter:24},{default:a(()=>[l(i,{span:24},{default:a(()=>[l(W,{label:"批次编号:",prop:"batchesId"},{default:a(()=>[l(x,{modelValue:s(w).count,"onUpdate:modelValue":t[5]||(t[5]=e=>s(w).count=e),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])),[[B,g.value]])])}}};export{me as default};
|
|
@ -1 +1 @@
|
|||
import{o as t,c as i,q as o,M as l,d as a,Q as p,y as m,j as _,F as h}from"./index-296085fa.js";import{_ as u}from"./_plugin-vue_export-helper-c27b6911.js";const b={props:["visible","height","width","mb"],emits:["close","mbClick"],setup(c,{emit:s}){const e=c,d=()=>{s("close",!1)},n=()=>{s("mbClick")};return(r,v)=>(t(),i(h,null,[o(a("div",{class:"popup",style:m({height:e.height?e.height+"px":"",width:e.width?e.width+"px":""})},[a("div",{class:"close",onClick:d}),p(r.$slots,"default",{},void 0,!0)],4),[[l,e.visible]]),e.mb?_("",!0):o((t(),i("div",{key:0,class:"mb",onClick:n},null,512)),[[l,e.visible]])],64))}},x=u(b,[["__scopeId","data-v-65add6b3"]]);export{x as default};
|
||||
import{o as t,c as i,q as o,M as l,d as a,Q as p,y as m,j as _,F as h}from"./index-574ec709.js";import{_ as u}from"./_plugin-vue_export-helper-c27b6911.js";const b={props:["visible","height","width","mb"],emits:["close","mbClick"],setup(c,{emit:s}){const e=c,d=()=>{s("close",!1)},n=()=>{s("mbClick")};return(r,v)=>(t(),i(h,null,[o(a("div",{class:"popup",style:m({height:e.height?e.height+"px":"",width:e.width?e.width+"px":""})},[a("div",{class:"close",onClick:d}),p(r.$slots,"default",{},void 0,!0)],4),[[l,e.visible]]),e.mb?_("",!0):o((t(),i("div",{key:0,class:"mb",onClick:n},null,512)),[[l,e.visible]])],64))}},x=u(b,[["__scopeId","data-v-65add6b3"]]);export{x as default};
|
|
@ -1 +1 @@
|
|||
import{u as s,B as a,b as _,o as c,i as d,w as n,H as r,I as p,d as o}from"./index-296085fa.js";import{_ as i}from"./_plugin-vue_export-helper-c27b6911.js";const l=""+new URL("welcome_bg-3d468218.jpg",import.meta.url).href;const m=e=>(r("data-v-d88fd929"),e=e(),p(),e),u=m(()=>o("div",{class:"home_img"},[o("img",{src:l})],-1)),f={setup(e){return s(),a.data.get("user")||(window.location.href="/cpanel/#/login"),(g,w)=>{const t=_("el-main");return c(),d(t,null,{default:n(()=>[u]),_:1})}}},I=i(f,[["__scopeId","data-v-d88fd929"]]);export{I as default};
|
||||
import{u as s,B as a,b as _,o as c,i as d,w as n,H as r,I as p,d as o}from"./index-574ec709.js";import{_ as i}from"./_plugin-vue_export-helper-c27b6911.js";const l=""+new URL("welcome_bg-3d468218.jpg",import.meta.url).href;const m=e=>(r("data-v-d88fd929"),e=e(),p(),e),u=m(()=>o("div",{class:"home_img"},[o("img",{src:l})],-1)),f={setup(e){return s(),a.data.get("user")||(window.location.href="/cpanel/#/login"),(g,w)=>{const t=_("el-main");return c(),d(t,null,{default:n(()=>[u]),_:1})}}},I=i(f,[["__scopeId","data-v-d88fd929"]]);export{I as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{t as b,b as s,o as t,i as o,w as n,f as r,c as m,l as f,d as c,k as h,F as w}from"./index-296085fa.js";const y={style:{display:"flex","align-items":"center"}},k={style:{"margin-left":"10px"}},D={props:{tableData:{type:Object,default:{}}},setup(d){const _=d,{tableData:a}=b(_);return(x,g)=>{const i=s("el-table-column"),p=s("el-table");return t(),o(p,{data:r(a).data,border:"",style:{width:"100%"}},{default:n(()=>[(t(!0),m(w,null,f(r(a).column,(e,u)=>(t(),o(i,{label:e.label,width:e.width,key:u},{default:n(l=>[c("div",y,[c("span",k,h(l.row[e.name]?l.row[e.name]:"暂无"),1)])]),_:2},1032,["label","width"]))),128))]),_:1},8,["data"])}}};export{D as default};
|
||||
import{t as b,b as s,o as t,i as o,w as n,f as r,c as m,l as f,d as c,k as h,F as w}from"./index-574ec709.js";const y={style:{display:"flex","align-items":"center"}},k={style:{"margin-left":"10px"}},D={props:{tableData:{type:Object,default:{}}},setup(d){const _=d,{tableData:a}=b(_);return(x,g)=>{const i=s("el-table-column"),p=s("el-table");return t(),o(p,{data:r(a).data,border:"",style:{width:"100%"}},{default:n(()=>[(t(!0),m(w,null,f(r(a).column,(e,u)=>(t(),o(i,{label:e.label,width:e.width,key:u},{default:n(l=>[c("div",y,[c("span",k,h(l.row[e.name]?l.row[e.name]:"暂无"),1)])]),_:2},1032,["label","width"]))),128))]),_:1},8,["data"])}}};export{D as default};
|
|
@ -1 +1 @@
|
|||
import{o as s,c as t,q as o,M as a,d as r,Q as d,j as _,F as m}from"./index-296085fa.js";import{_ as p}from"./_plugin-vue_export-helper-c27b6911.js";const u={class:"box"},v={props:["visible"],emits:["close","mbClick"],setup(c,{emit:i}){const e=c,l=()=>{i("mbClick")};return(n,b)=>(s(),t(m,null,[o(r("div",u,[d(n.$slots,"default",{},void 0,!0)],512),[[a,e.visible]]),e.mb?_("",!0):o((s(),t("div",{key:0,class:"mb",onClick:l},null,512)),[[a,e.visible]])],64))}},x=p(v,[["__scopeId","data-v-ed87197a"]]);export{x as default};
|
||||
import{o as s,c as t,q as o,M as a,d as r,Q as d,j as _,F as m}from"./index-574ec709.js";import{_ as p}from"./_plugin-vue_export-helper-c27b6911.js";const u={class:"box"},v={props:["visible"],emits:["close","mbClick"],setup(c,{emit:i}){const e=c,l=()=>{i("mbClick")};return(n,b)=>(s(),t(m,null,[o(r("div",u,[d(n.$slots,"default",{},void 0,!0)],512),[[a,e.visible]]),e.mb?_("",!0):o((s(),t("div",{key:0,class:"mb",onClick:l},null,512)),[[a,e.visible]])],64))}},x=p(v,[["__scopeId","data-v-ed87197a"]]);export{x as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{m as c,r as i,h as u,o as r,c as _,i as p,j as s}from"./index-296085fa.js";import l from"./tableData-352ba781.js";import"./Bus-7f99bbc0.js";import"./index-4ef1e46d.js";import{_ as n}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import"./Images-230f8ecc.js";import"./index-300c91ac.js";import"./formData-28d4e83f.js";import d from"./treeTableData-48711e62.js";import"./treeLink-d5d4f238.js";import"./dialogTree-68947368.js";import"./dialogImport-4ae77a76.js";import"./index-eecf3f53.js";const v={class:"content"},f={setup(g){const t=c(),m=t.meta.grape,o=i(),e=i();return t.query.id,t.query.id,t.query.id,u.get(`/api/build/${m}`).then(a=>{a.code==200&&(e.value=a.data,o.value=a.data.grape.pageType)}),(a,y)=>(r(),_("div",v,[o.value=="treeForm"&&e.value?(r(),p(d,{key:0,grapeData:e.value},null,8,["grapeData"])):s("",!0),o.value=="crud"&&e.value?(r(),p(l,{key:1,grapeData:e.value},null,8,["grapeData"])):s("",!0)]))}},R=n(f,[["__scopeId","data-v-7e79380e"]]);export{R as default};
|
||||
import{m as c,r as i,h as u,o as r,c as _,i as p,j as s}from"./index-574ec709.js";import l from"./tableData-9e22c543.js";import"./Bus-7f99bbc0.js";import"./index-fa0d2c11.js";import{_ as n}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import"./Images-a3eb1170.js";import"./index-725d7425.js";import"./formData-f4d76d29.js";import d from"./treeTableData-0ffbe89f.js";import"./treeLink-daa95c38.js";import"./dialogTree-9711d00e.js";import"./dialogImport-f2bd82e6.js";import"./index-8ebd1b79.js";const v={class:"content"},f={setup(g){const t=c(),m=t.meta.grape,o=i(),e=i();return t.query.id,t.query.id,t.query.id,u.get(`/api/build/${m}`).then(a=>{a.code==200&&(e.value=a.data,o.value=a.data.grape.pageType)}),(a,y)=>(r(),_("div",v,[o.value=="treeForm"&&e.value?(r(),p(d,{key:0,grapeData:e.value},null,8,["grapeData"])):s("",!0),o.value=="crud"&&e.value?(r(),p(l,{key:1,grapeData:e.value},null,8,["grapeData"])):s("",!0)]))}},R=n(f,[["__scopeId","data-v-7e79380e"]]);export{R as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{r as C,D as g,t as k,b as c,o as m,i as h,w as u,h as U,c as V,e as i,v as w}from"./index-296085fa.js";/* empty css */import{_ as y}from"./_plugin-vue_export-helper-c27b6911.js";const q={name:"Upload",props:{modelValue:{type:String,default:""},accept:{type:String,default:"image/gif, image/jpeg, image/png"}},emits:["update:modelValue"],setup(o,{emit:n}){const t=C(o.modelValue),a=e=>{let l="";return e==null||e==""?l="":typeof e=="object"?l=e.preview:l=e,l};g(()=>t.value,e=>{n("update:modelValue",t.value)}),g(()=>o.modelValue,()=>{t.value=a(o.modelValue)},{immediate:!0});const f=e=>{let l=e.file;const p=new FormData;p.append("file",l),U.post("/api/attachment/upload",p).then(v=>{v.code==200&&(t.value=v.data.path)})},_=()=>{},r=()=>{},d=()=>{t.value=""},s=e=>{window.open(e)};return{imageUrl:t,request:f,...k(o),handleAvatarSuccess:_,handleRemove:r,delImageUrl:d,openPath:s}}};function x(o,n,t,a,f,_){const r=c("el-image"),d=c("CircleCloseFilled"),s=c("el-icon"),e=c("Plus"),l=c("el-upload");return m(),h(l,{class:"avatar-uploader",accept:t.accept,"show-file-list":!1,"on-success":a.handleAvatarSuccess,"http-request":a.request},{default:u(()=>[a.imageUrl?(m(),V("div",{key:0,onClick:n[0]||(n[0]=w(p=>a.openPath(a.imageUrl),["stop"])),style:{position:"relative"}},[i(r,{src:a.imageUrl,class:"avatar"},null,8,["src"]),i(s,{class:"del",size:18,color:"red",onClick:w(a.delImageUrl,["stop"])},{default:u(()=>[i(d)]),_:1},8,["onClick"])])):(m(),h(s,{key:1,class:"avatar-uploader-icon"},{default:u(()=>[i(e)]),_:1}))]),_:1},8,["accept","on-success","http-request"])}const B=y(q,[["render",x]]);export{B as default};
|
||||
import{r as C,D as g,t as k,b as c,o as m,i as h,w as u,h as U,c as V,e as i,v as w}from"./index-574ec709.js";/* empty css */import{_ as y}from"./_plugin-vue_export-helper-c27b6911.js";const q={name:"Upload",props:{modelValue:{type:String,default:""},accept:{type:String,default:"image/gif, image/jpeg, image/png"}},emits:["update:modelValue"],setup(o,{emit:n}){const t=C(o.modelValue),a=e=>{let l="";return e==null||e==""?l="":typeof e=="object"?l=e.preview:l=e,l};g(()=>t.value,e=>{n("update:modelValue",t.value)}),g(()=>o.modelValue,()=>{t.value=a(o.modelValue)},{immediate:!0});const f=e=>{let l=e.file;const p=new FormData;p.append("file",l),U.post("/api/attachment/upload",p).then(v=>{v.code==200&&(t.value=v.data.path)})},_=()=>{},r=()=>{},d=()=>{t.value=""},s=e=>{window.open(e)};return{imageUrl:t,request:f,...k(o),handleAvatarSuccess:_,handleRemove:r,delImageUrl:d,openPath:s}}};function x(o,n,t,a,f,_){const r=c("el-image"),d=c("CircleCloseFilled"),s=c("el-icon"),e=c("Plus"),l=c("el-upload");return m(),h(l,{class:"avatar-uploader",accept:t.accept,"show-file-list":!1,"on-success":a.handleAvatarSuccess,"http-request":a.request},{default:u(()=>[a.imageUrl?(m(),V("div",{key:0,onClick:n[0]||(n[0]=w(p=>a.openPath(a.imageUrl),["stop"])),style:{position:"relative"}},[i(r,{src:a.imageUrl,class:"avatar"},null,8,["src"]),i(s,{class:"del",size:18,color:"red",onClick:w(a.delImageUrl,["stop"])},{default:u(()=>[i(d)]),_:1},8,["onClick"])])):(m(),h(s,{key:1,class:"avatar-uploader-icon"},{default:u(()=>[i(e)]),_:1}))]),_:1},8,["accept","on-success","http-request"])}const B=y(q,[["render",x]]);export{B as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{m as x,u as k,r as v,b as a,o as r,i as l,w as t,e as o,c as u,l as y,F as m,g as d,k as F,j as g,T as B}from"./index-296085fa.js";import{_ as w}from"./_plugin-vue_export-helper-c27b6911.js";const C=d(" 主页 "),N={setup(T){const p=x(),b=k(),c=v(p.meta.breadcrumb);return b.beforeEach((n,i,s)=>{c.value=n.meta.breadcrumb,s()}),(n,i)=>{const s=a("HomeFilled"),f=a("el-icon"),_=a("el-breadcrumb-item"),h=a("el-breadcrumb");return r(),l(h,{class:"app-breadcrumb",separator:"/"},{default:t(()=>[o(_,{to:{name:"welcome"},replace:!0},{default:t(()=>[o(f,{size:14},{default:t(()=>[o(s)]),_:1}),C]),_:1}),o(B,{name:"breadcrumb",mode:"out-in"},{default:t(()=>[(r(!0),u(m,null,y(c.value,e=>(r(),u(m,{key:e.title},[e.path!="/"&&!e.meta.hiddenBreadcrumb?(r(),l(_,{key:e.meta.title},{default:t(()=>[d(F(e.meta.title),1)]),_:2},1024)):g("",!0)],64))),128))]),_:1})]),_:1})}}},H=w(N,[["__scopeId","data-v-f1f9015f"]]);export{H as default};
|
||||
import{m as x,u as k,r as v,b as a,o as r,i as l,w as t,e as o,c as u,l as y,F as m,g as d,k as F,j as g,T as B}from"./index-574ec709.js";import{_ as w}from"./_plugin-vue_export-helper-c27b6911.js";const C=d(" 主页 "),N={setup(T){const p=x(),b=k(),c=v(p.meta.breadcrumb);return b.beforeEach((n,i,s)=>{c.value=n.meta.breadcrumb,s()}),(n,i)=>{const s=a("HomeFilled"),f=a("el-icon"),_=a("el-breadcrumb-item"),h=a("el-breadcrumb");return r(),l(h,{class:"app-breadcrumb",separator:"/"},{default:t(()=>[o(_,{to:{name:"welcome"},replace:!0},{default:t(()=>[o(f,{size:14},{default:t(()=>[o(s)]),_:1}),C]),_:1}),o(B,{name:"breadcrumb",mode:"out-in"},{default:t(()=>[(r(!0),u(m,null,y(c.value,e=>(r(),u(m,{key:e.title},[e.path!="/"&&!e.meta.hiddenBreadcrumb?(r(),l(_,{key:e.meta.title},{default:t(()=>[d(F(e.meta.title),1)]),_:2},1024)):g("",!0)],64))),128))]),_:1})]),_:1})}}},H=w(N,[["__scopeId","data-v-f1f9015f"]]);export{H as default};
|
|
@ -1 +1 @@
|
|||
import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import{t as F,r as u,b as o,o as p,c as m,d as f,e as l,w as s,F as h,l as P,A as T,i as $,g as k,k as j,f as z}from"./index-296085fa.js";const E={class:"dept_content"},I={class:"dept_list"},L={class:"dialog-footer"},O=k("取消"),U=k("确定"),q={props:{options:{type:Array,default:[]},model:{type:Object,default:{}},name:{type:String,default:""}},setup(y){const C=y,{options:g,model:r,name:i}=F(C),a=u(!1),b=u([]),d=u(),n=u(r.value[i.value+"Array"]||[]),x=()=>{let t=[];n.value.map(e=>{t.push(e.key)}),a.value=!0,T(()=>{d.value.setCheckedKeys(t,!1)})},V=()=>{let t=d.value.getCheckedNodes(!0);n.value=t;let e=d.value.getCheckedKeys(!0);r.value[i.value]=e.toString(),a.value=!1},K=(t,e)=>{},N=t=>{n.value.splice(t,1);let e=[];n.value.map(_=>{e.push(_.key)}),r.value[i.value]=e.toString()};return(t,e)=>{const _=o("CirclePlus"),A=o("el-icon"),B=o("el-tag"),S=o("el-tree"),v=o("el-button"),w=o("el-dialog");return p(),m(h,null,[f("div",E,[l(A,{class:"add",size:30,color:"#409eff",onClick:x},{default:s(()=>[l(_)]),_:1}),f("div",I,[(p(!0),m(h,null,P(n.value,(c,D)=>(p(),$(B,{key:c,class:"mx-1",closable:"","disable-transitions":!1,onClose:G=>N(D)},{default:s(()=>[k(j(c.label),1)]),_:2},1032,["onClose"]))),128))])]),l(w,{modelValue:a.value,"onUpdate:modelValue":e[1]||(e[1]=c=>a.value=c),title:"选择部门"},{footer:s(()=>[f("div",L,[l(v,{onClick:e[0]||(e[0]=c=>a.value=!1)},{default:s(()=>[O]),_:1}),l(v,{type:"primary",onClick:V},{default:s(()=>[U]),_:1})])]),default:s(()=>[l(S,{ref_key:"treeRef",ref:d,data:z(g),"show-checkbox":"","node-key":"key",onCheckChange:K,"default-checked-keys":b.value},null,8,["data","default-checked-keys"])]),_:1},8,["modelValue"])],64)}}},M=R(q,[["__scopeId","data-v-3ce094e3"]]);export{M as default};
|
||||
import{_ as R}from"./_plugin-vue_export-helper-c27b6911.js";import{t as F,r as u,b as o,o as p,c as m,d as f,e as l,w as s,F as h,l as P,A as T,i as $,g as k,k as j,f as z}from"./index-574ec709.js";const E={class:"dept_content"},I={class:"dept_list"},L={class:"dialog-footer"},O=k("取消"),U=k("确定"),q={props:{options:{type:Array,default:[]},model:{type:Object,default:{}},name:{type:String,default:""}},setup(y){const C=y,{options:g,model:r,name:i}=F(C),a=u(!1),b=u([]),d=u(),n=u(r.value[i.value+"Array"]||[]),x=()=>{let t=[];n.value.map(e=>{t.push(e.key)}),a.value=!0,T(()=>{d.value.setCheckedKeys(t,!1)})},V=()=>{let t=d.value.getCheckedNodes(!0);n.value=t;let e=d.value.getCheckedKeys(!0);r.value[i.value]=e.toString(),a.value=!1},K=(t,e)=>{},N=t=>{n.value.splice(t,1);let e=[];n.value.map(_=>{e.push(_.key)}),r.value[i.value]=e.toString()};return(t,e)=>{const _=o("CirclePlus"),A=o("el-icon"),B=o("el-tag"),S=o("el-tree"),v=o("el-button"),w=o("el-dialog");return p(),m(h,null,[f("div",E,[l(A,{class:"add",size:30,color:"#409eff",onClick:x},{default:s(()=>[l(_)]),_:1}),f("div",I,[(p(!0),m(h,null,P(n.value,(c,D)=>(p(),$(B,{key:c,class:"mx-1",closable:"","disable-transitions":!1,onClose:G=>N(D)},{default:s(()=>[k(j(c.label),1)]),_:2},1032,["onClose"]))),128))])]),l(w,{modelValue:a.value,"onUpdate:modelValue":e[1]||(e[1]=c=>a.value=c),title:"选择部门"},{footer:s(()=>[f("div",L,[l(v,{onClick:e[0]||(e[0]=c=>a.value=!1)},{default:s(()=>[O]),_:1}),l(v,{type:"primary",onClick:V},{default:s(()=>[U]),_:1})])]),default:s(()=>[l(S,{ref_key:"treeRef",ref:d,data:z(g),"show-checkbox":"","node-key":"key",onCheckChange:K,"default-checked-keys":b.value},null,8,["data","default-checked-keys"])]),_:1},8,["modelValue"])],64)}}},M=R(q,[["__scopeId","data-v-3ce094e3"]]);export{M as default};
|
|
@ -1 +1 @@
|
|||
import{o as t,c,q as i,M as o,d as l,Q as p,y as m,j as _,F as h}from"./index-296085fa.js";import{_ as u}from"./_plugin-vue_export-helper-c27b6911.js";const b={props:["visible","height","width","mb"],emits:["close","mbClick"],setup(a,{emit:s}){const e=a,n=()=>{s("close",!1)},d=()=>{s("mbClick")};return(r,v)=>(t(),c(h,null,[i(l("div",{class:"popup",style:m({height:e.height?e.height+"px":"",width:e.width?e.width+"px":""})},[l("div",{class:"close",onClick:n}),p(r.$slots,"default",{},void 0,!0)],4),[[o,e.visible]]),e.mb?_("",!0):i((t(),c("div",{key:0,class:"mb",onClick:d},null,512)),[[o,e.visible]])],64))}},x=u(b,[["__scopeId","data-v-fac1c4db"]]);export{x as default};
|
||||
import{o as t,c,q as i,M as o,d as l,Q as p,y as m,j as _,F as h}from"./index-574ec709.js";import{_ as u}from"./_plugin-vue_export-helper-c27b6911.js";const b={props:["visible","height","width","mb"],emits:["close","mbClick"],setup(a,{emit:s}){const e=a,n=()=>{s("close",!1)},d=()=>{s("mbClick")};return(r,v)=>(t(),c(h,null,[i(l("div",{class:"popup",style:m({height:e.height?e.height+"px":"",width:e.width?e.width+"px":""})},[l("div",{class:"close",onClick:n}),p(r.$slots,"default",{},void 0,!0)],4),[[o,e.visible]]),e.mb?_("",!0):i((t(),c("div",{key:0,class:"mb",onClick:d},null,512)),[[o,e.visible]])],64))}},x=u(b,[["__scopeId","data-v-fac1c4db"]]);export{x as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{u as I,a as V,r as g,b as l,o as S,c as B,d as t,k as N,e as o,w as n,f as i,s as R,H as C,I as E,h as K,B as U,E as h}from"./index-296085fa.js";import{e as w}from"./index-c765cce5.js";import{_ as L}from"./_plugin-vue_export-helper-c27b6911.js";const c=d=>(C("data-v-587cc62b"),d=d(),E(),d),z={class:"main"},D={class:"login"},H=c(()=>t("div",{class:"bd5_left"},null,-1)),M=c(()=>t("div",{class:"bd5_right"},null,-1)),$={class:"auto"},j=c(()=>t("span",{class:"auto_title"}," 登录 ",-1)),q=c(()=>t("span",{class:"info1"},"登 录",-1)),A={setup(d){const y=I(),a=V({user:"",password:""}),r=g(!1),p=g(),b="比翼计时器签到后台",m=async()=>{p.value.validate(async f=>{if(f){r.value=!0;var s={loginName:w(a.user),password:w(a.password)};K.post("/api/auth/login",s).then(e=>{if(e.code==200){var _={token:e.data.token,name:e.data.userInfo.userName,menus:e.data.menuList,permissions:e.data.permissions,userInfo:e.data.userInfo};U.data.set("user",_),h.success("登录成功"),r.value=!1,y.push("/")}else h.error(e.message),r.value=!1})}})};return(f,s)=>{const e=l("el-input"),_=l("el-form-item"),v=l("el-row"),x=l("el-button"),k=l("el-form");return S(),B("div",z,[t("div",D,[H,M,t("div",{class:"login_image"},[t("div",{class:"title"},N(b))]),t("div",$,[j,o(k,{model:i(a),size:"medium",ref_key:"formRef",ref:p,onKeyup:R(m,["enter","native"])},{default:n(()=>[o(v,{span:22},{default:n(()=>[o(_,{prop:"user"},{default:n(()=>[o(e,{modelValue:i(a).user,"onUpdate:modelValue":s[0]||(s[0]=u=>i(a).user=u),style:{width:"100%","margin-bottom":"20px"},placeholder:"帐号","prefix-icon":"User"},null,8,["modelValue"])]),_:1})]),_:1}),o(v,{span:22},{default:n(()=>[o(_,{prop:"password"},{default:n(()=>[o(e,{modelValue:i(a).password,"onUpdate:modelValue":s[1]||(s[1]=u=>i(a).password=u),style:{width:"100%","margin-bottom":"48px"},type:"password",placeholder:"密码","prefix-icon":"Lock","show-password":""},null,8,["modelValue"])]),_:1})]),_:1}),o(x,{class:"login-btn-submit",type:"primary",onClick:s[2]||(s[2]=u=>m()),loading:r.value},{default:n(()=>[q]),_:1},8,["loading"])]),_:1},8,["model","onKeyup"])])])])}}},O=L(A,[["__scopeId","data-v-587cc62b"]]);export{O as default};
|
||||
import{u as I,a as V,r as g,b as l,o as S,c as B,d as t,k as N,e as o,w as n,f as i,s as R,H as C,I as E,h as K,B as U,E as h}from"./index-574ec709.js";import{e as w}from"./index-c765cce5.js";import{_ as L}from"./_plugin-vue_export-helper-c27b6911.js";const c=d=>(C("data-v-587cc62b"),d=d(),E(),d),z={class:"main"},D={class:"login"},H=c(()=>t("div",{class:"bd5_left"},null,-1)),M=c(()=>t("div",{class:"bd5_right"},null,-1)),$={class:"auto"},j=c(()=>t("span",{class:"auto_title"}," 登录 ",-1)),q=c(()=>t("span",{class:"info1"},"登 录",-1)),A={setup(d){const y=I(),a=V({user:"",password:""}),r=g(!1),p=g(),b="比翼计时器签到后台",m=async()=>{p.value.validate(async f=>{if(f){r.value=!0;var s={loginName:w(a.user),password:w(a.password)};K.post("/api/auth/login",s).then(e=>{if(e.code==200){var _={token:e.data.token,name:e.data.userInfo.userName,menus:e.data.menuList,permissions:e.data.permissions,userInfo:e.data.userInfo};U.data.set("user",_),h.success("登录成功"),r.value=!1,y.push("/")}else h.error(e.message),r.value=!1})}})};return(f,s)=>{const e=l("el-input"),_=l("el-form-item"),v=l("el-row"),x=l("el-button"),k=l("el-form");return S(),B("div",z,[t("div",D,[H,M,t("div",{class:"login_image"},[t("div",{class:"title"},N(b))]),t("div",$,[j,o(k,{model:i(a),size:"medium",ref_key:"formRef",ref:p,onKeyup:R(m,["enter","native"])},{default:n(()=>[o(v,{span:22},{default:n(()=>[o(_,{prop:"user"},{default:n(()=>[o(e,{modelValue:i(a).user,"onUpdate:modelValue":s[0]||(s[0]=u=>i(a).user=u),style:{width:"100%","margin-bottom":"20px"},placeholder:"帐号","prefix-icon":"User"},null,8,["modelValue"])]),_:1})]),_:1}),o(v,{span:22},{default:n(()=>[o(_,{prop:"password"},{default:n(()=>[o(e,{modelValue:i(a).password,"onUpdate:modelValue":s[1]||(s[1]=u=>i(a).password=u),style:{width:"100%","margin-bottom":"48px"},type:"password",placeholder:"密码","prefix-icon":"Lock","show-password":""},null,8,["modelValue"])]),_:1})]),_:1}),o(x,{class:"login-btn-submit",type:"primary",onClick:s[2]||(s[2]=u=>m()),loading:r.value},{default:n(()=>[q]),_:1},8,["loading"])]),_:1},8,["model","onKeyup"])])])])}}},O=L(A,[["__scopeId","data-v-587cc62b"]]);export{O as default};
|
|
@ -1 +1 @@
|
|||
import{m as v,t as b,b as i,f as e,o as n,i as a,w as m,c as l,d as _,k as u,v as w,z as B,j as d,l as j,F as p,K as z}from"./index-296085fa.js";const D=["href"],F={key:1},L={props:{menu:Object},setup(h){const f=h,k=v(),{menu:t}=b(f),y=c=>{let s=!0;return c.map(r=>{r.meta.hidden||(s=!1)}),s};return(c,s)=>{const r=i("el-menu-item"),x=i("el-icon"),g=i("menu-item",!0),C=i("el-sub-menu");return e(t).children==null||e(t).children.length<=0||y(e(t).children)?(n(),a(r,{ref:"item",index:e(t).path,key:e(t).name},{title:m(()=>[e(t).type=="link"?(n(),l("div",{key:0,onClick:s[0]||(s[0]=w(()=>{},["stop"]))},[_("a",{class:"outLine",href:e(t).path,target:"_blank"},u(e(t).meta.title),9,D)])):(n(),l("span",F,u(e(t).meta.title),1))]),_:1},8,["index"])):(n(),a(C,{key:1,index:e(t).name},{title:m(()=>[e(t).meta.icon?(n(),a(x,{key:0,style:{"margin-right":"5px"}},{default:m(()=>[(n(),a(B(e(t).meta.icon),{style:{width:"18px",height:"18px"}}))]),_:1})):d("",!0),_("span",null,u(e(t).meta.title),1)]),default:m(()=>[(n(!0),l(p,null,j(e(t).children,o=>(n(),l(p,{key:o.name},[o.meta.hidden?d("",!0):(n(),a(g,{key:0,class:z(["nest-menu",e(k).path==o.name?"on":""]),menu:o,isChild:!0},null,8,["class","menu"]))],64))),128))]),_:1},8,["index"]))}}};export{L as default};
|
||||
import{m as v,t as b,b as i,f as e,o as n,i as a,w as m,c as l,d as _,k as u,v as w,z as B,j as d,l as j,F as p,K as z}from"./index-574ec709.js";const D=["href"],F={key:1},L={props:{menu:Object},setup(h){const f=h,k=v(),{menu:t}=b(f),y=c=>{let s=!0;return c.map(r=>{r.meta.hidden||(s=!1)}),s};return(c,s)=>{const r=i("el-menu-item"),x=i("el-icon"),g=i("menu-item",!0),C=i("el-sub-menu");return e(t).children==null||e(t).children.length<=0||y(e(t).children)?(n(),a(r,{ref:"item",index:e(t).path,key:e(t).name},{title:m(()=>[e(t).type=="link"?(n(),l("div",{key:0,onClick:s[0]||(s[0]=w(()=>{},["stop"]))},[_("a",{class:"outLine",href:e(t).path,target:"_blank"},u(e(t).meta.title),9,D)])):(n(),l("span",F,u(e(t).meta.title),1))]),_:1},8,["index"])):(n(),a(C,{key:1,index:e(t).name},{title:m(()=>[e(t).meta.icon?(n(),a(x,{key:0,style:{"margin-right":"5px"}},{default:m(()=>[(n(),a(B(e(t).meta.icon),{style:{width:"18px",height:"18px"}}))]),_:1})):d("",!0),_("span",null,u(e(t).meta.title),1)]),default:m(()=>[(n(!0),l(p,null,j(e(t).children,o=>(n(),l(p,{key:o.name},[o.meta.hidden?d("",!0):(n(),a(g,{key:0,class:z(["nest-menu",e(k).path==o.name?"on":""]),menu:o,isChild:!0},null,8,["class","menu"]))],64))),128))]),_:1},8,["index"]))}}};export{L as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{m as J,u as U,a as b,r as x,b as d,p as K,o as D,c as O,e as l,w as t,q as E,i as B,f as s,h,E as c,d as N,g as v}from"./index-296085fa.js";/* empty css */const Q={class:"common-layout"},W=v("查询"),X=v("新建"),Y={class:"txl_bd"},Z=v("修改信息"),ee=v("删除"),le={class:"fy"},te={class:"dialog-footer"},oe=v("取消"),ae=v(" 确认 "),ue={setup(ne){J(),U(),b({data:{}}),U();const C=x(!0),_=x(!1),f=x(!1),j=a=>{i.current=a,m()},F=a=>{i.current=a,m()},r=b({duka:!1,playerId:"",rfId:"",total:0,text:"新建",data:[]}),n=b({}),i=b({current:1,size:20,batchesCode:"",batchesName:"",batchesDescription:""}),m=()=>{let a=i;C.value=!0,h.get("/api/rule/page",a).then(e=>{e.code==200?(C.value=!1,r.total=e.data.total,r.data=e.data.records):c.error(e.message)}).catch(e=>{C.value=!1})},I=()=>{let a={ruleCode:n.ruleCode,ruleName:n.ruleName,ruleDescription:n.ruleDescription};_.value=!0,r.text=="新建"?h.post("/api/rule/add",a).then(e=>{e.code==200?(c.success(e.message),_.value=!1,m(),f.value=!1):c.error(e.message)}).catch(e=>{_.value=!1}):h.put(`/api/rule/edit/${n.id}`,a).then(e=>{e.code==200?(c.success(e.message),_.value=!1,m(),f.value=!1):c.error(e.message)}).catch(e=>{_.value=!1})},L=a=>{let e={};h.delete(`/api/rule/delete/${a.id}`,e).then(u=>{u.code==200?(c.success(u.message),m()):c.error(u.message)})},k=a=>{a?(n.ruleCode=a.ruleCode,n.ruleName=a.ruleName,n.ruleDescription=a.ruleDescription,n.id=a.id,r.text="修改"):(n.ruleCode=[],n.ruleName="",n.ruleDescription="",r.text="新建"),f.value=!0},w=()=>{f.value=!1};return m(),(a,e)=>{const u=d("el-input"),p=d("el-col"),g=d("el-button"),$=d("el-row"),P=d("el-header"),V=d("el-table-column"),R=d("el-popconfirm"),S=d("el-table"),q=d("el-pagination"),A=d("el-main"),M=d("el-container"),y=d("el-form-item"),T=d("el-form"),G=d("el-dialog"),z=K("loading");return D(),O("div",Q,[l(M,null,{default:t(()=>[l(P,null,{default:t(()=>[l($,{gutter:24},{default:t(()=>[l(p,{span:6},{default:t(()=>[l(u,{modelValue:s(i).ruleCode,"onUpdate:modelValue":e[0]||(e[0]=o=>s(i).ruleCode=o),placeholder:"规则编码"},null,8,["modelValue"])]),_:1}),l(p,{span:6},{default:t(()=>[l(u,{modelValue:s(i).ruleName,"onUpdate:modelValue":e[1]||(e[1]=o=>s(i).ruleName=o),placeholder:"规则名称"},null,8,["modelValue"])]),_:1}),l(p,{span:6},{default:t(()=>[l(u,{modelValue:s(i).ruleDescription,"onUpdate:modelValue":e[2]||(e[2]=o=>s(i).ruleDescription=o),placeholder:"规则描述"},null,8,["modelValue"])]),_:1}),l(p,{span:6,style:{flex:"0 0 25%",display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:t(()=>[l(g,{type:" primary",color:"#4179FC",onClick:e[3]||(e[3]=o=>m())},{default:t(()=>[W]),_:1}),l(g,{type:"primary",color:"#4179FC",onClick:e[4]||(e[4]=o=>k())},{default:t(()=>[X]),_:1})]),_:1})]),_:1})]),_:1}),l(A,null,{default:t(()=>[N("div",Y,[E((D(),B(S,{data:s(r).data,height:"100%",lazy:""},{default:t(()=>[l(V,{prop:"ruleCode",label:"规则编码"}),l(V,{prop:"ruleName",label:"规则名称"}),l(V,{prop:"ruleDescription",label:"规则描述"}),l(V,{fixed:"right",label:"操作",width:"300"},{default:t(o=>[l(g,{link:"",type:"primary",size:"small",onClick:H=>k(o.row)},{default:t(()=>[Z]),_:2},1032,["onClick"]),l(R,{title:"确认删除",onConfirm:H=>L(o.row)},{reference:t(()=>[l(g,{link:"",type:"danger",size:"small"},{default:t(()=>[ee]),_:1})]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"])),[[z,C.value]])]),N("div",le,[l(q,{total:s(r).total,class:"ydool_pagination",layout:"->,total, prev, pager, next, jumper","page-size":20,onSizeChange:j,onCurrentChange:F},null,8,["total"])])]),_:1})]),_:1}),E((D(),B(G,{style:{height:"max-content"},modelValue:f.value,"onUpdate:modelValue":e[10]||(e[10]=o=>f.value=o),title:s(r).text,width:"30%","align-center":"",onClose:e[11]||(e[11]=o=>w())},{footer:t(()=>[N("div",te,[l(g,{onClick:e[8]||(e[8]=o=>w())},{default:t(()=>[oe]),_:1}),l(g,{type:"primary",onClick:e[9]||(e[9]=o=>I())},{default:t(()=>[ae]),_:1})])]),default:t(()=>[l(T,{model:a.form,"label-width":"100px"},{default:t(()=>[l($,{gutter:24},{default:t(()=>[l(p,{span:24},{default:t(()=>[l(y,{label:"规则编码:"},{default:t(()=>[l(u,{modelValue:s(n).ruleCode,"onUpdate:modelValue":e[5]||(e[5]=o=>s(n).ruleCode=o),placeholder:"请输入",disabled:s(r).text=="修改"},null,8,["modelValue","disabled"])]),_:1})]),_:1}),l(p,{span:24},{default:t(()=>[l(y,{label:" 规则名称:"},{default:t(()=>[l(u,{modelValue:s(n).ruleName,"onUpdate:modelValue":e[6]||(e[6]=o=>s(n).ruleName=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),l(p,{span:24},{default:t(()=>[l(y,{label:"规则描述:"},{default:t(()=>[l(u,{modelValue:s(n).ruleDescription,"onUpdate:modelValue":e[7]||(e[7]=o=>s(n).ruleDescription=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])),[[z,_.value]])])}}};export{ue as default};
|
||||
import{m as J,u as U,a as b,r as x,b as d,p as K,o as D,c as O,e as l,w as t,q as E,i as B,f as s,h,E as c,d as N,g as v}from"./index-574ec709.js";/* empty css */const Q={class:"common-layout"},W=v("查询"),X=v("新建"),Y={class:"txl_bd"},Z=v("修改信息"),ee=v("删除"),le={class:"fy"},te={class:"dialog-footer"},oe=v("取消"),ae=v(" 确认 "),ue={setup(ne){J(),U(),b({data:{}}),U();const C=x(!0),_=x(!1),f=x(!1),j=a=>{i.current=a,m()},F=a=>{i.current=a,m()},r=b({duka:!1,playerId:"",rfId:"",total:0,text:"新建",data:[]}),n=b({}),i=b({current:1,size:20,batchesCode:"",batchesName:"",batchesDescription:""}),m=()=>{let a=i;C.value=!0,h.get("/api/rule/page",a).then(e=>{e.code==200?(C.value=!1,r.total=e.data.total,r.data=e.data.records):c.error(e.message)}).catch(e=>{C.value=!1})},I=()=>{let a={ruleCode:n.ruleCode,ruleName:n.ruleName,ruleDescription:n.ruleDescription};_.value=!0,r.text=="新建"?h.post("/api/rule/add",a).then(e=>{e.code==200?(c.success(e.message),_.value=!1,m(),f.value=!1):c.error(e.message)}).catch(e=>{_.value=!1}):h.put(`/api/rule/edit/${n.id}`,a).then(e=>{e.code==200?(c.success(e.message),_.value=!1,m(),f.value=!1):c.error(e.message)}).catch(e=>{_.value=!1})},L=a=>{let e={};h.delete(`/api/rule/delete/${a.id}`,e).then(u=>{u.code==200?(c.success(u.message),m()):c.error(u.message)})},k=a=>{a?(n.ruleCode=a.ruleCode,n.ruleName=a.ruleName,n.ruleDescription=a.ruleDescription,n.id=a.id,r.text="修改"):(n.ruleCode=[],n.ruleName="",n.ruleDescription="",r.text="新建"),f.value=!0},w=()=>{f.value=!1};return m(),(a,e)=>{const u=d("el-input"),p=d("el-col"),g=d("el-button"),$=d("el-row"),P=d("el-header"),V=d("el-table-column"),R=d("el-popconfirm"),S=d("el-table"),q=d("el-pagination"),A=d("el-main"),M=d("el-container"),y=d("el-form-item"),T=d("el-form"),G=d("el-dialog"),z=K("loading");return D(),O("div",Q,[l(M,null,{default:t(()=>[l(P,null,{default:t(()=>[l($,{gutter:24},{default:t(()=>[l(p,{span:6},{default:t(()=>[l(u,{modelValue:s(i).ruleCode,"onUpdate:modelValue":e[0]||(e[0]=o=>s(i).ruleCode=o),placeholder:"规则编码"},null,8,["modelValue"])]),_:1}),l(p,{span:6},{default:t(()=>[l(u,{modelValue:s(i).ruleName,"onUpdate:modelValue":e[1]||(e[1]=o=>s(i).ruleName=o),placeholder:"规则名称"},null,8,["modelValue"])]),_:1}),l(p,{span:6},{default:t(()=>[l(u,{modelValue:s(i).ruleDescription,"onUpdate:modelValue":e[2]||(e[2]=o=>s(i).ruleDescription=o),placeholder:"规则描述"},null,8,["modelValue"])]),_:1}),l(p,{span:6,style:{flex:"0 0 25%",display:"flex !important","justify-content":"flex-end","padding-top":"16px"}},{default:t(()=>[l(g,{type:" primary",color:"#4179FC",onClick:e[3]||(e[3]=o=>m())},{default:t(()=>[W]),_:1}),l(g,{type:"primary",color:"#4179FC",onClick:e[4]||(e[4]=o=>k())},{default:t(()=>[X]),_:1})]),_:1})]),_:1})]),_:1}),l(A,null,{default:t(()=>[N("div",Y,[E((D(),B(S,{data:s(r).data,height:"100%",lazy:""},{default:t(()=>[l(V,{prop:"ruleCode",label:"规则编码"}),l(V,{prop:"ruleName",label:"规则名称"}),l(V,{prop:"ruleDescription",label:"规则描述"}),l(V,{fixed:"right",label:"操作",width:"300"},{default:t(o=>[l(g,{link:"",type:"primary",size:"small",onClick:H=>k(o.row)},{default:t(()=>[Z]),_:2},1032,["onClick"]),l(R,{title:"确认删除",onConfirm:H=>L(o.row)},{reference:t(()=>[l(g,{link:"",type:"danger",size:"small"},{default:t(()=>[ee]),_:1})]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"])),[[z,C.value]])]),N("div",le,[l(q,{total:s(r).total,class:"ydool_pagination",layout:"->,total, prev, pager, next, jumper","page-size":20,onSizeChange:j,onCurrentChange:F},null,8,["total"])])]),_:1})]),_:1}),E((D(),B(G,{style:{height:"max-content"},modelValue:f.value,"onUpdate:modelValue":e[10]||(e[10]=o=>f.value=o),title:s(r).text,width:"30%","align-center":"",onClose:e[11]||(e[11]=o=>w())},{footer:t(()=>[N("div",te,[l(g,{onClick:e[8]||(e[8]=o=>w())},{default:t(()=>[oe]),_:1}),l(g,{type:"primary",onClick:e[9]||(e[9]=o=>I())},{default:t(()=>[ae]),_:1})])]),default:t(()=>[l(T,{model:a.form,"label-width":"100px"},{default:t(()=>[l($,{gutter:24},{default:t(()=>[l(p,{span:24},{default:t(()=>[l(y,{label:"规则编码:"},{default:t(()=>[l(u,{modelValue:s(n).ruleCode,"onUpdate:modelValue":e[5]||(e[5]=o=>s(n).ruleCode=o),placeholder:"请输入",disabled:s(r).text=="修改"},null,8,["modelValue","disabled"])]),_:1})]),_:1}),l(p,{span:24},{default:t(()=>[l(y,{label:" 规则名称:"},{default:t(()=>[l(u,{modelValue:s(n).ruleName,"onUpdate:modelValue":e[6]||(e[6]=o=>s(n).ruleName=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),l(p,{span:24},{default:t(()=>[l(y,{label:"规则描述:"},{default:t(()=>[l(u,{modelValue:s(n).ruleDescription,"onUpdate:modelValue":e[7]||(e[7]=o=>s(n).ruleDescription=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])),[[z,_.value]])])}}};export{ue as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import E from"./index-300c91ac.js";import F from"./tableData-352ba781.js";import{t as L,a as O,r as z,b as u,o as f,c as k,e as m,w as r,f as a,i as b,j as v,F as x,d as T,k as D,g,l as K,h as M}from"./index-296085fa.js";import"./formData-28d4e83f.js";import"./Bus-7f99bbc0.js";import"./index-4ef1e46d.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-eecf3f53.js";/* empty css */import"./Images-230f8ecc.js";import"./treeLink-d5d4f238.js";import"./dialogTree-68947368.js";import"./dialogImport-4ae77a76.js";const U={class:"card-header"},q=g("删除"),A=g("取 消"),H=g("确 定"),se={props:{tabTable:{type:Object,default:{}}},setup(C,{expose:G}){const N=C,{tabTable:t}=L(N),e=O({rows:t.value.data||[],emptyText:`请选择${t.value.label}`,showSummary:t.value.showSummary,dialog:{visibled:!1,title:"选择物资",width:"800px",loading:!1}}),S=()=>{e.dialog.visibled=!0},V=()=>{e.dialog.visibled=!1},w=z(),$=()=>{e.dialog.loading=!0;var c=w.value.getSelectedData();if(t.value.selectGrape.url){var o=c.map(s=>s[t.value.selectGrape.grape.primaryKey]);M.get(t.value.selectGrape.url,{ids:o.join(",")}).then(s=>{s.code==200&&s.data&&(e.rows=[...e.rows,...s.data]),e.dialog.loading=!1,e.dialog.visibled=!1})}else e.rows.concat(c),e.dialog.loading=!1,e.dialog.visibled=!1},B=(c,o)=>{e.rows.splice(o,1)},j=()=>e.rows,R=c=>{const o=[];if(t.value.sums){const{columns:s,data:_}=c;s.forEach((h,n)=>{if(n==0)o[0]=t.value.summaryText;else if(t.value.sums.indexOf(n)>-1){const p=_.map(i=>Number(i[h.property]));p.length>0?o[n]=p.reduce((i,l)=>{const d=Number(l);return isNaN(d)?i:i+l}):o[n]=""}else if(n==8){let p=0;_.map(i=>{let l=[];t.value.sums.map(y=>{l.push(i[s[y].property])});let d=1;l.map(y=>{d=d*y}),p+=d}),o[8]=p+"元"}else o[n]=""}),o[6]=o[6]+"元"}return o};return G({getTabTableData:j}),(c,o)=>{const s=u("el-button"),_=u("el-table-column"),h=u("el-popconfirm"),n=u("el-table"),p=u("el-card"),i=u("el-dialog");return f(),k(x,null,[m(p,{class:"box-card",shadow:"never"},{header:r(()=>[T("div",U,[T("span",null,D(a(t).label)+"明细",1),a(t).selectGrape?(f(),b(s,{key:0,class:"button",text:"",onClick:S},{default:r(()=>[g("选择"+D(a(t).label),1)]),_:1})):v("",!0)])]),default:r(()=>[m(n,{data:a(e).rows,border:"",emptyText:a(e).emptyText,"show-summary":a(e).showSummary,"summary-method":R},{default:r(()=>[(f(!0),k(x,null,K(a(t).formList,l=>(f(),b(_,{key:l.name,label:l.label,prop:l.name,width:l.width},{default:r(d=>[m(a(E),{data:l,model:a(e).rows[d.$index]},null,8,["data","model"])]),_:2},1032,["label","prop","width"]))),128)),m(_,{label:"操作",width:"80"},{default:r(l=>[m(h,{title:"确定删除吗?","confirm-button-text":"确定","cancel-button-text":"取消",onConfirm:d=>B(l.row,l.$index)},{reference:r(()=>[m(s,{type:"text",size:"small"},{default:r(()=>[q]),_:1})]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data","emptyText","show-summary"])]),_:1}),a(t).selectGrape?(f(),b(i,{key:0,modelValue:a(e).dialog.visibled,"onUpdate:modelValue":o[0]||(o[0]=l=>a(e).dialog.visibled=l),"destroy-on-close":"",title:a(e).dialog.title,width:a(e).dialog.width},{footer:r(()=>[m(s,{onClick:V},{default:r(()=>[A]),_:1}),m(s,{type:"primary",onClick:$,loading:c.loading},{default:r(()=>[H]),_:1},8,["loading"])]),default:r(()=>[a(t).selectGrape?(f(),b(F,{key:0,grapeData:a(t).selectGrape,params:{parentGrape:a(t).grape.name},checkbox:!0,ref_key:"tableDataRef",ref:w},null,8,["grapeData","params"])):v("",!0)]),_:1},8,["modelValue","title","width"])):v("",!0)],64)}}};export{se as default};
|
||||
import E from"./index-725d7425.js";import F from"./tableData-9e22c543.js";import{t as L,a as O,r as z,b as u,o as f,c as k,e as m,w as r,f as a,i as b,j as v,F as x,d as T,k as D,g,l as K,h as M}from"./index-574ec709.js";import"./formData-f4d76d29.js";import"./Bus-7f99bbc0.js";import"./index-fa0d2c11.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-8ebd1b79.js";/* empty css */import"./Images-a3eb1170.js";import"./treeLink-daa95c38.js";import"./dialogTree-9711d00e.js";import"./dialogImport-f2bd82e6.js";const U={class:"card-header"},q=g("删除"),A=g("取 消"),H=g("确 定"),se={props:{tabTable:{type:Object,default:{}}},setup(C,{expose:G}){const N=C,{tabTable:t}=L(N),e=O({rows:t.value.data||[],emptyText:`请选择${t.value.label}`,showSummary:t.value.showSummary,dialog:{visibled:!1,title:"选择物资",width:"800px",loading:!1}}),S=()=>{e.dialog.visibled=!0},V=()=>{e.dialog.visibled=!1},w=z(),$=()=>{e.dialog.loading=!0;var c=w.value.getSelectedData();if(t.value.selectGrape.url){var o=c.map(s=>s[t.value.selectGrape.grape.primaryKey]);M.get(t.value.selectGrape.url,{ids:o.join(",")}).then(s=>{s.code==200&&s.data&&(e.rows=[...e.rows,...s.data]),e.dialog.loading=!1,e.dialog.visibled=!1})}else e.rows.concat(c),e.dialog.loading=!1,e.dialog.visibled=!1},B=(c,o)=>{e.rows.splice(o,1)},j=()=>e.rows,R=c=>{const o=[];if(t.value.sums){const{columns:s,data:_}=c;s.forEach((h,n)=>{if(n==0)o[0]=t.value.summaryText;else if(t.value.sums.indexOf(n)>-1){const p=_.map(i=>Number(i[h.property]));p.length>0?o[n]=p.reduce((i,l)=>{const d=Number(l);return isNaN(d)?i:i+l}):o[n]=""}else if(n==8){let p=0;_.map(i=>{let l=[];t.value.sums.map(y=>{l.push(i[s[y].property])});let d=1;l.map(y=>{d=d*y}),p+=d}),o[8]=p+"元"}else o[n]=""}),o[6]=o[6]+"元"}return o};return G({getTabTableData:j}),(c,o)=>{const s=u("el-button"),_=u("el-table-column"),h=u("el-popconfirm"),n=u("el-table"),p=u("el-card"),i=u("el-dialog");return f(),k(x,null,[m(p,{class:"box-card",shadow:"never"},{header:r(()=>[T("div",U,[T("span",null,D(a(t).label)+"明细",1),a(t).selectGrape?(f(),b(s,{key:0,class:"button",text:"",onClick:S},{default:r(()=>[g("选择"+D(a(t).label),1)]),_:1})):v("",!0)])]),default:r(()=>[m(n,{data:a(e).rows,border:"",emptyText:a(e).emptyText,"show-summary":a(e).showSummary,"summary-method":R},{default:r(()=>[(f(!0),k(x,null,K(a(t).formList,l=>(f(),b(_,{key:l.name,label:l.label,prop:l.name,width:l.width},{default:r(d=>[m(a(E),{data:l,model:a(e).rows[d.$index]},null,8,["data","model"])]),_:2},1032,["label","prop","width"]))),128)),m(_,{label:"操作",width:"80"},{default:r(l=>[m(h,{title:"确定删除吗?","confirm-button-text":"确定","cancel-button-text":"取消",onConfirm:d=>B(l.row,l.$index)},{reference:r(()=>[m(s,{type:"text",size:"small"},{default:r(()=>[q]),_:1})]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data","emptyText","show-summary"])]),_:1}),a(t).selectGrape?(f(),b(i,{key:0,modelValue:a(e).dialog.visibled,"onUpdate:modelValue":o[0]||(o[0]=l=>a(e).dialog.visibled=l),"destroy-on-close":"",title:a(e).dialog.title,width:a(e).dialog.width},{footer:r(()=>[m(s,{onClick:V},{default:r(()=>[A]),_:1}),m(s,{type:"primary",onClick:$,loading:c.loading},{default:r(()=>[H]),_:1},8,["loading"])]),default:r(()=>[a(t).selectGrape?(f(),b(F,{key:0,grapeData:a(t).selectGrape,params:{parentGrape:a(t).grape.name},checkbox:!0,ref_key:"tableDataRef",ref:w},null,8,["grapeData","params"])):v("",!0)]),_:1},8,["modelValue","title","width"])):v("",!0)],64)}}};export{se as default};
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{e as m}from"./Bus-7f99bbc0.js";import{t as _,r as h,n as v,b as n,o as f,i as g,w as o,h as k,d as c,k as x,f as C,e as y}from"./index-296085fa.js";const b={class:"card-header"},D={props:{grape:{type:Object,default:{}}},setup(l){const d=l,{grape:a}=_(d),r=h([]),p=()=>{k.get(`/api/data/tree/${a.value.treeLink.grapeClass}`).then(e=>{e.code==200&&(r.value=e.data)})},i=e=>{var s=a.value.treeLink.pid,t={};t[s]=e.value,m.emit(a.value.name,t)};return v(()=>{p()}),(e,s)=>{const t=n("el-tree"),u=n("el-card");return f(),g(u,{class:"box-card",shadow:"never",style:{"margin-right":"10px"}},{header:o(()=>[c("div",b,[c("span",null,x(C(a).treeLink.nav),1)])]),default:o(()=>[y(t,{data:r.value,onNodeClick:i,"empty-text":"暂无数据"},null,8,["data"])]),_:1})}}};export{D as default};
|
||||
import{e as m}from"./Bus-7f99bbc0.js";import{t as _,r as h,n as v,b as n,o as f,i as g,w as o,h as k,d as c,k as x,f as C,e as y}from"./index-574ec709.js";const b={class:"card-header"},D={props:{grape:{type:Object,default:{}}},setup(l){const d=l,{grape:a}=_(d),r=h([]),p=()=>{k.get(`/api/data/tree/${a.value.treeLink.grapeClass}`).then(e=>{e.code==200&&(r.value=e.data)})},i=e=>{var s=a.value.treeLink.pid,t={};t[s]=e.value,m.emit(a.value.name,t)};return v(()=>{p()}),(e,s)=>{const t=n("el-tree"),u=n("el-card");return f(),g(u,{class:"box-card",shadow:"never",style:{"margin-right":"10px"}},{header:o(()=>[c("div",b,[c("span",null,x(C(a).treeLink.nav),1)])]),default:o(()=>[y(t,{data:r.value,onNodeClick:i,"empty-text":"暂无数据"},null,8,["data"])]),_:1})}}};export{D as default};
|
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
|||
import{P as Ft,r as Ht,n as Lt,h as Mt,p as Ot,q as Ut,o as jt,c as Qt}from"./index-296085fa.js";var Nt={exports:{}};(function(Pt,Rt){(function(n,t){Pt.exports=t()})(window,function(){return function(f){var n={};function t(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return f[e].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=f,t.c=n,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:r})},t.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,a){if(a&1&&(e=t(e)),a&8||a&4&&typeof e=="object"&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),a&2&&typeof e!="string")for(var o in e)t.d(r,o,function(v){return e[v]}.bind(null,o));return r},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t(t.s=141)}([function(f,n){function t(e){return e&&e.__esModule?e:{default:e}}f.exports=t},function(f,n,t){f.exports=t(142)},function(f,n,t){t.r(n),t.d(n,"__extends",function(){return a}),t.d(n,"__assign",function(){return r}),t.d(n,"__rest",function(){return o}),t.d(n,"__decorate",function(){return v}),t.d(n,"__param",function(){return g}),t.d(n,"__metadata",function(){return d}),t.d(n,"__awaiter",function(){return p}),t.d(n,"__generator",function(){return s}),t.d(n,"__createBinding",function(){return i}),t.d(n,"__exportStar",function(){return u}),t.d(n,"__values",function(){return l}),t.d(n,"__read",function(){return m}),t.d(n,"__spread",function(){return c}),t.d(n,"__spreadArrays",function(){return h}),t.d(n,"__spreadArray",function(){return A}),t.d(n,"__await",function(){return y}),t.d(n,"__asyncGenerator",function(){return x}),t.d(n,"__asyncDelegator",function(){return S}),t.d(n,"__asyncValues",function(){return T}),t.d(n,"__makeTemplateObject",function(){return P}),t.d(n,"__importStar",function(){return E}),t.d(n,"__importDefault",function(){return D}),t.d(n,"__classPrivateFieldGet",function(){return I}),t.d(n,"__classPrivateFieldSet",function(){return M});/*! *****************************************************************************
|
||||
import{P as Ft,r as Ht,n as Lt,h as Mt,p as Ot,q as Ut,o as jt,c as Qt}from"./index-574ec709.js";var Nt={exports:{}};(function(Pt,Rt){(function(n,t){Pt.exports=t()})(window,function(){return function(f){var n={};function t(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return f[e].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=f,t.c=n,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:r})},t.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,a){if(a&1&&(e=t(e)),a&8||a&4&&typeof e=="object"&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),a&2&&typeof e!="string")for(var o in e)t.d(r,o,function(v){return e[v]}.bind(null,o));return r},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="",t(t.s=141)}([function(f,n){function t(e){return e&&e.__esModule?e:{default:e}}f.exports=t},function(f,n,t){f.exports=t(142)},function(f,n,t){t.r(n),t.d(n,"__extends",function(){return a}),t.d(n,"__assign",function(){return r}),t.d(n,"__rest",function(){return o}),t.d(n,"__decorate",function(){return v}),t.d(n,"__param",function(){return g}),t.d(n,"__metadata",function(){return d}),t.d(n,"__awaiter",function(){return p}),t.d(n,"__generator",function(){return s}),t.d(n,"__createBinding",function(){return i}),t.d(n,"__exportStar",function(){return u}),t.d(n,"__values",function(){return l}),t.d(n,"__read",function(){return m}),t.d(n,"__spread",function(){return c}),t.d(n,"__spreadArrays",function(){return h}),t.d(n,"__spreadArray",function(){return A}),t.d(n,"__await",function(){return y}),t.d(n,"__asyncGenerator",function(){return x}),t.d(n,"__asyncDelegator",function(){return S}),t.d(n,"__asyncValues",function(){return T}),t.d(n,"__makeTemplateObject",function(){return P}),t.d(n,"__importStar",function(){return E}),t.d(n,"__importDefault",function(){return D}),t.d(n,"__classPrivateFieldGet",function(){return I}),t.d(n,"__classPrivateFieldSet",function(){return M});/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" type="text/css" href="./bmap.css"/>
|
||||
<title>无人机编码管理系统</title>
|
||||
<script type="module" crossorigin src="./assets/index-296085fa.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index-574ec709.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index-30037940.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
Loading…
Reference in New Issue