共享数据修复

Lvtianfang
许宏杰 2 years ago
parent 977eb062ca
commit eb9d78b5cb

@ -353,7 +353,7 @@ import {
} from "@/api/zongzhi/netManage/enterpriseMl/index.js"; } from "@/api/zongzhi/netManage/enterpriseMl/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Enterprise", name: "Enterprise",
// //

@ -316,7 +316,7 @@ import {
} from "@/api/zongzhi/netManage/netPlatform/index.js"; } from "@/api/zongzhi/netManage/netPlatform/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Pingtai", name: "Pingtai",
// //

@ -389,7 +389,7 @@ import {
} from "@/api/zongzhi/netManage/netReport/index.js"; } from "@/api/zongzhi/netManage/netReport/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Report", name: "Report",
// //

@ -327,7 +327,7 @@ import {
} from "@/api/zongzhi/netManage/qlzx/index.js"; } from "@/api/zongzhi/netManage/qlzx/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Zhuanxiang", name: "Zhuanxiang",
// //

@ -77,7 +77,7 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="区域id" align="center" prop="areaId"> <el-table-column label="区域" align="center" prop="areaId">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.areaId | filterTown }} {{ scope.row.areaId | filterTown }}
</template> </template>
@ -149,7 +149,7 @@
label-width="auto" label-width="auto"
class="dialog-from" class="dialog-from"
> >
<el-form-item label="区域id" prop="areaId"> <el-form-item label="区域" prop="areaId">
<el-cascader <el-cascader
v-model="form.areaId" v-model="form.areaId"
:options="townList" :options="townList"
@ -204,7 +204,7 @@
border border
labelClassName="desLable" labelClassName="desLable"
> >
<el-descriptions-item label="区域id">{{ <el-descriptions-item label="区域">{{
form.areaId form.areaId
}}</el-descriptions-item> }}</el-descriptions-item>

@ -289,7 +289,7 @@ import {
} from "@/api/zongzhi/netManage/supervise/index.js"; } from "@/api/zongzhi/netManage/supervise/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Domain", name: "Domain",
// //

@ -204,10 +204,7 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="动态名称" prop="name"> <el-form-item label="动态名称" prop="name">
<el-input <el-input v-model="form.name" placeholder="请输入动态名称" />
v-model="form.name"
placeholder="请输入动态名称"
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -278,7 +275,7 @@ import {
} from "@/api/zongzhi/netManage/workDynamic/index.js"; } from "@/api/zongzhi/netManage/workDynamic/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Dongtai", name: "Dongtai",
// //

@ -220,15 +220,14 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="项目内容" prop="projectContent"> <el-form-item label="项目内容" prop="projectContent">
<el-input <el-input
v-model="form.projectContent" v-model="form.projectContent"
type="textarea" type="textarea"
placeholder="请输入内容" placeholder="请输入内容"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
@ -344,7 +343,7 @@ import {
} from "@/api/zongzhi/netManage/workItem/index.js"; } from "@/api/zongzhi/netManage/workItem/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Work", name: "Work",
// //

@ -393,7 +393,7 @@ import {
} from "@/api/zongzhi/netSecurity/SafetyYh/index.js"; } from "@/api/zongzhi/netSecurity/SafetyYh/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Danger", name: "Danger",
// //

@ -422,7 +422,7 @@ import {
export default { export default {
name: "Detection", name: "Detection",
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
// //
dicts: ["tc_net_safety_level", "tc_attack_type"], dicts: ["tc_net_safety_level", "tc_attack_type"],

@ -1,100 +1,140 @@
<template> <template>
<div class="container-main" ref="main"> <div class="container-main" ref="main">
<div class="search-hearder" ref="topSearch"> <div class="search-hearder" ref="topSearch">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="auto"> <el-form
<el-form-item label="地区名称" prop="name"> :model="queryParams"
<el-input ref="queryForm"
v-model="queryParams.name" :inline="true"
placeholder="请输入地区名称" v-show="showSearch"
clearable label-width="auto"
size="small" >
@keyup.enter.native="handleQuery" <el-form-item label="地区名称" prop="name">
/> <el-input
</el-form-item> v-model="queryParams.name"
<el-form-item> placeholder="请输入地区名称"
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button> clearable
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button> size="small"
</el-form-item> @keyup.enter.native="handleQuery"
</el-form> />
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
</div> </div>
<div class="layui-table-tool" ref="tableTool"> <div class="layui-table-tool" ref="tableTool">
<el-button <el-button
type="primary" type="primary"
size="mini" size="mini"
@click="handleAdd()" @click="handleAdd()"
v-hasPermi="['zongzhi:attack:add']" v-hasPermi="['zongzhi:attack:add']"
>新增</el-button >新增</el-button
> >
<el-button <el-button
type="success" type="success"
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['zongzhi:attack:edit']" v-hasPermi="['zongzhi:attack:edit']"
>修改</el-button> >修改</el-button
<el-button >
type="danger" <el-button
size="mini" type="danger"
:disabled="multiple" size="mini"
@click="handleDelete" :disabled="multiple"
v-hasPermi="['zongzhi:attack:remove']" @click="handleDelete"
>删除</el-button> v-hasPermi="['zongzhi:attack:remove']"
>删除</el-button
>
<el-button <el-button
type="warning" type="warning"
size="mini" size="mini"
:loading="exportLoading" :loading="exportLoading"
@click="handleExport" @click="handleExport"
v-hasPermi="['zongzhi:attack:export']" v-hasPermi="['zongzhi:attack:export']"
>导出</el-button >导出</el-button
> >
</div> </div>
<el-table v-loading="loading" :data="attackList" :height="tableHeigth" @selection-change="handleSelectionChange"> <el-table
v-loading="loading"
:data="attackList"
:height="tableHeigth"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="地区名称" align="center" prop="name" /> <el-table-column label="地区名称" align="center" prop="name" />
<el-table-column label="攻击次数" align="center" prop="attackCount" /> <el-table-column label="攻击次数" align="center" prop="attackCount" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right"> <el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
width="200"
fixed="right"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
@click="handleInfo(scope.row)" @click="handleInfo(scope.row)"
v-hasPermi="['zongzhi:attack:list']" v-hasPermi="['zongzhi:attack:list']"
> >
查看 查看
</el-button> </el-button>
<el-button <el-button
type="success" type="success"
size="mini" size="mini"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['zongzhi:attack:edit']" v-hasPermi="['zongzhi:attack:edit']"
>修改</el-button> >修改</el-button
>
<el-button <el-button
size="mini" size="mini"
type="danger" type="danger"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['zongzhi:attack:remove']" v-hasPermi="['zongzhi:attack:remove']"
>删除</el-button> >删除</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total > 0"
:total="total" :total="total"
:page.sync="queryParams.pageNum" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
@pagination="getList" @pagination="getList"
/> />
<!-- 添加或修改地区受攻击对话框 --> <!-- 添加或修改地区受攻击对话框 -->
<el-dialog :visible.sync="open" width="500px" append-to-body custom-class="dialog-box"> <el-dialog
<div slot="title" class="dialog-title">{{ title }}</div> :visible.sync="open"
<el-form ref="form" :model="form" :rules="rules" label-width="auto" class="dialog-from"> width="500px"
<el-form-item label="地区名称" prop="name"> append-to-body
<el-input v-model="form.name" placeholder="请输入地区名称" /> custom-class="dialog-box"
</el-form-item> >
<el-form-item label="攻击次数" prop="attackCount"> <div slot="title" class="dialog-title">{{ title }}</div>
<el-input v-model="form.attackCount" placeholder="请输入攻击次数" /> <el-form
</el-form-item> ref="form"
:model="form"
:rules="rules"
label-width="auto"
class="dialog-from"
>
<el-form-item label="地区名称" prop="name">
<el-input v-model="form.name" placeholder="请输入地区名称" />
</el-form-item>
<el-form-item label="攻击次数" prop="attackCount">
<el-input v-model="form.attackCount" placeholder="请输入攻击次数" />
</el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
@ -103,79 +143,90 @@
</el-dialog> </el-dialog>
<!--查看地区受攻击详情页--> <!--查看地区受攻击详情页-->
<el-dialog <el-dialog
:visible.sync="infoOpen" :visible.sync="infoOpen"
width="1200px" width="1200px"
append-to-body append-to-body
:close-on-click-modal="false" :close-on-click-modal="false"
:destroy-on-close="true" :destroy-on-close="true"
custom-class="dialog-box" custom-class="dialog-box"
> >
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
<div slot="title" class="dialog-title">{{ infoTitle }}</div> <el-descriptions
title="地区受攻击"
<el-descriptions title="地区受攻击" :column="2" border labelClassName="desLable"> :column="2"
<el-descriptions-item label="地区名称">{{ form.name }}</el-descriptions-item> border
labelClassName="desLable"
<el-descriptions-item label="攻击次数">{{ form.attackCount }}</el-descriptions-item> >
<el-descriptions-item label="地区名称">{{
form.name
}}</el-descriptions-item>
</el-descriptions> <el-descriptions-item label="攻击次数">{{
form.attackCount
}}</el-descriptions-item>
</el-descriptions>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
import { listAttack, getAttack, delAttack, addAttack, updateAttack, exportAttack } from "@/api/zongzhi/netSecurity/mapData/index.js"; import {
export default { listAttack,
computed: { getAttack,
...mapGetters(["townList"]), delAttack,
addAttack,
updateAttack,
exportAttack,
} from "@/api/zongzhi/netSecurity/mapData/index.js";
export default {
computed: {
...mapGetters(["townList", "treeProps"]),
}, },
name: "Attack", name: "Attack",
// //
data() { data() {
return { return {
tableHeigth: 0, tableHeigth: 0,
// //
infoOpen:false, infoOpen: false,
// //
infoTitle:'', infoTitle: "",
// //
loading: true, loading: true,
// //
exportLoading: false, exportLoading: false,
// //
ids: [], ids: [],
// //
single: true, single: true,
// //
multiple: true, multiple: true,
// //
showSearch: true, showSearch: true,
// //
total: 0, total: 0,
// //
attackList: [], attackList: [],
// //
title: "", title: "",
// //
open: false, open: false,
// //
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 20, pageSize: 20,
name: null, name: null,
},
}, //
// form: {},
form: {}, //
// rules: {},
rules: { };
} },
}; created() {
}, // //
created() {
// //
this.$nextTick(() => { this.$nextTick(() => {
this.tableHeigth = this.tableHeigth =
this.$refs.main.offsetHeight - this.$refs.main.offsetHeight -
@ -184,125 +235,136 @@ import { mapGetters } from "vuex";
46; 46;
this.getList(); this.getList();
}); });
},
methods: {
/** 查询地区受攻击列表 */
getList() {
this.loading = true;
listAttack(this.queryParams).then((response) => {
this.attackList = response.rows;
this.total = response.total;
this.loading = false;
});
}, },
methods: { //
/** 查询地区受攻击列表 */ cancel() {
getList() { this.open = false;
this.loading = true; this.reset();
listAttack(this.queryParams).then(response => { },
this.attackList = response.rows; //
this.total = response.total; reset() {
this.loading = false; this.form = {
}); id: null,
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
name: null,
attackCount: null, name: null,
}; attackCount: null,
this.resetForm("form"); };
}, this.resetForm("form");
/** 搜索按钮操作 */ },
handleQuery() { /** 搜索按钮操作 */
this.queryParams.pageNum = 1; handleQuery() {
this.getList(); this.queryParams.pageNum = 1;
}, this.getList();
/** 重置按钮操作 */ },
resetQuery() { /** 重置按钮操作 */
this.resetForm("queryForm"); resetQuery() {
this.handleQuery(); this.resetForm("queryForm");
}, this.handleQuery();
// },
handleSelectionChange(selection) { //
this.ids = selection.map(item => item.id) handleSelectionChange(selection) {
this.single = selection.length!==1 this.ids = selection.map((item) => item.id);
this.multiple = !selection.length this.single = selection.length !== 1;
}, this.multiple = !selection.length;
/**查看按钮操作 */ },
handleInfo(row){ /**查看按钮操作 */
this.reset(); handleInfo(row) {
const id = row.id || this.ids this.reset();
getAttack(id).then(response => { const id = row.id || this.ids;
this.form = response.data; getAttack(id).then((response) => {
this.infoOpen = true; this.form = response.data;
this.infoTitle = "查看地区受攻击详情" this.infoOpen = true;
}); this.infoTitle = "查看地区受攻击详情";
}, });
/** 新增按钮操作 */ },
handleAdd() { /** 新增按钮操作 */
this.reset(); handleAdd() {
this.reset();
this.open = true;
this.title = "添加地区受攻击";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getAttack(id).then((response) => {
this.form = response.data;
this.open = true; this.open = true;
this.title = "添加地区受攻击"; this.title = "修改地区受攻击";
}, });
/** 修改按钮操作 */ },
handleUpdate(row) { /** 提交按钮 */
this.reset(); submitForm() {
const id = row.id || this.ids this.$refs["form"].validate((valid) => {
getAttack(id).then(response => { if (valid) {
this.form = response.data; if (this.form.id != null) {
this.open = true; updateAttack(this.form).then((response) => {
this.title = "修改地区受攻击"; this.$modal.msgSuccess("修改成功");
}); this.open = false;
}, this.getList();
/** 提交按钮 */ });
submitForm() { } else {
this.$refs["form"].validate(valid => { addAttack(this.form).then((response) => {
if (valid) { this.$modal.msgSuccess("新增成功");
if (this.form.id != null) { this.open = false;
updateAttack(this.form).then(response => { this.getList();
this.$modal.msgSuccess("修改成功"); });
this.open = false;
this.getList();
});
} else {
addAttack(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
} }
}); }
}, });
/** 删除按钮操作 */ },
handleDelete(row) { /** 删除按钮操作 */
const ids = row.id || this.ids; handleDelete(row) {
this.$confirm('是否确认删除地区受攻击编号为"' + ids + '"的数据项?', "警告", { const ids = row.id || this.ids;
this.$confirm(
'是否确认删除地区受攻击编号为"' + ids + '"的数据项?',
"警告",
{
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning",
}).then(function() { }
)
.then(function () {
return delAttack(ids); return delAttack(ids);
}).then(() => { })
.then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}).catch(() => {}); })
}, .catch(() => {});
/** 导出按钮操作 */ },
handleExport() { /** 导出按钮操作 */
const queryParams = this.queryParams; handleExport() {
this.$confirm('是否确认导出所有地区受攻击数据项?', "警告", { const queryParams = this.queryParams;
confirmButtonText: "确定", this.$confirm("是否确认导出所有地区受攻击数据项?", "警告", {
cancelButtonText: "取消", confirmButtonText: "确定",
type: "warning" cancelButtonText: "取消",
}).then(() => { type: "warning",
this.download('/zongzhi/attack/export', { })
...this.queryParams .then(() => {
}, '地区受攻击_'+ new Date().getTime() +'.xlsx') this.download(
"/zongzhi/attack/export",
{
...this.queryParams,
},
"地区受攻击_" + new Date().getTime() + ".xlsx"
);
this.exportLoading = false; this.exportLoading = false;
}).catch(() => {}); })
} .catch(() => {});
} },
} },
};
</script> </script>

@ -482,7 +482,7 @@ export default {
// //
dicts: ["tc_yes_no", "tc_net_safety_level", "tc_db_steam_state"], dicts: ["tc_yes_no", "tc_net_safety_level", "tc_db_steam_state"],
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
data() { data() {
return { return {

@ -418,7 +418,7 @@ import {
} from "@/api/zongzhi/netSecurity/supervise/DbUnit/index.js"; } from "@/api/zongzhi/netSecurity/supervise/DbUnit/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Unit", name: "Unit",
// //

@ -258,7 +258,7 @@ import {
} from "@/api/zongzhi/netSecurity/supervise/GovernmentWeb/index.js"; } from "@/api/zongzhi/netSecurity/supervise/GovernmentWeb/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Web", name: "Web",
// //

@ -224,7 +224,7 @@ import {
} from "@/api/zongzhi/netSecurity/supervise/IdcUnit/index.js"; } from "@/api/zongzhi/netSecurity/supervise/IdcUnit/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "IDCunit", name: "IDCunit",
// //

@ -106,7 +106,7 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="区域id" align="center" prop="areaId"> <el-table-column label="区域" align="center" prop="areaId">
<template slot-scope="scope"> <template slot-scope="scope">
{{ $filterTown(scope.row.areaId) }} {{ $filterTown(scope.row.areaId) }}
</template> </template>
@ -186,7 +186,7 @@
> >
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="区域id" prop="areaId"> <el-form-item label="区域" prop="areaId">
<el-select <el-select
v-model="form.areaId" v-model="form.areaId"
placeholder="请选择区域" placeholder="请选择区域"
@ -246,7 +246,7 @@
placeholder="请输入属地名称" placeholder="请输入属地名称"
/> />
</el-form-item> --> </el-form-item> -->
<el-form-item label="通报时间" prop="tbTime"> <el-form-item label="通报时间" prop="tbTime">
<el-date-picker <el-date-picker
clearable clearable
size="small" size="small"
@ -260,9 +260,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12"> </el-col>
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="附件上传" prop="fileName"> <el-form-item label="附件上传" prop="fileName">
<FileUpload v-model="fileList" /> <FileUpload v-model="fileList" />
@ -292,7 +290,7 @@
border border
labelClassName="desLable" labelClassName="desLable"
> >
<el-descriptions-item label="区域id">{{ <el-descriptions-item label="区域">{{
$filterTown(form.areaId) $filterTown(form.areaId)
}}</el-descriptions-item> }}</el-descriptions-item>
@ -335,7 +333,7 @@ import {
} from "@/api/zongzhi/netSecurity/tb/index.js"; } from "@/api/zongzhi/netSecurity/tb/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Tb", name: "Tb",
// //

@ -198,7 +198,7 @@ import {
} from "@/api/zongzhi/netWorkYq/dtsx/index.js"; } from "@/api/zongzhi/netWorkYq/dtsx/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Sx", name: "Sx",
// //

@ -479,7 +479,7 @@ import {
} from "@/api/zongzhi/netWorkYq/index.js"; } from "@/api/zongzhi/netWorkYq/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Sentiment", name: "Sentiment",
// //
@ -693,7 +693,7 @@ export default {
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
this.filterFile(1); this.filterFile(1);
updateSentiment(this.form).then((response) => { updateSentiment(this.form).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;

@ -92,7 +92,7 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="区域id" align="center" prop="areaId"> <el-table-column label="区域" align="center" prop="areaId">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.areaId | filterTown }} {{ scope.row.areaId | filterTown }}
</template> </template>
@ -171,7 +171,7 @@
label-width="auto" label-width="auto"
class="dialog-from" class="dialog-from"
> >
<el-form-item label="区域id" prop="areaId"> <el-form-item label="区域" prop="areaId">
<el-cascader <el-cascader
v-model="form.areaId" v-model="form.areaId"
:options="townList" :options="townList"
@ -228,7 +228,7 @@
border border
labelClassName="desLable" labelClassName="desLable"
> >
<el-descriptions-item label="区域id">{{ <el-descriptions-item label="区域">{{
form.areaId form.areaId
}}</el-descriptions-item> }}</el-descriptions-item>

@ -77,7 +77,7 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="区域id" align="center" prop="areaId"> <el-table-column label="区域" align="center" prop="areaId">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.areaId | filterTown }} {{ scope.row.areaId | filterTown }}
</template> </template>
@ -149,7 +149,7 @@
label-width="auto" label-width="auto"
class="dialog-from" class="dialog-from"
> >
<el-form-item label="区域id" prop="areaId"> <el-form-item label="区域" prop="areaId">
<el-cascader <el-cascader
v-model="form.areaId" v-model="form.areaId"
:options="townList" :options="townList"
@ -204,7 +204,7 @@
border border
labelClassName="desLable" labelClassName="desLable"
> >
<el-descriptions-item label="区域id">{{ <el-descriptions-item label="区域">{{
form.areaId form.areaId
}}</el-descriptions-item> }}</el-descriptions-item>

@ -71,7 +71,7 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="区域Id" align="center" prop="areaId"> <el-table-column label="区域" align="center" prop="areaId">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.areaId | filterTown }} {{ scope.row.areaId | filterTown }}
</template> </template>
@ -134,7 +134,7 @@
label-width="auto" label-width="auto"
class="dialog-from" class="dialog-from"
> >
<el-form-item label="区域Id" prop="areaId"> <el-form-item label="区域" prop="areaId">
<el-cascader <el-cascader
v-model="form.areaId" v-model="form.areaId"
:options="townList" :options="townList"

@ -324,7 +324,7 @@ import {
} from "@/api/zongzhi/netZoology/netAppraiser/index.js"; } from "@/api/zongzhi/netZoology/netAppraiser/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Commentator", name: "Commentator",
// //

@ -263,7 +263,7 @@ import {
} from "@/api/zongzhi/netZoology/netMqPrincipal/index.js"; } from "@/api/zongzhi/netZoology/netMqPrincipal/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Principal", name: "Principal",
// //

@ -175,8 +175,8 @@
label-width="auto" label-width="auto"
class="dialog-from" class="dialog-from"
> >
<el-form-item label="区域id" prop="areaId"> <el-form-item label="区域" prop="areaId">
<el-input v-model="form.areaId" placeholder="请输入区域id" /> <el-input v-model="form.areaId" placeholder="请输入区域" />
</el-form-item> </el-form-item>
<el-form-item label="文章ID" prop="articleId"> <el-form-item label="文章ID" prop="articleId">
<el-input v-model="form.articleId" placeholder="请输入文章ID" /> <el-input v-model="form.articleId" placeholder="请输入文章ID" />
@ -264,7 +264,7 @@
border border
labelClassName="desLable" labelClassName="desLable"
> >
<el-descriptions-item label="区域id">{{ <el-descriptions-item label="区域">{{
$filterTown(form.areaId) $filterTown(form.areaId)
}}</el-descriptions-item> }}</el-descriptions-item>
@ -315,7 +315,7 @@ import {
} from "@/api/zongzhi/netZoology/netP/index.js"; } from "@/api/zongzhi/netZoology/netP/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Evaluate", name: "Evaluate",
// //

@ -310,7 +310,7 @@ import {
} from "@/api/zongzhi/netZoology/netSafety/index.js"; } from "@/api/zongzhi/netZoology/netSafety/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Safetyadmin", name: "Safetyadmin",
// //

@ -230,7 +230,7 @@ import {
} from "@/api/zongzhi/netZoology/netSafetyZcUnit/index.js"; } from "@/api/zongzhi/netZoology/netSafetyZcUnit/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "NetSafetyZcUnit", name: "NetSafetyZcUnit",
// //

@ -291,7 +291,7 @@ import {
} from "@/api/zongzhi/netZoology/netVolunteer/index.js"; } from "@/api/zongzhi/netZoology/netVolunteer/index.js";
export default { export default {
computed: { computed: {
...mapGetters(["townList"]), ...mapGetters(["townList", "treeProps"]),
}, },
name: "Volunteer", name: "Volunteer",
// //

Loading…
Cancel
Save