提交 9b23e338 编写于 作者: 刘英杰's avatar 刘英杰

v20250211 初版保存

上级 6cb8a0a8
流水线 #32924 已通过 ,包含阶段
in 2 minute 和 18 second
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
[data-v-bec70c00] .ivu-form-item-label{font-weight:600}.form-title[data-v-bec70c00]{line-height:22px;text-align:center;font-size:20px;font-weight:700;padding:30px 0}.file-title[data-v-bec70c00]{font-weight:700;color:#333}.file-title[data-v-bec70c00]:hover{color:#2d8cf0}.zd-detail-form-preview[data-v-bec70c00] .ivu-drawer-mask,.zd-detail-form-preview[data-v-bec70c00] .ivu-drawer-wrap{z-index:1998}.filelist[data-v-d7439a08]{cursor:pointer}.filelist[data-v-d7439a08]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-d7439a08]{cursor:pointer;margin-left:auto}.fileddelete[data-v-d7439a08]:hover{color:red;transform:scale(1.5)}.index[data-v-d7439a08]{width:100%;box-sizing:border-box;padding:10px;background-color:#fff}table[data-v-d7439a08]{width:100%;background-color:#fff;border-color:#e3e8ee;text-align:center;border-radius:4px;border-top:1px solid #e3e8ee;border-left:1px solid #e3e8ee}tr[data-v-d7439a08]{border:none;text-align:center}td[data-v-d7439a08]{border-bottom:1px solid #e3e8ee;border-right:1px solid #e3e8ee;text-align:center;box-sizing:border-box;padding:6px;cursor:pointer;max-width:150px}td[data-v-d7439a08]:hover{background:#e7f7f4}td:hover .dis[data-v-d7439a08]{display:block;text-align:center;margin:0 auto;cursor:pointer}tr[data-v-d7439a08]:first-child{height:30px;background-color:#f3f3f3;border:none;color:#525252;font-weight:700;width:50px}.sepacialy[data-v-d7439a08]{border-top:1px solid #e3e8ee;border-left:1px solid #e3e8ee}.table-heard[data-v-d7439a08]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;box-sizing:border-box;padding:10px 10px}.table-heard .center[data-v-d7439a08]{display:flex;justify-content:center;align-items:center}.table-heard .center p[data-v-d7439a08]{font-size:20px;margin:0 30px}.course-item[data-v-d7439a08]{display:flex;justify-content:center;flex-direction:column;gap:6px;align-items:center;min-height:80px;border-radius:4px;box-sizing:border-box;padding:10px 0}.course-item p[data-v-d7439a08]{color:#3a3a3a}.time[data-v-d7439a08]{background:#f7f7f7;color:#707070;font-weight:700}.zd-split[data-v-d7439a08]{height:-10vh}.zd-split .ivu-split-trigger-con[data-v-d7439a08]{z-index:1}.zd-split[data-v-d7439a08] .ivu-tree-title-selected{background-color:#2d8cf0!important;color:#fff}.zd-split .zd-button-action[data-v-d7439a08]{display:flex;justify-content:space-between}.page-sys-menu-drawer-footer[data-v-d7439a08]{width:100%;position:fixed;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:10px 16px;text-align:right;background:#fff;text-align:center;z-index:1998}.page-sys-menu-icon-select .i-icon-select-transfer[data-v-d7439a08]{width:280px!important}.page-sys-menu-icon-select .i-icon-select-drop-main[data-v-d7439a08]{width:280px!important;height:200px;overflow:auto}.zd-form[data-v-d7439a08] .ivu-drawer-body{background-color:#f5f7f9}.zd-form-card[data-v-d7439a08]{max-width:800px;margin:0 auto;margin-top:30px;padding:30px;background:#fff}.save-btn[data-v-d7439a08]{text-align:right;padding:15px;font-size:18px;background:#fff}.persommel-card[data-v-d7439a08] .ivu-card-body{height:100%}.list-personnel-list-item[data-v-d7439a08]{text-align:center;position:relative;box-shadow:5px 5px 10px rgba(0,0,0,.2);border-color:#eee;padding-bottom:32px;height:280px;width:210px}.list-personnel-list-item .ivu-avatar[data-v-d7439a08],.list-personnel-list-item img[data-v-d7439a08]{height:144px;width:108px;border-radius:0}.list-personnel-list-item .ivu-avatar[data-v-d7439a08] .ivu-icon,.list-personnel-list-item img[data-v-d7439a08] .ivu-icon{font-size:100px;margin-top:20px}.list-personnel-list-item-dept[data-v-d7439a08]{font-size:14px;font-weight:700;margin:2px 0}.list-personnel-list-item-desc[data-v-d7439a08]{font-size:14px;color:#808695}.list-personnel-list-item-name[data-v-d7439a08]{position:absolute;left:0;right:0;bottom:0;font-size:18px;font-weight:700;color:#fff;padding:4px 0;border-radius:0 0 4px 4px}.list-personnel-list-item-name.male[data-v-d7439a08]{background-color:#1890ff}.list-personnel-list-item-name.female[data-v-d7439a08]{background-color:#f45151}.list-personnel-list-item-name.other[data-v-d7439a08]{background-color:#808695}.setting-user-avatar[data-v-d7439a08]{width:128px;height:auto;border-radius:0!important}.setting-user-avatar[data-v-d7439a08] .ivu-icon{font-size:128px}.setting-user-avatar[data-v-d7439a08] .ivu-avatar>img{height:auto}.zd-anchor>div[data-v-d7439a08]{background:#fff;padding-left:16px}[data-v-d7439a08] .ivu-anchor-wrapper{max-height:88vh!important}.zd-detail-form-preview[data-v-d7439a08] .ivu-drawer-mask,.zd-detail-form-preview[data-v-d7439a08] .ivu-drawer-wrap{z-index:1998}.menuFlex[data-v-d7439a08]{display:flex;justify-content:space-between;align-items:center}.menuFlex .aaaxx[data-v-d7439a08]{float:right;width:50px;height:30px;color:#1890ff;background:#e6f7ff;display:flex;justify-content:center;align-items:center;border-radius:20px;border:1px solid #91d5ff}
\ No newline at end of file
[data-v-1bbb457c] .ivu-form-item-label{font-weight:600}.form-title[data-v-1bbb457c]{line-height:22px;text-align:center;font-size:20px;font-weight:700;padding:30px 0}.file-title[data-v-1bbb457c]{font-weight:700;color:#333}.file-title[data-v-1bbb457c]:hover{color:#2d8cf0}.zd-detail-form-preview[data-v-1bbb457c] .ivu-drawer-mask,.zd-detail-form-preview[data-v-1bbb457c] .ivu-drawer-wrap{z-index:1998}.filelist[data-v-f59624ac]{cursor:pointer}.filelist[data-v-f59624ac]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-f59624ac]{cursor:pointer;margin-left:auto}.fileddelete[data-v-f59624ac]:hover{color:red;transform:scale(1.5)}.index[data-v-f59624ac]{width:100%;box-sizing:border-box;padding:10px;background-color:#fff}table[data-v-f59624ac]{width:100%;background-color:#fff;border-color:#e3e8ee;text-align:center;border-radius:4px;border-top:1px solid #e3e8ee;border-left:1px solid #e3e8ee}tr[data-v-f59624ac]{border:none;text-align:center}td[data-v-f59624ac]{border-bottom:1px solid #e3e8ee;border-right:1px solid #e3e8ee;text-align:center;box-sizing:border-box;padding:6px;cursor:pointer;max-width:150px}td[data-v-f59624ac]:hover{background:#e7f7f4}td:hover .dis[data-v-f59624ac]{display:block;text-align:center;margin:0 auto;cursor:pointer}tr[data-v-f59624ac]:first-child{height:30px;background-color:#f3f3f3;border:none;color:#525252;font-weight:700;width:50px}.sepacialy[data-v-f59624ac]{border-top:1px solid #e3e8ee;border-left:1px solid #e3e8ee}.table-heard[data-v-f59624ac]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;box-sizing:border-box;padding:10px 10px}.table-heard .center[data-v-f59624ac]{display:flex;justify-content:center;align-items:center}.table-heard .center p[data-v-f59624ac]{font-size:20px;margin:0 30px}.course-item[data-v-f59624ac]{display:flex;justify-content:center;flex-direction:column;gap:6px;align-items:center;min-height:80px;border-radius:4px;box-sizing:border-box;padding:10px 0}.course-item p[data-v-f59624ac]{color:#3a3a3a}.time[data-v-f59624ac]{background:#f7f7f7;color:#707070;font-weight:700}.zd-split[data-v-f59624ac]{height:-10vh}.zd-split .ivu-split-trigger-con[data-v-f59624ac]{z-index:1}.zd-split[data-v-f59624ac] .ivu-tree-title-selected{background-color:#2d8cf0!important;color:#fff}.zd-split .zd-button-action[data-v-f59624ac]{display:flex;justify-content:space-between}.page-sys-menu-drawer-footer[data-v-f59624ac]{width:100%;position:fixed;bottom:0;left:0;border-top:1px solid #e8e8e8;padding:10px 16px;text-align:right;background:#fff;text-align:center;z-index:1998}.page-sys-menu-icon-select .i-icon-select-transfer[data-v-f59624ac]{width:280px!important}.page-sys-menu-icon-select .i-icon-select-drop-main[data-v-f59624ac]{width:280px!important;height:200px;overflow:auto}.zd-form[data-v-f59624ac] .ivu-drawer-body{background-color:#f5f7f9}.zd-form-card[data-v-f59624ac]{max-width:800px;margin:0 auto;margin-top:30px;padding:30px;background:#fff}.save-btn[data-v-f59624ac]{text-align:right;padding:15px;font-size:18px;background:#fff}.persommel-card[data-v-f59624ac] .ivu-card-body{height:100%}.list-personnel-list-item[data-v-f59624ac]{text-align:center;position:relative;box-shadow:5px 5px 10px rgba(0,0,0,.2);border-color:#eee;padding-bottom:32px;height:280px;width:210px}.list-personnel-list-item .ivu-avatar[data-v-f59624ac],.list-personnel-list-item img[data-v-f59624ac]{height:144px;width:108px;border-radius:0}.list-personnel-list-item .ivu-avatar[data-v-f59624ac] .ivu-icon,.list-personnel-list-item img[data-v-f59624ac] .ivu-icon{font-size:100px;margin-top:20px}.list-personnel-list-item-dept[data-v-f59624ac]{font-size:14px;font-weight:700;margin:2px 0}.list-personnel-list-item-desc[data-v-f59624ac]{font-size:14px;color:#808695}.list-personnel-list-item-name[data-v-f59624ac]{position:absolute;left:0;right:0;bottom:0;font-size:18px;font-weight:700;color:#fff;padding:4px 0;border-radius:0 0 4px 4px}.list-personnel-list-item-name.male[data-v-f59624ac]{background-color:#1890ff}.list-personnel-list-item-name.female[data-v-f59624ac]{background-color:#f45151}.list-personnel-list-item-name.other[data-v-f59624ac]{background-color:#808695}.setting-user-avatar[data-v-f59624ac]{width:128px;height:auto;border-radius:0!important}.setting-user-avatar[data-v-f59624ac] .ivu-icon{font-size:128px}.setting-user-avatar[data-v-f59624ac] .ivu-avatar>img{height:auto}.zd-anchor>div[data-v-f59624ac]{background:#fff;padding-left:16px}[data-v-f59624ac] .ivu-anchor-wrapper{max-height:88vh!important}.zd-detail-form-preview[data-v-f59624ac] .ivu-drawer-mask,.zd-detail-form-preview[data-v-f59624ac] .ivu-drawer-wrap{z-index:1998}.menuFlex[data-v-f59624ac]{display:flex;justify-content:space-between;align-items:center}.menuFlex .aaaxx[data-v-f59624ac]{float:right;width:50px;height:30px;color:#1890ff;background:#e6f7ff;display:flex;justify-content:center;align-items:center;border-radius:20px;border:1px solid #91d5ff}
\ No newline at end of file
.top-condition[data-v-149d11d0]{display:flex}[data-v-149d11d0] .ivu-checkbox-group-item{margin-bottom:10px}
\ No newline at end of file
.top-condition[data-v-060d5388]{display:flex}[data-v-060d5388] .ivu-checkbox-group-item{margin-bottom:10px}
\ 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"><title>日程管理</title><link href=css/chunk-vendors.cc1990b1.css rel=stylesheet><link href=css/app.e335ea91.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 日程管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors.f2dddb15.js></script><script src=js/app.a20dbc51.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"><title>日程管理</title><link href=css/chunk-vendors.cc1990b1.css rel=stylesheet><link href=css/app.072a408f.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 日程管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors.f2dddb15.js></script><script src=js/app.9baec48e.js></script></body></html>
\ No newline at end of file \ No newline at end of file
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
此差异已折叠。
此差异已折叠。
此差异已折叠。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ac970"],{"19d6":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",[e("Row",{attrs:{gutter:24}},[e("Col",{attrs:{xl:6,lg:6,md:0,sm:0,xs:0}},[e("Card",{staticStyle:{border:"1px solid #ddd","border-radius":"8px"},attrs:{shadow:"",title:"通用设置",icon:"md-options",padding:0}},[e("CellGroup",{staticClass:"ivu-pt-8 ivu-pb-8"},[e("Cell",{attrs:{title:"1、开关配置",name:"repairs",label:"",selected:!0}})],1)],1)],1),e("Col",{attrs:{xl:18,lg:18,md:24,sm:24,xs:24}},[e("Card",{attrs:{bordered:!1,"dis-hover":""}},[e("Card",{staticStyle:{width:"320px","border-radius":"5px",margin:"10px"}},[e("div",{staticStyle:{"text-align":"left"}},[e("Row",[e("Col",{attrs:{span:"18"}},[e("h3",[t._v("自动推送")])]),e("Col",{attrs:{span:"6"}},[e("i-switch",{attrs:{trueValue:"1",falseValue:"0"},on:{"on-change":t.onChangeSwitch},model:{value:t.config.AutomaticallyPushState,callback:function(e){t.$set(t.config,"AutomaticallyPushState",e)},expression:"config.AutomaticallyPushState"}})],1)],1)],1)])],1)],1)],1)],1)},o=[],i=a("61be"),c=(a("8095"),a("9687"),a("690c"),a("cd80"),a("dcea"),a("403a"),a("06e3"),a("a5f6")),s=(a("cd2f"),a("ecef"),{components:{},data:function(){return{config:{AutomaticallyPushState:"0"}}},computed:{},watch:{},methods:{onChangeSwitch:function(t){var e=this;i["b"]((function(){return c["b"]({timing_switch:t}).then((function(t){return e.getAutomaticallyPush(),t}))}),!1,"正在变更中...")},getAutomaticallyPush:function(){var t=this;c["a"]().then((function(e){t.config.AutomaticallyPushState=e.response}))}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){console.log("🚀🚀🚀,"),this.getAutomaticallyPush()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}}),u=s,l=a("2877"),r=Object(l["a"])(u,n,o,!1,null,"315db19f",null);e["default"]=r.exports}}]);
\ No newline at end of file
此差异已折叠。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-888fcb32"],{"3ebf":function(e,t,a){"use strict";a("ab39")},5834:function(e,t,a){"use strict";a.r(t);a("7f7f");var n=function(){var e=this,t=e._self._c;return t("div",[t("Card",{ref:"card",staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[t("div",{staticClass:"top-condition"},[t("Input",{staticStyle:{width:"250px","margin-bottom":"5px"},attrs:{placeholder:"请输入关键字",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearch.apply(null,arguments)}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),t("Button",{staticStyle:{margin:"0 10px"},attrs:{type:"primary"},on:{click:e.doSearch}},[e._v("查找")]),t("Button",{attrs:{type:"primary",ghost:"",icon:"md-add"},on:{click:function(t){e.userModal=!0}}},[e._v("\n 添加权限\n ")])],1),t("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:e.columns,data:e.tableData,loading:e.loading},scopedSlots:e._u([{key:"role_info",fn:function(a){var n=a.row;return e._l(n.role_info,(function(e,a){return t("p",{key:a},[t("Badge",{staticClass:"ivu-mb-8",attrs:{color:"管理员"==e.name?"orange":"blue",text:e.name}})],1)}))}},{key:"action",fn:function(a){var n=a.row;return[t("div",{on:{click:function(e){e.stopPropagation(),e.preventDefault()}}},[t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleEdit(n)}}},[e._v("编辑")]),t("Divider",{attrs:{type:"vertical"}}),t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleDelete(n.id)}}},[e._v("删除")])],1)]}}])}),t("div",{staticClass:"ivu-mt ivu-text-center"},[t("Page",{attrs:{total:e.total,current:e.pageIndex,"show-total":"","show-sizer":"","show-elevator":"","page-size":e.pageSize,"page-size-opts":[10,30,50,100]},on:{"update:current":function(t){e.pageIndex=t},"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize}})],1)],1),t("Modal",{attrs:{title:"编辑权限",loading:e.modalLoading,width:"30%"},on:{"on-ok":e.saveEdit,"on-cancel":e.handleCancel},model:{value:e.modal,callback:function(t){e.modal=t},expression:"modal"}},[t("CheckboxGroup",{model:{value:e.userRole,callback:function(t){e.userRole=t},expression:"userRole"}},e._l(e.allRole,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1),t("Modal",{attrs:{title:"添加权限",loading:e.modalLoading,width:"50"},on:{"on-ok":e.handleAdd},model:{value:e.userModal,callback:function(t){e.userModal=t},expression:"userModal"}},[t("Form",{ref:"form",attrs:{model:e.formData,rules:e.formRule,"label-width":150}},[t("FormItem",{attrs:{label:"选择人员"}},[t("Select",{attrs:{filterable:""},model:{value:e.selectUser,callback:function(t){e.selectUser=t},expression:"selectUser"}},e._l(e.peopleOption,(function(a){return t("Option",{key:a.id,attrs:{value:a.id,label:a.name}},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("p",[e._v(e._s(a.name)+"\n "),t("span",{staticStyle:{color:"#9a9a9a"}},[e._v("("+e._s(a.card)+")")])]),t("p",{staticStyle:{color:"#ccc"}},[e._v(e._s(a.dept_name))])])])})),1)],1),t("FormItem",{attrs:{label:"选择权限"}},[t("CheckboxGroup",{model:{value:e.userRole,callback:function(t){e.userRole=t},expression:"userRole"}},e._l(e.allRole,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1)],1)],1)],1)},o=[],i=(a("8e6e"),a("ac6a"),a("456d"),a("bd86")),l=(a("7514"),a("28a5"),a("7274")),r=a("e191");function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var d={data:function(){return{loading:!1,modal:!1,modalLoading:!0,searchValue:"",tableData:[],columns:[{type:"index",align:"center",width:60},{title:"卡号",key:"card",width:200},{title:"姓名",key:"name",width:200},{title:"角色",slot:"role_info"},{title:"操作",slot:"action",align:"center",width:150}],pageIndex:1,pageSize:10,total:0,allRole:[],userRole:[],cardNumber:"",editRow:{},userModal:!1,formData:{},formRule:{},peopleOption:[],selectUser:""}},created:function(){this.getData(),this.getRoleList(),this.GetPersonByCondiction()},methods:{getData:function(){var e=this,t={page_index:this.pageIndex,page_size:this.pageSize,key_name:this.searchValue};this.loading=!0,l["d"](t).then((function(t){e.loading=!1,e.tableData=t.data,e.total=t.data_count}))},getRoleList:function(){var e=this;l["c"]().then((function(t){e.allRole=t}))},doSearch:function(){this.pageIndex=1,this.getData()},handleChangePage:function(e){this.pageIndex=e,this.getData()},handleChangePageSize:function(e){this.pageIndex=1,this.pageSize=e,this.getData()},handleEdit:function(e){this.editRow=e,this.modal=!0,e.role_info.length&&(this.userRole=e.role_id.split(";"))},saveEdit:function(){var e=this,t=[];this.userRole.map((function(a){t.push(e.allRole.find((function(e){return e.id==a})))}));var a=c(c({},this.editRow),{},{role_id:this.userRole.join(","),role_info:t});l["h"](a).then((function(t){e.handleModalLoading(),e.modal=!1,e.$Message.success("添加成功"),e.userRole=[],e.getData()})).catch((function(){e.handleModalLoading()}))},handleCancel:function(){this.userRole=[]},GetPersonByCondiction:function(){var e=this,t={page_index:1,page_size:1e4};Object(r["b"])(t).then((function(t){e.peopleOption=t.data}))},handleAdd:function(){var e=this,t=[];this.userRole.map((function(a){t.push(e.allRole.find((function(e){return e.id==a})))}));var a={userid:this.selectUser,role_id:this.userRole.join(","),role_info:t};l["h"](a).then((function(t){e.handleModalLoading(),e.userModal=!1,e.$Message.success("添加成功"),e.getData()})).catch((function(){e.handleModalLoading()}))},handleModalLoading:function(){var e=this;this.modalLoading=!1,this.$nextTick((function(){e.modalLoading=!0}))},handleDelete:function(e){var t=this;this.$Modal.confirm({title:"确定要删除吗?",loading:!0,onOk:function(){var a={id:e,is_del:1};l["g"](a).then((function(){t.$Modal.remove(),t.$Message.success("删除成功"),t.getData()}))}})}}},u=d,h=(a("3ebf"),a("2877")),f=Object(h["a"])(u,n,o,!1,null,"149d11d0",null);t["default"]=f.exports},ab39:function(e,t,a){},e191:function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return i}));var n=a("b6bd");function o(e){return Object(n["a"])({url:"/api/Common/GetPersonByCondiction",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/api/DutyRecord/DutyArrangeIns",method:"post",data:e})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9d4c7a22"],{5834:function(e,t,a){"use strict";a.r(t);a("7f7f");var n=function(){var e=this,t=e._self._c;return t("div",[t("Card",{ref:"card",staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[t("div",{staticClass:"top-condition"},[t("Button",{staticStyle:{margin:"0 10px"},attrs:{type:"primary",ghost:"",icon:"md-add"},on:{click:function(t){e.userModal=!0}}},[e._v("\n 添加权限\n ")]),t("Input",{staticStyle:{width:"250px","margin-bottom":"5px"},attrs:{placeholder:"请输入关键字",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doSearch.apply(null,arguments)}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),t("Button",{staticStyle:{margin:"0 10px"},attrs:{type:"primary"},on:{click:e.doSearch}},[e._v("查找")]),t("Button",{staticStyle:{margin:"0 0 5px"},attrs:{type:"default"},on:{click:e.doReset}},[e._v("重置")])],1),t("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:e.columns,data:e.tableData,loading:e.loading},scopedSlots:e._u([{key:"role_list",fn:function(a){var n=a.row;return e._l(n.role_list,(function(e,a){return t("p",{key:a},[t("Badge",{staticClass:"ivu-mb-8",attrs:{color:"blue",text:e.role_name}})],1)}))}},{key:"dept_list",fn:function(a){var n=a.row;return e._l(n.dept_list,(function(e,a){return t("p",{key:a},[t("Badge",{staticClass:"ivu-mb-8",attrs:{color:"blue",text:e.name}})],1)}))}},{key:"action",fn:function(a){var n=a.row;return[t("div",{on:{click:function(e){e.stopPropagation(),e.preventDefault()}}},[t("a",{attrs:{type:"text"},on:{click:function(t){return e.handleEdit(n)}}},[e._v("编辑")])])]}}])}),t("div",{staticClass:"ivu-mt ivu-text-center"},[t("Page",{attrs:{total:e.total,current:e.pageIndex,"show-total":"","show-sizer":"","show-elevator":"","page-size":e.pageSize,"page-size-opts":[10,30,50,100]},on:{"update:current":function(t){e.pageIndex=t},"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize}})],1)],1),t("Modal",{attrs:{title:"编辑权限",loading:e.modalLoading,width:"50%"},on:{"on-ok":e.saveEdit,"on-cancel":e.handleCancel},model:{value:e.modal,callback:function(t){e.modal=t},expression:"modal"}},[t("Form",{ref:"formEdit",attrs:{model:e.formDataEdit,rules:e.formRuleEdit,"label-width":150}},[t("FormItem",{attrs:{label:"选择人员"}},[t("Select",{attrs:{disabled:"",filterable:""},model:{value:e.selectUser,callback:function(t){e.selectUser=t},expression:"selectUser"}},e._l(e.peopleOptionDefault,(function(a){return t("Option",{key:a.userroleid,attrs:{value:a.userroleid,label:a.username}},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("p",[e._v(e._s(a.usercard)+"\n "),t("span",{staticStyle:{color:"#9a9a9a"}},[e._v("("+e._s(a.username)+")")])])])])})),1)],1),t("FormItem",{attrs:{label:"分管权限"}},[t("CheckboxGroup",{model:{value:e.userRole,callback:function(t){e.userRole=t},expression:"userRole"}},e._l(e.allRole,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1),t("FormItem",{attrs:{label:"分管院系"}},[t("CheckboxGroup",{model:{value:e.userDept,callback:function(t){e.userDept=t},expression:"userDept"}},e._l(e.allDept,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1)],1)],1),e._v("ß\n\n "),t("Modal",{attrs:{title:"添加权限",loading:e.modalLoading,width:"50"},on:{"on-ok":e.handleAdd},model:{value:e.userModal,callback:function(t){e.userModal=t},expression:"userModal"}},[t("Form",{ref:"form",attrs:{model:e.formData,rules:e.formRule,"label-width":150}},[t("FormItem",{attrs:{label:"选择人员"}},[t("Select",{attrs:{filterable:""},model:{value:e.selectUser,callback:function(t){e.selectUser=t},expression:"selectUser"}},e._l(e.peopleOption,(function(a){return t("Option",{key:a.userid,attrs:{value:a.userid,label:a.username}},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("p",[e._v(e._s(a.usercard)+"\n "),t("span",{staticStyle:{color:"#9a9a9a"}},[e._v("("+e._s(a.username)+")")])])])])})),1)],1),t("FormItem",{attrs:{label:"分管权限"}},[t("CheckboxGroup",{model:{value:e.userRole,callback:function(t){e.userRole=t},expression:"userRole"}},e._l(e.allRole,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1),t("FormItem",{attrs:{label:"分管院系"}},[t("CheckboxGroup",{model:{value:e.userDept,callback:function(t){e.userDept=t},expression:"userDept"}},e._l(e.allDept,(function(a){return t("Checkbox",{key:a.id,attrs:{label:a.id,border:""}},[e._v(e._s(a.name))])})),1)],1)],1)],1)],1)},o=[],l=a("597f"),r=a("7274"),i=(a("e191"),a("61be")),s={data:function(){return{userInfo:this.$store.state.admin.user.info,formDataEdit:{},formRuleEdit:{},loading:!1,modal:!1,modalLoading:!0,searchValue:"",tableData:[],columns:[{type:"index",align:"center",width:60},{title:"卡号",key:"usercard",width:200},{title:"姓名",key:"username",width:200},{title:"分管权限",slot:"role_list"},{title:"分管部门",slot:"dept_list"},{title:"操作",slot:"action",align:"center",width:150}],pageIndex:1,pageSize:10,total:0,allRole:[],userRole:[],allDept:[],userDept:[],cardNumber:"",editRow:{},userModal:!1,formData:{},formRule:{},peopleOption:[],peopleOptionDefault:[],selectUser:""}},created:function(){console.log("🚀🚀用户信息🚀,",this.userInfo),this.getData(),this.getRoleList(),this.getDeptAllList()},methods:{getData:function(){var e=this,t={card_name:this.searchValue,page_index:this.pageIndex,page_size:this.pageSize};this.loading=!0,l["j"](t).then((function(t){e.loading=!1,e.tableData=t.response.data,e.total=t.response.data_count,e.GetPersonByCondiction()}))},getRoleList:function(){var e=this;l["k"]().then((function(t){e.allRole=t.response}))},getDeptAllList:function(){var e=this;l["b"]().then((function(t){e.allDept=t.response}))},doReset:function(){this.pageIndex=1,this.searchValue="",this.getData()},doSearch:function(){this.pageIndex=1,this.getData()},handleChangePage:function(e){this.pageIndex=e,this.getData()},handleChangePageSize:function(e){this.pageIndex=1,this.pageSize=e,this.getData()},handleEdit:function(e){var t=this;i["b"]((function(){return l["i"]({id:e.userroleid}).then((function(a){return console.log(e),t.selectUser=e.userroleid,t.userRole=a.response.role_list.map((function(e){return e.role_id})),t.userDept=a.response.dept_list.map((function(e){return e.id})),t.modal=!0,a}))}),!0,"加载中...")},saveEdit:function(){var e=this,t={userroleid:this.selectUser,dept_list:this.userDept.map((function(e){return{id:e,name:""}})),role_list:this.userRole.map((function(e){return{role_id:e,role_name:""}}))};i["b"]((function(){return l["r"](t).then((function(t){return e.modal=!1,e.getData(),t}))}))},handleCancel:function(){this.userRole=[]},GetPersonByCondiction:function(){var e=this,t={page_index:1,page_size:1e4};l["j"](t).then((function(t){e.peopleOption=t.response.data.filter((function(e){return!e.dept_list.length})),e.peopleOptionDefault=t.response.data.map((function(e){return{userroleid:e.userroleid,username:e.username}}))}))},handleAdd:function(){var e=this,t={userid:this.selectUser,dept_list:this.userDept.map((function(e){return{id:e,name:""}})),role_list:this.userRole.map((function(e){return{role_id:e,role_name:""}}))};l["q"](t).then((function(t){e.handleModalLoading(),e.userModal=!1,e.$Message.success("添加成功"),e.getData()})).catch((function(){e.handleModalLoading()}))},handleModalLoading:function(){var e=this;this.modalLoading=!1,this.$nextTick((function(){e.modalLoading=!0}))},handleDelete:function(e){var t=this;this.$Modal.confirm({title:"确定要删除吗?",loading:!0,onOk:function(){var a={id:e,is_del:1};r["e"](a).then((function(){t.$Modal.remove(),t.$Message.success("删除成功"),t.getData()}))}})}}},u=s,c=(a("6d3d"),a("2877")),d=Object(c["a"])(u,n,o,!1,null,"060d5388",null);t["default"]=d.exports},"58c8":function(e,t,a){},"6d3d":function(e,t,a){"use strict";a("58c8")},e191:function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return l}));var n=a("b6bd");function o(e){return Object(n["a"])({url:"/api/Common/GetPersonByCondiction",method:"get",params:e})}function l(e){return Object(n["a"])({url:"/api/DutyRecord/DutyArrangeIns",method:"post",data:e})}}}]);
\ No newline at end of file
import { type AxiosRequestConfig } from "axios";
/**
* 获取用户权限
* /api/Common/GetCurrentUserRoleList
*/
export declare function getApiCommonGetCurrentUserRoleList(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
name: string;
id: string;
}[];
}>;
import request from "@/plugins/request";
/**
* 获取用户权限
* /api/Common/GetCurrentUserRoleList
*/
export function getApiCommonGetCurrentUserRoleList(config) {
return request.get(`/api/Common/GetCurrentUserRoleList`, config);
}
...@@ -3,7 +3,7 @@ import { type AxiosRequestConfig } from "axios"; ...@@ -3,7 +3,7 @@ import { type AxiosRequestConfig } from "axios";
* 获取分管部门--根据权限 * 获取分管部门--根据权限
* /api/Common/GetDeptList * /api/Common/GetDeptList
*/ */
export declare function getApiCommonGetDeptList(config?: AxiosRequestConfig): import("axios").AxiosPromise<{ export declare function getApiCommonGetDeptList(params: GetApiCommonGetDeptListParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number; code: number;
status: string; status: string;
msg: string; msg: string;
...@@ -13,3 +13,6 @@ export declare function getApiCommonGetDeptList(config?: AxiosRequestConfig): im ...@@ -13,3 +13,6 @@ export declare function getApiCommonGetDeptList(config?: AxiosRequestConfig): im
id: string; id: string;
}[]; }[];
}>; }>;
export interface GetApiCommonGetDeptListParams {
role_id: string;
}
...@@ -3,6 +3,12 @@ import request from "@/plugins/request"; ...@@ -3,6 +3,12 @@ import request from "@/plugins/request";
* 获取分管部门--根据权限 * 获取分管部门--根据权限
* /api/Common/GetDeptList * /api/Common/GetDeptList
*/ */
export function getApiCommonGetDeptList(config) { export function getApiCommonGetDeptList(params, config) {
return request.get(`/api/Common/GetDeptList`, config); const paramsInput = {
role_id: params.role_id,
};
return request.get(`/api/Common/GetDeptList`, {
params: paramsInput,
...config,
});
} }
...@@ -4,3 +4,4 @@ export * from "./postApiCommonGetUserList"; ...@@ -4,3 +4,4 @@ export * from "./postApiCommonGetUserList";
export * from "./postApiCommonGetRoleList"; export * from "./postApiCommonGetRoleList";
export * from "./getApiCommonGetMenuRole"; export * from "./getApiCommonGetMenuRole";
export * from "./getApiCommonGetAheadWriteSwitch"; export * from "./getApiCommonGetAheadWriteSwitch";
export * from "./getApiCommonGetCurrentUserRoleList";
...@@ -4,3 +4,4 @@ export * from "./postApiCommonGetUserList"; ...@@ -4,3 +4,4 @@ export * from "./postApiCommonGetUserList";
export * from "./postApiCommonGetRoleList"; export * from "./postApiCommonGetRoleList";
export * from "./getApiCommonGetMenuRole"; export * from "./getApiCommonGetMenuRole";
export * from "./getApiCommonGetAheadWriteSwitch"; export * from "./getApiCommonGetAheadWriteSwitch";
export * from "./getApiCommonGetCurrentUserRoleList";
import { type AxiosRequestConfig } from "axios"; import { type AxiosRequestConfig } from "axios";
import { type UserListRequest } from "../../interface";
/** /**
* 获取中层干部 * 获取中层干部
* /api/Common/GetUserList * /api/Common/GetUserList
*/ */
export declare function postApiCommonGetUserList(input?: string[], config?: AxiosRequestConfig): import("axios").AxiosPromise<{ export declare function postApiCommonGetUserList(input?: UserListRequest, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number; code: number;
status: string; status: string;
msg: string; msg: string;
......
...@@ -3,4 +3,5 @@ export * from "./getApiPlanProjectPlanProjectAheadInit"; ...@@ -3,4 +3,5 @@ export * from "./getApiPlanProjectPlanProjectAheadInit";
export * from "./postApiPlanProjectPlanProjectSave"; export * from "./postApiPlanProjectPlanProjectSave";
export * from "./postApiPlanProjectGetPlanProjectByWeekList"; export * from "./postApiPlanProjectGetPlanProjectByWeekList";
export * from "./postApiPlanProjectGetPlanProjectByDayList"; export * from "./postApiPlanProjectGetPlanProjectByDayList";
export * from "./postApiPlanProjectGetPlanScheduleByDayList";
export * from "./getApiPlanProjectGetPlanProjectByMyList"; export * from "./getApiPlanProjectGetPlanProjectByMyList";
...@@ -3,4 +3,5 @@ export * from "./getApiPlanProjectPlanProjectAheadInit"; ...@@ -3,4 +3,5 @@ export * from "./getApiPlanProjectPlanProjectAheadInit";
export * from "./postApiPlanProjectPlanProjectSave"; export * from "./postApiPlanProjectPlanProjectSave";
export * from "./postApiPlanProjectGetPlanProjectByWeekList"; export * from "./postApiPlanProjectGetPlanProjectByWeekList";
export * from "./postApiPlanProjectGetPlanProjectByDayList"; export * from "./postApiPlanProjectGetPlanProjectByDayList";
export * from "./postApiPlanProjectGetPlanScheduleByDayList";
export * from "./getApiPlanProjectGetPlanProjectByMyList"; export * from "./getApiPlanProjectGetPlanProjectByMyList";
import { type AxiosRequestConfig } from "axios";
import { type PlanScheduleByDayListRequest } from "../../interface";
/**
* 日程天视图
* /api/PlanProject/GetPlanScheduleByDayList
*/
export declare function postApiPlanProjectGetPlanScheduleByDayList(input?: PlanScheduleByDayListRequest, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: {
id: string;
date: string;
week: string;
createtime: string;
userid: string;
usercard: string;
username: string;
dept_id: string;
dept_name: string;
leader_nature_id: string;
leader_nature_name: string;
schedule: {
plan_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
}[];
duty_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
}[];
meet_list: {
id: string;
date: string;
begin: string;
end: string;
content: string;
}[];
};
}[];
}>;
import request from "@/plugins/request";
/**
* 日程天视图
* /api/PlanProject/GetPlanScheduleByDayList
*/
export function postApiPlanProjectGetPlanScheduleByDayList(input, config) {
return request.post(`/api/PlanProject/GetPlanScheduleByDayList`, input, config);
}
...@@ -48,4 +48,5 @@ export declare function getApiPlanScheduleGetPlanScheduleCalendar(params: GetApi ...@@ -48,4 +48,5 @@ export declare function getApiPlanScheduleGetPlanScheduleCalendar(params: GetApi
export interface GetApiPlanScheduleGetPlanScheduleCalendarParams { export interface GetApiPlanScheduleGetPlanScheduleCalendarParams {
begin: string; begin: string;
end: string; end: string;
role_id: string;
} }
...@@ -7,6 +7,7 @@ export function getApiPlanScheduleGetPlanScheduleCalendar(params, config) { ...@@ -7,6 +7,7 @@ export function getApiPlanScheduleGetPlanScheduleCalendar(params, config) {
const paramsInput = { const paramsInput = {
begin: params.begin, begin: params.begin,
end: params.end, end: params.end,
role_id: params.role_id,
}; };
return request.get(`/api/PlanSchedule/GetPlanScheduleCalendar`, { return request.get(`/api/PlanSchedule/GetPlanScheduleCalendar`, {
params: paramsInput, params: paramsInput,
......
import { type AxiosRequestConfig } from "axios";
/**
* 手动推送
* /api/PlanSchedule/ScheduleMegPush
*/
export declare function getApiPlanScheduleScheduleMegPush(params: GetApiPlanScheduleScheduleMegPushParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiPlanScheduleScheduleMegPushParams {
date: string;
leader_number: string;
}
import request from "@/plugins/request";
/**
* 手动推送
* /api/PlanSchedule/ScheduleMegPush
*/
export function getApiPlanScheduleScheduleMegPush(params, config) {
const paramsInput = {
date: params.date,
leader_number: params.leader_number,
};
return request.get(`/api/PlanSchedule/ScheduleMegPush`, {
params: paramsInput,
...config,
});
}
...@@ -6,3 +6,4 @@ export * from "./postApiPlanSchedulePlanScheduleDel"; ...@@ -6,3 +6,4 @@ export * from "./postApiPlanSchedulePlanScheduleDel";
export * from "./getApiPlanScheduleGetPlanScheduleTrackList"; export * from "./getApiPlanScheduleGetPlanScheduleTrackList";
export * from "./getApiPlanSchedulePlanScheduleTemplate"; export * from "./getApiPlanSchedulePlanScheduleTemplate";
export * from "./postApiPlanSchedulePlanScheduleImport"; export * from "./postApiPlanSchedulePlanScheduleImport";
export * from "./getApiPlanScheduleScheduleMegPush";
...@@ -6,3 +6,4 @@ export * from "./postApiPlanSchedulePlanScheduleDel"; ...@@ -6,3 +6,4 @@ export * from "./postApiPlanSchedulePlanScheduleDel";
export * from "./getApiPlanScheduleGetPlanScheduleTrackList"; export * from "./getApiPlanScheduleGetPlanScheduleTrackList";
export * from "./getApiPlanSchedulePlanScheduleTemplate"; export * from "./getApiPlanSchedulePlanScheduleTemplate";
export * from "./postApiPlanSchedulePlanScheduleImport"; export * from "./postApiPlanSchedulePlanScheduleImport";
export * from "./getApiPlanScheduleScheduleMegPush";
...@@ -16,5 +16,6 @@ export declare function getApiSysConfigSysConfigInit(config?: AxiosRequestConfig ...@@ -16,5 +16,6 @@ export declare function getApiSysConfigSysConfigInit(config?: AxiosRequestConfig
nowrite_remind: string; nowrite_remind: string;
ahead_write: string; ahead_write: string;
write_remind: string; write_remind: string;
timing_switch: number;
}; };
}>; }>;
import { type AxiosRequestConfig } from "axios";
/**
* 获取定时开关
* /api/SysConfig/TimingSwitchInit
*/
export declare function getApiSysConfigTimingSwitchInit(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 获取定时开关
* /api/SysConfig/TimingSwitchInit
*/
export function getApiSysConfigTimingSwitchInit(config) {
return request.get(`/api/SysConfig/TimingSwitchInit`, config);
}
import { type AxiosRequestConfig } from "axios";
/**
* 保存定时开关
* /api/SysConfig/TimingSwitchSave
*/
export declare function getApiSysConfigTimingSwitchSave(params: GetApiSysConfigTimingSwitchSaveParams, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
export interface GetApiSysConfigTimingSwitchSaveParams {
timing_switch: number;
}
import request from "@/plugins/request";
/**
* 保存定时开关
* /api/SysConfig/TimingSwitchSave
*/
export function getApiSysConfigTimingSwitchSave(params, config) {
const paramsInput = {
timing_switch: params.timing_switch,
};
return request.get(`/api/SysConfig/TimingSwitchSave`, {
params: paramsInput,
...config,
});
}
export * from "./getApiSysConfigSysConfigInit"; export * from "./getApiSysConfigSysConfigInit";
export * from "./postApiSysConfigSysConfigSave"; export * from "./postApiSysConfigSysConfigSave";
export * from "./getApiSysConfigTimingSwitchInit";
export * from "./getApiSysConfigTimingSwitchSave";
export * from "./getApiSysConfigSysConfigInit"; export * from "./getApiSysConfigSysConfigInit";
export * from "./postApiSysConfigSysConfigSave"; export * from "./postApiSysConfigSysConfigSave";
export * from "./getApiSysConfigTimingSwitchInit";
export * from "./getApiSysConfigTimingSwitchSave";
import { type AxiosRequestConfig } from "axios";
/**
* 定时推送
* /api/TimeTask/MessageTimedPush
*/
export declare function getApiTimeTaskMessageTimedPush(config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 定时推送
* /api/TimeTask/MessageTimedPush
*/
export function getApiTimeTaskMessageTimedPush(config) {
return request.get(`/api/TimeTask/MessageTimedPush`, config);
}
export * from "./getApiTimeTaskNoWriteRemind"; export * from "./getApiTimeTaskNoWriteRemind";
export * from "./getApiTimeTaskWriteRemind"; export * from "./getApiTimeTaskWriteRemind";
export * from "./getApiTimeTaskMessageTimedPush";
export * from "./getApiTimeTaskNoWriteRemind"; export * from "./getApiTimeTaskNoWriteRemind";
export * from "./getApiTimeTaskWriteRemind"; export * from "./getApiTimeTaskWriteRemind";
export * from "./getApiTimeTaskMessageTimedPush";
...@@ -37,6 +37,10 @@ export declare function getApiUserRoleGetUserRoleList(params: GetApiUserRoleGetU ...@@ -37,6 +37,10 @@ export declare function getApiUserRoleGetUserRoleList(params: GetApiUserRoleGetU
id: string; id: string;
name: string; name: string;
}[]; }[];
role_list: {
role_id: string;
role_name: string;
}[];
}; };
}[]; }[];
query: { query: {
...@@ -44,6 +48,7 @@ export declare function getApiUserRoleGetUserRoleList(params: GetApiUserRoleGetU ...@@ -44,6 +48,7 @@ export declare function getApiUserRoleGetUserRoleList(params: GetApiUserRoleGetU
}; };
}>; }>;
export interface GetApiUserRoleGetUserRoleListParams { export interface GetApiUserRoleGetUserRoleListParams {
card_name?: string;
page_index?: number; page_index?: number;
page_size?: number; page_size?: number;
} }
...@@ -5,6 +5,7 @@ import request from "@/plugins/request"; ...@@ -5,6 +5,7 @@ import request from "@/plugins/request";
*/ */
export function getApiUserRoleGetUserRoleList(params, config) { export function getApiUserRoleGetUserRoleList(params, config) {
const paramsInput = { const paramsInput = {
card_name: params.card_name,
page_index: params.page_index, page_index: params.page_index,
page_size: params.page_size, page_size: params.page_size,
}; };
......
...@@ -37,6 +37,10 @@ export declare function getApiUserRoleGetUserRoleSearch(params: GetApiUserRoleGe ...@@ -37,6 +37,10 @@ export declare function getApiUserRoleGetUserRoleSearch(params: GetApiUserRoleGe
id: string; id: string;
name: string; name: string;
}[]; }[];
role_list: {
role_id: string;
role_name: string;
}[];
}; };
}[]; }[];
query: { query: {
......
...@@ -2,4 +2,5 @@ export * from "./getApiUserRoleGetUserRoleList"; ...@@ -2,4 +2,5 @@ export * from "./getApiUserRoleGetUserRoleList";
export * from "./getApiUserRoleGetUserRoleInfo"; export * from "./getApiUserRoleGetUserRoleInfo";
export * from "./getApiUserRoleGetUserRoleSearch"; export * from "./getApiUserRoleGetUserRoleSearch";
export * from "./getApiUserRoleUserRoleIns"; export * from "./getApiUserRoleUserRoleIns";
export * from "./postApiUserRoleUserRoleDepIns";
export * from "./postApiUserRoleUserRoleSave"; export * from "./postApiUserRoleUserRoleSave";
...@@ -2,4 +2,5 @@ export * from "./getApiUserRoleGetUserRoleList"; ...@@ -2,4 +2,5 @@ export * from "./getApiUserRoleGetUserRoleList";
export * from "./getApiUserRoleGetUserRoleInfo"; export * from "./getApiUserRoleGetUserRoleInfo";
export * from "./getApiUserRoleGetUserRoleSearch"; export * from "./getApiUserRoleGetUserRoleSearch";
export * from "./getApiUserRoleUserRoleIns"; export * from "./getApiUserRoleUserRoleIns";
export * from "./postApiUserRoleUserRoleDepIns";
export * from "./postApiUserRoleUserRoleSave"; export * from "./postApiUserRoleUserRoleSave";
import { type AxiosRequestConfig } from "axios";
import { type UserRoleDepInsRequest } from "../../interface";
/**
* 用户权限和所管部门创建
* /api/UserRole/UserRoleDepIns
*/
export declare function postApiUserRoleUserRoleDepIns(input?: UserRoleDepInsRequest, config?: AxiosRequestConfig): import("axios").AxiosPromise<{
code: number;
status: string;
msg: string;
msg_detail: string;
response: string;
}>;
import request from "@/plugins/request";
/**
* 用户权限和所管部门创建
* /api/UserRole/UserRoleDepIns
*/
export function postApiUserRoleUserRoleDepIns(input, config) {
return request.post(`/api/UserRole/UserRoleDepIns`, input, config);
}
export interface PlanScheduleByDayListRequest {
role_id?: string;
date?: string;
dept_id_list?: string[];
tid_list?: string[];
}
import { type ScheduleData } from "../../interface";
export interface PlanScheduleDayViewModel {
id?: string;
date?: string;
week?: string;
createtime?: string;
userid?: string;
usercard?: string;
username?: string;
dept_id?: string;
dept_name?: string;
leader_nature_id?: string;
leader_nature_name?: string;
schedule?: ScheduleData;
}
import { type PlanScheduleDayViewModel } from "../../interface";
export interface PlanScheduleDayViewModelListMessageModel {
code?: number;
status?: string;
msg?: string;
msg_detail?: string;
response?: PlanScheduleDayViewModel[];
}
...@@ -6,4 +6,5 @@ export interface SysConfig { ...@@ -6,4 +6,5 @@ export interface SysConfig {
nowrite_remind?: string; nowrite_remind?: string;
ahead_write?: string; ahead_write?: string;
write_remind?: string; write_remind?: string;
timing_switch?: number;
} }
export interface UserListRequest {
role_id: string;
dept_list?: string[];
}
import { type Dept, type RoleModel } from "../../interface";
export interface UserRoleDepInsRequest {
userid: string;
dept_list?: Dept[];
role_list?: RoleModel[];
}
import { type Dept } from "../../interface"; import { type Dept, type RoleModel } from "../../interface";
export interface UserRoleViewModel { export interface UserRoleViewModel {
userroleid?: string; userroleid?: string;
userid?: string; userid?: string;
usercard?: string; usercard?: string;
username?: string; username?: string;
dept_list?: Dept[]; dept_list?: Dept[];
role_list?: RoleModel[];
} }
...@@ -3,6 +3,7 @@ export * from "./apiTypes/PlanProjectDayViewModelListMessageModel"; ...@@ -3,6 +3,7 @@ export * from "./apiTypes/PlanProjectDayViewModelListMessageModel";
export * from "./apiTypes/StringMessageModel"; export * from "./apiTypes/StringMessageModel";
export * from "./apiTypes/SelectResponses"; export * from "./apiTypes/SelectResponses";
export * from "./apiTypes/SelectResponsesListMessageModel"; export * from "./apiTypes/SelectResponsesListMessageModel";
export * from "./apiTypes/UserListRequest";
export * from "./apiTypes/MenuRoleViewModel"; export * from "./apiTypes/MenuRoleViewModel";
export * from "./apiTypes/MenuRoleViewModelMessageModel"; export * from "./apiTypes/MenuRoleViewModelMessageModel";
export * from "./apiTypes/WeekplanFile"; export * from "./apiTypes/WeekplanFile";
...@@ -22,9 +23,12 @@ export * from "./apiTypes/ViewRequests"; ...@@ -22,9 +23,12 @@ export * from "./apiTypes/ViewRequests";
export * from "./apiTypes/WeekData"; export * from "./apiTypes/WeekData";
export * from "./apiTypes/PlanProjectWeekViewModel"; export * from "./apiTypes/PlanProjectWeekViewModel";
export * from "./apiTypes/PlanProjectWeekViewModelListMessageModel"; export * from "./apiTypes/PlanProjectWeekViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel"; export * from "./apiTypes/PlanScheduleByDayListRequest";
export * from "./apiTypes/ScheduleGroup"; export * from "./apiTypes/ScheduleGroup";
export * from "./apiTypes/ScheduleData"; export * from "./apiTypes/ScheduleData";
export * from "./apiTypes/PlanScheduleDayViewModel";
export * from "./apiTypes/PlanScheduleDayViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel";
export * from "./apiTypes/PlanScheduleData"; export * from "./apiTypes/PlanScheduleData";
export * from "./apiTypes/PlanScheduleCalendarViewModel"; export * from "./apiTypes/PlanScheduleCalendarViewModel";
export * from "./apiTypes/PlanScheduleCalendarViewModelListMessageModel"; export * from "./apiTypes/PlanScheduleCalendarViewModelListMessageModel";
...@@ -40,12 +44,13 @@ export * from "./apiTypes/SysConfigMessageModel"; ...@@ -40,12 +44,13 @@ export * from "./apiTypes/SysConfigMessageModel";
export * from "./apiTypes/Option"; export * from "./apiTypes/Option";
export * from "./apiTypes/TableTitle"; export * from "./apiTypes/TableTitle";
export * from "./apiTypes/Dept"; export * from "./apiTypes/Dept";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleViewModel"; export * from "./apiTypes/UserRoleViewModel";
export * from "./apiTypes/UserRoleViewModelMessageModel"; export * from "./apiTypes/UserRoleViewModelMessageModel";
export * from "./apiTypes/UserRoleViewModelMessageModelPageModel"; export * from "./apiTypes/UserRoleViewModelMessageModelPageModel";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleInfoViewModel"; export * from "./apiTypes/UserRoleInfoViewModel";
export * from "./apiTypes/UserRoleInfoViewModelMessageModel"; export * from "./apiTypes/UserRoleInfoViewModelMessageModel";
export * from "./apiTypes/UserRoleDepInsRequest";
export type Primitive = undefined | null | boolean | string | number | symbol; export type Primitive = undefined | null | boolean | string | number | symbol;
export type DeepRequired<T> = T extends Primitive ? T : keyof T extends never ? T : { export type DeepRequired<T> = T extends Primitive ? T : keyof T extends never ? T : {
[K in keyof T]-?: DeepRequired<T[K]>; [K in keyof T]-?: DeepRequired<T[K]>;
......
...@@ -3,6 +3,7 @@ export * from "./apiTypes/PlanProjectDayViewModelListMessageModel"; ...@@ -3,6 +3,7 @@ export * from "./apiTypes/PlanProjectDayViewModelListMessageModel";
export * from "./apiTypes/StringMessageModel"; export * from "./apiTypes/StringMessageModel";
export * from "./apiTypes/SelectResponses"; export * from "./apiTypes/SelectResponses";
export * from "./apiTypes/SelectResponsesListMessageModel"; export * from "./apiTypes/SelectResponsesListMessageModel";
export * from "./apiTypes/UserListRequest";
export * from "./apiTypes/MenuRoleViewModel"; export * from "./apiTypes/MenuRoleViewModel";
export * from "./apiTypes/MenuRoleViewModelMessageModel"; export * from "./apiTypes/MenuRoleViewModelMessageModel";
export * from "./apiTypes/WeekplanFile"; export * from "./apiTypes/WeekplanFile";
...@@ -22,9 +23,12 @@ export * from "./apiTypes/ViewRequests"; ...@@ -22,9 +23,12 @@ export * from "./apiTypes/ViewRequests";
export * from "./apiTypes/WeekData"; export * from "./apiTypes/WeekData";
export * from "./apiTypes/PlanProjectWeekViewModel"; export * from "./apiTypes/PlanProjectWeekViewModel";
export * from "./apiTypes/PlanProjectWeekViewModelListMessageModel"; export * from "./apiTypes/PlanProjectWeekViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel"; export * from "./apiTypes/PlanScheduleByDayListRequest";
export * from "./apiTypes/ScheduleGroup"; export * from "./apiTypes/ScheduleGroup";
export * from "./apiTypes/ScheduleData"; export * from "./apiTypes/ScheduleData";
export * from "./apiTypes/PlanScheduleDayViewModel";
export * from "./apiTypes/PlanScheduleDayViewModelListMessageModel";
export * from "./apiTypes/PlanProjectMessageModel";
export * from "./apiTypes/PlanScheduleData"; export * from "./apiTypes/PlanScheduleData";
export * from "./apiTypes/PlanScheduleCalendarViewModel"; export * from "./apiTypes/PlanScheduleCalendarViewModel";
export * from "./apiTypes/PlanScheduleCalendarViewModelListMessageModel"; export * from "./apiTypes/PlanScheduleCalendarViewModelListMessageModel";
...@@ -40,9 +44,10 @@ export * from "./apiTypes/SysConfigMessageModel"; ...@@ -40,9 +44,10 @@ export * from "./apiTypes/SysConfigMessageModel";
export * from "./apiTypes/Option"; export * from "./apiTypes/Option";
export * from "./apiTypes/TableTitle"; export * from "./apiTypes/TableTitle";
export * from "./apiTypes/Dept"; export * from "./apiTypes/Dept";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleViewModel"; export * from "./apiTypes/UserRoleViewModel";
export * from "./apiTypes/UserRoleViewModelMessageModel"; export * from "./apiTypes/UserRoleViewModelMessageModel";
export * from "./apiTypes/UserRoleViewModelMessageModelPageModel"; export * from "./apiTypes/UserRoleViewModelMessageModelPageModel";
export * from "./apiTypes/RoleModel";
export * from "./apiTypes/UserRoleInfoViewModel"; export * from "./apiTypes/UserRoleInfoViewModel";
export * from "./apiTypes/UserRoleInfoViewModelMessageModel"; export * from "./apiTypes/UserRoleInfoViewModelMessageModel";
export * from "./apiTypes/UserRoleDepInsRequest";
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
<a class="ivu-ml-8 file-title" @click="preview(row)"> <a class="ivu-ml-8 file-title" @click="preview(row)">
{{ row.name }} {{ row.name }}
</a> </a>
</div> </div>
</template> </template>
<template slot-scope="{ row, index }" slot="action"> <template slot-scope="{ row, index }" slot="action">
......
...@@ -6,23 +6,24 @@ ...@@ -6,23 +6,24 @@
:class="{ 'i-layout-header-user-mobile': isMobile }" :class="{ 'i-layout-header-user-mobile': isMobile }"
@on-click="handleClick" @on-click="handleClick"
> >
<Avatar size="small" :src="avatar" v-if="avatar" /> <!-- <Avatar size="small" :src="avatar" v-if="avatar"/>-->
<Avatar size="default" icon="ios-person" style="background-color: #2D8CF0;"/>
<span class="i-layout-header-user-name" v-if="!isMobile" <span class="i-layout-header-user-name" v-if="!isMobile"
>{{ info.name }} >{{ `${info.name}(${info.currentRole.name})` }}
</span> </span>
<!-- <DropdownMenu slot="list"> <DropdownMenu slot="list">
<DropdownItem> <DropdownItem @click.native=setCurrentRole(item) v-for="(item,index) in info.roleList" :key="index">
<Icon type="md-person" /> <Icon type="md-person"/>
<span>{{ role}}</span> <span>{{ item.name }}</span>
</DropdownItem> </DropdownItem>
</DropdownMenu>
</DropdownMenu> -->
</Dropdown> </Dropdown>
</span> </span>
</template> </template>
<script> <script>
import { mapState, mapActions } from "vuex"; import {mapState, mapActions} from "vuex";
export default { export default {
name: "iHeaderUser", name: "iHeaderUser",
...@@ -40,18 +41,26 @@ export default { ...@@ -40,18 +41,26 @@ export default {
}); });
} }
}, },
//设置当前权限
setCurrentRole(item) {
let info = {
...this.info,
currentRole: item,
}
this.$store.dispatch('admin/user/set', info, {root: true});
window.location.reload()
}
}, },
data() { data() {
return { return {
role: [], role: [],
avatar:'' avatar: ''
}; };
}, },
created() {
// HomeInit().then((resp) => { mounted() {
// this.role = resp.role.join(",");
// this.avatar = resp.weChatAvatar;
// });
}, },
}; };
</script> </script>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</Tooltip> </Tooltip>
<i-menu-side-collapse v-else :menu="item" :key="index" top-level /> <i-menu-side-collapse v-else :menu="item" :key="index" top-level />
</template> </template>
<div class="footer">Build 1.0.0 - 241223 1.0.1</div> <div class="footer">Build 1.0.0 - 250211 1.0.1</div>
</Menu> </Menu>
</div> </div>
</template> </template>
......
...@@ -8,12 +8,12 @@ export default [ ...@@ -8,12 +8,12 @@ export default [
hideSider: false, hideSider: false,
name: 'home' name: 'home'
}, },
{ // {
path: '/statistics', // path: '/statistics',
title: '数据统计', // title: '数据统计',
icon: 'md-podium', // icon: 'md-podium',
hideSider: true, // hideSider: true,
name: 'statistics', // name: 'statistics',
auth: ['0'] // auth: ['0']
} // }
]; ];
...@@ -12,6 +12,11 @@ export default { ...@@ -12,6 +12,11 @@ export default {
title: '人员权限设置', title: '人员权限设置',
// auth: ['permission'], // auth: ['permission'],
}, },
{
path: `${pre}systemConfig`,
title: '系统配置',
// auth: ['permission'],
},
/* /*
{ {
path: `${pre}role`, path: `${pre}role`,
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
</div> </div>
</div> </div>
<div v-if="isAdmin" style="width: 100%;display: flex;"> <div v-if="isAdmin" style="width: 100%;display: flex;">
<!-- <Button icon="ios-download-outline" style="margin:0 5px 0 0;" @click="importDuty.show = true">导出值班日志--> <!-- <Button icon="ios-download-outline" style="margin:0 5px 0 0;" @click="importDuty.show = true">导出值班日志-->
<!-- </Button>--> <!-- </Button>-->
<Button icon="ios-download-outline" style="margin:0 5px;" @click="importDutySheet.show = true">下载模版 <Button icon="ios-download-outline" style="margin:0 5px;" @click="importDutySheet.show = true">下载模版
</Button> </Button>
<Upload :before-upload="uploadFile" action="#" style="margin:0 5px;"> <Upload :before-upload="uploadFile" action="#" style="margin:0 5px;">
...@@ -49,12 +49,25 @@ ...@@ -49,12 +49,25 @@
@click="getScheduleDetails(x,course[index1].date)"> @click="getScheduleDetails(x,course[index1].date)">
<!-- 这天的课程开始时间 <=> 时间轴的开始时间 --> <!-- 这天的课程开始时间 <=> 时间轴的开始时间 -->
<div v-if="x.leader_id === timeGround[index].id" class="course-item"> <div v-if="x.leader_id === timeGround[index].id" class="course-item">
<p v-show="x.schedule.plan_list.map(cur=>cur.content).join(';')"> <div v-show="x.schedule.plan_list.map(cur=>cur.content).join(';')">
今日安排:{{ x.schedule.plan_list.map(cur => cur.content).join(';') }}</p> <div style="display: flex;align-items: center">
<p v-show="x.schedule.duty_list.map(cur=>cur.content).join(';')"> 今日安排:
值班安排:{{ x.schedule.duty_list.map(cur => cur.content).join(';') }}</p> <Ellipsis :text="x.schedule.plan_list.map(cur => cur.content).join(';')" :length="10"/>
<p v-show="x.schedule.meet_list.map(cur=>cur.content).join(';')"> </div>
会议安排:{{ x.schedule.meet_list.map(cur => cur.content).join(';') }}</p> </div>
<div v-show="x.schedule.duty_list.map(cur=>cur.content).join(';')">
<div style="display: flex;align-items: center">
值班安排:
<Ellipsis :text="x.schedule.duty_list.map(cur => cur.content).join(';')" :length="10"/>
</div>
</div>
<div v-show="x.schedule.meet_list.map(cur=>cur.content).join(';')">
<div style="display: flex;align-items: center">
会议安排:
<Ellipsis :text="x.schedule.meet_list.map(cur => cur.content).join(';')" :length="10"/>
</div>
</div>
<!-- <p> <!-- <p>
<Tag v-if="x.duty_daytime_people" color='blue' style="height:auto" <Tag v-if="x.duty_daytime_people" color='blue' style="height:auto"
@click.native="clickCell(x,course[index1].date)"> @click.native="clickCell(x,course[index1].date)">
...@@ -180,15 +193,15 @@ ...@@ -180,15 +193,15 @@
<Menu @on-select="onSelectMenu" :active-name="schedule.menu"> <Menu @on-select="onSelectMenu" :active-name="schedule.menu">
<MenuItem name="1-1" class="menuFlex"> <MenuItem name="1-1" class="menuFlex">
今日安排 今日安排
<div class="aaaxx">{{ schedule.formData.plan_list ?schedule.formData.plan_list.length : 0 }}</div> <div class="aaaxx">{{ schedule.formData.plan_list ? schedule.formData.plan_list.length : 0 }}</div>
</MenuItem> </MenuItem>
<MenuItem name="1-2" class="menuFlex"> <MenuItem name="1-2" class="menuFlex">
值班安排 值班安排
<div class="aaaxx">{{ schedule.formData.duty_list ?schedule.formData.duty_list.length : 0 }}</div> <div class="aaaxx">{{ schedule.formData.duty_list ? schedule.formData.duty_list.length : 0 }}</div>
</MenuItem> </MenuItem>
<MenuItem name="1-3" class="menuFlex"> <MenuItem name="1-3" class="menuFlex">
会议安排 会议安排
<div class="aaaxx">{{schedule.formData.meet_list ?schedule.formData.meet_list.length : 0 }}</div> <div class="aaaxx">{{ schedule.formData.meet_list ? schedule.formData.meet_list.length : 0 }}</div>
</MenuItem> </MenuItem>
</Menu> </Menu>
</Col> </Col>
...@@ -199,13 +212,25 @@ ...@@ -199,13 +212,25 @@
<div style="display: flex;justify-content: space-between;align-items: center;width: 100%;"> <div style="display: flex;justify-content: space-between;align-items: center;width: 100%;">
<h2> <h2>
<Icon type="ios-alarm"/> <Icon type="ios-alarm"/>
{{ '2025年01月26日' }} {{ dateFormat }}
</h2> </h2>
<div>
<Poptip
:transfer="true"
confirm
title="是否确认推送推送给该用户?"
@on-ok="manualPush"
ok-text="是"
cancel-text="否">
<a href="#">{{ '消息推送' }}</a>
</Poptip>
<Divider type="vertical"></Divider>
<a href="#" <a href="#"
@click="schedule.track.show = !schedule.track.show">{{ @click="schedule.track.show = !schedule.track.show">{{
['显示轨迹', '隐藏轨迹'][Number(schedule.track.show)] ['显示轨迹', '隐藏轨迹'][Number(schedule.track.show)]
}}</a> }}</a>
</div> </div>
</div>
<div v-show="schedule.menu === '1-1'"> <div v-show="schedule.menu === '1-1'">
<Divider orientation="center">今日安排</Divider> <Divider orientation="center">今日安排</Divider>
<Card v-for="(item,index) in schedule.formData.plan_list" :bordered="false" :key="index" <Card v-for="(item,index) in schedule.formData.plan_list" :bordered="false" :key="index"
...@@ -425,6 +450,7 @@ import dayjs from "dayjs"; ...@@ -425,6 +450,7 @@ import dayjs from "dayjs";
import detailForm from '@/components/detail-form-pure'; import detailForm from '@/components/detail-form-pure';
import _ from "lodash"; import _ from "lodash";
import {mapState} from "vuex";
export default { export default {
components: { components: {
...@@ -433,7 +459,7 @@ export default { ...@@ -433,7 +459,7 @@ export default {
props: {}, props: {},
data() { data() {
return { return {
userInfo: this.$store.state.admin.user.info,
drawerShow2: false, drawerShow2: false,
drawer2: { drawer2: {
...@@ -508,7 +534,7 @@ export default { ...@@ -508,7 +534,7 @@ export default {
"userid": "", "userid": "",
"date": "", "date": "",
"leader_number": '',
formData: { formData: {
plan_list: [ plan_list: [
{ {
...@@ -613,6 +639,7 @@ export default { ...@@ -613,6 +639,7 @@ export default {
}, },
mounted() { mounted() {
// this.getScheduleDetails(); // this.getScheduleDetails();
this.initData(); this.initData();
// this.GetPersonByCondiction(); // this.GetPersonByCondiction();
...@@ -621,6 +648,15 @@ export default { ...@@ -621,6 +648,15 @@ export default {
/** /**
* 新增日程 * 新增日程
* */ * */
//手动推送
manualPush() {
hooks.myEncapsulationFunction(() => {
return scheduleApi.getApiPlanScheduleScheduleMegPush({
date: this.schedule.date,
leader_number: this.schedule.leader_number,
})
}, false, '消息推送中...')
},
//切换菜单 //切换菜单
onSelectMenu(e) { onSelectMenu(e) {
this.schedule.menu = e this.schedule.menu = e
...@@ -751,6 +787,7 @@ export default { ...@@ -751,6 +787,7 @@ export default {
}, },
//新增日程 //新增日程
handleAdd() { handleAdd() {
this.schedule.formData.plan_list.push({ this.schedule.formData.plan_list.push({
"id": '', "id": '',
"date": '', "date": '',
...@@ -766,8 +803,10 @@ export default { ...@@ -766,8 +803,10 @@ export default {
// userid: '07E5CE0F-C342-482E-899B-7FD377D7DBEC', // userid: '07E5CE0F-C342-482E-899B-7FD377D7DBEC',
// date: '2025-01-26', // date: '2025-01-26',
if (this.isAdmin){
this.schedule.date = dayjs(date).format('YYYY-MM-DD'); this.schedule.date = dayjs(date).format('YYYY-MM-DD');
this.schedule.userid = item.leader_id; this.schedule.userid = item.leader_id;
this.schedule.leader_number = item.leader_number;
this.drawerShow = true; this.drawerShow = true;
hooks.myEncapsulationFunction(() => { hooks.myEncapsulationFunction(() => {
...@@ -784,6 +823,7 @@ export default { ...@@ -784,6 +823,7 @@ export default {
this.getTheScheduleActionTrack() this.getTheScheduleActionTrack()
}) })
}, true, '正在获取日程数据...') }, true, '正在获取日程数据...')
}
}, },
/** /**
* 可能是附件-文件类型预览 * 可能是附件-文件类型预览
...@@ -2625,6 +2665,7 @@ export default { ...@@ -2625,6 +2665,7 @@ export default {
}, },
getData() { getData() {
const params = { const params = {
role_id:this.userInfo.currentRole.id,
begin: this.currentWeekRange[0], begin: this.currentWeekRange[0],
end: this.currentWeekRange[1], end: this.currentWeekRange[1],
} }
...@@ -4376,6 +4417,7 @@ export default { ...@@ -4376,6 +4417,7 @@ export default {
}, },
// 点击确认排班 // 点击确认排班
handleConfirm() { handleConfirm() {
const params = { const params = {
"duty_type_id": this.selectItem.duty_type_id, "duty_type_id": this.selectItem.duty_type_id,
"date": this.selectDate, "date": this.selectDate,
...@@ -4410,11 +4452,16 @@ export default { ...@@ -4410,11 +4452,16 @@ export default {
}, },
computed: { computed: {
//获取用户信息
//日期格式化
dateFormat() {
return dayjs(this.schedule.date).format('YYYY年MM月DD日')
},
isAdmin() { isAdmin() {
//是否是管理员 //是否是管理员
let admin = JSON.parse(window.localStorage.getItem('admin')) let admin = this.userInfo.currentRole.id == 0 ? true :false;
return true return admin
// return admin.sys.user['ghost-uuid'].user.info.role_list.includes('超管')
} }
} }
}; };
......
<template> <template>
<div> <div>
<!-- <Menu @on-select="onSelectMenu" :active-name="schedule.menu"> <!-- <Menu @on-select="onSelectMenu" :active-name="schedule.menu">
<MenuItem name="1-1" class="menuFlex"> <MenuItem name="1-1" class="menuFlex">
今日安排 今日安排
<div class="aaaxx">{{ schedule.formData.plan_list ? schedule.formData.plan_list.length : 0 }}</div> <div class="aaaxx">{{ schedule.formData.plan_list ? schedule.formData.plan_list.length : 0 }}</div>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</Col> </Col>
<Col :xl="18" :lg="18" :md="24" :sm="24" :xs="24"> <Col :xl="18" :lg="18" :md="24" :sm="24" :xs="24">
<Card :bordered="false" dis-hover> <Card :bordered="false" dis-hover>
<!-- <Row> <!-- <Row>
<Col :xl="0" :lg="0" :md="24" :sm="24" :xs="24"> <Col :xl="0" :lg="0" :md="24" :sm="24" :xs="24">
<Tabs :value="currentType" @on-click="handleChangeCell"> <Tabs :value="currentType" @on-click="handleChangeCell">
<TabPane label="报修管理" name="repairs" /> <TabPane label="报修管理" name="repairs" />
...@@ -52,7 +52,8 @@ ...@@ -52,7 +52,8 @@
<h3 v-else>{{ item.name }}: {{EvaluateType}}</h3> --> <h3 v-else>{{ item.name }}: {{EvaluateType}}</h3> -->
</Col> </Col>
<Col span="6"> <Col span="6">
<Switch @on-change="onChangeSwitch" v-model="config.AutomaticallyPushState" trueValue="1" falseValue="0"> <Switch @on-change="onChangeSwitch" v-model="config.AutomaticallyPushState" trueValue="1"
falseValue="0">
</Switch> </Switch>
</Col> </Col>
...@@ -68,8 +69,9 @@ ...@@ -68,8 +69,9 @@
</template> </template>
<script> <script>
import * as hooks from '@/hook/index' import * as hooks from '@/hook'
import * as scheduleApi from '@/api/scheduleApi/controller/index' import * as scheduleApi from '@api/scheduleApi/controller/index.d.ts'
import {mapState} from "vuex";
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等) //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
//例如:import 《组件名称》 from '《组件路径》'; //例如:import 《组件名称》 from '《组件路径》';
export default { export default {
...@@ -78,8 +80,8 @@ export default { ...@@ -78,8 +80,8 @@ export default {
data() { data() {
//这里存放数据", //这里存放数据",
return { return {
config:{ config: {
AutomaticallyPushState:'0', AutomaticallyPushState: '0',
}, },
}; };
...@@ -91,25 +93,26 @@ export default { ...@@ -91,25 +93,26 @@ export default {
//方法集合", //方法集合",
methods: { methods: {
//变更自动推送状态 //变更自动推送状态
onChangeSwitch(e){ onChangeSwitch(e) {
hooks.myEncapsulationFunction(()=>{ hooks.myEncapsulationFunction(() => {
return scheduleApi.getApiSysConfigTimingSwitchSave({ return scheduleApi.getApiSysConfigTimingSwitchSave({
"timing_switch": e "timing_switch": e
}).then((res)=>{ }).then((res) => {
this.getAutomaticallyPush() this.getAutomaticallyPush()
return res return res
}) })
},false,'正在变更中...') }, false, '正在变更中...')
}, },
//获取自动推送状态 //获取自动推送状态
getAutomaticallyPush() { getAutomaticallyPush() {
scheduleApi.getApiSysConfigTimingSwitchInit().then(res=>{ scheduleApi.getApiSysConfigTimingSwitchInit().then(res => {
this.config.AutomaticallyPushState = res.response this.config.AutomaticallyPushState = res.response
}) })
}, },
}, },
//生命周期 - 创建之前",数据模型未加载,方法未加载,html模板未加载 //生命周期 - 创建之前",数据模型未加载,方法未加载,html模板未加载
beforeCreate() { beforeCreate() {
}, },
//生命周期 - 创建完成(可以访问当前this实例)",数据模型已加载,方法已加载,html模板已加载,html模板未渲染 //生命周期 - 创建完成(可以访问当前this实例)",数据模型已加载,方法已加载,html模板已加载,html模板未渲染
...@@ -123,6 +126,7 @@ export default { ...@@ -123,6 +126,7 @@ export default {
//生命周期 - 挂载完成(可以访问DOM元素)",html模板已渲染 //生命周期 - 挂载完成(可以访问DOM元素)",html模板已渲染
mounted() { mounted() {
console.log("🚀🚀🚀,", );
this.getAutomaticallyPush() this.getAutomaticallyPush()
}, },
......
此差异已折叠。
...@@ -88,7 +88,9 @@ service.interceptors.response.use( ...@@ -88,7 +88,9 @@ service.interceptors.response.use(
// break; // break;
default: default:
// 不是正确的 code // 不是正确的 code
Message.destroy(),
errorCreate(`${dataAxios.msg_detail}`); errorCreate(`${dataAxios.msg_detail}`);
break; break;
// errorCreate(`${dataAxios.msg}: ${response.config.url}`); // errorCreate(`${dataAxios.msg}: ${response.config.url}`);
......
...@@ -35,27 +35,6 @@ router.beforeEach(async (to, from, next) => { ...@@ -35,27 +35,6 @@ router.beforeEach(async (to, from, next) => {
const token = util.cookies.get('weekPlanPc-token'); const token = util.cookies.get('weekPlanPc-token');
if (token && token !== 'undefined') { if (token && token !== 'undefined') {
next(); next();
/*
// 获取用户权限,这里不能直接从 Vuex 的 user.info 读,因为数据还未准备好
const userInfo = await store.dispatch('admin/db/get', {
dbName: 'sys',
path: 'user.info',
defaultValue: {},
user: true
}, { root: true });
const access = userInfo.access;
const isPermission = includeArray(to.meta.auth, access);
if (isPermission) {
next();
} else {
next({
name: '403'
});
}*/
} else { } else {
// 没有登录的时候跳转到登录界面 // 没有登录的时候跳转到登录界面
// 携带上登陆成功之后需要跳转的页面完整路径 // 携带上登陆成功之后需要跳转的页面完整路径
......
...@@ -21,6 +21,15 @@ const frameIn = [{ ...@@ -21,6 +21,15 @@ const frameIn = [{
}, },
component: () => import('@/pages/arrangement/index.vue') component: () => import('@/pages/arrangement/index.vue')
}, },
{
path: '/set/systemConfig',
name: 'systemConfig',
meta: {
title: '系统配置',
},
component: () => import('@/pages/set/config/index.vue')
},
{ {
path: 'dutyType', path: 'dutyType',
name: 'dutyType', name: 'dutyType',
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
import util from '@/libs/util'; import util from '@/libs/util';
import router from '@/router'; import router from '@/router';
import {AccountLogin, AccountRegister, TestSSO, SSO, GetLoginUserInfo} from '@api/account'; import {AccountLogin, AccountRegister, TestSSO, SSO, GetLoginUserInfo} from '@api/account';
import * as scheduleApi from '@/api/scheduleApi/controller/index'
import {Modal} from 'view-design'; import {Modal} from 'view-design';
...@@ -21,8 +22,12 @@ export default { ...@@ -21,8 +22,12 @@ export default {
let info = {} let info = {}
util.cookies.set('weekPlanPc-token', res.response.access_token.token_content); util.cookies.set('weekPlanPc-token', res.response.access_token.token_content);
await GetLoginUserInfo().then(async resp => { await GetLoginUserInfo().then(async resp => {
await scheduleApi.getApiCommonGetCurrentUserRoleList().then(resx=>{
info = resp.response; info = resp.response;
info.access = resp.response.role; info.access = resp.response.role;
info.roleList = resx.response;
info.currentRole = info.roleList[0]
})
}); });
// 设置 vuex 用户信息 // 设置 vuex 用户信息
await dispatch('admin/user/set', info, {root: true}); await dispatch('admin/user/set', info, {root: true});
...@@ -43,8 +48,12 @@ export default { ...@@ -43,8 +48,12 @@ export default {
let info = {} let info = {}
util.cookies.set('weekPlanPc-token', res.response.access_token.token_content); util.cookies.set('weekPlanPc-token', res.response.access_token.token_content);
await GetLoginUserInfo().then(async resp => { await GetLoginUserInfo().then(async resp => {
await scheduleApi.getApiCommonGetCurrentUserRoleList().then(resx=>{
info = resp.response; info = resp.response;
info.access = resp.response.role; info.access = resp.response.role;
info.roleList = resx.response;
info.currentRole = info.roleList[0];
})
}); });
// 设置 vuex 用户信息 // 设置 vuex 用户信息
await dispatch('admin/user/set', info, {root: true}); await dispatch('admin/user/set', info, {root: true});
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或