diff --git a/.history/src/components/AddPolicy_20231108084048.vue b/.history/src/components/AddPolicy_20231108084048.vue new file mode 100644 index 0000000..bf475b9 --- /dev/null +++ b/.history/src/components/AddPolicy_20231108084048.vue @@ -0,0 +1,1080 @@ + + + + + diff --git a/.history/src/components/DataAcquire_20231108084056.vue b/.history/src/components/DataAcquire_20231108084056.vue new file mode 100644 index 0000000..43f738e --- /dev/null +++ b/.history/src/components/DataAcquire_20231108084056.vue @@ -0,0 +1,180 @@ + + + + + + diff --git a/src/App.vue b/src/App.vue index 29b56bf..417d38c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,6 +12,16 @@ export default { data() { return { grade: 0, + DB_IotLite_yx: [], + CHGYWG_yx: [], + CHGYWG_wx: [], + DB_IotLite_wx: [], + CKFWQ_yx: [], + CKFWQ_wx: [], + GYWZ_yx: [], + GYWZ_wx: [], + YDPZYM_wgpz: [], + YDPZYM_wgwh: [], }; }, created() { @@ -25,7 +35,36 @@ export default { let arr = []; arr = data.data; arr.forEach((item) => { - item.answer = JSON.parse(item.answer); + if (item.mark == "DB-IotLite_yx") { + this.DB_IotLite_yx = JSON.parse(item.answer); + } + if (item.mark == "CHGYWG_yx") { + this.CHGYWG_yx = JSON.parse(item.answer); + } + if (item.mark == "CHGYWG_wx") { + this.CHGYWG_wx = JSON.parse(item.answer); + } + if (item.mark == "DB_IotLite_wx") { + this.DB_IotLite_wx = JSON.parse(item.answer); + } + if (item.mark == "CKFWQ_yx") { + this.CKFWQ_yx = JSON.parse(item.answer); + } + if (item.mark == "CKFWQ_wx") { + this.CKFWQ_wx = JSON.parse(item.answer); + } + if (item.mark == "GYWZ_yx") { + this.GYWZ_yx = JSON.parse(item.answer); + } + if (item.mark == "GYWZ_wx") { + this.GYWZ_wx = JSON.parse(item.answer); + } + if (item.mark == "YDPZYM_wgpz") { + this.YDPZYM_wgpz = JSON.parse(item.answer); + } + if (item.mark == "YDPZYM_wgwh") { + this.YDPZYM_wgwh = JSON.parse(item.answer); + } }); }, // console.log(arr); @@ -216,7 +255,7 @@ export default { } .el-dialog__body { - color: #FFFFFF !important; + color: #ffffff !important; background-image: url(./assets/image/bg.png); background-size: 100% 100%; } diff --git a/src/components/AddPolicy.vue b/src/components/AddPolicy.vue index 8a7c924..bf475b9 100644 --- a/src/components/AddPolicy.vue +++ b/src/components/AddPolicy.vue @@ -1,15 +1,34 @@ @@ -255,7 +373,12 @@ @@ -267,14 +390,31 @@
- - + + - + + @@ -282,7 +422,12 @@ - + @@ -301,14 +446,21 @@ - - - + - + @@ -715,7 +867,7 @@ export default { created() { this.GetUserAnswer(); }, - mounted() { }, + mounted() {}, methods: { //保存 @@ -882,7 +1034,7 @@ export default { \ No newline at end of file + diff --git a/src/components/DataAcquisition.vue b/src/components/DataAcquisition.vue index c7c837b..ed5ce8d 100644 --- a/src/components/DataAcquisition.vue +++ b/src/components/DataAcquisition.vue @@ -1,41 +1,85 @@