diff --git a/public/index.html b/public/index.html index a52c9ca..b48a87c 100644 --- a/public/index.html +++ b/public/index.html @@ -95,10 +95,10 @@ - - - + securityJsCode: 'f653df5a2c5f44ae68faaab6f6a6b8ab' + }; + + + + diff --git a/src/views/question/components/QuestionForm.vue b/src/views/question/components/QuestionForm.vue index a692204..2ec2275 100644 --- a/src/views/question/components/QuestionForm.vue +++ b/src/views/question/components/QuestionForm.vue @@ -5,21 +5,22 @@ - {{ dialogForm.question }} +
{{ dialogForm.question }}
+
- a:{{ dialogForm.chooseA }} - b:{{ dialogForm.chooseB }} - c:{{ dialogForm.chooseC }} - d:{{ dialogForm.chooseD }} - e:{{ dialogForm.chooseE }} - f:{{ dialogForm.chooseF }} - g:{{ dialogForm.chooseG }} - + A:{{ dialogForm.chooseA }} + B:{{ dialogForm.chooseB }} + C:{{ dialogForm.chooseC }} + D:{{ dialogForm.chooseD }} + E:{{ dialogForm.chooseE }} + F:{{ dialogForm.chooseF }} + G:{{ dialogForm.chooseG }} + @@ -99,7 +100,7 @@ - 取消 + 取消 确定 @@ -109,7 +110,7 @@ import { updateQuestion } from '@/api/question'; export default { - data () { + data() { return { visible: false, canSubmit: true, @@ -130,7 +131,7 @@ export default { }; }, methods: { - init (info = undefined) { + init(info = undefined) { // debugger this.visible = true; this.$nextTick(() => { @@ -141,7 +142,7 @@ export default { } }); }, - resetDialogForm () { + resetDialogForm() { this.dialogForm = { questionId: undefined, isVip: 0, @@ -153,16 +154,17 @@ export default { examKeys: undefined }; }, - closeDialog () { + closeDialog() { this.$emit('update:dialogVisible', false); }, // 表单提交 - dialogFormSubmit () { + dialogFormSubmit() { this.$refs.dialogForm.validate((valid) => { if (valid) { updateQuestion(this.dialogForm).then(response => { if (response.code == 200) { this.$modal.msgSuccess('修改成功'); + this.$emit('update'); // this.visible = true; } }); diff --git a/src/views/question/index.vue b/src/views/question/index.vue index 6a459e8..4343f8f 100644 --- a/src/views/question/index.vue +++ b/src/views/question/index.vue @@ -1,6 +1,20 @@ - + + + + + + @@ -477,7 +477,7 @@ export default { if (item.placeId) { return updatePlace(item); } else { - return addPlace(item) + return addPlace(item); } }, checkPlaceFormValidate() { @@ -739,6 +739,7 @@ export default { .actived-school { border: 2px solid #409eff !important; } + ::v-deep .el-radio__label { vertical-align: middle; } diff --git a/src/views/zs/clue/ClueForm/components/MapDialog.vue b/src/views/zs/clue/ClueForm/components/MapDialog.vue index 46ad97c..1ef60e2 100644 --- a/src/views/zs/clue/ClueForm/components/MapDialog.vue +++ b/src/views/zs/clue/ClueForm/components/MapDialog.vue @@ -19,11 +19,12 @@ export default { placeSearch: null, currentPoint: undefined, marker: null, - searchBody: undefined - } + searchBody: undefined, + geocoder: null + }; }, beforeDestroy() { - console.log("mapdialog----beforeDestroy") + console.log('mapdialog----beforeDestroy'); this.marker = null; this.placeSearch = null; @@ -31,23 +32,23 @@ export default { this.dialogMap = null; }, mounted() { - console.log("mounted") - this.initData() + console.log('mounted'); + this.initData(); }, created() { - console.log("created") + console.log('created'); }, methods: { initData(point = undefined) { - console.log(point) - this.visible = true + console.log(point); + this.visible = true; // this.searchBody = undefined this.$nextTick(() => { this.resetData(); if (point) { this.currentPoint = point; } - this.initMap() + this.initMap(); }); }, resetData() { @@ -55,10 +56,10 @@ export default { this.dialogMap && this.marker && this.dialogMap.remove(this.marker); this.marker = null; // this.placeSearch = null; - this.searchBody = null + this.searchBody = null; }, initMap() { - console.log("初始化地图") + console.log('初始化地图'); if (!this.dialogMap) { this.dialogMap = new AMap.Map('dialogMap', { zoom: 12, @@ -78,20 +79,19 @@ export default { }); this.dialogMap.addControl(new AMap.Scale()); const auto = new AMap.Autocomplete({ - input: 'search', // 前端搜索框 - }) + input: 'search' // 前端搜索框 + }); this.placeSearch = new AMap.PlaceSearch({ map: this.dialogMap, pageSize: 10, // 单页显示结果条数 pageIndex: 1, // 页码 - autoFitView: true, // 是否自动调整地图视野使绘制的 Marker点都处于视口的可见范围 - }) - AMap.event.addListener(auto, 'select', this.select) + autoFitView: true // 是否自动调整地图视野使绘制的 Marker点都处于视口的可见范围 + }); + AMap.event.addListener(auto, 'select', this.select); this.geocoder = new AMap.Geocoder(); } this.initMapCenter(); - }, // 初始化编辑地图的中心点 initMapCenter() { @@ -127,7 +127,7 @@ export default { } }); }, - //定位地址 + // 定位地址 regeoCode() { this.geocoder.getAddress( [this.currentPoint.lng, this.currentPoint.lat], @@ -141,11 +141,10 @@ export default { }, handleMapSave() { if (this.currentPoint.lat && this.currentPoint.lng) { - //通知父组件 - this.$emit("handleMapDialogPoint", this.currentPoint); + // 通知父组件 + this.$emit('handleMapDialogPoint', this.currentPoint); this.visible = false; this.$emit('update:mapDialogVisible', false); - } else { this.$message.error('请在地图上选择位置后保存!'); } @@ -153,8 +152,8 @@ export default { closeDialog() { this.$emit('update:mapDialogVisible', false); } - }, -} + } +}; \ No newline at end of file + diff --git a/src/views/zs/clue/components/ClueFormDialog.vue b/src/views/zs/clue/components/ClueFormDialog.vue index 93066a2..61cca40 100644 --- a/src/views/zs/clue/components/ClueFormDialog.vue +++ b/src/views/zs/clue/components/ClueFormDialog.vue @@ -157,7 +157,7 @@ - - - - \ No newline at end of file +} + diff --git a/src/views/zs/sign/index.vue b/src/views/zs/sign/index.vue index 3683e66..2715335 100644 --- a/src/views/zs/sign/index.vue +++ b/src/views/zs/sign/index.vue @@ -29,9 +29,9 @@ -