From 3ac4f2c9343626e4755cdfdcb8cfd8a25a554408 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Thu, 27 Jul 2023 14:28:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/adddeviceDialog.vue | 8 +- .../components/setdevicebak.vue | 386 ------------------ src/views/devicePhotoSchedule/index copy.vue | 280 +++++++++++++ vue.config.js | 6 +- 4 files changed, 288 insertions(+), 392 deletions(-) delete mode 100644 src/views/devicePhotoSchedule/components/setdevicebak.vue create mode 100644 src/views/devicePhotoSchedule/index copy.vue diff --git a/src/views/devicePhotoSchedule/components/adddeviceDialog.vue b/src/views/devicePhotoSchedule/components/adddeviceDialog.vue index 717a4e4..e9fc558 100644 --- a/src/views/devicePhotoSchedule/components/adddeviceDialog.vue +++ b/src/views/devicePhotoSchedule/components/adddeviceDialog.vue @@ -35,7 +35,7 @@ start-placeholder="开始时间" end-placeholder="结束时间" format="HH:mm" - value-format="HH:mm:ss" + value-format="HH:mm" > @@ -93,8 +93,9 @@ export default { name: "", list: [ { - time: "", - span: "", + hour: "", + minute: "", + preset: "", }, ], remark: "", @@ -136,6 +137,7 @@ export default { if (valid) { // delete this.ruleForm.time; this.ruleForm.list.forEach((val) => { + console.log(val); this.$set(val, "startTime", val.time[0]); this.$set(val, "endTime", val.time[1]); }); diff --git a/src/views/devicePhotoSchedule/components/setdevicebak.vue b/src/views/devicePhotoSchedule/components/setdevicebak.vue deleted file mode 100644 index d3255b3..0000000 --- a/src/views/devicePhotoSchedule/components/setdevicebak.vue +++ /dev/null @@ -1,386 +0,0 @@ - - - diff --git a/src/views/devicePhotoSchedule/index copy.vue b/src/views/devicePhotoSchedule/index copy.vue new file mode 100644 index 0000000..40c3a2c --- /dev/null +++ b/src/views/devicePhotoSchedule/index copy.vue @@ -0,0 +1,280 @@ + + + diff --git a/vue.config.js b/vue.config.js index 2d81f4c..040028d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -29,11 +29,11 @@ module.exports = defineConfig({ proxy: { "/api": { //表示拦截以/api开头的请求路径 - //target: "http://47.96.238.157:8093", //阿里云服务器环境 - target: "http://180.166.218.222:40080", //dell + target: "http://47.96.238.157:8093", //阿里云服务器环境 + //target: "http://180.166.218.222:40080", //dell changOrigin: true, //是否开启跨域 pathRewrite: { - "^/api": "/api", //重写api,把api变成空字符,因为我们真正请求的路径是没有api的 + "^/api": "", //重写api,把api变成空字符,因为我们真正请求的路径是没有api的 }, }, },