mine.js 4.6 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/mine"],{190:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(191));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},191:function(e,n,t){"use strict";t.r(n);var o=t(192),r=t(194);for(var c in r)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(c);t(196);var u,i=t(36),a=Object(i["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],u);a.options.__file="pages/mine/mine.vue",n["default"]=a.exports},192:function(e,n,t){"use strict";t.r(n);var o=t(193);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},193:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return c})),t.d(n,"components",(function(){return o}));try{o={uCellGroup:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-cell-group/u-cell-group")]).then(t.bind(null,359))},uCell:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-cell/u-cell")]).then(t.bind(null,367))},uPicker:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-picker/u-picker")]).then(t.bind(null,375))}}}catch(i){if(-1===i.message.indexOf("Cannot find module")||-1===i.message.indexOf(".vue"))throw i;console.error(i.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.show=!1})},c=!1,u=[];r._withStripped=!0},194:function(e,n,t){"use strict";t.r(n);var o=t(195),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=r.a},195:function(e,n,t){"use strict";(function(e){var o=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(30)),c=o(t(32)),u={data:function(){return{userName:e.getStorageSync("userName"),pic:e.getStorageSync("face"),msg:{userId:e.getStorageSync("userId"),pageNo:1,pageSize:100},value:"",columns:[[]],show:!1,arr:[]}},methods:{projectChoose:function(){this.getProjectList(),this.show=!0,console.log("弹出")},confirm:function(n){if(console.log(1),console.log("confirm",n),console.log(this.arr,"全部项目"),0==this.arr.length)return this.show=!1,this.$u.toast("未检测到测试项目");var t=this.arr.filter((function(e){return e.name==n.value[0]}));console.log(t,"过滤"),e.setStorageSync("testProjectId",t[0].id),e.setStorageSync("gatewayDeviceId",t[0].gatewayDeviceId),this.value=t[0].name,this.show=!1},selectClick:function(e){console.log(e)},choose:function(){this.show3=!0,console.log("我弹出来了")},toUpload:function(){e.navigateTo({url:"/pages/upload-face/upload-face"})},toList:function(){e.navigateTo({url:"/pages/project-list/project-list"})},exit:function(){e.showModal({title:"温馨提示",content:"确定要退出吗?",success:function(n){n.confirm&&(e.removeStorageSync("Token"),e.removeStorageSync("userId"),e.removeStorageSync("testProjectId"),e.redirectTo({url:"/pages/login/login"}))}})},toAddProject:function(){e.navigateTo({url:"/pages/add-project/add-project"})},getProjectList:function(){var n=this;return(0,c.default)(r.default.mark((function t(){var o,c,u;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$http.post("/api/v1/test/testProject/queryByCondition",n.msg);case 2:o=t.sent,c=o.data,e.hideLoading(),200==c.code?0==c.data.records.length?n.$u.toast("未检测到测试项目"):(u=[],c.data.records.forEach((function(e){u.push(e.name)})),n.columns[0]=u,n.arr=c.data.records):n.$u.toast("请求失败");case 6:case"end":return t.stop()}}),t)})))()}},onLoad:function(e){this.getProjectList()}};n.default=u}).call(this,t(2)["default"])},196:function(e,n,t){"use strict";t.r(n);var o=t(197),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=r.a},197:function(e,n,t){}},[[190,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/mine.js.map