project-list.js 4.2 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/project-list/project-list"],{267:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var r=o(n(268));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n(1)["default"],n(2)["createPage"])},268:function(e,t,n){"use strict";n.r(t);var o=n(269),r=n(271);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n(273);var u,c=n(36),s=Object(c["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],u);s.options.__file="pages/project-list/project-list.vue",t["default"]=s.exports},269:function(e,t,n){"use strict";n.r(t);var o=n(270);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},270:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return u})),n.d(t,"recyclableRender",(function(){return i})),n.d(t,"components",(function(){return o}));try{o={uSwipeAction:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-swipe-action/u-swipe-action")]).then(n.bind(null,341))},uSwipeActionItem:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item")]).then(n.bind(null,347))},uToast:function(){return n.e("uni_modules/uview-ui/components/u-toast/u-toast").then(n.bind(null,318))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.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,t=e.$createElement;e._self._c},i=!1,u=[];r._withStripped=!0},271:function(e,t,n){"use strict";n.r(t);var o=n(272),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a},272:function(e,t,n){"use strict";(function(e){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(30)),i=o(n(32)),u={props:{},data:function(){return{msg:{userId:e.getStorageSync("userId"),pageNo:1,pageSize:10},options1:[{text:"修改",style:{backgroundColor:"#3c9cff"}},{text:"删除",style:{backgroundColor:"#f56c6c"}}],list:[]}},onReachBottom:function(){console.log("触底了")},onLoad:function(){this.getList()},methods:{getList:function(){var t=this;return(0,i.default)(r.default.mark((function n(){var o,i;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.showLoading({title:"数据加载中..."}),n.next=3,e.$http.post("/api/v1/test/testProject/queryByCondition",t.msg);case 3:o=n.sent,i=o.data,console.log(i),200===i.code?(e.hideLoading(),t.list=i.data.records):t.$u.toast("修改失败");case 7:case"end":return n.stop()}}),n)})))()},click:function(t,n){var o=this;return(0,i.default)(r.default.mark((function i(){var u,c,s;return r.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(console.log(n),0!=t.index){r.next=7;break}o.$u.toast("点击了更改"),u=JSON.stringify(n),e.navigateTo({url:"/pages/add-project/add-project?item="+u}),r.next=13;break;case 7:return e.showLoading({title:"正在删除中"}),r.next=10,e.$http.delete("/api/v1/test/testProject/".concat(n.id));case 10:c=r.sent,s=c.data,200==s.code?(e.hideLoading(),o.getList()):o.$u.toast("删除失败,请重新删除");case 13:case"end":return r.stop()}}),i)})))()}},onPullDownRefresh:function(){console.log("refresh"),this.getList(),setTimeout((function(){e.stopPullDownRefresh()}),1e3)}};t.default=u}).call(this,n(2)["default"])},273:function(e,t,n){"use strict";n.r(t);var o=n(274),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a},274:function(e,t,n){}},[[267,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/project-list/project-list.js.map