project-list.js.map 14 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/project-list/project-list.vue?a868","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/project-list/project-list.vue?34d5","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/project-list/project-list.vue?8c4d","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/project-list/project-list.vue?e3c1","uni-app:///pages/project-list/project-list.vue","webpack:////Users/yangxiaohai/Desktop/boyuan/iot-test-app/pages/project-list/project-list.vue?cca9"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","renderjs","component","options","__file","components","uSwipeAction","uSwipeActionItem","uToast","e","message","indexOf","console","error","render","_vm","this","_h","$createElement","_self","_c","recyclableRender","staticRenderFns","_withStripped","props","data","msg","userId","pageNo","pageSize","options1","text","style","backgroundColor","list","onReachBottom","onLoad","methods","getList","uni","title","res","click","detail","url","onPullDownRefresh","setTimeout"],"mappings":"0JAAA,MAGA,aACA,YAFAA,EAAGC,kCAAoCC,EAGvCC,EAAWC,a,gFCLX,oIACIC,EADJ,QASIC,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,KACA,MACA,EACA,gBACAD,GAGFC,EAAUC,QAAQC,OAAS,sCACZ,aAAAF,E,0CCvBf,uQ,iCCAA,IAAIG,EAAJ,0LACA,IACEA,EAAa,CACXC,aAAc,WACZ,OAAO,iIAITC,iBAAkB,WAChB,OAAO,2IAITC,OAAQ,WACN,OAAO,gFAKX,MAAOC,GACP,IAC+C,IAA7CA,EAAEC,QAAQC,QAAQ,wBACa,IAA/BF,EAAEC,QAAQC,QAAQ,QAWlB,MAAMF,EATNG,QAAQC,MAAMJ,EAAEC,SAChBE,QAAQC,MAAM,mBACdD,QAAQC,MACN,uFAEFD,QAAQC,MACN,mDAMN,IAAIC,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eACJH,EAAII,MAAMC,IAEjBC,GAAmB,EACnBC,EAAkB,GACtBR,EAAOS,eAAgB,G,iCC3CvB,yHAA01B,eAAG,G,uJCmB71B,CACAC,SAGAC,gBAEA,OACAC,KACAC,kCACAC,SACAC,aAEAC,WACAC,UACAC,OACAC,4BAEA,CACAF,UACAC,OACAC,6BAGAC,UAIAC,yBACAvB,oBAEAwB,kBACA,gBAEAC,SACAC,mBAAA,4IAGA,OAFAC,eACAC,mBACA,SAGAD,gEAAA,gBADAE,SAEA7B,eACA,cACA2B,gBACA,uBAEA,mBACA,0CAbA,IAgBAG,oBAAA,8IACA,GAAA9B,eACAH,YAAA,eACA,oBACAkC,oBACAJ,cACAK,+CACA,uBAIA,OAFAL,eACAC,gBACA,UAGAD,yDAAA,iBADAE,SAEA,aACAF,gBACA,aAEA,yBACA,2CApBA,KA4BAM,6BACAjC,uBACA,eACAkC,uBAEAP,0BACA,OAEA,c,6DCzGA,yHAAyjD,eAAG,G","file":"pages/project-list/project-list.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/project-list/project-list.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./project-list.vue?vue&type=template&id=7c663d46&\"\nvar renderjs\nimport script from \"./project-list.vue?vue&type=script&lang=js&\"\nexport * from \"./project-list.vue?vue&type=script&lang=js&\"\nimport style0 from \"./project-list.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/project-list/project-list.vue\"\nexport default component.exports","export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./project-list.vue?vue&type=template&id=7c663d46&\"","var components\ntry {\n components = {\n uSwipeAction: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-swipe-action/u-swipe-action\" */ \"@/uni_modules/uview-ui/components/u-swipe-action/u-swipe-action.vue\"\n )\n },\n uSwipeActionItem: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item\" */ \"@/uni_modules/uview-ui/components/u-swipe-action-item/u-swipe-action-item.vue\"\n )\n },\n uToast: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-toast/u-toast\" */ \"@/uni_modules/uview-ui/components/u-toast/u-toast.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./project-list.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./project-list.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"list\">\n\t\t<u-swipe-action>\n\t\t\t<u-swipe-action-item @click=\"(e)=>{click(e,item)}\" :options=\"options1\" v-for=\"(item,index) in list\"\n\t\t\t\t:key=\"item.id\">\n\t\t\t\t<view class=\"list-item\">\n\t\t\t\t\t<view class=\"left\">\n\t\t\t\t\t\t{{item.description}}\n\t\t\t\t\t</view>\n\t\t\t\t\t<view class=\"right\">\n\t\t\t\t\t\t{{item.gatewayDeviceId}}\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t</u-swipe-action-item>\n\t\t</u-swipe-action>\n\t\t<u-toast ref=\"uToast\"></u-toast>\n\t</view>\n</template>\n<script>\n\texport default {\n\t\tprops: {\n\n\t\t},\n\t\tdata() {\n\n\t\t\treturn {\n\t\t\t\tmsg: {\n\t\t\t\t\tuserId: uni.getStorageSync('userId'),\n\t\t\t\t\tpageNo: 1,\n\t\t\t\t\tpageSize: 10\n\t\t\t\t},\n\t\t\t\toptions1: [{\n\t\t\t\t\ttext: '修改',\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\tbackgroundColor: '#3c9cff'\n\t\t\t\t\t}\n\t\t\t\t}, {\n\t\t\t\t\ttext: '删除',\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\tbackgroundColor: '#f56c6c'\n\t\t\t\t\t}\n\t\t\t\t}],\n\t\t\t\tlist: []\n\t\t\t}\n\t\t},\n\t\t// 触底事件\n\t\tonReachBottom() {\n\t\t\tconsole.log('触底了');\n\t\t},\n\t\tonLoad() {\n\t\t\tthis.getList()\n\t\t},\n\t\tmethods: {\n\t\t\tasync getList() {\n\t\t\t\tuni.showLoading({\n\t\t\t\t\ttitle: '数据加载中...'\n\t\t\t\t})\n\t\t\t\tconst {\n\t\t\t\t\tdata: res\n\t\t\t\t} = await uni.$http.post('/api/v1/test/testProject/queryByCondition', this.msg)\n\t\t\t\tconsole.log(res);\n\t\t\t\tif(res.code===200){\n\t\t\t\t\tuni.hideLoading()\n\t\t\t\t\tthis.list = res.data.records\n\t\t\t\t}else{\n\t\t\t\t\tthis.$u.toast(`修改失败`)\n\t\t\t\t}\n\t\t\t\t\n\t\t\t},\n\t\t\tasync click(e, item) {\n\t\t\t\tconsole.log(item);\n\t\t\t\tif (e.index == 0) {\n\t\t\t\t\tthis.$u.toast(`点击了更改`);\n\t\t\t\t\tlet detail = JSON.stringify(item)\n\t\t\t\t\tuni.navigateTo({\n\t\t\t\t\t\turl: \"/pages/add-project/add-project?item=\" + detail\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tuni.showLoading({\n\t\t\t\t\t\ttitle:\"正在删除中\"\n\t\t\t\t\t})\n\t\t\t\t\tconst {\n\t\t\t\t\t\tdata: res\n\t\t\t\t\t} = await uni.$http.delete(`/api/v1/test/testProject/${item.id}`)\n\t\t\t\t\tif(res.code==200){\n\t\t\t\t\t\tuni.hideLoading()\n\t\t\t\t\t\tthis.getList()\n\t\t\t\t\t}else{\n\t\t\t\t\t\tthis.$u.toast(`删除失败,请重新删除`)\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t},\n\n\n\t\tonPullDownRefresh() {\n\t\t\tconsole.log('refresh');\n\t\t\tthis.getList()\n\t\t\tsetTimeout(function() {\n\n\t\t\t\tuni.stopPullDownRefresh();\n\t\t\t}, 1000);\n\t\t}\n\t}\n</script>\n<style lang=\"scss\">\n\t.list {\n\t\twidth: calc(100vw - 40rpx);\n\t\tmargin: 10rpx 20rpx;\n\t\toverflow: hidden;\n\n\t\t.list-item {\n\t\t\tpadding: 20rpx;\n\t\t\theight: 100rpx;\n\t\t\tborder-bottom: 1px solid #535353;\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: space-between;\n\t\t\talign-items: center;\n\n\n\n\t\t\t// margin-bottom: 20rpx;\n\t\t\t.left {\n\t\t\t\t// background-color: red;\n\t\t\t\t// flex: 1;\n\t\t\t}\n\n\t\t\t.right {\n\t\t\t\t// background-color: blue;\n\t\t\t\t// flex: 1;\n\t\t\t}\n\t\t}\n\t}\n</style>","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./project-list.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./project-list.vue?vue&type=style&index=0&lang=scss&\""],"sourceRoot":""}