hz-zhhq-web/node_modules/.cache/babel-loader/17c01b1511f04c7a0e9f3a408a1...

1 line
9.3 KiB
JSON

{"remainingRequest":"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\\newsmanagement\\news\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\newsmanagement\\news\\index.vue","mtime":1737610069438},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1740463332762},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":1740463332584},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1740463332762},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":1740463340941}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _interopRequireDefault = require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _defineProperty2 = _interopRequireDefault(require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/defineProperty.js\"));\nvar _paging = _interopRequireDefault(require(\"@/views/Public/paging.vue\"));\nvar _addNewsPop = _interopRequireDefault(require(\"../popup/addNewsPop\"));\nvar _publishNewsPop = _interopRequireDefault(require(\"../popup/publishNewsPop\"));\nvar _getdata = require(\"@/api/getdata\");\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//\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//\nvar _default = exports.default = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({\n components: {\n Paging: _paging.default\n }\n}, \"components\", {\n Paging: _paging.default,\n popup: _addNewsPop.default,\n popup2: _publishNewsPop.default\n}), \"data\", function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n row: {},\n fileList: [],\n validation: false,\n completeTitle: \"删除\",\n nav: \"是否删除?\",\n type: \"\",\n formInline: {\n status: \"\",\n type: \"\"\n },\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n downloadLoading: false,\n tableData: [],\n alertMsg: '',\n //确认弹窗显示信息\n alertMsg1: '',\n //确认弹窗显示信息\n pubAlert: false,\n //发布确认\n delAlert: false,\n //删除确认弹窗\n newsinfo: {\n type: '',\n content: '',\n id: '',\n creator: '',\n choose_person: '',\n role_name: '',\n gmt_created: ''\n },\n //当前选择的活动\n newAlert: false,\n //新增公告弹窗是否显示\n newAlertTitle: '',\n //弹窗title\n newAlert2: false,\n //新增发布公告弹窗是否显示\n newAlertTitle2: '',\n //弹窗title\n isAddNews: 1 //1是新增 2是编辑\n };\n}), \"mounted\", function mounted() {\n this.createLoad();\n if (this.$route.params.index) {\n this.currentChanges(this.$route.params.index);\n } else {\n this.getlist();\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 bs64: function bs64(_bs) {\n var reader = new FileReader();\n reader.readAsDataURL(_bs);\n return new Promise(function (resolve) {\n reader.onload = function (e) {\n resolve(e.target.result);\n };\n });\n },\n // 分页\n currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n this.getlist();\n },\n getlist: function getlist() {\n var _this = this;\n var aa = {\n type: this.formInline.type\n };\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: aa\n };\n (0, _getdata.getNewsList)(Content).then(function (res) {\n // console.log(res,212)\n if (res.returnCode == \"1\") {\n _this.clearLoad();\n _this.tableData = res.returnData.data;\n console.log(_this.tableData);\n // console.log(this.tableData,288)\n // this.tableData.map((item, index) => {\n // this.tableData[index].jg = item.price;\n // });\n _this.page.total = res.returnData.total;\n _this.page.limit = res.returnData.currentPage;\n _this.tableData.id = res.returnData.data.id;\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 //新增活动\n addNews: function addNews() {\n this.newsinfo = {};\n this.newAlert = true;\n this.newAlertTitle = '新增公告';\n this.isAddNews = 1;\n },\n //编辑\n editNews: function editNews(data) {\n this.newsinfo = data;\n this.newAlert = true;\n this.newAlertTitle = '公告编辑';\n this.isAddNews = 2;\n },\n //发布公告\n publishNews: function publishNews(data) {\n this.newsinfo = data;\n if (this.newsinfo.status == 1) {\n this.alertMsg1 = '确认重新发布公告?';\n this.pubAlert = true;\n } else {\n this.newAlert2 = true;\n this.newAlertTitle2 = '发布公告';\n }\n },\n //关闭发布弹窗\n closeNewAlert2: function closeNewAlert2() {\n this.newAlert2 = false;\n },\n //确认发布公告\n surePublish: function surePublish(e) {\n var _this2 = this;\n var params = {\n type: e.type,\n content: e.content,\n choose_person: e.choose_person\n };\n params.id = e.id;\n params.modifier = 'admin';\n (0, _getdata.publishNews)(params).then(function (res) {\n if (res.returnCode == 1) {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.newAlert2 = false;\n _this2.getlist();\n }\n });\n },\n //关闭新增弹窗\n closeNewAlert: function closeNewAlert() {\n this.newAlert = false;\n },\n //确认新增或编辑\n sureAdd: function sureAdd(e) {\n var _this3 = this;\n var params = {\n type: e.type,\n content: e.content\n };\n if (this.isAddNews == 1) {\n params.creator = 'admin';\n (0, _getdata.addNews)(params).then(function (res) {\n if (res.returnCode == 1) {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this3.newAlert = false;\n _this3.page.limit = 1;\n _this3.getlist();\n }\n });\n } else {\n params.id = e.id;\n params.modifier = 'admin';\n (0, _getdata.editNews)(params).then(function (res) {\n if (res.returnCode == 1) {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this3.newAlert = false;\n _this3.getlist();\n }\n });\n }\n },\n //删除\n removeNews: function removeNews(data) {\n this.newsinfo = data;\n this.alertMsg = '确认删除此公告?';\n this.delAlert = true;\n },\n surePub2: function surePub2() {\n this.pubAlert = false;\n this.newAlert2 = true;\n this.newAlertTitle2 = '发布公告';\n },\n sureDel: function sureDel() {\n var _this4 = this;\n var params = {\n id: this.newsinfo.id\n };\n (0, _getdata.delNews)(params).then(function (res) {\n if (res.returnCode == \"1\") {\n _this4.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n console.log(res.returnMsg);\n _this4.delAlert = false;\n _this4.getlist();\n }\n });\n }\n});",null]}