This commit is contained in:
刘旋 2023-04-23 17:53:27 +08:00
parent 73493ba319
commit e183745ca3
6 changed files with 43 additions and 43 deletions

View File

@ -4,7 +4,7 @@ import qs from 'qs';
import { Session } from '/@/utils/storage';
// export const moduleName = 'zqq-biz-vordm';
export const moduleName = 'biz-vordm';
export const moduleName = 'glj-biz-vordm';
export const crawlModule = 'vordm-crawl';
// 配置新建一个 axios 实例
const service = axios.create({

View File

@ -14,7 +14,7 @@
</template>
</el-table-column>
<el-table-column prop="disasterKeyword" label="Disaster keyword" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterTime" label="disaster time" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterTime" label="Disaster time" show-overflow-tooltip></el-table-column>
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
<template #default="scope">
<el-button size="small" text type="primary" @click="startBot(scope.row)">start</el-button>
@ -33,45 +33,45 @@
<el-col :span="14">
<div class="system-role-padding layout-padding-auto layout-padding-view">
<div class="system-user-search mb15" style="display: flex;margin-left: 10px;margin-top: 10px;">
<el-form-item label="type" label-width="100px">
<el-form-item label="Type" label-width="100px">
<el-select v-model="state.searchName" placeholder="Please select data type" style="max-width: 200px"
size="default" clearable @change="getTableData(); state.queryTitle = ''">
<el-option value="1" label="news"></el-option>
<el-option value="2" label="socialMedia"></el-option>
<el-option value="1" label="News"></el-option>
<el-option value="2" label="SocialMedia"></el-option>
</el-select>
</el-form-item>
<el-form-item label="stateus" label-width="100px">
<el-form-item label=" Review status" label-width="100px">
<el-select v-model=" state.srarchType " placeholder="Please select data type" style="max-width: 200px"
size="default" clearable>
<el-option value="0" label="No review"></el-option>
<el-option value="1" label="reserve"></el-option>
<el-option value="2" label="not retain"></el-option>
<el-option value="0" label="Not Reviewed"></el-option>
<el-option value="1" label="Reviewed"></el-option>
<el-option value="2" label="Review failed"></el-option>
</el-select>
</el-form-item>
<el-form-item label="title" label-width="100px" v-if=" state.searchName == '1' ">
<el-form-item label="Title" label-width="100px" v-if=" state.searchName == '1' ">
<el-input v-model=" state.queryTitle " placeholder="Please enter a title"></el-input>
</el-form-item>
<el-button size="default" type="primary" class="ml10" @click=" getTableData ">
<el-icon>
<ele-Search />
</el-icon>
search
Search
</el-button>
<el-button size="default" type="success" class="ml10" @click=" openDialog ">
<el-icon>
<ele-Upload />
</el-icon>
review
Batch operation
</el-button>
</div>
<el-table :data=" state.tableData.data " v-loading=" state.tableData.loading "
@selection-change=" handleSelectionChange " style="width: 100%">
<el-table-column type="selection" width="55" />
<el-table-column type="index" label="ID" width="50" />
<el-table-column v-if=" state.searchName == '1' " prop="title" label="title"
<el-table-column v-if=" state.searchName == '1' " prop="title" label="Title"
show-overflow-tooltip></el-table-column>
<el-table-column prop="content" label="content" show-overflow-tooltip></el-table-column>
<el-table-column prop="type" label="type" show-overflow-tooltip>
<el-table-column prop="content" label="Content" show-overflow-tooltip></el-table-column>
<el-table-column prop="type" label="Type" show-overflow-tooltip>
<template #default=" scope ">
<el-tag type="info" v-if=" state.searchName == '1' && scope.row.type == 0 ">baidu(中文)</el-tag>
<el-tag type="info" v-if=" state.searchName == '1' && scope.row.type == 1 ">bing</el-tag>
@ -79,7 +79,7 @@
<el-tag type="info" v-if=" state.searchName == '2' && scope.row.type == 1 ">weibo</el-tag>
</template>
</el-table-column>
<el-table-column prop="content" label="link" show-overflow-tooltip>
<el-table-column prop="content" label="Link" show-overflow-tooltip>
<template #default=" scope ">
<a :href=" scope.row.link " target="_blank">goto link</a>
</template>

View File

@ -8,8 +8,8 @@
highlight-current-row @row-click="tableClick">
<el-table-column type="index" label="ID" width="50" />
<el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterCountry" label="disaster country" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterTime" label="disaster time" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterCountry" label="Disaster country" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterTime" label="Disaster time" show-overflow-tooltip></el-table-column>
</el-table>
<el-pagination @size-change="onHandleDisasterSizeChange" @current-change="onHandleDisasterCurrentChange"
class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
@ -22,7 +22,7 @@
<el-col :span="14">
<div class="system-role-padding layout-padding-auto layout-padding-view">
<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>
<el-option value="0" label="basic data"></el-option>
<el-option value="1" label="responded report"></el-option>
@ -32,26 +32,26 @@
<el-icon>
<ele-Search />
</el-icon>
search
Search
</el-button>
<el-button size="default" type="success" class="ml10" @click="uploadData">
<el-icon>
<ele-Upload />
</el-icon>
upload
Add
</el-button>
<el-button size="default" type="danger" class="ml10" @click="batchDel">
<el-icon>
<ele-Delete />
</el-icon>
batch delete
Delete
</el-button>
</div>
<el-table :data="state.tableData.data" v-loading="state.tableData.loading"
@selection-change="handleSelectionChange" style="width: 100%">
<el-table-column type="selection" width="55" />
<el-table-column type="index" label="ID" width="50" />
<el-table-column prop="uploaderName" label="uploader Name" show-overflow-tooltip></el-table-column>
<el-table-column prop="uploaderName" label="Uploader name" show-overflow-tooltip></el-table-column>
<el-table-column prop="sourceOrganization" label="Organization" show-overflow-tooltip></el-table-column>
<el-table-column prop="title" label="Professional title" show-overflow-tooltip
width="150"></el-table-column>

View File

@ -8,8 +8,8 @@
highlight-current-row @row-click="tableClick">
<el-table-column type="index" label="ID" width="50" />
<el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterCountry" label="disaster country" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterTime" label="disaster time" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterCountry" label="Disaster country" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterTime" label="Disaster time" show-overflow-tooltip></el-table-column>
</el-table>
<el-pagination @size-change="onHandleDisasterSizeChange" @current-change="onHandleDisasterCurrentChange"
class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
@ -34,13 +34,13 @@
<el-icon>
<ele-Upload />
</el-icon>
upload
Upload
</el-button>
<el-button size="default" type="danger" class="ml10" @click="batchDel">
<el-icon>
<ele-Delete />
</el-icon>
batch delete
Batch delete
</el-button>
</div>
@ -48,12 +48,12 @@
@selection-change="handleSelectionChange" style="width: 100%">
<el-table-column type="selection" width="55" />
<el-table-column type="index" label="ID" width="50" />
<el-table-column prop="name" label="name" show-overflow-tooltip>
<el-table-column prop="name" label="Name" show-overflow-tooltip>
<template #default="scope">
{{ formatName(scope.row.name) }}
</template>
</el-table-column>
<el-table-column prop="link" label="image" show-overflow-tooltip>
<el-table-column prop="link" label="Image" show-overflow-tooltip>
<template #default="scope">
<el-popover trigger="hover" placement="right" popper-class="max-h-300px overflow-auto" :width="330">
<!-- table中原本显示的图片 -->

View File

@ -16,10 +16,10 @@
label="Disaster type"
show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterCountry"
label="disaster country"
label="Disaster country"
show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterTime"
label="disaster time"
label="Disaster time"
show-overflow-tooltip></el-table-column>
</el-table>
<el-pagination @size-change="onHandleDisasterSizeChange"

View File

@ -8,8 +8,8 @@
highlight-current-row @row-click="tableClick">
<el-table-column type="index" label="ID" width="50" />
<el-table-column prop="disasterType" label="Disaster type" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterCountry" label="disaster country" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterTime" label="disaster time" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterCountry" label="Disaster country" show-overflow-tooltip></el-table-column>
<el-table-column prop="disasterTime" label="Disaster time" show-overflow-tooltip></el-table-column>
</el-table>
<el-pagination @size-change="onHandleDisasterSizeChange" @current-change="onHandleDisasterCurrentChange"
class="mt15" :pager-count="3" :page-sizes="[10, 20, 30]"
@ -34,24 +34,24 @@
<el-icon>
<ele-Upload />
</el-icon>
upload
Upload
</el-button>
<el-button size="default" type="danger" class="ml10" @click="batchDel">
<el-icon>
<ele-Delete />
</el-icon>
batch delete
Batch delete
</el-button>
</div>
<el-tabs v-model="activeName" class="demo-tabs" @tab-change="handleClick" type="card">
<el-tab-pane label="wordclouds" name="first">
<el-tab-pane label="Word cloud" name="first">
<el-table :data="state.tableData.data" v-loading="state.tableData.loading"
@selection-change="handleSelectionChange" style="width: 100%">
<el-table-column type="selection" width="55" />
<el-table-column type="index" label="ID" width="50" />
<el-table-column prop="date" label="date" show-overflow-tooltip></el-table-column>
<el-table-column prop="frequency" label="frequency" show-overflow-tooltip></el-table-column>
<el-table-column prop="word" label="word" show-overflow-tooltip></el-table-column>
<el-table-column prop="date" label="Time" show-overflow-tooltip></el-table-column>
<el-table-column prop="frequency" label="Frequency" show-overflow-tooltip></el-table-column>
<el-table-column prop="word" label="Words" show-overflow-tooltip></el-table-column>
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
<template #default="scope">
<el-button size="small" text type="primary" @click="editWordCloud(scope.row)">Edit</el-button>
@ -65,14 +65,14 @@
layout="total, sizes, prev, pager, next" :total="state.tableData.total">
</el-pagination>
</el-tab-pane>
<el-tab-pane label="hotspot" name="second">
<el-tab-pane label="Hotspot area" name="second">
<el-table :data="state.tableData.data" v-loading="state.tableData.loading"
@selection-change="handleSelectionHotspotChange" style="width: 100%">
<el-table-column type="selection" width="55" />
<el-table-column type="index" label="ID" width="50" />
<el-table-column prop="areaCn" label="area cn" show-overflow-tooltip></el-table-column>
<el-table-column prop="areaEn" label="area en" show-overflow-tooltip></el-table-column>
<el-table-column prop="frequency" label="frequency" show-overflow-tooltip></el-table-column>
<el-table-column prop="areaCn" label="Area cn" show-overflow-tooltip></el-table-column>
<el-table-column prop="areaEn" label="Area en" show-overflow-tooltip></el-table-column>
<el-table-column prop="frequency" label="Frequency" show-overflow-tooltip></el-table-column>
<el-table-column prop="Operate" label="Operate" show-overflow-tooltip>
<template #default="scope">
<el-button size="small" text type="primary" @click="editHotspot(scope.row)">Edit</el-button>