|
|
@@ -42,22 +42,21 @@
|
|
|
<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="['meeting:reserveList:create']">新增</el-button>
|
|
|
+ v-hasPermi="['stamp:list:create']">新增</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
|
|
|
- v-hasPermi="['meeting:reserveList:export']">导出</el-button>
|
|
|
+ v-hasPermi="['stamp:list:export']">导出</el-button>
|
|
|
</el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" :data="postList">
|
|
|
+ <el-table v-loading="loading" :data="StampList">
|
|
|
<el-table-column label="用印人" align="center" prop="employeeName" min-width="100" />
|
|
|
<el-table-column label="部门" align="center" prop="deptName" min-width="100" />
|
|
|
<el-table-column label="职位" align="center" prop="position" min-width="100" />
|
|
|
<el-table-column label="手机号" align="center" prop="employeePhone" min-width="100" />
|
|
|
<el-table-column label="用印标题" align="center" prop="stampTitle" min-width="150" />
|
|
|
- <el-table-column label="用章类型" align="center" prop="stampSealName" min-width="100" />
|
|
|
<el-table-column label="创建人" align="center" prop="currentAuditEmployeeName" min-width="100" />
|
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
|
<template v-slot="scope">
|
|
|
@@ -72,11 +71,11 @@
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template v-slot="scope">
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
|
- v-hasPermi="['meeting:reserveList:update']">修改</el-button>
|
|
|
+ v-hasPermi="['stamp:list:update']">修改</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
|
- v-hasPermi="['meeting:reserveList:delete']">删除</el-button>
|
|
|
+ v-hasPermi="['stamp:list:delete']">删除</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-detail" @click="handleDetail(scope.row)"
|
|
|
- v-hasPermi="['meeting:reserveList:detail']">详情</el-button>
|
|
|
+ v-hasPermi="['stamp:list:detail']">详情</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -206,7 +205,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listPost, getPost, delPost, addPost, updatePost, exportPost } from "@/api/meeting";
|
|
|
+import { listStamp, getStamp, delStamp, addStamp, updateStamp, exportStamp } from "@/api/stamp/list";
|
|
|
+import { typeList } from "@/api/oa/stamp"
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import PeopleSelect from "@/components/PeopleSelect/index.vue";
|
|
|
@@ -214,7 +214,7 @@ import { DICT_TYPE } from '@/utils/dict'
|
|
|
import { listDept } from "@/api/system/dept";
|
|
|
import { getBaseHeader } from "@/utils/request";
|
|
|
export default {
|
|
|
- name: "SystemPost",
|
|
|
+ name: "SystemStamp",
|
|
|
components: {
|
|
|
PeopleSelect,
|
|
|
Treeselect,
|
|
|
@@ -222,14 +222,6 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
oaStampSeal:[
|
|
|
- {
|
|
|
- id:1,
|
|
|
- sealName:'公章'
|
|
|
- },
|
|
|
- {
|
|
|
- id:2,
|
|
|
- sealName:'财务章'
|
|
|
- }
|
|
|
],
|
|
|
posOptions:[],
|
|
|
// 部门列表
|
|
|
@@ -243,7 +235,7 @@ export default {
|
|
|
// 总条数
|
|
|
total: 0,
|
|
|
// 岗位表格数据
|
|
|
- postList: [],
|
|
|
+ StampList: [],
|
|
|
// 弹出层标题
|
|
|
title: "",
|
|
|
// 是否显示弹出层
|
|
|
@@ -289,8 +281,17 @@ export default {
|
|
|
created() {
|
|
|
this.getList();
|
|
|
this.getListDept();
|
|
|
+ this.getTypeList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 类型信息列表
|
|
|
+ getTypeList(){
|
|
|
+ typeList().then(
|
|
|
+ response => {
|
|
|
+ this.oaStampSeal = response.data;
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
/** 查询部门列表 */
|
|
|
getListDept() {
|
|
|
listDept().then(response => {
|
|
|
@@ -321,8 +322,8 @@ export default {
|
|
|
/** 查询岗位列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- listPost(this.queryParams).then(response => {
|
|
|
- this.postList = response.data.list;
|
|
|
+ listStamp(this.queryParams).then(response => {
|
|
|
+ this.StampList = response.data.list;
|
|
|
this.total = response.data.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
@@ -404,7 +405,7 @@ export default {
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
|
const id = row.id
|
|
|
- getPost(id).then(response => {
|
|
|
+ getStamp(id).then(response => {
|
|
|
this.form = response.data;
|
|
|
let files = response.data.fileList;
|
|
|
if (files) {
|
|
|
@@ -429,7 +430,7 @@ export default {
|
|
|
handleDetail(row) {
|
|
|
this.reset();
|
|
|
const id = row.id
|
|
|
- getPost(id).then(response => {
|
|
|
+ getStamp(id).then(response => {
|
|
|
this.form = response.data;
|
|
|
this.openDetail = true;
|
|
|
this.title = "详情";
|
|
|
@@ -442,13 +443,13 @@ export default {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
if (this.form.id !== undefined) {
|
|
|
- updatePost(this.form).then(response => {
|
|
|
+ updateStamp(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
});
|
|
|
} else {
|
|
|
- addPost(this.form).then(response => {
|
|
|
+ addStamp(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
@@ -461,7 +462,7 @@ export default {
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id;
|
|
|
this.$modal.confirm('是否确认删除岗位编号为"' + ids + '"的数据项?').then(function () {
|
|
|
- return delPost(ids);
|
|
|
+ return delStamp(ids);
|
|
|
}).then(() => {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
@@ -472,7 +473,7 @@ export default {
|
|
|
const queryParams = this.queryParams;
|
|
|
this.$modal.confirm('是否确认导出所有岗位数据项?').then(() => {
|
|
|
this.exportLoading = true;
|
|
|
- return exportPost(queryParams);
|
|
|
+ return exportStamp(queryParams);
|
|
|
}).then(response => {
|
|
|
this.$download.excel(response, '岗位数据.xls');
|
|
|
this.exportLoading = false;
|