fix bug
This commit is contained in:
@@ -110,6 +110,15 @@
|
||||
@input="value => normalizeIntegerInput('deductPoints', value)"
|
||||
/>
|
||||
</template>
|
||||
<template #location-form>
|
||||
<el-input
|
||||
v-model="form.location"
|
||||
:disabled="boxType === 'view'"
|
||||
readonly
|
||||
placeholder="点击地图选址"
|
||||
@click="openLocationMapPicker"
|
||||
/>
|
||||
</template>
|
||||
<template #processStatus="{ row }">
|
||||
<span :class="row.processStatus === '未处理' ? 'violation-record-page__danger' : ''">
|
||||
{{ row.processStatus }}
|
||||
@@ -152,6 +161,11 @@
|
||||
</template>
|
||||
</avue-form>
|
||||
</el-dialog>
|
||||
<address-map-picker
|
||||
v-model="locationMapPickerVisible"
|
||||
:address="form.location"
|
||||
@confirm="handleLocationMapConfirm"
|
||||
/>
|
||||
</basic-container>
|
||||
</template>
|
||||
|
||||
@@ -167,6 +181,7 @@ import { downloadXls } from '@/utils/util';
|
||||
import { openImportDialog } from '@/utils/import-excel';
|
||||
import { getToken } from '@/utils/auth';
|
||||
import { normalizeSearchRangeParams } from '@/utils/search-range';
|
||||
import AddressMapPicker from '@/components/address-map-picker/main.vue';
|
||||
import { mapGetters } from 'vuex';
|
||||
import { excelOption, option } from '@/option/vehicle/violation-record';
|
||||
import NProgress from 'nprogress';
|
||||
@@ -177,12 +192,16 @@ const createTimeRangeMap = {
|
||||
};
|
||||
|
||||
export default {
|
||||
components: {
|
||||
AddressMapPicker,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
form: {},
|
||||
query: {},
|
||||
loading: true,
|
||||
excelBox: false,
|
||||
locationMapPickerVisible: false,
|
||||
excelForm: {},
|
||||
isDetailLoading: false,
|
||||
option,
|
||||
@@ -242,6 +261,14 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
openLocationMapPicker() {
|
||||
if (this.boxType !== 'view') {
|
||||
this.locationMapPickerVisible = true;
|
||||
}
|
||||
},
|
||||
handleLocationMapConfirm(address) {
|
||||
this.form.location = address;
|
||||
},
|
||||
hasPermission(code) {
|
||||
return this.isAdmin || this.validData(this.permission[code], false);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user