提交 5ec78097 编写于 作者: 刘英杰's avatar 刘英杰

20241213 优化保存

上级 70bce89a
流水线 #31795 已通过 ,包含阶段
in 44 second
.columnsItemMinWidth[data-v-32a72e16]{min-width:1000px}
\ No newline at end of file
.selectTitleIcon[data-v-259f5f57]:hover{transform:scale(1.3);cursor:pointer}
\ No newline at end of file
.iconScale[data-v-16d3d1e3]:hover{color:#1e93ff}.iconScale[data-v-16d3d1e3]:hover,.selectTitleIcon[data-v-16d3d1e3]:hover{transform:scale(1.3);cursor:pointer}
\ No newline at end of file
.columnsItemMinWidth[data-v-ac7f55fe]{min-width:1000px}
\ No newline at end of file
.columnsItemMinWidth[data-v-a93aeeb6]{min-width:1000px}
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>值班管理</title><link href=css/app.de53c9b8.css rel=stylesheet></head><body><script charset=utf-8 src="https://map.qq.com/api/gljs?v=1.exp&key=IZXBZ-OTAWV-XU7PV-5FAAL-F6VXH-7XBQP"></script><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 党建管理系统。</strong></noscript><div id=app></div><script src=js/chunk-vendors.231bdbe1.js></script><script src=js/app.d8fe7957.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>值班管理</title><link href=css/app.de53c9b8.css rel=stylesheet></head><body><script charset=utf-8 src="https://map.qq.com/api/gljs?v=1.exp&key=IZXBZ-OTAWV-XU7PV-5FAAL-F6VXH-7XBQP"></script><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 党建管理系统。</strong></noscript><div id=app></div><script src=js/chunk-vendors.231bdbe1.js></script><script src=js/app.7eb599c4.js></script></body></html>
\ No newline at end of file \ No newline at end of file
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e1fbe"],{"7d83":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Card",{ref:"card",scopedSlots:e._u([{key:"title",fn:function(){return[a("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[a("h3",[e._v("换班日志")])])]},proxy:!0},{key:"extra",fn:function(){return[a("div",{staticStyle:{display:"flex"}},[a("Input",{staticStyle:{width:"15vw"},attrs:{placeholder:"请输入姓名搜索..."},model:{value:e.params.name1,callback:function(t){e.$set(e.params,"name1",t)},expression:"params.name1"}}),a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:e.searchBt}},[e._v("搜索")])],1)]},proxy:!0}])},[a("Table",{staticClass:"ivu-mt",attrs:{columns:e.columns,data:e.tableData,loading:e.loading,size:e.tableSize},scopedSlots:e._u([{key:"sign",fn:function(t){var a=t.row;return[e._v("\n "+e._s(e.publicObject.signState[a.sign])+"\n ")]}}])}),a("div",{staticClass:"ivu-text-left ivu-mt "},[a("Page",{attrs:{total:e.total,current:e.params.pageIndex,"show-total":"","show-sizer":"","page-size":e.params.pageSize},on:{"update:current":function(t){return e.$set(e.params,"pageIndex",t)},"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize}})],1)],1)],1)},i=[],s=(a("7f7f"),a("96cf"),a("3b8d")),l=a("967e"),r=a.n(l),c=a("5e9b"),o=a("806c"),d=a("e3ea"),p={name:"list",computed:{publicObject:function(){return d["b"]}},data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"姓名",key:"name",align:"center",show:!0,minWidth:100},{title:"工号",key:"card_name",align:"center",show:!0,minWidth:100},{title:"描述",key:"remark",align:"center",show:!0,minWidth:100},{title:"地址",key:"address",align:"center",show:!0,minWidth:100},{title:"签到状态",slot:"sign",align:"center",show:!0,minWidth:100},{title:"经纬度",key:"address_locatioin",align:"center",show:!0,minWidth:100},{title:"图片",key:"file_link",align:"center",show:!0,minWidth:100}],loading:!1,tableData:[],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:"",name:"",name1:""}}},watch:{"params.name1":function(e,t){e||(this.params.name="",this.params.pageSize=10,this.params.pageIndex=1,this.getData())}},created:function(){},mounted:function(){this.getData()},methods:{searchBt:function(){this.params.name=this.params.name1,this.getData()},getData:function(){var e=this;o["getInitListRequest"](Object(s["a"])(r.a.mark((function t(){var a,n;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,a={page_index:e.params.pageIndex,page_size:e.params.pageSize,name:e.params.name},t.next=4,c["y"](a);case 4:n=t.sent,e.total=n.response.data_count,e.tableData=n.response.data,e.loading=!1;case 8:case"end":return t.stop()}}),t)}))))},add:function(){this.$refs.addEdit.add()},edit:function(e){this.$refs.addEdit.edit(e)},del:function(e){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(e){this.params.pageIndex=e,this.getData()},handleChangePageSize:function(e){this.params.pageSize=e,this.getData()}}},u=p,g=a("2877"),h=Object(g["a"])(u,n,i,!1,null,null,null);t["default"]=h.exports}}]);
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-63ed61ac"],{"23b1":function(e,t,n){},"4ca7":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Card",{scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[n("h3",[e._v("权限分配")])])]},proxy:!0},{key:"extra",fn:function(){return[n("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center"}},[n("Input",{attrs:{placeholder:"请输入权限名称进行查找..."},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),n("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",disabled:""===e.searchValue},on:{click:e.searchEvent}},[e._v("查找\n ")])],1)]},proxy:!0}])},[n("Table",{attrs:{columns:e.columns,data:e.data,loading:e.loading},scopedSlots:e._u([{key:"action",fn:function(t){var r=t.row;return[n("Button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.update(r)}}},[e._v("修改")]),n("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"error",size:"small"},on:{click:function(t){return e.roleDelete(r)}}},[e._v("删除")])]}}])}),n("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[n("Page",{attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:e.total,"page-size":e.page_size,"model-value":"page_index"},on:{"on-change":e.currentPage,"on-page-size-change":e.currentPageCount}})],1)],1),n("Modal",{attrs:{title:""+e.ModalTitleValue,"cancel-text":"取消","ok-text":"确认","mask-closable":!1},on:{"on-ok":e.modalOk},model:{value:e.modal,callback:function(t){e.modal=t},expression:"modal"}},[n("Form",{ref:"updateRoleValue",attrs:{model:e.formTop,"label-width":80}},[n("FormItem",{attrs:{label:"权限名称",prop:"input1"}},[n("Input",{model:{value:e.formTop.input1,callback:function(t){e.$set(e.formTop,"input1",t)},expression:"formTop.input1"}})],1),n("FormItem",{attrs:{label:"备注",prop:"input2"}},[n("Input",{model:{value:e.formTop.input2,callback:function(t){e.$set(e.formTop,"input2",t)},expression:"formTop.input2"}})],1)],1)],1)],1)},a=[],o=(n("96cf"),n("3b8d")),i=n("967e"),s=n.n(i),c=n("5e9b"),u=n("806c"),l={components:{},data:function(){return{loading:!1,searchValue:"",total:null,page_size:10,page_index:1,ruleValidate:{input1:[{required:!0,message:"不能为空!",trigger:"blur"}],input2:[{required:!0,message:"不能为空!",trigger:"blur"}]},formTop_roleId:"",formTop:{input1:"",input2:"",roleId:"",roleCreateTime:""},modal:!1,columns:[{title:"序号",type:"index"},{title:"权限名称",key:"role_name"},{title:"备注",key:"role_remark"},{title:"操作",slot:"action",align:"center"}],data:[]}},computed:{ModalTitleValue:function(){return""===this.formTop.input1?"增添权限类型":"信息修改"}},watch:{"formTop.input1":function(e,t){}},methods:{searchEvent:function(){this.page_index=1,this.GetUserRoleList()},currentPage:function(e){this.page_index=e,this.GetUserRoleList()},currentPageCount:function(e){this.page_size=e,this.GetUserRoleList()},publicConfirm:function(e){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var t=Object(o["a"])(s.a.mark((function t(){return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e();case 2:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()})},publicMessage:function(e){1!==e.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))},roleDeleteEvent:function(){var e=Object(o["a"])(s.a.mark((function e(){var t=this;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:u["myEncapsulationFunction"](Object(o["a"])(s.a.mark((function e(){var n,r;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={id:t.formTop.roleId},e.next=3,c["J"](n);case 3:return r=e.sent,e.next=6,t.GetUserRoleList();case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),roleDelete:function(){var e=Object(o["a"])(s.a.mark((function e(t){var n=this;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.formTop.roleId=t.roleid,this.publicConfirm((function(){return n.roleDeleteEvent()}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),addRoleClass:function(){this.formTop.input1="",this.formTop.input2="",this.formTop.roleId="",this.modal=!0},update:function(e){this.modal=!0,this.formTop.input1=e.role_name,this.formTop.input2=e.role_remark,this.formTop.roleId=e.roleid,this.formTop.roleCreateTime=e.createtime},modalOkDataAction:function(e){var t;return t=e?{roleid:this.formTop.roleId,role_name:this.formTop.input1,role_remark:this.formTop.input2,createtime:this.formTop.roleCreateTime}:{role_name:this.formTop.input1,role_remark:this.formTop.input2},t},modalOk:function(){var e=Object(o["a"])(s.a.mark((function e(){var t=this;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:u["myEncapsulationFunction"](Object(o["a"])(s.a.mark((function e(){var n,r;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.modalOkDataAction(t.formTop),e.next=3,c["K"](n);case 3:return r=e.sent,e.next=6,t.GetUserRoleList();case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),GetUserRoleList:function(){var e=Object(o["a"])(s.a.mark((function e(){var t=this;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:u["getInitListRequest"](Object(o["a"])(s.a.mark((function e(){var n,r;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,n={page_index:t.page_index,page_size:t.page_size,name:t.searchValue},e.next=4,c["r"](n);case 4:r=e.sent,t.data=[],t.data=r.response.data,t.total=r.response.data_count,t.loading=!1;case 9:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.GetUserRoleList()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=l,f=(n("9a33"),n("2877")),d=Object(f["a"])(p,r,a,!1,null,"ac7f55fe",null);t["default"]=d.exports},"9a33":function(e,t,n){"use strict";n("23b1")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64e34ba8"],{"6b0c":function(e,t,n){},b769:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Card",{staticClass:"HeaderCard",staticStyle:{width:"100%"},attrs:{"dis-hover":""}},[n("div",{staticStyle:{"padding-bottom":"7px",display:"flex","flex-flow":"row nowrap","align-content":"center"}},[n("h3",[e._v("消息推送记录列表")]),n("div",{staticStyle:{"margin-left":"auto",display:"flex"}},[n("Input",{staticStyle:{width:"12vw","margin-right":"10px"},attrs:{clearable:"",placeholder:"请输入接收人姓名..."},model:{value:e.reception_man,callback:function(t){e.reception_man=t},expression:"reception_man"}}),n("DatePicker",{staticStyle:{"margin-right":"10px",width:"12vw"},attrs:{placeholder:"请选择日期",type:"daterange"},on:{"on-change":e.signDateSelect},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}}),n("Select",{staticStyle:{"margin-right":"10px",width:"12vw"},attrs:{clearable:"",placeholder:"请选择..."},model:{value:e.send_state,callback:function(t){e.send_state=t},expression:"send_state"}},e._l(e.cityList,(function(t){return n("Option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.label))])})),1),n("Select",{staticStyle:{"margin-right":"10px",width:"12vw"},attrs:{clearable:"",placeholder:"请选择..."},model:{value:e.is_succeed,callback:function(t){e.is_succeed=t},expression:"is_succeed"}},e._l(e.cityList1,(function(t){return n("Option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.label))])})),1),n("Button",{attrs:{type:"primary"},on:{click:e.SearchViewEvent}},[e._v("查找")])],1)]),n("Table",{ref:"selection",staticClass:"table",attrs:{border:!1,columns:e.columns,data:e.data,loading:e.loading},scopedSlots:e._u([{key:"messageinfo",fn:function(e){var t=e.row;return[n("Ellipsis",{attrs:{length:15,text:t.messageinfo,tooltip:""}})]}},{key:"reception_man",fn:function(t){var n=t.row;return[e._v("\n "+e._s(n.reception_man)+"\n ")]}},{key:"meg_link",fn:function(e){var t=e.row;return[n("Ellipsis",{attrs:{height:100,text:t.meg_link,tooltip:""}})]}},{key:"remark",fn:function(e){var t=e.row;return[n("Ellipsis",{attrs:{height:100,text:t.remark,tooltip:""}})]}},{key:"send_state",fn:function(t){var a=t.row;return[n("Tag",{attrs:{color:["error","success"][a.send_state]}},[e._v(e._s(["未发送","已发送"][a.send_state]))])]}},{key:"is_succeed",fn:function(t){var a=t.row;return[n("Tag",{attrs:{color:["warning","error","success"][a.is_succeed]}},[e._v(e._s(["异常","失败","成功"][a.is_succeed])+"\n ")])]}},{key:"action",fn:function(t){var a=t.row;return[n("Button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.messageReset(a)}}},[e._v("重发\n ")])]}}])}),n("div",{key:e.key,staticStyle:{width:"100%",height:"50px","margin-top":"20px"}},[n("Page",{staticStyle:{"border-color":"#d89a7c"},attrs:{"page-size":e.page_size,total:e.total,"model-value":"page_index","show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":e.currentPage,"on-page-size-change":e.currentPageCount}})],1)],1),n("Modal",{attrs:{title:"重新发送提示"},scopedSlots:e._u([{key:"header",fn:function(){return[n("p",{staticStyle:{color:"#f60","text-align":"center"}},[n("Icon",{attrs:{type:"ios-information-circle"}}),n("span",[e._v("重新发送提示")])],1)]},proxy:!0},{key:"footer",fn:function(){return[n("Button",{staticStyle:{color:"#574f44"},attrs:{size:"large"},on:{click:function(t){e.messageModal=!1}}},[e._v("取消\n ")]),n("Button",{staticStyle:{"margin-left":"1vh"},attrs:{size:"large",type:"primary"},on:{click:function(t){return e.messageOk()}}},[e._v("确定\n ")])]},proxy:!0}]),model:{value:e.messageModal,callback:function(t){e.messageModal=t},expression:"messageModal"}},[n("span",{staticStyle:{display:"flex","justify-content":"center"}},[e._v("确定重发此条消息提示吗?")])])],1)},i=[],s=(n("96cf"),n("3b8d")),r=n("967e"),c=n.n(r),o=n("5e9b"),l=n("5a0c"),u=n.n(l),d={name:"numberLimit",data:function(){return{loading:!1,send_state:"",is_succeed:"",reception_man:"",timeRange:[],begin_time:"",end_time:"",send_stateSearch:"",is_succeedSearch:"",messageResetObject:{},messageModal:!1,key:0,SelectMiedleValue:"",SelectValue:"",SearchDateValue:"",page_size:10,page_index:1,total:0,columns:[{title:"接收人",slot:"reception_man",minWidth:150},{title:"消息内容",slot:"messageinfo",minWidth:150},{title:"发送时间",key:"send_time",minWidth:150},{title:"链接",slot:"meg_link",minWidth:300},{title:"失败原因",slot:"remark",minWidth:100},{title:"发送状态",slot:"send_state",minWidth:100},{title:"是否成功",slot:"is_succeed",minWidth:100},{title:"创建时间",key:"createtime",minWidth:150},{title:"操作",slot:"action",minWidth:100,fixed:"right",align:"center"}],data:[],cityList:[{value:1,label:"发送"},{value:0,label:"未发送"}],cityList1:[{value:2,label:"成功"},{value:1,label:"失败"}]}},methods:{signDateSelect:function(e){this.begin_time="",this.end_time="",e=e.filter((function(e){return""!==e})),e.length&&(this.begin_time=u()(e[0]).format("YYYY-MM-DD"),this.end_time=u()(e[1]).format("YYYY-MM-DD"))},messageOk:function(){var e=Object(s["a"])(c.a.mark((function e(){var t,n;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={megid:this.messageResetObject.msgid},e.next=3,o["B"](t);case 3:return n=e.sent,e.next=6,this.GetMessageimeListEvent();case 6:this.messageModal=!1,this.$Message.info(n.msg);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),messageReset:function(e){this.messageModal=!0,this.messageResetObject=e},OfficeArraySort:function(){console.log(this.SelectValue),this.SelectMiedleValue=this.SelectValue},DateManagementModal:function(e,t){console.log(e)},SearchViewEvent:function(){var e=Object(s["a"])(c.a.mark((function e(){return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.page_index=1,this.key++,e.next=4,this.GetMessageimeListEvent();case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),searchTimeValue:function(e){},currentPage:function(e){this.page_index=e,this.GetMessageimeListEvent()},currentPageCount:function(e){this.page_size=e,this.GetMessageimeListEvent()},GetMessageimeListEvent:function(){var e=Object(s["a"])(c.a.mark((function e(){var t=this;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.hooks.getInitListRequest(Object(s["a"])(c.a.mark((function e(){var n,a;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,n={send_state:void 0===t.send_state?"":t.send_state,is_succeed:void 0===t.is_succeed?"":t.is_succeed,reception_man:t.reception_man,begin_time:t.begin_time,end_time:t.end_time,page_index:t.page_index,page_size:t.page_size},e.next=4,o["l"](n);case 4:a=e.sent,t.loading=!1,t.data=a.response.data,0===t.data.length&&1!==t.page_index&&(t.page_index=1,t.currentPage(t.page_index)),t.total=a.response.data_count;case 9:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},mounted:function(){this.GetMessageimeListEvent()}},g=d,m=(n("c9c1"),n("2877")),p=Object(m["a"])(g,a,i,!1,null,"d0ce26ee",null);t["default"]=p.exports},c9c1:function(e,t,n){"use strict";n("6b0c")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d4ec6962"],{"2b5c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Card",{scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[n("h3",[e._v("操作日志")])])]},proxy:!0},{key:"extra",fn:function(){return[n("div",{staticStyle:{display:"flex","flex-wrap":"nowrap","align-items":"center"}},[n("Input",{attrs:{clearable:"",placeholder:"请输入卡号或姓名..."},model:{value:e.key_name,callback:function(t){e.key_name=t},expression:"key_name"}}),n("DatePicker",{staticStyle:{width:"100%","margin-left":"10px"},attrs:{type:"daterange",placeholder:"请选择日期"},on:{"on-change":e.signDateSelect},model:{value:e.timeRange,callback:function(t){e.timeRange=t},expression:"timeRange"}}),n("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:e.GetLogAll}},[e._v("查找\n ")])],1)]},proxy:!0}])},[n("Table",{attrs:{columns:e.columns,data:e.data,loading:e.loading}}),n("div",{staticStyle:{width:"100%",height:"70px",display:"flex","align-items":"center"}},[n("Page",{attrs:{"show-total":"","show-sizer":"","show-elevator":"",total:e.total,"page-size":e.page_size,"model-value":"page_index"},on:{"on-change":e.currentPage,"on-page-size-change":e.currentPageCount}})],1)],1)],1)},a=[],c=(n("96cf"),n("3b8d")),o=n("967e"),r=n.n(o),s=n("5e9b"),l=n("5a0c"),u=n.n(l),d={components:{},data:function(){return{loading:!1,total:null,page_size:10,page_index:1,key_name:"",begin_time:"",end_time:"",timeRange:[],columns:[{title:"姓名",key:"user_name",minWidth:150,align:"center"},{title:"工号",key:"user_id",minWidth:150,align:"center"},{title:"操作内容",key:"type",minWidth:150,align:"center"},{title:"IP地址",key:"ip",minWidth:150,align:"center"},{title:"操作时间",key:"createtime",minWidth:150,align:"center"}],data:[]}},computed:{},watch:{},methods:{signDateSelect:function(e){this.begin_time="",this.end_time="",e=e.filter((function(e){return""!==e})),console.log("🚀🚀🚀,",e),e.length&&(this.begin_time=u()(e[0]).format("YYYY-MM-DD"),this.end_time=u()(e[1]).format("YYYY-MM-DD"))},currentPage:function(e){this.page_index=e,this.GetLogAll()},currentPageCount:function(e){this.page_size=e,this.GetLogAll()},publicConfirm:function(e){this.$Modal.confirm({title:"警告",content:"<p>是否继续此操作?</p>",cancelText:"取消",okText:"确定",onOk:function(){var t=Object(c["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e();case 2:case"end":return t.stop()}}),t)})));function n(){return t.apply(this,arguments)}return n}()})},publicMessage:function(e){1!==e.code?this.$Message["warning"]({background:!0,content:"操作异常"}):(this.$Spin.hide(),this.$Message["success"]({background:!0,content:"操作成功"}))},GetLogAll:function(){var e=Object(c["a"])(r.a.mark((function e(){var t=this;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.hooks.getInitListRequest(Object(c["a"])(r.a.mark((function e(){var n,i;return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loading=!0,n={page_index:t.page_index,page_size:t.page_size,key_name:t.key_name,begin_time:t.begin_time,end_time:t.end_time},e.next=4,s["i"](n);case 4:i=e.sent,t.total=i.response.data_count,t.data=i.response.data,t.loading=!1;case 8:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.GetLogAll()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},p=d,g=(n("d581"),n("2877")),f=Object(g["a"])(p,i,a,!1,null,"a93aeeb6",null);t["default"]=f.exports},"4d53":function(e,t,n){},d581:function(e,t,n){"use strict";n("4d53")}}]);
\ No newline at end of file
<template>
<!-- 通用搜索表单 -->
<div>
<Form
class="searchDiv"
:model="searchCondObj"
:label-width="labelWidth"
:label-colon="labelColon">
<Row>
<Col v-bind="grid" v-for="item in searchCondList.filter(a => a.show)" :key="item.id">
<FormItem :label="item.name">
<Input
v-if="item.type == 'input'"
style="width: 100%;"
v-model="searchCondObj[item.id]"
clearable
:placeholder="'请输入'+item.name"></Input>
<Select
v-else-if="item.type == 'select'"
style="width: 100%;"
v-model="searchCondObj[item.id]"
clearable
:placeholder="'请选择'+item.name"
>
<Option
v-for="it in item.optList"
:key="it.value"
:value="it.value">{{ it.label }}</Option>
</Select>
<DatePicker
v-else-if="item.type == 'datetime'"
v-model="searchCondObj[item['id']]"
type="datetime"
format="yyyy-MM-dd HH:mm"
:placeholder="'请选择'+item.name"
@on-change="(val1, val2) => datetimeChange(val1, val2, item.id)"/>
</FormItem>
</Col>
<Col v-bind="grid" class="buttonCol">
<Button type="primary" @click="searchBt">查询</Button>
<Button @click="resetBt">重置</Button>
</Col>
</Row>
</Form>
</div>
</template>
<script>
export default {
props: {
// 搜索项列表
searchCondList: { type: Array, require: true },
// label宽度
labelWidth: { type: Number, default: 100 },
// label冒号
labelColon: { type: Boolean, default: true },
},
data() {
return {
// 搜索条件布局
grid: {
sm: 12,
md: 12,
lg: 8,
xl: 6,
},
// 搜索数据
searchCondObj: {},
}
},
computed: {},
created() {},
mounted() {},
methods: {
// 搜索
searchBt() {
this.$emit('onSubmit', this.searchCondObj)
},
// 重置
resetBt() {
// console.log('重置按钮')
this.searchCondObj = {}
this.$emit('onReset')
},
// 日期时间改变选择
datetimeChange(val1, val2, id) {
// console.log('日期时间改变选择', val1, val2, id)
this.searchCondObj[id] = val1
},
},
}
</script>
<style scoped lang="less">
.searchDiv{
.ivu-form-item{
margin-bottom: 12px;
}
.buttonCol{
margin-left: auto;
text-align: right;
.ivu-btn{
margin-left: 8px;
}
}
}
</style>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<Col v-for="(item,index) in cityListAll" :key="index" :span="4.5"> <Col v-for="(item,index) in cityListAll" :key="index" :span="4.5">
<div style="display: flex;flex-wrap: nowrap;align-items: center;"> <div style="display: flex;flex-wrap: nowrap;align-items: center;">
<span style="margin-right: 5px">{{ item[1] }}</span> <span style="margin-right: 5px">{{ item[1] }}</span>
<Select v-model="cityListAllObject[item[2]]" clearable style="width:10vw" :key="index"> <Select v-model="cityListAllObject[item[2]]" clearable style="width:10.5vw" :key="index">
<Option :value="ite.id" :key="inde" v-for="(ite,inde) in item[0]">{{ ite.name }}</Option> <Option :value="ite.id" :key="inde" v-for="(ite,inde) in item[0]">{{ ite.name }}</Option>
</Select> </Select>
</div> </div>
...@@ -41,9 +41,9 @@ ...@@ -41,9 +41,9 @@
<div style="display: flex; justify-content: center;align-items: center"> <div style="display: flex; justify-content: center;align-items: center">
<span>值班日期:&nbsp;</span> <span>值班日期:&nbsp;</span>
<DatePicker v-model="dutyDateX" type="daterange" @on-change="dutyDateSelect" <DatePicker clearable v-model="dutyDateX" type="daterange" @on-change="dutyDateSelect"
placeholder="请选择值班日期" placeholder="请选择值班日期"
style="width: 10vw"/> style="width: 10.5vw"/>
</div> </div>
</Col> </Col>
...@@ -51,17 +51,16 @@ ...@@ -51,17 +51,16 @@
<div style="display: flex;align-items: center;justify-content: center"> <div style="display: flex;align-items: center;justify-content: center">
<span>值班领导:&nbsp;&nbsp;&nbsp;&nbsp;</span> <span>值班领导:&nbsp;&nbsp;&nbsp;&nbsp;</span>
<Select v-model="cityListAllObject.is_lead" clearable placeholder="是否为值班领导" <Select v-model="cityListAllObject.is_lead" clearable placeholder="是否为值班领导"
style="width:10vw;"> style="width:10.5vw;">
<Option v-for="(item,index) in dutyRole" :key="index" :value="item.value">{{ item.label }}</Option> <Option v-for="(item,index) in dutyRole" :key="index" :value="item.value">{{ item.label }}</Option>
</Select> </Select>
</div> </div>
</Col> </Col>
<Col :span="4.5"> <Col :span="4.5">
<div style="display: flex;align-items: center;justify-content: center"> <div style="display: flex;align-items: center;justify-content: center">
<span>名字或卡号:</span> <span>姓名/卡号:</span>
<Input v-model="cityListAllObject.key_name" placeholder="请输入名字或卡号" <Input clearable v-model="cityListAllObject.key_name" placeholder="请输入姓名或卡号"
style="width: 15vw;margin-right: 2.5vw"></Input> style="width: 10.5vw;margin-right: 8.5vw"></Input>
</div> </div>
</Col> </Col>
<Col :span="4.5"> <Col :span="4.5">
...@@ -228,8 +227,8 @@ ...@@ -228,8 +227,8 @@
> >
<Form ref="dutyDataInput" :model="dutyDataInputObject" :rules="rulesDutyDataInput" :label-width="80"> <Form ref="dutyDataInput" :model="dutyDataInputObject" :rules="rulesDutyDataInput" :label-width="80">
<FormItem label="名字或卡号" prop="key_name"> <FormItem label="姓名或卡号" prop="key_name">
<Input v-model="dutyDataInputObject.key_name" placeholder="请输入名字或卡号"></Input> <Input v-model="dutyDataInputObject.key_name" placeholder="请输入姓名或卡号"></Input>
</FormItem> </FormItem>
<FormItem label="值班日期" prop="watch_date"> <FormItem label="值班日期" prop="watch_date">
<DatePicker type="daterange" @on-change="dutyDataInputDateSelect" <DatePicker type="daterange" @on-change="dutyDataInputDateSelect"
...@@ -1046,7 +1045,7 @@ ...@@ -1046,7 +1045,7 @@
<style scoped> <style scoped>
.selectTitleIcon:hover { .selectTitleIcon:hover {
transform: scale(1.3);
cursor: pointer; cursor: pointer;
} }
</style> </style>
...@@ -22,14 +22,12 @@ ...@@ -22,14 +22,12 @@
</div> </div>
<transition name="move-up"> <transition name="move-up">
<div v-if="selectFlag"> <div v-if="selectFlag">
<Row justify="space-between" wrap style="margin-top: 15px"> <Row justify="space-between" wrap style="margin-top: 15px">
<Col v-for="(item,index) in selectList" :key="index" :span="4.5"> <Col v-for="(item,index) in selectList" :key="index" :span="4.5">
<div style="display: flex;flex-wrap: nowrap;align-items: center;"> <div style="display: flex;flex-wrap: nowrap;align-items: center;">
<span style="margin-right: 5px">{{ item[1] }}</span> <span style="margin-right: 5px">{{ item[1] }}</span>
<Select v-model="selectObject[item[2]]" clearable style="width:10vw" :key="index"> <Select v-model="selectObject[item[2]]" clearable style="width:10.5vw" :key="index">
<Option :value="ite.id" :key="inde" v-for="(ite,inde) in item[0]">{{ ite.name }}</Option> <Option :value="ite.id" :key="inde" v-for="(ite,inde) in item[0]">{{ ite.name }}</Option>
</Select> </Select>
</div> </div>
...@@ -42,14 +40,14 @@ ...@@ -42,14 +40,14 @@
<span>值班日期:&nbsp;</span> <span>值班日期:&nbsp;</span>
<DatePicker v-model="dutyDateX" type="daterange" @on-change="signDateSelect" <DatePicker v-model="dutyDateX" type="daterange" @on-change="signDateSelect"
placeholder="请选择值班日期" placeholder="请选择值班日期"
style="width: 10vw"/> style="width: 10.5vw"/>
</div> </div>
</Col> </Col>
<Col :span="4.5" :push="6"> <Col :span="4.5" :push="6">
<!-- <div style="display: flex;align-items: center;justify-content: center">--> <!-- <div style="display: flex;align-items: center;justify-content: center">-->
<!-- <span>名字或卡号:</span>--> <!-- <span>姓名或卡号:</span>-->
<!-- <Input v-model="selectObject.key_name" placeholder="请输入名字或卡号"--> <!-- <Input v-model="selectObject.key_name" placeholder="请输入姓名或卡号"-->
<!-- style="width: 15vw;margin-right: 2.5vw"></Input>--> <!-- style="width: 15vw;margin-right: 2.5vw"></Input>-->
<!-- </div>--> <!-- </div>-->
</Col> </Col>
...@@ -75,8 +73,8 @@ ...@@ -75,8 +73,8 @@
</Button> </Button>
<!-- importSignModel = true --> <!-- importSignModel = true -->
<div style="display: flex;align-items: center;justify-content: center;margin-left: 20px"> <div style="display: flex;align-items: center;justify-content: center;margin-left: 20px">
<!-- <span>名字或卡号:</span>--> <!-- <span>姓名或卡号:</span>-->
<Input v-model="selectObject.key_name" placeholder="请输入名字或卡号" <Input clearable v-model="selectObject.key_name" placeholder="请输入姓名或卡号"
style="width: 15vw;margin-right: 20px"></Input> style="width: 15vw;margin-right: 20px"></Input>
<Button type="primary" icon="ios-search" @click="search">查询数据</Button> <Button type="primary" icon="ios-search" @click="search">查询数据</Button>
</div> </div>
...@@ -102,7 +100,7 @@ ...@@ -102,7 +100,7 @@
<!-- </template>--> <!-- </template>-->
<template #content="{row}"> <template #content="{row}">
<div style="display: flex;align-items: center;"> <div style="display: flex;align-items: center;">
<Ellipsis :text="row.content" :length="10" tooltip></Ellipsis> <Ellipsis :text="row.content" :length="10" tooltip :transfer="true"></Ellipsis>
<!-- ios-create-outline--> <!-- ios-create-outline-->
<!-- ios-create--> <!-- ios-create-->
<span @click="logModalFun(row)"><Icon class="iconScale" type="ios-create" :size="25"/></span> <span @click="logModalFun(row)"><Icon class="iconScale" type="ios-create" :size="25"/></span>
...@@ -168,8 +166,8 @@ ...@@ -168,8 +166,8 @@
> >
<Form ref="signDataInput" :model="signyDataInputObject" :rules="rulesSignDataInput" :label-width="80"> <Form ref="signDataInput" :model="signyDataInputObject" :rules="rulesSignDataInput" :label-width="80">
<FormItem label="名字或卡号" prop="key_name"> <FormItem label="姓名或卡号" prop="key_name">
<Input v-model="signyDataInputObject.key_name" placeholder="请输入名字或卡号"></Input> <Input v-model="signyDataInputObject.key_name" placeholder="请输入姓名或卡号"></Input>
</FormItem> </FormItem>
<FormItem label="值班日期" prop="watch_date"> <FormItem label="值班日期" prop="watch_date">
<DatePicker type="daterange" @on-change="signDataInputDateSelect" <DatePicker type="daterange" @on-change="signDataInputDateSelect"
...@@ -462,7 +460,6 @@ ...@@ -462,7 +460,6 @@
this.importSignModel = false this.importSignModel = false
this.buttonLoding = false this.buttonLoding = false
// this.GetSignRecordList() // this.GetSignRecordList()
} }
}) })
}, },
...@@ -682,13 +679,13 @@ ...@@ -682,13 +679,13 @@
<style scoped> <style scoped>
.iconScale:hover { .iconScale:hover {
transform: scale(1.3);
cursor: pointer; cursor: pointer;
color: #1e93ff; color: #1e93ff;
} }
.selectTitleIcon:hover { .selectTitleIcon:hover {
transform: scale(1.3);
cursor: pointer; cursor: pointer;
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<template #extra> <template #extra>
<div style="display: flex;flex-wrap: nowrap;align-items: center; "> <div style="display: flex;flex-wrap: nowrap;align-items: center; ">
<Input clearable v-model="key_name" placeholder="请输入卡号或姓名..."></Input> <Input clearable v-model="key_name" placeholder="请输入卡号或姓名..."></Input>
<DatePicker v-model="timeRange" type="daterange" @on-change="signDateSelect" <DatePicker v-model="timeRange" type="daterange" @on-change="signDateSelect"
placeholder="请选择日期" placeholder="请选择日期"
style="width: 100%;margin-left: 10px;"/> style="width: 100%;margin-left: 10px;"/>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<template #extra> <template #extra>
<div style="display: flex;flex-wrap: nowrap;align-items: center; "> <div style="display: flex;flex-wrap: nowrap;align-items: center; ">
<Input v-if="!showComponent.info && !showComponent.attendance" v-model="searchValue" <Input v-if="!showComponent.info && !showComponent.attendance" v-model="searchValue"
placeholder="请输入权限名称进行查找..."></Input> placeholder="请输入关键词..." clearable></Input>
<Button v-if="!showComponent.info && !showComponent.attendance" type="primary" :disabled="searchValue === ''" <Button v-if="!showComponent.info && !showComponent.attendance" type="primary" :disabled="searchValue === ''"
@click="searchEvent" @click="searchEvent"
style="margin-left: 10px;">查找 style="margin-left: 10px;">查找
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<Table ref="selection" :border="false" :columns="columns" :data="data" :loading="loading" class="table"> <Table ref="selection" :border="false" :columns="columns" :data="data" :loading="loading" class="table">
<template #messageinfo="{ row }"> <template #messageinfo="{ row }">
<Ellipsis :length="15" :text="row.messageinfo" tooltip/> <Ellipsis :length="15" :text="row.messageinfo" :transfer="true" tooltip/>
</template> </template>
...@@ -39,12 +39,12 @@ ...@@ -39,12 +39,12 @@
</template> </template>
<template #meg_link="{row}"> <template #meg_link="{row}">
<Ellipsis :height="100" :text="row.meg_link" tooltip/> <Ellipsis :height="100" :text="row.meg_link" :transfer="true" tooltip/>
</template> </template>
<template #remark="{row}"> <template #remark="{row}">
<Ellipsis :height="100" :text="row.remark" tooltip/> <Ellipsis :height="100" :text="row.remark" :transfer="true" tooltip/>
</template> </template>
<!-- <template #send_mode="{ row }">--> <!-- <template #send_mode="{ row }">-->
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<template #extra> <template #extra>
<div style="display: flex;flex-wrap: nowrap;align-items: center; "> <div style="display: flex;flex-wrap: nowrap;align-items: center; ">
<Input v-model="searchValue" placeholder="请输入权限名称进行查找..."></Input> <Input v-model="searchValue" placeholder="请输入姓名查找..." clearable></Input>
<Button type="primary" :disabled="searchValue === ''" @click="searchEvent" style="margin-left: 10px;">查找 <Button type="primary" :disabled="searchValue === ''" @click="searchEvent" style="margin-left: 10px;">查找
</Button> </Button>
<!-- <Button type="primary" @click="addRoleClass" style="margin-left: 10px;">增添用户权限</Button>--> <!-- <Button type="primary" @click="addRoleClass" style="margin-left: 10px;">增添用户权限</Button>-->
...@@ -243,14 +243,15 @@ ...@@ -243,14 +243,15 @@
// align: 'center', // align: 'center',
}, },
{
title: '工号',
key: 'card_name'
},
{ {
title: '用户名称', title: '用户名称',
key: 'name' key: 'name'
}, },
{
title: '工号',
key: 'card_name'
},
{ {
title: '部门', title: '部门',
key: 'dept' key: 'dept'
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<template #extra> <template #extra>
<div style="display: flex;flex-wrap: nowrap;align-items: center; "> <div style="display: flex;flex-wrap: nowrap;align-items: center; ">
<Input v-model="searchValue" placeholder="请输入权限名称进行查找..."></Input> <Input v-model="searchValue" placeholder="请输入权限名称..." clearable></Input>
<Button type="primary" :disabled="searchValue === ''" @click="searchEvent" style="margin-left: 10px;">查找 <Button type="primary" :disabled="searchValue === ''" @click="searchEvent" style="margin-left: 10px;">查找
</Button> </Button>
<!-- <Button type="primary" @click="addRoleClass" style="margin-left: 10px;">增添权限类型</Button>--> <!-- <Button type="primary" @click="addRoleClass" style="margin-left: 10px;">增添权限类型</Button>-->
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
</template> </template>
<template #extra> <template #extra>
<div style="display: flex;"> <div style="display: flex;">
<Input v-model="params.name1" placeholder="请输入姓名搜索..." style="width: 15vw;"></Input> <Input v-model="params.name1" placeholder="请输入姓名查找..." clearable style="width: 10vw;"></Input>
<Button type="primary" style="margin-left: 20px" @click="searchBt">搜索</Button> <Button type="primary" style="margin-left: 10px" @click="searchBt">查找</Button>
</div> </div>
</template> </template>
<Table <Table
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或