glj-代码提交
This commit is contained in:
parent
c81befc92e
commit
129b6cd5ac
|
@ -52,7 +52,8 @@ const props = defineProps({
|
|||
const state = reactive({
|
||||
//查询参数
|
||||
search: {
|
||||
respondStatus: props.status
|
||||
respondStatus: props.status,
|
||||
disasterStatus:"3"
|
||||
},
|
||||
//灾害类型字典项
|
||||
dictList: [],
|
||||
|
|
|
@ -72,10 +72,10 @@
|
|||
<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 "
|
||||
@click=" openDialog(scope.row, true) ">Awaiting approval</el-button>
|
||||
<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>
|
||||
@click=" openDialog(scope.row, false) " >Approved</el-button>
|
||||
<el-button size="small" text type="danger" v-if=" scope.row.status == 2 "
|
||||
@click=" openDialog(scope.row, false) ">Rejected</el-button>
|
||||
</template>
|
||||
|
@ -95,7 +95,7 @@
|
|||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button @click=" state.dialogVisible = false ">Cancel</el-button>
|
||||
<el-button type=" primary" @click=" reviews(1) ">
|
||||
<el-button type="primary" @click=" reviews(1) ">
|
||||
reserve
|
||||
</el-button>
|
||||
<el-button type="danger" @click=" reviews(2) ">
|
||||
|
|
|
@ -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-item label="Disaster Time">
|
||||
<el-date-picker 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"
|
||||
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-form-item>
|
||||
<el-form-item label="Theme keywords">
|
||||
<el-input v-model="state.edit.disasterKeyword" placeholder="please Theme keywords" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form :inline="true" :model="formInline" class="demo-form-inline">
|
||||
<el-form-item label="Disaster Time">
|
||||
<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 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 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 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>
|
||||
|
@ -200,7 +204,7 @@ import en from 'element-plus/dist/locale/en.mjs'
|
|||
import { reactive, onMounted, ref, nextTick, watchEffect, defineAsyncComponent } from 'vue';
|
||||
import { ElMessageBox, ElMessage } from 'element-plus';
|
||||
import { getList, review, responseEndedDisasterInfo } from '/@/api/disasterInfo/index';
|
||||
import { getDictionary,getList as getListNew } from '/@/api/system/dictbiz';
|
||||
import { getDictionary, getList as getListNew } from '/@/api/system/dictbiz';
|
||||
import { useVariableStore } from '/@/stores/index.ts'
|
||||
//引入地图
|
||||
import Map from '/@/components/Map.vue';
|
||||
|
|
Loading…
Reference in New Issue