pages-tabbar-workbench-workbench.89568200.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-tabbar-workbench-workbench"],{"0094":function(e,n,t){"use strict";var i,o=t("da84"),a=t("e330"),r=t("6964"),s=t("f183"),u=t("6d61"),c=t("acac"),d=t("861d"),l=t("4fad"),f=t("69f3").enforce,g=t("cdce"),v=!o.ActiveXObject&&"ActiveXObject"in o,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},h=u("WeakMap",p,c);if(g&&v){i=c.getConstructor(p,"WeakMap",!0),s.enable();var m=h.prototype,_=a(m["delete"]),b=a(m.has),w=a(m.get),x=a(m.set);r(m,{delete:function(e){if(d(e)&&!l(e)){var n=f(this);return n.frozen||(n.frozen=new i),_(this,e)||n.frozen["delete"](e)}return _(this,e)},has:function(e){if(d(e)&&!l(e)){var n=f(this);return n.frozen||(n.frozen=new i),b(this,e)||n.frozen.has(e)}return b(this,e)},get:function(e){if(d(e)&&!l(e)){var n=f(this);return n.frozen||(n.frozen=new i),b(this,e)?w(this,e):n.frozen.get(e)}return w(this,e)},set:function(e,n){if(d(e)&&!l(e)){var t=f(this);t.frozen||(t.frozen=new i),b(this,e)?x(this,e,n):t.frozen.set(e,n)}else x(this,e,n);return this}})}},"10d1":function(e,n,t){t("0094")},4943:function(e,n,t){var i=t("69a9");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=t("4f06").default;o("7f56cbfe",i,!0,{sourceMap:!1,shadowMode:!1})},"4c07":function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return i}));var i={uniPopup:t("c917").default},o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-uni-view",[t("v-uni-view",{staticClass:"top"},[t("v-uni-image",{attrs:{src:e.header}})],1),t("v-uni-view",{staticClass:"section"},[t("v-uni-view",{staticClass:"list"},e._l(e.nav,(function(n,i){return t("v-uni-view",{key:i,staticClass:"item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.go_link(n)}}},[t("v-uni-view",{staticClass:"icon"},[t("v-uni-image",{attrs:{src:n.icon,mode:"aspectFill"}})],1),t("v-uni-view",{staticClass:"name"},[-1!=n.link.indexOf("http://oa_system.nxjiewei.com:8011/?m=ying&d=we&num=daiban&hideheader=true")&&e.num_1>0?t("v-uni-view",{staticClass:"num"},[e._v(e._s(e.num_1))]):e._e(),-1!=n.link.indexOf("http://oa_system.nxjiewei.com:8011/?m=ying&d=we&num=todo&hideheader=true")&&e.num_2>0?t("v-uni-view",{staticClass:"num"},[e._v(e._s(e.num_2))]):e._e(),-1!=n.link.indexOf("closed_loop_management")&&e.num_3>0?t("v-uni-view",{staticClass:"num"},[e._v(e._s(e.num_3))]):e._e(),t("v-uni-view",{staticClass:"name_title"},[e._v(e._s(n.title))]),t("v-uni-view",{staticClass:"sub_title"},[e._v(e._s(n.sub_title))])],1)],1)})),1)],1),e._l(e.module,(function(n,i){return t("v-uni-view",{key:i,staticClass:"section"},[t("v-uni-view",{staticClass:"title"},[t("v-uni-view",{staticClass:"icon"},[t("v-uni-image",{attrs:{src:n.icon,mode:""}})],1),t("v-uni-view",{staticClass:"text"},[e._v(e._s(n.title))])],1),t("v-uni-view",{staticClass:"list"},e._l(n.children,(function(n,i){return t("v-uni-view",{key:i,staticClass:"item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.go_link(n)}}},[t("v-uni-view",{staticClass:"icon"},[t("v-uni-image",{attrs:{src:n.icon,mode:""}})],1),t("v-uni-view",{staticClass:"name"},[t("v-uni-view",{staticClass:"name_title"},[e._v(e._s(n.title))]),t("v-uni-view",{staticClass:"sub_title"},[e._v(e._s(n.sub_title))])],1)],1)})),1)],1)})),t("uni-popup",{ref:"popup",attrs:{type:"center"},on:{maskClick:function(n){arguments[0]=n=e.$handleEvent(n),e.maskClick.apply(void 0,arguments)}}},[t("v-uni-view",{staticClass:"login_box"},[t("v-uni-view",{staticClass:"input_box"},[t("v-uni-view",{staticClass:"label"},[e._v("工号:")]),t("v-uni-view",{staticClass:"box"},[e._v(e._s(e.staff_num))])],1),t("v-uni-view",{staticClass:"input_box"},[t("v-uni-view",{staticClass:"label"},[e._v("登录密码(宁煤信息平台):")]),t("v-uni-view",{staticClass:"box"},[t("v-uni-input",{attrs:{type:"password"},model:{value:e.password,callback:function(n){e.password=n},expression:"password"}})],1)],1),t("v-uni-view",{staticClass:"btn",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.login()}}},[e._v("确认")])],1)],1)],2)},a=[]},"4ce9":function(e,n,t){"use strict";var i=t("4943"),o=t.n(i);o.a},"585c":function(e,n,t){"use strict";t.r(n);var i=t("4c07"),o=t("78a1");for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);t("4ce9");var r=t("f0c5"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"267629b9",null,!1,i["a"],void 0);n["default"]=s.exports},"69a9":function(e,n,t){var i=t("24fb");n=i(!1),n.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-267629b9]{background-color:#f2faf7;margin-bottom:%?20?%}body.?%PAGE?%[data-v-267629b9]{background-color:#f2faf7}.top uni-image[data-v-267629b9]{width:%?750?%;height:%?270?%;display:block}.tab[data-v-267629b9]{margin-top:%?20?%;display:flex;background-color:#fff;box-sizing:border-box;padding:0 %?20?%}.tab .item[data-v-267629b9]{background-color:#fff}.tab .item .text[data-v-267629b9]{box-sizing:border-box;height:%?90?%;line-height:%?90?%;width:%?188?%;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:%?30?%;color:#666}.tab .item .active[data-v-267629b9]{font-weight:700;color:#000;border-bottom:%?4?% solid #009fe8}.section[data-v-267629b9]{margin-top:%?20?%;background-color:#fff;padding:%?25?%}.section .title[data-v-267629b9]{display:flex;align-items:center;height:%?90?%}.section .title .icon[data-v-267629b9]{margin-right:%?20?%}.section .title .icon uni-image[data-v-267629b9]{width:%?50?%;height:%?50?%;display:block}.section .title .text[data-v-267629b9]{font-weight:700;font-size:%?34?%}.section .list[data-v-267629b9]{margin-top:%?30?%;width:%?700?%;overflow:hidden}.section .list .item[data-v-267629b9]{float:left;margin-bottom:%?30?%;width:%?350?%;display:flex;align-items:center;height:%?140?%}.section .list .item .icon[data-v-267629b9]{margin-bottom:%?10?%}.section .list .item .icon uni-image[data-v-267629b9]{width:%?90?%;height:%?90?%;display:block}.section .list .item .name[data-v-267629b9]{position:relative;margin-left:%?20?%}.section .list .item .name .num[data-v-267629b9]{z-index:10;position:absolute;top:%?-10?%;right:%?-50?%;width:%?40?%;text-align:center;line-height:%?40?%;background-color:#f56c6c;border-radius:50%;color:#fff;font-size:%?26?%}.section .list .item .name .name_title[data-v-267629b9]{font-size:%?28?%;margin-bottom:%?10?%}.section .list .item .name .sub_title[data-v-267629b9]{font-size:%?24?%;color:#999}.section .list .item[data-v-267629b9]:nth-child(2n){box-sizing:border-box;border-left:%?1?% solid #f2faf7;padding-left:%?40?%}.login_box[data-v-267629b9]{width:%?500?%;padding:%?30?% %?50?%;border-radius:%?20?%;margin:0 auto;background-color:#fff}.login_box .input_box[data-v-267629b9]{margin-bottom:%?30?%}.login_box .input_box .label[data-v-267629b9]{color:#6c6f74;margin-bottom:%?20?%}.login_box .input_box .box[data-v-267629b9]{background:#fff;border-radius:%?8?%;border:%?2?% solid #e9ebf2;box-sizing:border-box;padding:%?20?% %?25?%}.login_box .btn[data-v-267629b9]{width:%?500?%;margin:0 auto;border-radius:%?8?%;background-color:#009fe8;line-height:%?90?%;color:#fff;text-align:center}',""]),e.exports=n},"78a1":function(e,n,t){"use strict";t.r(n);var i=t("b628"),o=t.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);n["default"]=o.a},acac:function(e,n,t){"use strict";var i=t("e330"),o=t("6964"),a=t("f183").getWeakData,r=t("19aa"),s=t("825a"),u=t("7234"),c=t("861d"),d=t("2266"),l=t("b727"),f=t("1a2d"),g=t("69f3"),v=g.set,p=g.getterFor,h=l.find,m=l.findIndex,_=i([].splice),b=0,w=function(e){return e.frozen||(e.frozen=new x)},x=function(){this.entries=[]},y=function(e,n){return h(e.entries,(function(e){return e[0]===n}))};x.prototype={get:function(e){var n=y(this,e);if(n)return n[1]},has:function(e){return!!y(this,e)},set:function(e,n){var t=y(this,e);t?t[1]=n:this.entries.push([e,n])},delete:function(e){var n=m(this.entries,(function(n){return n[0]===e}));return~n&&_(this.entries,n,1),!!~n}},e.exports={getConstructor:function(e,n,t,i){var l=e((function(e,o){r(e,g),v(e,{type:n,id:b++,frozen:void 0}),u(o)||d(o,e[i],{that:e,AS_ENTRIES:t})})),g=l.prototype,h=p(n),m=function(e,n,t){var i=h(e),o=a(s(n),!0);return!0===o?w(i).set(n,t):o[i.id]=t,e};return o(g,{delete:function(e){var n=h(this);if(!c(e))return!1;var t=a(e);return!0===t?w(n)["delete"](e):t&&f(t,n.id)&&delete t[n.id]},has:function(e){var n=h(this);if(!c(e))return!1;var t=a(e);return!0===t?w(n).has(e):t&&f(t,n.id)}}),o(g,t?{get:function(e){var n=h(this);if(c(e)){var t=a(e);return!0===t?w(n).get(e):t?t[n.id]:void 0}},set:function(e,n){return m(this,e,n)}}:{add:function(e){return m(this,e,!0)}}),l}}},b628:function(e,n,t){"use strict";t("7a82");var i=t("dbce").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,t("d3b7"),t("159b"),t("c975"),t("ac1f"),t("466d");var o=t("87c6"),a=i(t("e5b9")),r=t("dae6"),s={data:function(){return{app_mine_code:"",mine_code:"",base_url:"",tab:[{name:"宁煤公司",code:"ningmeijituan"},{name:"羊场湾煤矿",code:"yangchangwan"},{name:"枣泉煤矿",code:"zaoquan"},{name:"清水营煤矿",code:"qingshuiying"},{name:"金家渠煤矿",code:"jinjiaqu"},{name:"石槽村煤矿",code:"shicaocun"},{name:"金凤煤矿",code:"jinfeng"},{name:"物业公司",code:"wuyegongsi"},{name:"宁东运营部",code:"ningdongyunying"}],active:0,header:"",nav:[],module:[],num_1:0,num_2:0,num_3:0,staff_num:"",password:"",url:"",app_id:"",gps:"",deviceID:"",phoneType:""}},onLoad:function(){this.staff_num=uni.getStorageSync("user").staff_num,this.app_mine_code=uni.getStorageSync("mine_code"),this.mine_code=uni.getStorageSync("mine_code"),this.base_url=(0,o.set_base_url)(this.app_mine_code),this.get_workbench_index()},onShow:function(){this.get_workflow_todo_query()},methods:{maskClick:function(){this.password=""},login:function(){},change_active:function(e,n){this.active=e,this.mine_code=n,this.base_url=(0,o.set_base_url)(this.mine_code),this.get_workbench_index()},get_workbench_index:function(){var e=this;uni.request({url:this.base_url+"/workbench/index",header:{accesskey:"b364b449a18af327867f7edc3431b541"},success:function(n){e.header=n.data.data.header,e.nav=n.data.data.nav,e.module=n.data.data.module}})},get_workflow_todo_query:function(){var e=this;this.$api.five_fixed_fiveFixedNewCategory({}).then((function(n){var t=n.data.content.data,i=0;t.forEach((function(e,n){i+=e.no_num})),e.num_3=i,"ningdongyunying"==e.mine_code&&e.num_3>0&&uni.showTabBarRedDot({index:2})})),this.$api.workflow_todo_query({staff_num:uni.getStorageSync("user").staff_num,query_type:2}).then((function(n){e.num_1=n.data.content.data,"ningdongyunying"==e.mine_code&&e.num_1>0&&uni.showTabBarRedDot({index:2})})),this.$api.workflow_todo_query({staff_num:uni.getStorageSync("user").staff_num,query_type:1}).then((function(n){e.num_2=n.data.content.data,"ningdongyunying"==e.mine_code&&e.num_2>0&&uni.showTabBarRedDot({index:2})}))},go_link:function(e){var n=this,t=e.link;if(-1!=t.indexOf("nativeApp://"))t.match(/nativeApp:\/\/(\S*)\?/)[1],t.split("?")[1];else if(-1!=t.indexOf("http://mtyyxs.shnxmyjt.com")){console.log("信息平台"),this.url=e;var i=uni.getStorageSync("ningmei_token"),o=uni.getStorageSync("ningmei_token_time"),s=(0,a.diffTime)(o,(new Date).format("yyyy-MM-dd")).split(" ")[0];console.log(s),i.length>20&&s<30?uni.navigateTo({url:"../../index/ningMeiXinXiPingTai/ningMeiXinXiPingTai",success:function(e){e.eventChannel.emit("acceptDataFromOpenerPage",{data:n.url})}}):this.$refs.popup.open()}else(0,r.goToLink)(e,this.mine_code)}}};n.default=s},dae6:function(e,n,t){"use strict";t("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.goToLink=void 0,t("c975"),t("4d63"),t("c607"),t("ac1f"),t("2c3e"),t("25f0"),t("466d");n.goToLink=function(e,n){console.log(e);var t=e.link;if(-1==t.indexOf("oa_system.nxjiewei.com"))if(-1==t.indexOf("set_base_url")){if(-1!=t.indexOf("pageId")&&-1==t.indexOf("app:")){var i=function(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=t.match(n);return null!=i?unescape(i[2]):null},o="";return console.log(i("pageId")),o=i("pageId")?i("pageId"):t.split("=")[1],void uni.navigateTo({url:"../../index/record/record?pageId="+o+"&mine_code="+n})}-1!=t.indexOf("pageId")||-1!=t.indexOf("app:")?-1==t.indexOf("pageId")&&-1!=t.indexOf("app:")&&(console.log("原生"),-1!=t.indexOf("/safetyManagementSystem/safetyManagementSystem")&&(console.log("安全管理体系"),uni.navigateTo({url:"../../index/safetyManagementSystem/safetyManagementSystem"})),-1!=t.indexOf("/browseQrcode/gridSubmitItem_win")&&(console.log("网格排查"),uni.navigateTo({url:"../../workbench/gridding/gridding"})),-1!=t.indexOf("/wordorder/wordOrderGrid_win")&&(console.log(t),uni.navigateTo({url:"../../index/business_approval/business_approval"})),-1!=t.indexOf("app:/workBench/origanization")&&(console.log("组织架构、通讯录"),uni.navigateTo({url:"../../workbench/origanization/origanization"})),-1!=t.indexOf("app:/workBench/xuanchuanzhanban")&&(console.log("宣传展板"),uni.navigateTo({url:"../../index/xuanchuanzhanban/xuanchuanzhanban"})),-1!=t.indexOf("/workBench/invoice")&&(console.log("发票助手"),uni.navigateTo({url:"../../workbench/invoice_assistant/invoice_assistant"})),-1!=t.indexOf("/news/news_win")&&(console.log("通知公告"),uni.navigateTo({url:"../../my/message-reminder/message-reminder"})),-1!=t.indexOf("/workBench/getDuty")&&(console.log("值班信息"),uni.navigateTo({url:"../../workbench/duty_information/duty_information"})),-1!=t.indexOf("/workBench/huiyiList")&&(console.log("会议列表"),uni.navigateTo({url:"../../workbench/meeting_arrangements/meeting_arrangements"})),-1!=t.indexOf("/workBench/lifeCircleWin")&&(console.log("生活圈"),uni.showToast({icon:"none",title:"暂未开通"})),-1!=t.indexOf("/productionData/logging")&&(console.log("下井记录"),uni.getStorageSync("people_code")?uni.navigateTo({url:"../../production/personnel_orientation/downhole_statistics/downhole_statistics?people_num="+uni.getStorageSync("user").people_code+"&depart_name="+uni.getStorageSync("user").section+"&name="+uni.getStorageSync("user").name+"&mine=640323B0011010019259"}):uni.navigateTo({url:"../../production/personnel_orientation/downhole_statistics/downhole_statistics?people_num=null&depart_name="+uni.getStorageSync("user").section+"&name="+uni.getStorageSync("user").name+"&mine=640323B0011010019259"})),-1!=t.indexOf("/browseQrcode/gridSubmitItem_win")&&(console.log("网格排查"),uni.navigateTo({url:"../../workbench/gridding/gridding"})),-1!=t.indexOf("/workBench/evaluate")&&(console.log("干部评测"),uni.navigateTo({url:"../../workbench/h5/h5?workBench=pingce"})),-1!=t.indexOf("/productionData/persnoalLocation")&&uni.navigateTo({url:"../../production/personnel_orientation/personnel_orientation?mine=640181B0011010030750"}),-1!=t.indexOf("closed_loop_management")&&uni.navigateTo({url:"../../workbench/closed_loop_management/closed_loop_management"}),-1!=t.indexOf("app_url")&&uni.navigateTo({url:t.split("app_url=")[1]+"&title="+e.title}),-1!=t.indexOf("switch_url")&&uni.switchTab({url:t.split("switch_url=")[1]})):-1!=t.indexOf("webdevelop.nxjiewei.com/assets/html/pingce")?uni.navigateTo({url:"../../index/h5/h5?url=jinjiaqu_pingce"}):(-1!=t.indexOf("/yinhuanpaicha/yinhuaninfo")||console.log("h5:h5"),uni.navigateTo({url:"../../index/h5/h5?url="+t}))}else uni.$emit("common_update_kuang",{msg:t.split("=")[1]});else uni.navigateTo({url:"../../origanization/OA/h5/h5",success:function(n){n.eventChannel.emit("acceptDataFromOpenerPage",{url:t,title:e.title})}})}},dbce:function(e,n,t){t("d3b7"),t("3ca3"),t("10d1"),t("ddb0"),t("7a82"),t("e439");var i=t("7037")["default"];function o(e){if("function"!==typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(o=function(e){return e?t:n})(e)}e.exports=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var t=o(n);if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=r?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(a,s,u):a[s]=e[s]}return a["default"]=e,t&&t.set(e,a),a},e.exports.__esModule=!0,e.exports["default"]=e.exports}}]);