Merge pull request '新增淮海水利档案库月度汇总、日志' (#13) from zhoumingxiu into main
Reviewed-on: http://117.73.11.115:3000/Tony/god-ytr/pulls/13
This commit is contained in:
commit
cbf2c1138b
402
god-ui/src/views/hydraulic/archives/approvalLog/index.vue
Normal file
402
god-ui/src/views/hydraulic/archives/approvalLog/index.vue
Normal file
@ -0,0 +1,402 @@
|
||||
<template>
|
||||
<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="projectName">
|
||||
<el-input
|
||||
v-model="queryParams.projectName"
|
||||
placeholder="请输入项目名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="项目编码" prop="projectCode">
|
||||
<el-input
|
||||
v-model="queryParams.projectCode"
|
||||
placeholder="请输入项目编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="创建时间" prop="reportDate">
|
||||
<el-date-picker clearable
|
||||
style="width: 100%"
|
||||
v-model="queryParams.reportDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择创建时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="当前节点" prop="finishProgress">
|
||||
<el-select v-model="queryParams.finishProgress" placeholder="请选择当前节点" clearable>
|
||||
<el-option
|
||||
v-for="dict in dict.type.hydraulic_archive_approval_node"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</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>
|
||||
|
||||
<!--<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['hydraulicImplement:implement:add']"
|
||||
>新增
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['hydraulicImplement:implement:edit']"
|
||||
>修改
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['hydraulicImplement:implement:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['hydraulicImplement:implement:export']"
|
||||
>导出
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>-->
|
||||
|
||||
<el-table v-loading="loading" :data="implementList" @selection-change="handleSelectionChange">
|
||||
<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="projectCode" width="150"/>
|
||||
<el-table-column label="项目名称" align="center" prop="projectName" width="200"/>
|
||||
<el-table-column label="档案名称" align="center" prop="taskName" width="200"/>
|
||||
<el-table-column label="档案状态" align="center" prop="reportType">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.hydraulic_archive_approval_status" :value="scope.row.reportType"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="当前节点" align="center" prop="finishProgress" width="150">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.hydraulic_archive_approval_node" :value="scope.row.finishProgress"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建人" align="center" prop="reportPersonnel" />
|
||||
<el-table-column label="创建时间" align="center" prop="reportDate" width="150"/>
|
||||
<el-table-column label="审批人" align="center" prop="duration">
|
||||
</el-table-column>
|
||||
<el-table-column label="审批时间" align="center" prop="startDate" width="150"/>
|
||||
<el-table-column label="审批意见" align="center" prop="endDate" width="150"/>
|
||||
|
||||
<!--<el-table-column label="工程进度" align="center" prop="projectProgress">
|
||||
<template slot-scope="scope">{{ scope.row.projectProgress + '%'}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="本次完成工程量" align="center" prop="engineerQuantity" width="150"/>-->
|
||||
|
||||
<!--<el-table-column label="所属系统" align="center" prop="sourceSys" />
|
||||
<el-table-column label="接口类型" align="center" prop="interfaceType" />-->
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="150">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['hydraulicImplement:implement:edit']"
|
||||
>修改
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['hydraulicImplement:implement: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"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改档案审批日志对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-form-item label="项目编码" prop="projectCode">
|
||||
<el-input v-model="form.projectCode" placeholder="请输入项目编码"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="项目名称" prop="projectName">
|
||||
<el-input v-model="form.projectName" placeholder="请输入项目名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="档案名称" prop="taskName">
|
||||
<el-input v-model="form.taskName" placeholder="请输入档案名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="档案状态" prop="reportType">
|
||||
<el-select v-model="form.reportType" placeholder="请选择档案状态" style="width: 100%">
|
||||
<el-option
|
||||
v-for="dict in dict.type.hydraulic_archive_approval_status"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="当前节点" prop="finishProgress">
|
||||
<el-select v-model="form.finishProgress" placeholder="请选择当前节点" style="width: 100%">
|
||||
<el-option
|
||||
v-for="dict in dict.type.hydraulic_archive_approval_node"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="reportPersonnel">
|
||||
<el-input v-model="form.reportPersonnel" placeholder="请输入创建人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="reportDate">
|
||||
<el-date-picker clearable
|
||||
style="width: 100%"
|
||||
v-model="form.reportDate"
|
||||
type="datetime"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
placeholder="请选择创建时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="审批人" prop="duration">
|
||||
<el-input v-model="form.duration" placeholder="请输入审批人"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="审批时间" prop="startDate">
|
||||
<el-date-picker clearable
|
||||
style="width: 100%"
|
||||
v-model="form.startDate"
|
||||
type="datetime"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
placeholder="请选择审批时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="审批意见" prop="endDate">
|
||||
<el-input v-model="form.endDate" placeholder="请输入审批意见"/>
|
||||
</el-form-item>
|
||||
|
||||
<!--<el-form-item label="工程进度" prop="projectProgress">
|
||||
<el-input v-model="form.projectProgress" placeholder="请输入工程进度">
|
||||
<template slot="append">%</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="本次完成工程量" prop="engineerQuantity">
|
||||
<el-input v-model="form.engineerQuantity" placeholder="请输入本次完成工程量"/>
|
||||
</el-form-item>-->
|
||||
|
||||
|
||||
<!--<el-form-item label="所属系统" prop="sourceSys">
|
||||
<el-input v-model="form.sourceSys" placeholder="请输入所属系统" />
|
||||
</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>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {listImplement, getImplement, delImplement, addImplement, updateImplement} from "@/api/hydraulic/implement";
|
||||
|
||||
const sourceSys = "HydraulicArchives"
|
||||
const interfaceType = "ApprovalLog"
|
||||
|
||||
export default {
|
||||
name: "Implement",
|
||||
dicts: ['hydraulic_archive_approval_node', 'hydraulic_archive_approval_status'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 档案审批日志表格数据
|
||||
implementList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
projectName: null,
|
||||
projectCode: null,
|
||||
reportDate: null,
|
||||
taskName: null,
|
||||
reportType: null,
|
||||
startDate: null,
|
||||
endDate: null,
|
||||
duration: null,
|
||||
projectProgress: null,
|
||||
engineerQuantity: null,
|
||||
finishProgress: null,
|
||||
sourceSys: sourceSys,
|
||||
interfaceType: interfaceType,
|
||||
reportPersonnel: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询档案审批日志列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listImplement(this.queryParams).then(response => {
|
||||
this.implementList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
projectName: null,
|
||||
projectCode: null,
|
||||
reportDate: null,
|
||||
taskName: null,
|
||||
reportType: null,
|
||||
startDate: null,
|
||||
endDate: null,
|
||||
duration: null,
|
||||
projectProgress: null,
|
||||
engineerQuantity: null,
|
||||
finishProgress: null,
|
||||
sourceSys: sourceSys,
|
||||
interfaceType: interfaceType,
|
||||
createTime: null,
|
||||
reportPersonnel: 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
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加档案审批日志";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getImplement(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改档案审批日志";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateImplement(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addImplement(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除档案审批日志编号为"' + ids + '"的数据项?').then(function () {
|
||||
return delImplement(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('hydraulicImplement/implement/export', {
|
||||
...this.queryParams
|
||||
}, `implement_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
391
god-ui/src/views/hydraulic/archives/monthly/index.vue
Normal file
391
god-ui/src/views/hydraulic/archives/monthly/index.vue
Normal file
@ -0,0 +1,391 @@
|
||||
<template>
|
||||
<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="projectName">
|
||||
<el-input
|
||||
v-model="queryParams.projectName"
|
||||
placeholder="请输入所在组织"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!--<el-form-item label="项目编码" prop="projectCode">
|
||||
<el-input
|
||||
v-model="queryParams.projectCode"
|
||||
placeholder="请输入项目编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="月" prop="reportDate">
|
||||
<el-date-picker clearable
|
||||
style="width: 100%"
|
||||
v-model="queryParams.reportDate"
|
||||
type="month"
|
||||
value-format="yyyy-MM"
|
||||
placeholder="请选择月">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="汇报类型" prop="reportType">
|
||||
<el-select v-model="queryParams.reportType" placeholder="请选择汇报类型" clearable>
|
||||
<el-option
|
||||
v-for="dict in dict.type.hydraulic_report_type"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</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>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<!--<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['hydraulicImplement:implement:add']"
|
||||
>新增
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['hydraulicImplement:implement:edit']"
|
||||
>修改
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['hydraulicImplement:implement:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['hydraulicImplement:implement:export']"
|
||||
>导出
|
||||
</el-button>
|
||||
</el-col>-->
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="implementList" @selection-change="handleSelectionChange">
|
||||
<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="projectCode" width="150"/>-->
|
||||
<el-table-column label="所在组织" align="center" prop="projectName" width="200"/>
|
||||
<el-table-column label="人员姓名" align="center" prop="reportPersonnel" />
|
||||
<!-- <el-table-column label="任务名称" align="center" prop="taskName" width="200"/>-->
|
||||
<!-- <el-table-column label="汇报类型" align="center" prop="reportType">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.hydraulic_report_type" :value="scope.row.reportType"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="实际开始日期" align="center" prop="startDate" width="150"/>
|
||||
<el-table-column label="实际结束日期" align="center" prop="endDate" width="150"/>-->
|
||||
<el-table-column label="上传数量" align="center" prop="duration">
|
||||
</el-table-column>
|
||||
<el-table-column label="下载数量" align="center" prop="projectProgress">
|
||||
</el-table-column>
|
||||
<el-table-column label="收藏数量" align="center" prop="engineerQuantity" width="150"/>
|
||||
<el-table-column label="评分" align="center" prop="finishProgress" width="150">
|
||||
</el-table-column>
|
||||
<el-table-column label="月" align="center" prop="reportDate" width="150"/>
|
||||
<!--<el-table-column label="所属系统" align="center" prop="sourceSys" />
|
||||
<el-table-column label="接口类型" align="center" prop="interfaceType" />-->
|
||||
<!--<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="150">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['hydraulicImplement:implement:edit']"
|
||||
>修改
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['hydraulicImplement:implement: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"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改档案信息月度汇总对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<!--<el-form-item label="项目编码" prop="projectCode">
|
||||
<el-input v-model="form.projectCode" placeholder="请输入项目编码"/>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="所在组织" prop="projectName">
|
||||
<el-input v-model="form.projectName" placeholder="请输入所在组织"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="人员姓名" prop="reportPersonnel">
|
||||
<el-input v-model="form.reportPersonnel" placeholder="请输入人员姓名" />
|
||||
</el-form-item>
|
||||
<!--<el-form-item label="汇报类型" prop="reportType">
|
||||
<el-select v-model="form.reportType" placeholder="请选择汇报类型" style="width: 100%">
|
||||
<el-option
|
||||
v-for="dict in dict.type.hydraulic_report_type"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="任务名称" prop="taskName">
|
||||
<el-input v-model="form.taskName" placeholder="请输入任务名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="实际开始日期" prop="startDate">
|
||||
<el-date-picker clearable
|
||||
style="width: 100%"
|
||||
v-model="form.startDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择实际开始日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="实际结束日期" prop="endDate">
|
||||
<el-date-picker clearable
|
||||
style="width: 100%"
|
||||
v-model="form.endDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择实际结束日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="上传数量" prop="duration">
|
||||
<el-input v-model="form.duration" placeholder="请输入上传数量"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="下载数量" prop="projectProgress">
|
||||
<el-input v-model="form.projectProgress" placeholder="请输入下载数量"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="收藏数量" prop="engineerQuantity">
|
||||
<el-input v-model="form.engineerQuantity" placeholder="请输入收藏数量"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="评分" prop="finishProgress">
|
||||
<el-input v-model="form.finishProgress" placeholder="请输入评分"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="月" prop="reportDate">
|
||||
<el-date-picker clearable
|
||||
style="width: 100%"
|
||||
v-model="form.reportDate"
|
||||
type="month"
|
||||
value-format="yyyy-MM"
|
||||
placeholder="请选择月">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<!--<el-form-item label="所属系统" prop="sourceSys">
|
||||
<el-input v-model="form.sourceSys" placeholder="请输入所属系统" />
|
||||
</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>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {listImplement, getImplement, delImplement, addImplement, updateImplement} from "@/api/hydraulic/implement";
|
||||
import {parseTime} from "@/utils/god";
|
||||
|
||||
const sourceSys = "HydraulicArchives"
|
||||
const interfaceType = "Monthly"
|
||||
|
||||
export default {
|
||||
name: "Implement",
|
||||
dicts: ['hydraulic_report_type'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 档案信息月度汇总表格数据
|
||||
implementList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
projectName: null,
|
||||
projectCode: null,
|
||||
reportDate: parseTime(new Date(), '{y}-{m}'),
|
||||
taskName: null,
|
||||
reportType: null,
|
||||
startDate: null,
|
||||
endDate: null,
|
||||
duration: null,
|
||||
projectProgress: null,
|
||||
engineerQuantity: null,
|
||||
finishProgress: null,
|
||||
sourceSys: sourceSys,
|
||||
interfaceType: interfaceType,
|
||||
reportPersonnel: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询档案信息月度汇总列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listImplement(this.queryParams).then(response => {
|
||||
this.implementList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
projectName: null,
|
||||
projectCode: null,
|
||||
reportDate: null,
|
||||
taskName: null,
|
||||
reportType: null,
|
||||
startDate: null,
|
||||
endDate: null,
|
||||
duration: null,
|
||||
projectProgress: null,
|
||||
engineerQuantity: null,
|
||||
finishProgress: null,
|
||||
sourceSys: sourceSys,
|
||||
interfaceType: interfaceType,
|
||||
createTime: null,
|
||||
reportPersonnel: 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
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加档案信息月度汇总";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getImplement(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改档案信息月度汇总";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateImplement(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addImplement(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除档案信息月度汇总编号为"' + ids + '"的数据项?').then(function () {
|
||||
return delImplement(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('hydraulicImplement/implement/export', {
|
||||
...this.queryParams
|
||||
}, `implement_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
392
god-ui/src/views/hydraulic/archives/operationLog/index.vue
Normal file
392
god-ui/src/views/hydraulic/archives/operationLog/index.vue
Normal file
@ -0,0 +1,392 @@
|
||||
<template>
|
||||
<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="projectName">
|
||||
<el-input
|
||||
v-model="queryParams.projectName"
|
||||
placeholder="请输入项目名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="项目编码" prop="projectCode">
|
||||
<el-input
|
||||
v-model="queryParams.projectCode"
|
||||
placeholder="请输入项目编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="操作时间" prop="reportDate">
|
||||
<el-date-picker clearable
|
||||
style="width: 100%"
|
||||
v-model="queryParams.reportDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择操作时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="操作类型" prop="reportType">
|
||||
<el-select v-model="queryParams.reportType" placeholder="请选择操作类型" clearable>
|
||||
<el-option
|
||||
v-for="dict in dict.type.hydraulic_archive_operate_type"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</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>
|
||||
|
||||
<!--<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['hydraulicImplement:implement:add']"
|
||||
>新增
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['hydraulicImplement:implement:edit']"
|
||||
>修改
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['hydraulicImplement:implement:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['hydraulicImplement:implement:export']"
|
||||
>导出
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>-->
|
||||
|
||||
<el-table v-loading="loading" :data="implementList" @selection-change="handleSelectionChange">
|
||||
<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="projectCode" width="150"/>
|
||||
<el-table-column label="项目名称" align="center" prop="projectName" width="200"/>
|
||||
<el-table-column label="档案名称" align="center" prop="taskName" width="200"/>
|
||||
<el-table-column label="操作类型" align="center" prop="reportType">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.hydraulic_archive_operate_type" :value="scope.row.reportType"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!--<el-table-column label="当前节点" align="center" prop="finishProgress" width="150">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.hydraulic_archive_operate_type" :value="scope.row.finishProgress"/>
|
||||
</template>
|
||||
</el-table-column>-->
|
||||
<el-table-column label="操作人" align="center" prop="reportPersonnel" />
|
||||
<el-table-column label="操作时间" align="center" prop="reportDate" width="150"/>
|
||||
<el-table-column label="创建部门" align="center" prop="duration">
|
||||
</el-table-column>
|
||||
<el-table-column label="IP地址" align="center" prop="projectProgress" width="150">
|
||||
</el-table-column>
|
||||
<el-table-column label="MAC地址" align="center" prop="startDate" width="200"/>
|
||||
<el-table-column label="备注" align="center" prop="endDate"/>
|
||||
<!--<el-table-column label="本次完成工程量" align="center" prop="engineerQuantity" width="150"/>-->
|
||||
|
||||
<!--<el-table-column label="所属系统" align="center" prop="sourceSys" />
|
||||
<el-table-column label="接口类型" align="center" prop="interfaceType" />-->
|
||||
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="150">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['hydraulicImplement:implement:edit']"
|
||||
>修改
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['hydraulicImplement:implement: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"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改档案操作日志对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
||||
<el-form-item label="项目编码" prop="projectCode">
|
||||
<el-input v-model="form.projectCode" placeholder="请输入项目编码"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="项目名称" prop="projectName">
|
||||
<el-input v-model="form.projectName" placeholder="请输入项目名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="档案名称" prop="taskName">
|
||||
<el-input v-model="form.taskName" placeholder="请输入档案名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="操作类型" prop="reportType">
|
||||
<el-select v-model="form.reportType" placeholder="请选择操作类型" style="width: 100%">
|
||||
<el-option
|
||||
v-for="dict in dict.type.hydraulic_archive_operate_type"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="当前节点" prop="finishProgress">
|
||||
<el-select v-model="form.finishProgress" placeholder="请选择当前节点" style="width: 100%">
|
||||
<el-option
|
||||
v-for="dict in dict.type.hydraulic_archive_operate_type"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="操作人" prop="reportPersonnel">
|
||||
<el-input v-model="form.reportPersonnel" placeholder="请输入操作人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="操作时间" prop="reportDate">
|
||||
<el-date-picker clearable
|
||||
style="width: 100%"
|
||||
v-model="form.reportDate"
|
||||
type="datetime"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
placeholder="请选择操作时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建部门" prop="duration">
|
||||
<el-input v-model="form.duration" placeholder="请输入创建部门"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="IP地址" prop="projectProgress">
|
||||
<el-input v-model="form.projectProgress" placeholder="请输入IP地址">
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="MAC地址" prop="startDate">
|
||||
<el-input v-model="form.startDate" placeholder="请输入MAC地址"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="endDate">
|
||||
<el-input v-model="form.endDate" placeholder="请输入备注"/>
|
||||
</el-form-item>
|
||||
<!--<el-form-item label="本次完成工程量" prop="engineerQuantity">
|
||||
<el-input v-model="form.engineerQuantity" placeholder="请输入本次完成工程量"/>
|
||||
</el-form-item>-->
|
||||
|
||||
|
||||
<!--<el-form-item label="所属系统" prop="sourceSys">
|
||||
<el-input v-model="form.sourceSys" placeholder="请输入所属系统" />
|
||||
</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>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {listImplement, getImplement, delImplement, addImplement, updateImplement} from "@/api/hydraulic/implement";
|
||||
|
||||
const sourceSys = "HydraulicArchives"
|
||||
const interfaceType = "OperationLog"
|
||||
|
||||
export default {
|
||||
name: "Implement",
|
||||
dicts: ['hydraulic_archive_operate_type', 'hydraulic_archive_approval_status'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 档案操作日志表格数据
|
||||
implementList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
projectName: null,
|
||||
projectCode: null,
|
||||
reportDate: null,
|
||||
taskName: null,
|
||||
reportType: null,
|
||||
startDate: null,
|
||||
endDate: null,
|
||||
duration: null,
|
||||
projectProgress: null,
|
||||
engineerQuantity: null,
|
||||
finishProgress: null,
|
||||
sourceSys: sourceSys,
|
||||
interfaceType: interfaceType,
|
||||
reportPersonnel: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询档案操作日志列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listImplement(this.queryParams).then(response => {
|
||||
this.implementList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
projectName: "淮河堤防改造工程一期",
|
||||
projectCode: "HH-202311050201",
|
||||
reportDate: null,
|
||||
taskName: "现浇混凝土护坡单元工程施工质量验收评定表",
|
||||
reportType: null,
|
||||
startDate: null,
|
||||
endDate: null,
|
||||
duration: null,
|
||||
projectProgress: null,
|
||||
engineerQuantity: null,
|
||||
finishProgress: null,
|
||||
sourceSys: sourceSys,
|
||||
interfaceType: interfaceType,
|
||||
createTime: null,
|
||||
reportPersonnel: 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
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加档案操作日志";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getImplement(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改档案操作日志";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateImplement(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addImplement(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除档案操作日志编号为"' + ids + '"的数据项?').then(function () {
|
||||
return delImplement(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('hydraulicImplement/implement/export', {
|
||||
...this.queryParams
|
||||
}, `implement_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user