hz-zhhq-web/node_modules/.cache/babel-loader/dc5a2164c809e06f5b808aa1295...

1 line
6.6 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\\activity\\activityManagement\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\activity\\activityManagement\\index.vue","mtime":1737610069401},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 Paging from \"@/views/Public/paging.vue\";\nimport popup from \"../popup/newActivityPop\";\nimport { getActivityList, delActivity, addActivity, editActivity } from \"@/api/getdata\";\nexport default {\n data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n formInline: {\n activityName: \"\"\n },\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n tableData: [],\n alertMsg: '',\n //确认弹窗显示信息\n delAlert: false,\n //删除确认弹窗\n activityInfo: {\n activity_name: '',\n description: '',\n id: '',\n start_time1: '',\n end_time1: '',\n start_time2: '',\n end_time2: ''\n },\n //当前选择的活动\n newAlert: false,\n //新增活动弹窗是否显示\n newAlertTitle: '',\n //弹窗title\n isNewActivity: 1 //1是新增 2是编辑\n };\n },\n components: {\n Paging: Paging,\n popup: popup\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 },\n methods: {\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 data = {\n activityName: this.formInline.userName\n };\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: data\n };\n getActivityList(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this.clearLoad();\n _this.tableData = res.returnData.data;\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 //查询活动\n searchActivity: function searchActivity() {\n this.page.limit = 1;\n this.createLoad();\n this.getlist();\n },\n //新增活动\n newActivity: function newActivity() {\n this.activityInfo = {};\n this.newAlert = true;\n this.newAlertTitle = '新增活动';\n this.isNewActivity = 1;\n },\n //编辑\n editActivity: function editActivity(data) {\n this.activityInfo = Object.assign({}, data);\n // this.activityInfo = data;\n this.newAlert = true;\n this.newAlertTitle = '活动编辑';\n this.isNewActivity = 2;\n },\n //关闭新增弹窗\n closeNewAlert: function closeNewAlert() {\n this.newAlert = false;\n },\n //确认新增或编辑\n sureAdd: function sureAdd(e) {\n var _this2 = this;\n console.log(e);\n var params = {\n activityName: e.activity_name,\n startTime1: e.start_time1,\n endTime1: e.end_time1,\n startTime2: e.start_time2,\n endTime2: e.end_time2,\n description: e.description\n };\n if (this.isNewActivity == 1) {\n params.creator = 'admin';\n addActivity(params).then(function (res) {\n if (res.returnCode == 1) {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.newAlert = false;\n _this2.page.limit = 1;\n _this2.getlist();\n }\n });\n } else {\n params.id = e.id;\n params.modifier = 'admin';\n editActivity(params).then(function (res) {\n if (res.returnCode == 1) {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.newAlert = false;\n _this2.getlist();\n }\n });\n }\n },\n //删除\n removeActivity: function removeActivity(data) {\n this.activityInfo = data;\n this.alertMsg = '确认删除此活动?';\n this.delAlert = true;\n },\n sureDel: function sureDel() {\n var _this3 = this;\n var params = {\n id: this.activityInfo.id\n };\n delActivity(params).then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n console.log(res.returnMsg);\n _this3.delAlert = false;\n _this3.getlist();\n }\n });\n }\n }\n};",null]}