glj-代码提交

This commit is contained in:
glj 2023-05-05 09:28:06 +08:00
parent c81befc92e
commit 129b6cd5ac
3 changed files with 29 additions and 24 deletions

View File

@ -52,7 +52,8 @@ const props = defineProps({
const state = reactive({
//
search: {
respondStatus: props.status
respondStatus: props.status,
disasterStatus:"3"
},
//
dictList: [],

View File

@ -72,7 +72,7 @@
<el-table-column prop="createTime" label="Create Time" show-overflow-tooltip sortable></el-table-column>
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
<template #default=" scope ">
<el-button size="small" text type="info" v-if=" scope.row.status == 0 "
<el-button size="small" text type="primary" v-if=" scope.row.status == 0 "
@click=" openDialog(scope.row, true)" >Awaiting approval</el-button>
<el-button size="small" text type="success" v-if=" scope.row.status == 1 "
@click=" openDialog(scope.row, false) " >Approved</el-button>

View File

@ -145,7 +145,7 @@
</el-tab-pane>
</el-tabs>
</div>
<el-dialog v-model="state.dialogVisible" title="Approval" width="35%">
<el-dialog v-model="state.dialogVisible" title="Approval" width="45%">
<el-container style="margin-top: -2%;margin-bottom: 2%;">
<el-radio v-model="state.radio" label='1' @click="mapEvents('1')">Point</el-radio>
<el-radio v-model="state.radio" label='2' @click="mapEvents('2')">Area</el-radio>
@ -161,23 +161,27 @@
</el-container>
<MapPage style="height:350px ; width:100% ;margin-bottom: 10px;" ref="mapRef"></MapPage>
<el-form :inline="true" :model="formInline" class="demo-form-inline">
<el-form-item label="Disaster Time">
<el-date-picker v-model="state.edit.disasterTime" type="date" value-format="YYYY-MM-DD"
<el-date-picker style="width: 200px;" v-model="state.edit.disasterTime" type="date" value-format="YYYY-MM-DD"
placeholder="Select date and time" />
</el-form-item>
<el-form-item label="Disaster type">
<el-select class="form-select" size="default" clearable placeholder="Disaster Type"
<el-select style="width: 200px; height: 40px;" class="form-select" size="default" clearable placeholder="Disaster Type"
v-model="state.edit.disasterType">
<el-option v-for="(item, index) in state.dictList" :value="item.dictKey" :key="index"
:label="item.dictValue" />
</el-select>
</el-form-item>
<el-form-item label="Disaster country">
<el-input v-model="state.edit.disasterCountry" placeholder="please Disaster country" clearable></el-input>
<el-input style="width: 200px;" v-model="state.edit.disasterCountry" placeholder="please Disaster country" clearable></el-input>
</el-form-item>
<el-form-item label="Theme keywords">
<el-input v-model="state.edit.disasterKeyword" placeholder="please Theme keywords" clearable></el-input>
<el-input style="width: 200px;" v-model="state.edit.disasterKeyword" placeholder="please Theme keywords" clearable></el-input>
</el-form-item>
</el-form>
<template #footer>
<span class="dialog-footer">
<el-button @click="dialogVisible = false">Cancel</el-button>