1 line
3.8 KiB
JSON
1 line
3.8 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\\second.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\timing\\components\\second.vue","mtime":1732871026799},{"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//\nvar _default = exports.default = {\n name: 'CrontabSecond',\n props: ['check', 'radioParent'],\n data: function data() {\n return {\n radioValue: 1,\n cycle01: 1,\n cycle02: 2,\n average01: 0,\n average02: 1,\n checkboxList: [],\n checkNum: this.$options.propsData.check\n };\n },\n computed: {\n // 计算两个周期值\n cycleTotal: function cycleTotal() {\n var cycle01 = this.checkNum(this.cycle01, 0, 58);\n var cycle02 = this.checkNum(this.cycle02, cycle01 ? cycle01 + 1 : 1, 59);\n return cycle01 + '-' + cycle02;\n },\n // 计算平均用到的值\n averageTotal: function averageTotal() {\n var average01 = this.checkNum(this.average01, 0, 58);\n var average02 = this.checkNum(this.average02, 1, 59 - average01 || 0);\n return average01 + '/' + average02;\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 'checkboxString': 'checkboxChange',\n radioParent: function radioParent() {\n this.radioValue = this.radioParent;\n }\n },\n methods: {\n // 单选按钮值变化时\n radioChange: function radioChange() {\n switch (this.radioValue) {\n case 1:\n this.$emit('update', 'second', '*', 'second');\n break;\n case 2:\n this.$emit('update', 'second', this.cycleTotal);\n break;\n case 3:\n this.$emit('update', 'second', this.averageTotal);\n break;\n case 4:\n this.$emit('update', 'second', this.checkboxString);\n break;\n }\n },\n // 周期两个值变化时\n cycleChange: function cycleChange() {\n if (this.radioValue == '2') {\n this.$emit('update', 'second', this.cycleTotal);\n }\n },\n // 平均两个值变化时\n averageChange: function averageChange() {\n if (this.radioValue == '3') {\n this.$emit('update', 'second', this.averageTotal);\n }\n },\n // checkbox值变化时\n checkboxChange: function checkboxChange() {\n if (this.radioValue == '4') {\n this.$emit('update', 'second', this.checkboxString);\n }\n }\n }\n};",null]} |