1 line
7.4 KiB
JavaScript
1 line
7.4 KiB
JavaScript
"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[374],{329:function(e,t,i){i.d(t,{Z:function(){return p}});var a=i(6252),n=i(9963);const o=(0,a._)("span",{class:"icon iconfont icon-guanbi"},null,-1),s=[o],l={class:"history_detail_content scroll_style"},r={class:"history_img_item"},c=["src"];function u(e,t,i,o,u,h){const d=(0,a.up)("a-modal");return(0,a.wg)(),(0,a.j4)(d,{class:"hsitory_detail_modal_component",visible:e.hsitoryDetailShow,"onUpdate:visible":t[1]||(t[1]=t=>e.hsitoryDetailShow=t),footer:null,title:e.collectionName,width:"80%",maskClosable:!1,keyboard:!1,centered:!0},{closeIcon:(0,a.w5)((()=>[(0,a._)("div",{class:"close_icon",onClick:t[0]||(t[0]=(0,n.iM)((t=>e.changeDetailShow()),["stop"]))},s)])),default:(0,a.w5)((()=>[(0,a._)("div",l,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(e.groupDetails,(e=>((0,a.wg)(),(0,a.iD)("div",{class:"history_img_block",key:e},[(0,a._)("div",r,[(0,a._)("img",{class:"element_img",src:e.url},null,8,c)])])))),128))])])),_:1},8,["visible","title"])}var h=(0,a.aZ)({props:{groupDetails:{default:{}},collectionName:{default:""}},setup(){},data(){return{hsitoryDetailShow:!1}},methods:{changeDetailShow(){this.hsitoryDetailShow=!this.hsitoryDetailShow}}}),d=i(3744);const m=(0,d.Z)(h,[["render",u]]);var p=m},5374:function(e,t,i){i.r(t),i.d(t,{default:function(){return K}});var a=i(6252),n=i(3577),o=i(9963),s=i(5328);const l={class:"trial_page"},r={class:"page_content"},c=(0,a._)("img",{class:"page_content_bg",src:s},null,-1),u={class:"page_content_body"},h={class:"trial_page_body"},d={class:"trial_table_search"},m=(0,a._)("span",{class:"icon iconfont range_picker_icon icon-rili"},null,-1),p={class:"trial_state"},g=(0,a._)("div",null,"all",-1),_={class:"header_user_content marLeft2"},v=(0,a._)("span",{class:"username"},"123123",-1),y={class:"content_search_block"},k=["placeholder"],w=(0,a._)("span",{class:"icon iconfont icon-sousuo"},null,-1),D=[w],C={class:"trial_table_content",ref:"historyTable"},f={key:0,class:"operate_list"},b=["onClick"],H=["onClick"],P=["onClick"],V=["onClick"],N={class:"collection_rename_content"},S={class:"rename_form_content"},x=["placeholder"];function T(e,t,i,s,w,T){const L=(0,a.up)("HeaderComponent"),z=(0,a.up)("a-range-picker"),I=(0,a.up)("a-table"),Z=(0,a.up)("a-modal");return(0,a.wg)(),(0,a.iD)("div",l,[(0,a._)("div",r,[c,(0,a._)("div",u,[(0,a.Wm)(L),(0,a._)("div",h,[(0,a._)("div",d,[(0,a.Wm)(z,{class:"range_picker",value:e.rangePickerValue,"onUpdate:value":t[0]||(t[0]=t=>e.rangePickerValue=t),placeholder:[e.$t("HistoryPage.StartDate"),e.$t("HistoryPage.EndDate")],valueFormat:"YYYY-MM-DD"},{suffixIcon:(0,a.w5)((()=>[m])),_:1},8,["value","placeholder"]),(0,a._)("div",p,[g,(0,a._)("div",_,[v,(0,a._)("div",{class:(0,n.C_)(["icon","iconfont","icon-xiala"]),onClick:t[1]||(t[1]=(0,o.iM)((()=>{}),["stop"]))})])]),(0,a._)("div",y,[(0,a.wy)((0,a._)("input",{class:"search_input",placeholder:e.$t("HistoryPage.inputContent1"),"onUpdate:modelValue":t[2]||(t[2]=t=>e.searchCollectionName=t),onKeydown:t[3]||(t[3]=(0,o.D2)((t=>e.searchHistoryList()),["enter"]))},null,40,k),[[o.nr,e.searchCollectionName]]),(0,a._)("div",{class:"search_icon_block",onClick:t[4]||(t[4]=t=>e.searchHistoryList())},D)])]),(0,a._)("div",C,[(0,a.Wm)(I,{columns:e.columns,"data-source":e.collectionList,scroll:{y:e.historyTableHeight},onChange:e.changePage,pagination:{showSizeChanger:!0,current:e.currentPage,pageSize:e.pageSize,total:e.total,showQuickJumper:!0,bordered:!1}},{bodyCell:(0,a.w5)((({column:t,text:i,record:o,index:s})=>[t?.Operations?((0,a.wg)(),(0,a.iD)("div",f,[(0,a._)("div",{class:"operate_item",onClick:t=>e.turnToDetail(o)},(0,n.zw)(e.$t("HistoryPage.Detail")),9,b),(0,a._)("div",{class:"operate_item",onClick:t=>e.renameCollection(o,s)},(0,n.zw)(e.$t("HistoryPage.Rename")),9,H),(0,a._)("div",{class:"operate_item",onClick:t=>e.retrieveHome(o)},(0,n.zw)(e.$t("HistoryPage.Retrieve")),9,P),(0,a._)("div",{class:"operate_item",onClick:t=>e.deleteGroup(o,s)},(0,n.zw)(e.$t("HistoryPage.Delete")),9,V)])):(0,a.kq)("",!0)])),_:1},8,["columns","data-source","scroll","onChange","pagination"])],512)])])]),(0,a.Wm)(Z,{class:"rename_modal_component",visible:e.renameVisivle,"onUpdate:visible":t[8]||(t[8]=t=>e.renameVisivle=t),footer:null,title:e.renameData?.name,keyboard:!1,width:"56rem",maskClosable:!1,centered:!0},{default:(0,a.w5)((()=>[(0,a._)("div",N,[(0,a._)("div",S,[(0,a.wy)((0,a._)("input",{class:"rename_form_input",placeholder:e.$t("HistoryPage.inputContent2"),"onUpdate:modelValue":t[5]||(t[5]=t=>e.newCollectionName=t),onKeydown:t[6]||(t[6]=(0,o.D2)((t=>e.confrimRename()),["enter"]))},null,40,x),[[o.nr,e.newCollectionName]])]),(0,a._)("div",{class:"rename_submit_button",onClick:t[7]||(t[7]=t=>e.confrimRename())},(0,n.zw)(e.$t("HistoryPage.Submit")),1)])])),_:1},8,["visible","title"])])}var L=i(2262),z=i(2339),I=i(1087),Z=i(329),$=i(9913),U=i(6214),Y=i(7332),G=i(327),O=i(8472),R=i(8302),M=i(8552),Q=(0,a.aZ)({components:{HeaderComponent:I.Z,HistoryDetail:Z.Z,RobotAssist:O.Z},setup(){let e=(0,L.iH)([]),t=(0,L.iH)({});const i=(0,a.Fl)((()=>[{title:(0,M.QT)().t("HistoryPage.CollectionsName"),align:"center",ellipsis:!0,width:150,dataIndex:"name",key:"collectionName"},{title:(0,M.QT)().t("HistoryPage.UptateTime"),align:"center",ellipsis:!0,width:150,dataIndex:"updateDate",key:"updateTime",customRender:e=>{let t=(0,Y.mr)(e.text/1e3,"YYYY-MM-DD hh:mm:ss");return t}},{title:(0,M.QT)().t("HistoryPage.SketchCounts"),align:"center",ellipsis:!0,width:150,dataIndex:"sketchCount",key:"sketchCounts"},{title:(0,M.QT)().t("HistoryPage.Operations"),key:"operation",align:"center",fixed:"right",width:150,Operations:!0}]));let n=(0,L.iH)([]),o={},s=(0,L.iH)(0);return{rangePickerValue:e,columns:i,collectionList:n,renameData:t,userInfo:o,status:s}},data(){return{currentPage:1,pageSize:10,total:0,historyTableHeight:0,newCollectionName:"",renameVisivle:!1,collectionName:"",searchCollectionName:""}},mounted(){let e=this.$refs.historyTable;this.historyTableHeight=e.clientHeight-130,this.gettrialList(),this.userInfo=JSON.parse((0,z.ej)("userInfo")),83==this.userInfo.userId||$.Z.replace("/home")},methods:{turnToDetail(e){let t=this.$refs.historyDetail;this.collectionName=e.name,t.changeDetailShow()},changePage(e){this.currentPage=e.current,this.pageSize=e.pageSize,this.gettrialList()},searchHistoryList(){this.currentPage=1,this.gettrialList()},gettrialList(){this.rangePickerValue&&new Date(this.rangePickerValue[0]).getTime(),this.rangePickerValue&&new Date(this.rangePickerValue[1]).getTime();let e={page:this.currentPage,size:this.pageSize,status:0};U.V.axiosPost(U.V.httpUrls.trialOrderList,e).then((e=>{this.collectionList=e.content}))},deleteGroup(e,t){let i=(e,t)=>{let i={userGroupId:e};U.V.axiosPost(U.V.httpUrls.deleteUserGroup,i).then((e=>{this.collectionList.splice(t,1)}))};G.Z.confirm({title:"11",icon:(0,a.Wm)(R.Z),okText:"Yes",cancelText:"No",centered:!0,mask:!1,onOk(){i(e.id,t)}})},renameCollection(e,t){this.renameVisivle=!0,this.renameData={...e,index:t}},confrimRename(){let e={timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,userGroupId:this.renameData.id,userGroupName:this.newCollectionName};U.V.axiosPost(U.V.httpUrls.updateUserGroupName,e).then((e=>{this.collectionList[this.renameData.index].name=this.newCollectionName,this.collectionList[this.renameData.index].updateDate=e.updateDate,this.renameVisivle=!1,this.newCollectionName="",this.renameData={}}))},retrieveHome(e){this.$router.push({name:"home",params:{id:e.id}})}}}),W=i(3744);const F=(0,W.Z)(Q,[["render",T]]);var K=F},5328:function(e,t,i){e.exports=i.p+"img/bg.5af7d92c.png"}}]); |