1 line
3.9 KiB
JSON
1 line
3.9 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\\popup\\newActivityPop.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\activity\\popup\\newActivityPop.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\nimport { truncate } from \"fs\";\nimport { GetChan, setRole } from \"@/api/getdata\";\nexport default {\n props: [\"width\", \"activity\", \"title\", \"type\"],\n data: function data() {\n return {\n dialogVisible: true,\n time1: [this.activity.start_time1 ? this.activity.start_time1 : '', this.activity.end_time1 ? this.activity.end_time1 : ''],\n time2: [this.activity.start_time2 ? this.activity.start_time2 : '', this.activity.end_time2 ? this.activity.end_time2 : ''],\n pickerOptions: {\n disabledDate: function disabledDate(time) {\n // return time.getTime() <= Date.now() - 8.64e7 || time.getTime() > Date.now() + 8.64e7*30;\n return time.getTime() < Date.now() - 8.64e7 || time.getTime() > new Date(new Date().getFullYear(), new Date().getMonth() + 2, \"0\").getTime();\n // return time.getTime() <= Date.now(); //设置选择今天以及今天以前的日期\n //return time.getTime() < Date.now();//设置选择今天之后的日期(不能选择当天时间)\n // return time.getTime() > Date.now()-8.64e7;//设置选择今天之前的日期(不能选择当天)\n }\n }\n };\n },\n mounted: function mounted() {},\n methods: {\n /*关闭弹窗 */handleClose: function handleClose() {\n var _this = this;\n this.dialogVisible = false;\n this.$emit(\"closeNewAlert\");\n setTimeout(function () {\n _this.dialogVisible = true;\n });\n },\n /**提交 */submitForm: function submitForm() {\n if (this.time1[1] > this.time2[0]) {\n this.$message({\n message: '阶段二开始时间应大于阶段一结束时间',\n type: \"warning\"\n });\n return;\n }\n this.activity.start_time1 = this.formatDate(this.time1[0]);\n this.activity.end_time1 = this.formatDate(this.time1[1]);\n this.activity.start_time2 = this.formatDate(this.time2[0]);\n this.activity.end_time2 = this.formatDate(this.time2[1]);\n // console.log(this.activity)\n this.$emit('sure', this.activity);\n },\n formatDate: function formatDate(date) {\n if (!date) {\n return '';\n }\n var oldVal = new Date(date);\n var newVal = '';\n var year = oldVal.getFullYear();\n var mount = oldVal.getMonth() + 1;\n var day = oldVal.getDate();\n var h = oldVal.getHours();\n var m = oldVal.getMinutes();\n var s = oldVal.getSeconds();\n newVal = year + '-' + format(mount) + '-' + format(day) + ' ' + format(h) + ':' + format(m) + ':' + format(s);\n function format(data) {\n return data > 9 ? data : '0' + data;\n }\n return newVal;\n }\n }\n};",null]}
|