|
@@ -1,7 +1,14 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
- <el-form-item label="名称" prop="name">
|
|
|
|
|
|
+ <el-form
|
|
|
|
+ :model="queryParams"
|
|
|
|
+ ref="queryForm"
|
|
|
|
+ size="small"
|
|
|
|
+ :inline="true"
|
|
|
|
+ v-show="showSearch"
|
|
|
|
+ label-width="68px"
|
|
|
|
+ >
|
|
|
|
+ <el-form-item label="行政区">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.name"
|
|
v-model="queryParams.name"
|
|
placeholder="请输入名称"
|
|
placeholder="请输入名称"
|
|
@@ -9,7 +16,29 @@
|
|
@keyup.enter.native="handleQuery"
|
|
@keyup.enter.native="handleQuery"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="上传用户" prop="uploaduser">
|
|
|
|
|
|
+
|
|
|
|
+ <el-form-item label="活动时间">
|
|
|
|
+ <el-col :span="11">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ type="date"
|
|
|
|
+ placeholder="选择日期"
|
|
|
|
+ v-model="form.date1"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ ></el-date-picker>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col class="line" :span="2">-</el-col>
|
|
|
|
+ <el-col :span="11">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ type="date"
|
|
|
|
+ placeholder="选择日期"
|
|
|
|
+ v-model="form.date1"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ ></el-date-picker>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="文件名称">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.uploaduser"
|
|
v-model="queryParams.uploaduser"
|
|
placeholder="请输入上传用户"
|
|
placeholder="请输入上传用户"
|
|
@@ -17,73 +46,17 @@
|
|
@keyup.enter.native="handleQuery"
|
|
@keyup.enter.native="handleQuery"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="上传时间" prop="uploadtime">
|
|
|
|
- <el-date-picker clearable
|
|
|
|
- v-model="queryParams.uploadtime"
|
|
|
|
- type="date"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- placeholder="请选择上传时间">
|
|
|
|
- </el-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="文件位置" prop="filepath">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.filepath"
|
|
|
|
- placeholder="请输入文件位置"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="shp位置" prop="shppath">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.shppath"
|
|
|
|
- placeholder="请输入shp位置"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="是否入库" prop="storage">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.storage"
|
|
|
|
- placeholder="请输入是否入库"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="行政区划代码" prop="xzqhdm">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.xzqhdm"
|
|
|
|
- placeholder="请输入行政区划代码"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="图斑数量" prop="spotsnumber">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.spotsnumber"
|
|
|
|
- placeholder="请输入图斑数量"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="图斑面积" prop="spotsarea">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.spotsarea"
|
|
|
|
- placeholder="请输入图斑面积"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="图斑大小" prop="spotssize">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.spotssize"
|
|
|
|
- placeholder="请输入图斑大小"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
<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-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-item>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
@@ -96,7 +69,8 @@
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleAdd"
|
|
@click="handleAdd"
|
|
v-hasPermi="['supervise:pcsj:add']"
|
|
v-hasPermi="['supervise:pcsj:add']"
|
|
- >新增</el-button>
|
|
|
|
|
|
+ >新增</el-button
|
|
|
|
+ >
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
@@ -107,7 +81,8 @@
|
|
:disabled="single"
|
|
:disabled="single"
|
|
@click="handleUpdate"
|
|
@click="handleUpdate"
|
|
v-hasPermi="['supervise:pcsj:edit']"
|
|
v-hasPermi="['supervise:pcsj:edit']"
|
|
- >修改</el-button>
|
|
|
|
|
|
+ >修改</el-button
|
|
|
|
+ >
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
@@ -118,7 +93,8 @@
|
|
:disabled="multiple"
|
|
:disabled="multiple"
|
|
@click="handleDelete"
|
|
@click="handleDelete"
|
|
v-hasPermi="['supervise:pcsj:remove']"
|
|
v-hasPermi="['supervise:pcsj:remove']"
|
|
- >删除</el-button>
|
|
|
|
|
|
+ >删除</el-button
|
|
|
|
+ >
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
@@ -128,46 +104,62 @@
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleExport"
|
|
@click="handleExport"
|
|
v-hasPermi="['supervise:pcsj:export']"
|
|
v-hasPermi="['supervise:pcsj:export']"
|
|
- >导出</el-button>
|
|
|
|
|
|
+ >导出</el-button
|
|
|
|
+ >
|
|
</el-col>
|
|
</el-col>
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
|
+ <right-toolbar
|
|
|
|
+ :showSearch.sync="showSearch"
|
|
|
|
+ @queryTable="getList"
|
|
|
|
+ ></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" :data="pcsjList" @selection-change="handleSelectionChange">
|
|
|
|
|
|
+ <el-table
|
|
|
|
+ v-loading="loading"
|
|
|
|
+ :data="pcsjList"
|
|
|
|
+ @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="id" />
|
|
|
|
- <el-table-column label="名称" align="center" prop="name" />
|
|
|
|
- <el-table-column label="上传用户" align="center" prop="uploaduser" />
|
|
|
|
- <el-table-column label="上传时间" align="center" prop="uploadtime" width="180">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span>{{ parseTime(scope.row.uploadtime, '{y}-{m}-{d}') }}</span>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <el-table-column label="文件名称" align="center" prop="name" />
|
|
|
|
+ <el-table-column label="区县名称" align="center" prop="xzqdm" />
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="图斑个数"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="spotsnumber"
|
|
|
|
+ width="180"
|
|
|
|
+ >
|
|
|
|
+ <!-- <template slot-scope="scope">
|
|
|
|
+ <span>{{ parseTime(scope.row.uploadtime, "{y}-{m}-{d}") }}</span>
|
|
|
|
+ </template> -->
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="文件位置" align="center" prop="filepath" />
|
|
|
|
- <el-table-column label="shp位置" align="center" prop="shppath" />
|
|
|
|
- <el-table-column label="文件服务发布地址" align="center" prop="proxypath" />
|
|
|
|
- <el-table-column label="解压文件地址" align="center" prop="unzippath" />
|
|
|
|
- <el-table-column label="文件类型" align="center" prop="filetype" />
|
|
|
|
- <el-table-column label="是否入库" align="center" prop="storage" />
|
|
|
|
- <el-table-column label="状态 0 未处理 1 发布中 2 发布成功" align="center" prop="status" />
|
|
|
|
- <el-table-column label="行政区划代码" align="center" prop="xzqhdm" />
|
|
|
|
- <el-table-column label="图斑数量" align="center" prop="spotsnumber" />
|
|
|
|
- <el-table-column label="图斑面积" align="center" prop="spotsarea" />
|
|
|
|
- <el-table-column label="图斑大小" align="center" prop="spotssize" />
|
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
|
+ <el-table-column label="监测面积(亩)" align="center" prop="spotsarea" />
|
|
|
|
+ <el-table-column label="文件大小" align="center" prop="spotssize" />
|
|
|
|
+ <el-table-column label="文件大小" align="center" prop="filetime" />
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="操作"
|
|
|
|
+ align="center"
|
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
@click="handleBrowse(scope.row)"
|
|
@click="handleBrowse(scope.row)"
|
|
- >浏览</el-button>
|
|
|
|
|
|
+ >浏览</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
+ @click="handleDownload(scope.row)"
|
|
|
|
+ >下载</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"
|
|
@@ -184,11 +176,13 @@
|
|
<el-input v-model="form.uploaduser" placeholder="请输入上传用户" />
|
|
<el-input v-model="form.uploaduser" placeholder="请输入上传用户" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="上传时间" prop="uploadtime">
|
|
<el-form-item label="上传时间" prop="uploadtime">
|
|
- <el-date-picker clearable
|
|
|
|
|
|
+ <el-date-picker
|
|
|
|
+ clearable
|
|
v-model="form.uploadtime"
|
|
v-model="form.uploadtime"
|
|
type="date"
|
|
type="date"
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
- placeholder="请选择上传时间">
|
|
|
|
|
|
+ placeholder="请选择上传时间"
|
|
|
|
+ >
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="文件位置" prop="filepath">
|
|
<el-form-item label="文件位置" prop="filepath">
|
|
@@ -198,10 +192,18 @@
|
|
<el-input v-model="form.shppath" placeholder="请输入shp位置" />
|
|
<el-input v-model="form.shppath" placeholder="请输入shp位置" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="文件服务发布地址" prop="proxypath">
|
|
<el-form-item label="文件服务发布地址" prop="proxypath">
|
|
- <el-input v-model="form.proxypath" type="textarea" placeholder="请输入内容" />
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="form.proxypath"
|
|
|
|
+ type="textarea"
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="解压文件地址" prop="unzippath">
|
|
<el-form-item label="解压文件地址" prop="unzippath">
|
|
- <el-input v-model="form.unzippath" type="textarea" placeholder="请输入内容" />
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="form.unzippath"
|
|
|
|
+ type="textarea"
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="是否入库" prop="storage">
|
|
<el-form-item label="是否入库" prop="storage">
|
|
<el-input v-model="form.storage" placeholder="请输入是否入库" />
|
|
<el-input v-model="form.storage" placeholder="请输入是否入库" />
|
|
@@ -228,7 +230,13 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { listPcsj, getPcsj, delPcsj, addPcsj, updatePcsj } from "@/api/supervise/pcsj";
|
|
|
|
|
|
+import {
|
|
|
|
+ listPcsj,
|
|
|
|
+ getPcsj,
|
|
|
|
+ delPcsj,
|
|
|
|
+ addPcsj,
|
|
|
|
+ updatePcsj,
|
|
|
|
+} from "@/api/supervise/pcsj";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "Pcsj",
|
|
name: "Pcsj",
|
|
@@ -249,22 +257,13 @@ export default {
|
|
// 监管批次数据表格数据
|
|
// 监管批次数据表格数据
|
|
pcsjList: [
|
|
pcsjList: [
|
|
{
|
|
{
|
|
- id:'1111',
|
|
|
|
- name: '1',
|
|
|
|
- uploaduser: '1',
|
|
|
|
- uploadtime: '1',
|
|
|
|
- filepath: '1',
|
|
|
|
- shppath: '1',
|
|
|
|
- proxypath: '1',
|
|
|
|
- unzippath: '1',
|
|
|
|
- filetype: '1',
|
|
|
|
- storage: '1',
|
|
|
|
- status: '1',
|
|
|
|
- xzqhdm: '1',
|
|
|
|
- spotsnumber: '1',
|
|
|
|
- spotsarea: '1',
|
|
|
|
- spotssize: '1'
|
|
|
|
- }
|
|
|
|
|
|
+ name: "", //文件名称
|
|
|
|
+ xzqdm: "", //区县名称
|
|
|
|
+ spotsnumber: "", //图斑个数
|
|
|
|
+ spotsarea: "", //监测面积(亩)
|
|
|
|
+ spotssize: "", //文件大小
|
|
|
|
+ filetime: "", //文件大小
|
|
|
|
+ },
|
|
],
|
|
],
|
|
// 弹出层标题
|
|
// 弹出层标题
|
|
title: "",
|
|
title: "",
|
|
@@ -274,51 +273,53 @@ export default {
|
|
queryParams: {
|
|
queryParams: {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
- name: '1',
|
|
|
|
- uploaduser: '1',
|
|
|
|
- uploadtime: '1',
|
|
|
|
- filepath: '1',
|
|
|
|
- shppath: '1',
|
|
|
|
- proxypath: '1',
|
|
|
|
- unzippath: '1',
|
|
|
|
- filetype: '1',
|
|
|
|
- storage: '1',
|
|
|
|
- status: '1',
|
|
|
|
- xzqhdm: '1',
|
|
|
|
- spotsnumber: '1',
|
|
|
|
- spotsarea: '1',
|
|
|
|
- spotssize: '1'
|
|
|
|
|
|
+ name: "1",
|
|
|
|
+ uploaduser: "1",
|
|
|
|
+ uploadtime: "1",
|
|
|
|
+ filepath: "1",
|
|
|
|
+ shppath: "1",
|
|
|
|
+ proxypath: "1",
|
|
|
|
+ unzippath: "1",
|
|
|
|
+ filetype: "1",
|
|
|
|
+ storage: "1",
|
|
|
|
+ status: "1",
|
|
|
|
+ xzqhdm: "1",
|
|
|
|
+ spotsnumber: "1",
|
|
|
|
+ spotsarea: "1",
|
|
|
|
+ spotssize: "1",
|
|
},
|
|
},
|
|
// 表单参数
|
|
// 表单参数
|
|
form: {
|
|
form: {
|
|
- name: '1',
|
|
|
|
- uploaduser: '1',
|
|
|
|
- uploadtime: '1',
|
|
|
|
- filepath: '1',
|
|
|
|
- shppath: '1',
|
|
|
|
- proxypath: '1',
|
|
|
|
- unzippath: '1',
|
|
|
|
- filetype: '1',
|
|
|
|
- storage: '1',
|
|
|
|
- status: '1',
|
|
|
|
- xzqhdm: '1',
|
|
|
|
- spotsnumber: '1',
|
|
|
|
- spotsarea: '1',
|
|
|
|
- spotssize: '1'
|
|
|
|
|
|
+ name: "1",
|
|
|
|
+ uploaduser: "1",
|
|
|
|
+ uploadtime: "1",
|
|
|
|
+ filepath: "1",
|
|
|
|
+ shppath: "1",
|
|
|
|
+ proxypath: "1",
|
|
|
|
+ unzippath: "1",
|
|
|
|
+ filetype: "1",
|
|
|
|
+ storage: "1",
|
|
|
|
+ status: "1",
|
|
|
|
+ xzqhdm: "1",
|
|
|
|
+ spotsnumber: "1",
|
|
|
|
+ spotsarea: "1",
|
|
|
|
+ spotssize: "1",
|
|
},
|
|
},
|
|
// 表单校验
|
|
// 表单校验
|
|
- rules: {
|
|
|
|
- }
|
|
|
|
|
|
+ rules: {},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- // this.getList();
|
|
|
|
|
|
+ this.getList();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ handleDownload(row) {
|
|
|
|
+ console.log("下载");
|
|
|
|
+ },
|
|
/** 查询监管批次数据列表 */
|
|
/** 查询监管批次数据列表 */
|
|
getList() {
|
|
getList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- listPcsj(this.queryParams).then(response => {
|
|
|
|
|
|
+ listPcsj(this.queryParams).then((response) => {
|
|
this.pcsjList = response.rows;
|
|
this.pcsjList = response.rows;
|
|
this.total = response.total;
|
|
this.total = response.total;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -346,7 +347,7 @@ export default {
|
|
xzqhdm: null,
|
|
xzqhdm: null,
|
|
spotsnumber: null,
|
|
spotsnumber: null,
|
|
spotsarea: null,
|
|
spotsarea: null,
|
|
- spotssize: null
|
|
|
|
|
|
+ spotssize: null,
|
|
};
|
|
};
|
|
this.resetForm("form");
|
|
this.resetForm("form");
|
|
},
|
|
},
|
|
@@ -362,9 +363,9 @@ export default {
|
|
},
|
|
},
|
|
// 多选框选中数据
|
|
// 多选框选中数据
|
|
handleSelectionChange(selection) {
|
|
handleSelectionChange(selection) {
|
|
- this.ids = selection.map(item => item.id)
|
|
|
|
- this.single = selection.length!==1
|
|
|
|
- this.multiple = !selection.length
|
|
|
|
|
|
+ this.ids = selection.map((item) => item.id);
|
|
|
|
+ this.single = selection.length !== 1;
|
|
|
|
+ this.multiple = !selection.length;
|
|
},
|
|
},
|
|
/** 新增按钮操作 */
|
|
/** 新增按钮操作 */
|
|
handleAdd() {
|
|
handleAdd() {
|
|
@@ -373,16 +374,15 @@ export default {
|
|
this.title = "添加监管批次数据";
|
|
this.title = "添加监管批次数据";
|
|
},
|
|
},
|
|
// 浏览按钮
|
|
// 浏览按钮
|
|
- handleBrowse(row){
|
|
|
|
- this.$router.push({path:'/remote/Gdjc'})
|
|
|
|
|
|
+ handleBrowse(row) {
|
|
|
|
+ this.$router.push({ path: "/remote/gdjc" });
|
|
},
|
|
},
|
|
|
|
|
|
-
|
|
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
this.reset();
|
|
this.reset();
|
|
- const id = row.id || this.ids
|
|
|
|
- getPcsj(id).then(response => {
|
|
|
|
|
|
+ const id = row.id || this.ids;
|
|
|
|
+ getPcsj(id).then((response) => {
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
this.open = true;
|
|
this.open = true;
|
|
this.title = "修改监管批次数据";
|
|
this.title = "修改监管批次数据";
|
|
@@ -390,16 +390,16 @@ export default {
|
|
},
|
|
},
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
submitForm() {
|
|
submitForm() {
|
|
- this.$refs["form"].validate(valid => {
|
|
|
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
if (this.form.id != null) {
|
|
if (this.form.id != null) {
|
|
- updatePcsj(this.form).then(response => {
|
|
|
|
|
|
+ updatePcsj(this.form).then((response) => {
|
|
this.$modal.msgSuccess("修改成功");
|
|
this.$modal.msgSuccess("修改成功");
|
|
this.open = false;
|
|
this.open = false;
|
|
this.getList();
|
|
this.getList();
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
- addPcsj(this.form).then(response => {
|
|
|
|
|
|
+ addPcsj(this.form).then((response) => {
|
|
this.$modal.msgSuccess("新增成功");
|
|
this.$modal.msgSuccess("新增成功");
|
|
this.open = false;
|
|
this.open = false;
|
|
this.getList();
|
|
this.getList();
|
|
@@ -411,19 +411,27 @@ export default {
|
|
/** 删除按钮操作 */
|
|
/** 删除按钮操作 */
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
const ids = row.id || this.ids;
|
|
const ids = row.id || this.ids;
|
|
- this.$modal.confirm('是否确认删除监管批次数据编号为"' + ids + '"的数据项?').then(function() {
|
|
|
|
- return delPcsj(ids);
|
|
|
|
- }).then(() => {
|
|
|
|
- this.getList();
|
|
|
|
- this.$modal.msgSuccess("删除成功");
|
|
|
|
- }).catch(() => {});
|
|
|
|
|
|
+ this.$modal
|
|
|
|
+ .confirm('是否确认删除监管批次数据编号为"' + ids + '"的数据项?')
|
|
|
|
+ .then(function () {
|
|
|
|
+ return delPcsj(ids);
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ this.getList();
|
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {});
|
|
},
|
|
},
|
|
/** 导出按钮操作 */
|
|
/** 导出按钮操作 */
|
|
handleExport() {
|
|
handleExport() {
|
|
- this.download('supervise/pcsj/export', {
|
|
|
|
- ...this.queryParams
|
|
|
|
- }, `pcsj_${new Date().getTime()}.xlsx`)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ this.download(
|
|
|
|
+ "supervise/pcsj/export",
|
|
|
|
+ {
|
|
|
|
+ ...this.queryParams,
|
|
|
|
+ },
|
|
|
|
+ `pcsj_${new Date().getTime()}.xlsx`
|
|
|
|
+ );
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|