parent
538b1494fb
commit
42bd4f08f7
@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询数据来源统计tc_sjlytj 列表
|
||||||
|
export function listDataSourceTj(query) {
|
||||||
|
return request({
|
||||||
|
url: '/tcZz/networkSecurity/DataSourceTj/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询数据来源统计tc_sjlytj 详细
|
||||||
|
export function getDataSourceTj(id) {
|
||||||
|
return request({
|
||||||
|
url: '/tcZz/networkSecurity/DataSourceTj/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增数据来源统计tc_sjlytj
|
||||||
|
export function addDataSourceTj(data) {
|
||||||
|
return request({
|
||||||
|
url: '/tcZz/networkSecurity/DataSourceTj',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改数据来源统计tc_sjlytj
|
||||||
|
export function updateDataSourceTj(data) {
|
||||||
|
return request({
|
||||||
|
url: '/tcZz/networkSecurity/DataSourceTj',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除数据来源统计tc_sjlytj
|
||||||
|
export function delDataSourceTj(id) {
|
||||||
|
return request({
|
||||||
|
url: '/tcZz/networkSecurity/DataSourceTj/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
@ -0,0 +1,183 @@
|
|||||||
|
@import "./element-variables.scss";
|
||||||
|
.container-main {
|
||||||
|
height: calc(100vh - 84px);
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 0 10px;
|
||||||
|
// 搜索部分
|
||||||
|
.search-hearder {
|
||||||
|
padding: 12px 2px 8px 2px;
|
||||||
|
height: auto;
|
||||||
|
.el-form-item {
|
||||||
|
margin-bottom: 6px;
|
||||||
|
margin-right: 10px;
|
||||||
|
// lable
|
||||||
|
.el-form-item__label {
|
||||||
|
padding: 6px 12px 6px 10px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #333;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
// content
|
||||||
|
.el-form-item__content {
|
||||||
|
width: 180px;
|
||||||
|
// 输入框
|
||||||
|
.el-input {
|
||||||
|
.el-input__inner {
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 表头操作按钮部分
|
||||||
|
.layui-table-tool {
|
||||||
|
width: 100%;
|
||||||
|
min-height: 40px;
|
||||||
|
line-height: 30px;
|
||||||
|
padding: 6px 15px;
|
||||||
|
border-width: 0 0 1px;
|
||||||
|
border: 1px solid #e6e6e6;
|
||||||
|
border-bottom: 0;
|
||||||
|
background-color: #f2f2f2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 表格
|
||||||
|
.el-table .el-table__header-wrapper th {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 400;
|
||||||
|
// height: 35px;
|
||||||
|
color: #666;
|
||||||
|
background-color: #f2f2f2;
|
||||||
|
}
|
||||||
|
.el-table--medium .el-table__cell {
|
||||||
|
padding: 3px 0;
|
||||||
|
// height: 35px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-table .fixed-width .el-button--mini {
|
||||||
|
font-size: 12px;
|
||||||
|
padding: 6px 6px;
|
||||||
|
width: inherit;
|
||||||
|
}
|
||||||
|
//分页
|
||||||
|
}
|
||||||
|
// 弹窗
|
||||||
|
.dialog-box {
|
||||||
|
.el-dialog__header {
|
||||||
|
padding: 0;
|
||||||
|
.dialog-title {
|
||||||
|
height: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: white;
|
||||||
|
background-color: $--color-primary;
|
||||||
|
padding-left: 20px;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
.el-dialog__headerbtn .el-dialog__close {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.el-select,.el-date-editor{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-from {
|
||||||
|
.el-form-item {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
margin-right: 10px;
|
||||||
|
// lable
|
||||||
|
.el-form-item__label {
|
||||||
|
padding: 6px 12px 6px 10px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #333;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
// content
|
||||||
|
.el-form-item__content {
|
||||||
|
// 输入框
|
||||||
|
.el-input {
|
||||||
|
.el-input__inner {
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//确认框
|
||||||
|
.el-message-box {
|
||||||
|
width: 300px;
|
||||||
|
.el-message-box__header {
|
||||||
|
border-bottom: 1px solid #f0f0f0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//详情
|
||||||
|
.Descriptions-box {
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-right: 0;
|
||||||
|
border-bottom: 0;
|
||||||
|
.row-item {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
& > div {
|
||||||
|
padding: 10px 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
.row-lable {
|
||||||
|
width: 200px;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
border-right: 1px solid #ddd;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.row-value {
|
||||||
|
flex: 1;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
border-right: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 按钮
|
||||||
|
.el-button--mini {
|
||||||
|
padding: 7px 16px;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
.el-button {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
.dialog-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.pagination-container {
|
||||||
|
// position: relative;
|
||||||
|
margin-bottom: 0px !important;
|
||||||
|
margin-top: 7px !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 详情
|
||||||
|
.desLable {
|
||||||
|
width: 180px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image-title {
|
||||||
|
margin: 10px 0;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
.image-view {
|
||||||
|
border: 1px solid #e6ebf5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-box {
|
||||||
|
.pagination-container {
|
||||||
|
height: 10px;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,411 @@
|
|||||||
|
<template>
|
||||||
|
<div class="container-main" ref="main">
|
||||||
|
<div class="search-hearder" ref="topSearch">
|
||||||
|
<el-form
|
||||||
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="auto"
|
||||||
|
>
|
||||||
|
<el-form-item label="云端监测(G)" prop="lable1">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.lable1"
|
||||||
|
placeholder="请输入云端监测(G)"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="云端监测(G)总量" prop="lable1Sum">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.lable1Sum"
|
||||||
|
placeholder="请输入云端监测(G)总量"
|
||||||
|
clearable
|
||||||
|
size="small"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</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 class="layui-table-tool" ref="tableTool">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd()"
|
||||||
|
v-hasPermi="['tcZz/networkSecurity:DataSourceTj:add']"
|
||||||
|
>新增</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['tcZz/networkSecurity:DataSourceTj:edit']"
|
||||||
|
>修改</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['tcZz/networkSecurity:DataSourceTj:remove']"
|
||||||
|
>删除</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
size="mini"
|
||||||
|
:loading="exportLoading"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['tcZz/networkSecurity:DataSourceTj:export']"
|
||||||
|
>导出</el-button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="DataSourceTjList"
|
||||||
|
:height="tableHeigth"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
>
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="${comment}" align="center" prop="id" />
|
||||||
|
<el-table-column label="云端监测(G)" align="center" prop="lable1" />
|
||||||
|
<el-table-column
|
||||||
|
label="云端监测(G)总量"
|
||||||
|
align="center"
|
||||||
|
prop="lable1Sum"
|
||||||
|
/>
|
||||||
|
<el-table-column label="APT(M)" align="center" prop="lable2" />
|
||||||
|
<el-table-column label="APT(M) 总量" align="center" prop="lable2Sum" />
|
||||||
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
align="center"
|
||||||
|
class-name="small-padding fixed-width"
|
||||||
|
width="200"
|
||||||
|
fixed="right"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
@click="handleInfo(scope.row)"
|
||||||
|
v-hasPermi="['tcZz/networkSecurity:DataSourceTj:list']"
|
||||||
|
>
|
||||||
|
查看
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
size="mini"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['tcZz/networkSecurity:DataSourceTj:edit']"
|
||||||
|
>修改</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="danger"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['tcZz/networkSecurity:DataSourceTj:remove']"
|
||||||
|
>删除</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改数据来源统计tc_sjlytj 对话框 -->
|
||||||
|
<el-dialog
|
||||||
|
:visible.sync="open"
|
||||||
|
width="500px"
|
||||||
|
append-to-body
|
||||||
|
custom-class="dialog-box"
|
||||||
|
>
|
||||||
|
<div slot="title" class="dialog-title">{{ title }}</div>
|
||||||
|
<el-form
|
||||||
|
ref="form"
|
||||||
|
:model="form"
|
||||||
|
:rules="rules"
|
||||||
|
label-width="auto"
|
||||||
|
class="dialog-from"
|
||||||
|
>
|
||||||
|
<el-form-item label="云端监测(G)" prop="lable1">
|
||||||
|
<el-input v-model="form.lable1" placeholder="请输入云端监测(G)" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="云端监测(G)总量" prop="lable1Sum">
|
||||||
|
<el-input
|
||||||
|
v-model="form.lable1Sum"
|
||||||
|
placeholder="请输入云端监测(G)总量"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="APT(M)" prop="lable2">
|
||||||
|
<el-input v-model="form.lable2" placeholder="请输入APT(M)" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="APT(M) 总量" prop="lable2Sum">
|
||||||
|
<el-input v-model="form.lable2Sum" placeholder="请输入APT(M) 总量" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<!--查看数据来源统计tc_sjlytj 详情页-->
|
||||||
|
<el-dialog
|
||||||
|
:visible.sync="infoOpen"
|
||||||
|
width="90%"
|
||||||
|
append-to-body
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:destroy-on-close="true"
|
||||||
|
custom-class="dialog-box"
|
||||||
|
>
|
||||||
|
<div slot="title" class="dialog-title">{{ infoTitle }}</div>
|
||||||
|
|
||||||
|
<el-descriptions
|
||||||
|
title="数据来源统计tc_sjlytj "
|
||||||
|
:column="2"
|
||||||
|
border
|
||||||
|
labelClassName="desLable"
|
||||||
|
>
|
||||||
|
<el-descriptions-item label="云端监测(G)">{{
|
||||||
|
form.lable1
|
||||||
|
}}</el-descriptions-item>
|
||||||
|
|
||||||
|
<el-descriptions-item label="云端监测(G)总量">{{
|
||||||
|
form.lable1Sum
|
||||||
|
}}</el-descriptions-item>
|
||||||
|
|
||||||
|
<el-descriptions-item label="APT(M)">{{
|
||||||
|
form.lable2
|
||||||
|
}}</el-descriptions-item>
|
||||||
|
|
||||||
|
<el-descriptions-item label="APT(M) 总量">{{
|
||||||
|
form.lable2Sum
|
||||||
|
}}</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
listDataSourceTj,
|
||||||
|
getDataSourceTj,
|
||||||
|
delDataSourceTj,
|
||||||
|
addDataSourceTj,
|
||||||
|
updateDataSourceTj,
|
||||||
|
exportDataSourceTj,
|
||||||
|
} from "@/api/tcZz/networkSecurity/DataSourceTj";
|
||||||
|
export default {
|
||||||
|
name: "DataSourceTj",
|
||||||
|
//注释字典
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
tableHeigth: 0,
|
||||||
|
//查看详情
|
||||||
|
infoOpen: false,
|
||||||
|
//详情标题
|
||||||
|
infoTitle: "",
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 导出遮罩层
|
||||||
|
exportLoading: false,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 数据来源统计tc_sjlytj 表格数据
|
||||||
|
DataSourceTjList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 20,
|
||||||
|
lable1: null,
|
||||||
|
|
||||||
|
lable1Sum: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
// //给表格一个固定值
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.tableHeigth =
|
||||||
|
this.$refs.main.offsetHeight -
|
||||||
|
(this.$refs.topSearch.offsetHeight +
|
||||||
|
this.$refs.tableTool.offsetHeight) -
|
||||||
|
46;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询数据来源统计tc_sjlytj 列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listDataSourceTj(this.queryParams).then((response) => {
|
||||||
|
this.DataSourceTjList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
|
||||||
|
lable1: null,
|
||||||
|
|
||||||
|
lable1Sum: null,
|
||||||
|
|
||||||
|
lable2: null,
|
||||||
|
|
||||||
|
lable2Sum: null,
|
||||||
|
|
||||||
|
createBy: null,
|
||||||
|
|
||||||
|
createTime: null,
|
||||||
|
|
||||||
|
updateBy: null,
|
||||||
|
|
||||||
|
updateTime: null,
|
||||||
|
|
||||||
|
remark: null,
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map((item) => item.id);
|
||||||
|
this.single = selection.length !== 1;
|
||||||
|
this.multiple = !selection.length;
|
||||||
|
},
|
||||||
|
/**查看按钮操作 */
|
||||||
|
handleInfo(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids;
|
||||||
|
getDataSourceTj(id).then((response) => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.infoOpen = true;
|
||||||
|
this.infoTitle = "查看数据来源统计tc_sjlytj 详情";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加数据来源统计tc_sjlytj ";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids;
|
||||||
|
getDataSourceTj(id).then((response) => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改数据来源统计tc_sjlytj ";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updateDataSourceTj(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addDataSourceTj(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const ids = row.id || this.ids;
|
||||||
|
this.$confirm('是否确认删除编号为"' + ids + '"的数据项?', "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning",
|
||||||
|
})
|
||||||
|
.then(function () {
|
||||||
|
return delDataSourceTj(ids);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
const queryParams = this.queryParams;
|
||||||
|
this.$confirm("是否确认导出所有数据来源统计tc_sjlytj 数据项?", "警告", {
|
||||||
|
confirmButtonText: "确定",
|
||||||
|
cancelButtonText: "取消",
|
||||||
|
type: "warning",
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.download(
|
||||||
|
"/tcZz/networkSecurity/DataSourceTj/export",
|
||||||
|
{
|
||||||
|
...this.queryParams,
|
||||||
|
},
|
||||||
|
"数据来源统计tc_sjlytj _" + new Date().getTime() + ".xlsx"
|
||||||
|
);
|
||||||
|
this.exportLoading = false;
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in new issue