Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/vue-loader/8891bf6f08b8fd237d52b0a480e6a4ce.json
2024-12-05 09:33:18 +08:00

1 line
4.1 KiB
JSON

{"remainingRequest":"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\\day.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\timing\\components\\day.vue","mtime":1732871026795},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nexport default {\r\n name: 'CrontabDay',\r\n props: ['check', 'cron'],\r\n data() {\r\n return {\r\n radioValue: 1,\r\n workday: 1,\r\n cycle01: 1,\r\n cycle02: 2,\r\n average01: 1,\r\n average02: 1,\r\n checkboxList: [],\r\n checkNum: this.$options.propsData.check\r\n }\r\n },\r\n computed: {\r\n // 计算两个周期值\r\n cycleTotal: function() {\r\n const cycle01 = this.checkNum(this.cycle01, 1, 30)\r\n const cycle02 = this.checkNum(this.cycle02, cycle01 ? cycle01 + 1 : 2, 31, 31)\r\n return cycle01 + '-' + cycle02\r\n },\r\n // 计算平均用到的值\r\n averageTotal: function() {\r\n const average01 = this.checkNum(this.average01, 1, 30)\r\n const average02 = this.checkNum(this.average02, 1, 31 - average01 || 0)\r\n return average01 + '/' + average02\r\n },\r\n // 计算工作日格式\r\n workdayCheck: function() {\r\n const workday = this.checkNum(this.workday, 1, 31)\r\n return workday\r\n },\r\n // 计算勾选的checkbox值合集\r\n checkboxString: function() {\r\n const str = this.checkboxList.join()\r\n return str == '' ? '*' : str\r\n }\r\n },\r\n watch: {\r\n 'radioValue': 'radioChange',\r\n 'cycleTotal': 'cycleChange',\r\n 'averageTotal': 'averageChange',\r\n 'workdayCheck': 'workdayChange',\r\n 'checkboxString': 'checkboxChange'\r\n },\r\n methods: {\r\n // 单选按钮值变化时\r\n radioChange() {\r\n ('day rachange')\r\n if (this.radioValue !== 2 && this.cron.week !== '?') {\r\n this.$emit('update', 'week', '?', 'day')\r\n }\r\n\r\n switch (this.radioValue) {\r\n case 1:\r\n this.$emit('update', 'day', '*')\r\n break\r\n case 2:\r\n this.$emit('update', 'day', '?')\r\n break\r\n case 3:\r\n this.$emit('update', 'day', this.cycleTotal)\r\n break\r\n case 4:\r\n this.$emit('update', 'day', this.averageTotal)\r\n break\r\n case 5:\r\n this.$emit('update', 'day', this.workday + 'W')\r\n break\r\n case 6:\r\n this.$emit('update', 'day', 'L')\r\n break\r\n case 7:\r\n this.$emit('update', 'day', this.checkboxString)\r\n break\r\n }\r\n ('day rachange end')\r\n },\r\n // 周期两个值变化时\r\n cycleChange() {\r\n if (this.radioValue == '3') {\r\n this.$emit('update', 'day', this.cycleTotal)\r\n }\r\n },\r\n // 平均两个值变化时\r\n averageChange() {\r\n if (this.radioValue == '4') {\r\n this.$emit('update', 'day', this.averageTotal)\r\n }\r\n },\r\n // 最近工作日值变化时\r\n workdayChange() {\r\n if (this.radioValue == '5') {\r\n this.$emit('update', 'day', this.workdayCheck + 'W')\r\n }\r\n },\r\n // checkbox值变化时\r\n checkboxChange() {\r\n if (this.radioValue == '7') {\r\n this.$emit('update', 'day', this.checkboxString)\r\n }\r\n }\r\n }\r\n}\r\n",null]}