Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/babel-loader/3e8f88318b51263e4ff51ed06a0b0053.json
2024-12-05 09:33:18 +08:00

1 line
4.9 KiB
JSON

{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\timing\\components\\week.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\timing\\components\\week.vue","mtime":1732871026803},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\babel.config.js","mtime":1732871025888},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 name: 'CrontabWeek',\n props: ['check', 'cron'],\n data: function data() {\n return {\n radioValue: 2,\n weekday: 2,\n cycle01: 2,\n cycle02: 3,\n average01: 1,\n average02: 2,\n checkboxList: [],\n weekList: [{\n key: 2,\n value: '星期一'\n }, {\n key: 3,\n value: '星期二'\n }, {\n key: 4,\n value: '星期三'\n }, {\n key: 5,\n value: '星期四'\n }, {\n key: 6,\n value: '星期五'\n }, {\n key: 7,\n value: '星期六'\n }, {\n key: 1,\n value: '星期日'\n }],\n checkNum: this.$options.propsData.check\n };\n },\n computed: {\n // 计算两个周期值\n cycleTotal: function cycleTotal() {\n this.cycle01 = this.checkNum(this.cycle01, 1, 7);\n this.cycle02 = this.checkNum(this.cycle02, 1, 7);\n return this.cycle01 + '-' + this.cycle02;\n },\n // 计算平均用到的值\n averageTotal: function averageTotal() {\n this.average01 = this.checkNum(this.average01, 1, 4);\n this.average02 = this.checkNum(this.average02, 1, 7);\n return this.average02 + '#' + this.average01;\n },\n // 最近的工作日(格式)\n weekdayCheck: function weekdayCheck() {\n this.weekday = this.checkNum(this.weekday, 1, 7);\n return this.weekday;\n },\n // 计算勾选的checkbox值合集\n checkboxString: function checkboxString() {\n var str = this.checkboxList.join();\n return str == '' ? '*' : str;\n }\n },\n watch: {\n 'radioValue': 'radioChange',\n 'cycleTotal': 'cycleChange',\n 'averageTotal': 'averageChange',\n 'weekdayCheck': 'weekdayChange',\n 'checkboxString': 'checkboxChange'\n },\n methods: {\n // 单选按钮值变化时\n radioChange: function radioChange() {\n if (this.radioValue !== 2 && this.cron.day !== '?') {\n this.$emit('update', 'day', '?', 'week');\n }\n switch (this.radioValue) {\n case 1:\n this.$emit('update', 'week', '*');\n break;\n case 2:\n this.$emit('update', 'week', '?');\n break;\n case 3:\n this.$emit('update', 'week', this.cycleTotal);\n break;\n case 4:\n this.$emit('update', 'week', this.averageTotal);\n break;\n case 5:\n this.$emit('update', 'week', this.weekdayCheck + 'L');\n break;\n case 6:\n this.$emit('update', 'week', this.checkboxString);\n break;\n }\n },\n // 周期两个值变化时\n cycleChange: function cycleChange() {\n if (this.radioValue == '3') {\n this.$emit('update', 'week', this.cycleTotal);\n }\n },\n // 平均两个值变化时\n averageChange: function averageChange() {\n if (this.radioValue == '4') {\n this.$emit('update', 'week', this.averageTotal);\n }\n },\n // 最近工作日值变化时\n weekdayChange: function weekdayChange() {\n if (this.radioValue == '5') {\n this.$emit('update', 'week', this.weekday + 'L');\n }\n },\n // checkbox值变化时\n checkboxChange: function checkboxChange() {\n if (this.radioValue == '6') {\n this.$emit('update', 'week', this.checkboxString);\n }\n }\n }\n};",null]}