1 line
7.6 KiB
JSON
1 line
7.6 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\\jurisdiction\\holiday\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\jurisdiction\\holiday\\index.vue","mtime":1737610069430},{"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\\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":["\"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 _paging = _interopRequireDefault(require(\"@/views/Public/paging.vue\"));\nvar _getdata = require(\"@/api/getdata\");\nvar _popup = _interopRequireDefault(require(\"@/views/estate/examine/dialog/popup.vue\"));\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 = {\n components: {\n Paging: _paging.default,\n Popup: _popup.default\n },\n data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n row: {},\n addForm: {\n times: \"\",\n isHoliday: \"\"\n },\n rules: {\n isHoliday: [{\n required: true,\n message: \"请选择类型\",\n trigger: \"blur\"\n }],\n times: [{\n required: true,\n message: \"请至少选择一个日期\",\n trigger: \"blur\"\n }]\n },\n dialogTableVisible: false,\n formInline: {\n time: \"\"\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 this.getDate();\n },\n methods: {\n //下拉框必选\n isHaveTo: function isHaveTo() {\n return this.addForm.isHoliday === 'undefined';\n },\n submitForm: function submitForm() {\n var _this = this;\n this.$refs[\"addForm\"].validate(function (valid) {\n if (valid) {\n var Content = {\n times: _this.addForm.times,\n isHoliday: _this.addForm.isHoliday\n };\n console.log(Content, \"----添加\");\n (0, _getdata.addHoliday)(Content).then(function (res) {\n console.log(res, 169);\n if (res.returnCode == \"1\") {\n _this.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this.getDate();\n _this.dialogTableVisible = false;\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 });\n },\n cancal: function cancal() {\n this.dialogTableVisible = false;\n },\n closeDialog: function closeDialog() {\n this.addForm = {};\n this.$refs.addForm.resetFields();\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 add: function add() {\n this.dialogTableVisible = true;\n },\n onSubmit: function onSubmit() {\n this.page.limit = 1;\n this.createLoad();\n this.getDate();\n },\n // 分页\n currentChanges: function currentChanges(val) {\n this.page.limit = val;\n this.createLoad();\n this.getDate();\n },\n /**删除 */delChange: function delChange(id) {\n var _this2 = this;\n this.$alert(\"确认进行删除嘛?\", \"确认\", {\n confirmButtonText: \"确定\",\n callback: function callback(action) {\n if (action == \"confirm\") {\n _this2.createLoad();\n var Content = {\n queryObj: {\n uuid: id\n }\n };\n // console.log(Content, \"---删除\");\n (0, _getdata.delHoliday)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.getDate();\n _this2.dialogTableVisible = false;\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(\"error\");\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n });\n }\n }\n });\n },\n getDate: function getDate() {\n var _this3 = this;\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: {\n applyStartTime: this.formInline.time ? this.formInline.time[0] : \"\",\n applyEndTime: this.formInline.time ? this.formInline.time[1] : \"\"\n }\n };\n // console.log(Content, 777);\n (0, _getdata.holidayList)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.clearLoad();\n // console.log(res, 888);\n _this3.tableData = res.returnData.data;\n _this3.page.total = res.returnData.total;\n _this3.page.limit = res.returnData.currentPage;\n if (_this3.page.total == 0) {\n _this3.$message({\n message: \"当前无数据\",\n type: \"success\"\n });\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n }\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n });\n }\n }\n};",null]} |