hz-zhhq-web/node_modules/.cache/babel-loader/9848c9a031551a44226bfae071c...

1 line
7.3 KiB
JSON

{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\views\\weekfood\\takeawayMenu\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\weekfood\\takeawayMenu\\index.vue","mtime":1737610069455},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.number.constructor\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport { WeekMenulist, WeekMenudelete, Menucopy } from \"@/api/getdata\";\nimport Paging from \"@/views/Public/paging.vue\";\nimport Popup from \"@/views/estate/examine/dialog/popup.vue\";\nexport default {\n components: {\n Paging: Paging,\n Popup: Popup\n },\n data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n row: {},\n validation: false,\n completeTitle: \"删除\",\n nav: \"是否删除?\",\n formInline: {\n locationId: \"\",\n sellDate: \"\",\n menuType: \"\"\n },\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n tableData: []\n };\n },\n mounted: function mounted() {\n this.createLoad();\n if (this.$route.params.index) {\n this.currentChanges(Number(this.$route.params.index));\n } else {\n this.getlist();\n }\n },\n computed: {\n // this.$route.params.index(){\n\n // }\n },\n methods: {\n mouseoverSpan: function mouseoverSpan(e) {\n if (e.target.scrollWidth > e.target.offsetWidth) {\n e.target.setAttribute('class', 'cell-box span-overflow');\n }\n },\n createLoad: function createLoad() {\n this.loading = true;\n this.loadingMsg = \"加载中...\";\n },\n clearLoad: function clearLoad() {\n this.loading = false;\n this.loadingMsg = \"\";\n },\n // 分页\n currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n this.getlist();\n },\n // 列表\n getlist: function getlist() {\n var _this = this;\n var Content = {\n currentPage: this.page.limit,\n queryObj: this.formInline\n };\n WeekMenulist(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this.clearLoad();\n // console.log(res);\n _this.tableData = res.returnData.data;\n _this.page.total = res.returnData.total;\n _this.page.limit = res.returnData.currentPage;\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\n },\n onSubmit: function onSubmit() {\n // console.log(this.formInline);\n this.page.limit = 1;\n this.createLoad();\n this.getlist();\n },\n handleUpdate: function handleUpdate(index, row) {\n // console.log(index,11111)\n index.til = \"编辑\";\n // console.log(index, row);\n var id = 11;\n // console.log(this.page.limit,120)\n this.$router.push({\n path: \"addweekfoodmenu\",\n query: {\n til: \"编辑\",\n rowdata: index,\n index: this.page.limit,\n id: id\n }\n });\n // console.log(index,289)\n window.localStorage.setItem(\"takewayRowdata\", JSON.stringify(index));\n window.localStorage.setItem(\"takewayIndex\", this.page.limit);\n },\n closeDialogDel: function closeDialogDel(val) {\n var _this2 = this;\n if (val == \"1\") {\n this.createLoad();\n var Content = {\n menuId: this.row.id,\n locationId: this.row.location_id,\n uploadDate: this.row.sell_date\n };\n WeekMenudelete(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.page.limit = 1;\n _this2.getlist();\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n });\n }\n this.validation = false;\n },\n // 删除菜单\n handleModifyStatus: function handleModifyStatus(row) {\n this.row = row;\n this.validation = true;\n },\n handleEdit: function handleEdit(index, row) {\n console.log(index, row);\n },\n // 复制\n handleCopy: function handleCopy(row) {\n var _this3 = this;\n this.createLoad();\n // console.log(row);\n var Content = {\n foodMenu: row.food_menu,\n id: row.id,\n locationId: row.location_id,\n status: row.status\n };\n Menucopy(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this3.getlist();\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n // setTimeout(()=>{\n // this.clearLoad();\n // },300)\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n handleDelete: function handleDelete(index, row) {\n // console.log(index, row);\n },\n handleAdd: function handleAdd() {\n var id = 11;\n this.$router.push({\n path: \"addweekfoodmenu\",\n query: {\n til: \"添加\",\n id: id\n }\n });\n window.localStorage.setItem(\"takewayIndex\", this.page.limit);\n }\n }\n};",null]}