glj-代码提交

This commit is contained in:
glj 2023-05-11 09:54:05 +08:00
parent a2d1305482
commit a045db3263
10 changed files with 47 additions and 24 deletions

View File

@ -2,13 +2,21 @@
<el-dialog title="edit" v-model="state.isShowDialog" width="550px"> <el-dialog title="edit" v-model="state.isShowDialog" width="550px">
<el-form :model="state.ruleForm" size="default" label-width="150px" :rules="rules" ref="adminAddFormRef"> <el-form :model="state.ruleForm" size="default" label-width="150px" :rules="rules" ref="adminAddFormRef">
<el-form-item prop="title" label="name"> <el-form-item prop="title" label="name">
<el-input v-model="state.ruleForm.title" class="m-2" placeholder="please enter name" :rows="3" type="text" <el-select v-model="state.ruleForm.title" class="m-2" placeholder="please enter name">
style="width:220px;" /> <el-option label="GDACS" value="GDACS"></el-option>
<el-option label="Charter" value="Charter"></el-option>
<el-option label="USGS" value="USGS"></el-option>
<el-option label="INGV" value="INGV"></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item prop="link" label="link"> <el-form-item prop="link" label="link">
<el-input v-model="state.ruleForm.link" class="m-2" placeholder="please enter link" :rows="3" type="text" <el-input v-model="state.ruleForm.link" class="m-2" placeholder="please enter link" :rows="3" type="text"
style="width:220px;" /> style="width:220px;" />
</el-form-item> </el-form-item>
<el-form-item prop="websiteId" label="websiteid">
<el-input v-model="state.ruleForm.websiteId" class="m-2" placeholder="please enter websiteid" :rows="3" type="text"
style="width:220px;" />
</el-form-item>
</el-form> </el-form>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
@ -36,11 +44,14 @@ const state = reactive({
// //
const rules = reactive({ const rules = reactive({
title: [ title: [
{ required: true, message: 'please enter name', trigger: 'blur' } { required: true, message: 'please enter name', trigger: 'change' }
], ],
link: [ link: [
{ required: true, message: 'please enter link', trigger: 'blur' } { required: true, message: 'please enter link', trigger: 'blur' }
], ],
websiteId: [
{ required: true, message: 'please enter websiteid', trigger: 'blur' }
],
}) })
// //
@ -55,6 +66,7 @@ const openDialog = (row) => {
getWebsitesById(row.id).then(da=>{ getWebsitesById(row.id).then(da=>{
state.ruleForm.title = da.title; state.ruleForm.title = da.title;
state.ruleForm.link = da.link; state.ruleForm.link = da.link;
state.ruleForm.websiteId = da.websiteId;
}) })
}; };
// //

View File

@ -1,14 +1,22 @@
<template> <template>
<el-dialog title="upload" v-model="state.isShowDialog" width="700px"> <el-dialog title="upload" v-model="state.isShowDialog" width="550px">
<el-form :model="state.ruleForm" size="default" label-width="150px" :rules="rules" ref="adminAddFormRef"> <el-form :model="state.ruleForm" size="default" label-width="150px" :rules="rules" ref="adminAddFormRef">
<el-form-item prop="title" label="name"> <el-form-item prop="title" label="name">
<el-input v-model="state.ruleForm.title" class="m-2" placeholder="please enter name" :rows="3" type="text" <el-select v-model="state.ruleForm.title" class="m-2" placeholder="please enter name">
style="width:220px;" /> <el-option label="GDACS" value="GDACS"></el-option>
<el-option label="Charter" value="Charter"></el-option>
<el-option label="USGS" value="USGS"></el-option>
<el-option label="INGV" value="INGV"></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item prop="link" label="link"> <el-form-item prop="link" label="link">
<el-input v-model="state.ruleForm.link" class="m-2" placeholder="please enter link" :rows="3" type="text" <el-input v-model="state.ruleForm.link" class="m-2" placeholder="please enter link" :rows="3" type="text"
style="width:220px;" /> style="width:220px;" />
</el-form-item> </el-form-item>
<el-form-item prop="websiteId" label="websiteid">
<el-input v-model="state.ruleForm.websiteId" class="m-2" placeholder="please enter websiteid" :rows="3" type="text"
style="width:220px;" />
</el-form-item>
</el-form> </el-form>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
@ -37,11 +45,14 @@ const state = reactive({
// //
const rules = reactive({ const rules = reactive({
title: [ title: [
{ required: true, message: 'please enter name', trigger: 'blur' } { required: true, message: 'please enter name', trigger: 'change' }
], ],
link: [ link: [
{ required: true, message: 'please enter link', trigger: 'blur' } { required: true, message: 'please enter link', trigger: 'blur' }
], ],
websiteId: [
{ required: true, message: 'please enter websiteid', trigger: 'blur' }
],
}) })
// //

View File

@ -3,12 +3,12 @@
<el-config-provider :locale="en"> <el-config-provider :locale="en">
<el-row :gutter="22"> <el-row :gutter="22">
<el-col :span="10"> <el-col :span="10">
<div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 90vh;"> <div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 85vh;">
<disasterTable @childClick="tableClick"></disasterTable> <disasterTable @childClick="tableClick"></disasterTable>
</div> </div>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 90vh;"> <div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 85vh;">
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;"> <div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
<el-button size="default" type="success" class="ml10" @click="uploadData"> <el-button size="default" type="success" class="ml10" @click="uploadData">
<el-icon> <el-icon>

View File

@ -159,14 +159,14 @@ const openDialog = (row) => {
state.bing = {}; state.bing = {};
state.data = row; state.data = row;
state.baidu.keywords = row.disasterKeyword; state.baidu.keywords = row.disasterKeyword;
state.baidu.disaster_id = row.id state.baidu.disaster_id = row.disasterId
state.bing.keywords = row.disasterKeyword; state.bing.keywords = row.disasterKeyword;
state.bing.disaster_id = row.id state.bing.disaster_id = row.disasterId
getDate(); getDate();
state.isShowDialog = true; state.isShowDialog = true;
} }
const getDate = () => { const getDate = () => {
getList(1, 10, { disasterId: state.data.id }).then(res => { getList(1, 10, { disasterId: state.data.disasterId }).then(res => {
let data = res.records; let data = res.records;
for (let index = 0; index < data.length; index++) { for (let index = 0; index < data.length; index++) {
const element = data[index]; const element = data[index];
@ -212,7 +212,7 @@ const start = (text) => {
type: text == 'baidu' ? 2 : 1, type: text == 'baidu' ? 2 : 1,
manageId: userInfo.userInfos.id, manageId: userInfo.userInfos.id,
status: 0, status: 0,
disasterId: state.data.id, disasterId: state.data.disasterId,
keywords: keywords, keywords: keywords,
id: (id ? id : null) id: (id ? id : null)
} }

View File

@ -16,7 +16,7 @@
</div> </div>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 90vh;"> <div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 85vh;">
<div class="system-user-search " <div class="system-user-search "
style="display: flex;margin-left: 10px;margin-top: 10px;margin-bottom:-15px "> style="display: flex;margin-left: 10px;margin-top: 10px;margin-bottom:-15px ">
<el-form-item label="Type"> <el-form-item label="Type">

View File

@ -3,12 +3,12 @@
<el-config-provider :locale="en"> <el-config-provider :locale="en">
<el-row :gutter="22"> <el-row :gutter="22">
<el-col :span="10"> <el-col :span="10">
<div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 90vh;"> <div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 85vh;">
<disasterTable @childClick="tableClick"></disasterTable> <disasterTable @childClick="tableClick"></disasterTable>
</div> </div>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 90vh;"> <div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 85vh;">
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;"> <div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
<el-select v-model="state.searchName" placeholder="Please select data type" style="max-width: 200px" <el-select v-model="state.searchName" placeholder="Please select data type" style="max-width: 200px"
size="default" clearable> size="default" clearable>

View File

@ -3,12 +3,12 @@
<el-config-provider :locale="en"> <el-config-provider :locale="en">
<el-row :gutter="22"> <el-row :gutter="22">
<el-col :span="10"> <el-col :span="10">
<div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 90vh;"> <div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 85vh;">
<disasterTable @childClick="tableClick"></disasterTable> <disasterTable @childClick="tableClick"></disasterTable>
</div> </div>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 90vh;"> <div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 85vh;">
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;"> <div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
<!-- <el-input size="default" placeholder="please enter username" style="max-width: 180px" v-model="state.searchName" <!-- <el-input size="default" placeholder="please enter username" style="max-width: 180px" v-model="state.searchName"
clearable></el-input> clearable></el-input>

View File

@ -2,7 +2,7 @@
<div> <div>
<el-row :gutter="22"> <el-row :gutter="22">
<el-col :span="10"> <el-col :span="10">
<div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 80vh;"> <div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 85vh;">
<disasterTable @childClick="tableClick"> <disasterTable @childClick="tableClick">
<el-table-column prop="Operate" label="Operate" width="85" show-overflow-tooltip> <el-table-column prop="Operate" label="Operate" width="85" show-overflow-tooltip>
@ -15,7 +15,7 @@
</div> </div>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<div class="system-role-padding layout-padding-auto layout-padding-view" style="height:80vh;"> <div class="system-role-padding layout-padding-auto layout-padding-view" style="height:85vh;">
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;"> <div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
<!-- 选择灾害类型 --> <!-- 选择灾害类型 -->
<el-row> <el-row>

View File

@ -3,12 +3,12 @@
<el-config-provider :locale="en"> <el-config-provider :locale="en">
<el-row :gutter="22"> <el-row :gutter="22">
<el-col :span="10"> <el-col :span="10">
<div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 90vh;"> <div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 85vh;">
<disasterTable @childClick="tableClick"></disasterTable> <disasterTable @childClick="tableClick"></disasterTable>
</div> </div>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 90vh;"> <div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 85vh;">
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;"> <div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
<!-- <el-input size="default" placeholder="please enter username" style="max-width: 180px" v-model="state.searchName" <!-- <el-input size="default" placeholder="please enter username" style="max-width: 180px" v-model="state.searchName"
clearable></el-input> clearable></el-input>

View File

@ -3,12 +3,12 @@
<el-config-provider :locale="en"> <el-config-provider :locale="en">
<el-row :gutter="22"> <el-row :gutter="22">
<el-col :span="10"> <el-col :span="10">
<div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 90vh;"> <div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 85vh;">
<disasterTable @childClick="tableClick"></disasterTable> <disasterTable @childClick="tableClick"></disasterTable>
</div> </div>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<div class="system-role-padding layout-padding-auto layout-padding-view"> <div class="system-role-padding layout-padding-auto layout-padding-view" style="height: 85vh;">
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;"> <div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
<el-button size="default" type="primary" class="ml10" @click="batchAudit"> <el-button size="default" type="primary" class="ml10" @click="batchAudit">
<el-icon> <el-icon>