|
@@ -2,10 +2,10 @@
|
|
|
<div class="app-container">
|
|
|
<!-- <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
<el-form-item prop="unitName" > -->
|
|
|
- <!-- <el-select v-model="queryParams.unitName" placeholder="请选择单位名称" clearable size="small">
|
|
|
+ <!-- <el-select v-model="queryParams.unitName" placeholder="请选择单位名称" clearable size="small">
|
|
|
<el-option label="请选择字典生成" value="" />
|
|
|
</el-select> -->
|
|
|
- <!-- <treeselect
|
|
|
+ <!-- <treeselect
|
|
|
v-model="queryParams.unitName"
|
|
|
:options="userss"
|
|
|
placeholder="请选择到访单位"
|
|
@@ -13,7 +13,7 @@
|
|
|
@select="selectPeo"
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
- <!-- <el-form-item label="单位id" prop="unitId">
|
|
|
+ <!-- <el-form-item label="单位id" prop="unitId">
|
|
|
<el-input
|
|
|
v-model="queryParams.unitId"
|
|
|
placeholder="请输入单位id"
|
|
@@ -22,7 +22,7 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
- <!-- <el-form-item label="开始时间" prop="startTime">
|
|
|
+ <!-- <el-form-item label="开始时间" prop="startTime">
|
|
|
<el-date-picker clearable size="small"
|
|
|
v-model="queryParams.startTime"
|
|
|
type="date"
|
|
@@ -38,7 +38,7 @@
|
|
|
placeholder="选择结束时间">
|
|
|
</el-date-picker>
|
|
|
</el-form-item> -->
|
|
|
- <!-- <el-form-item prop="createName">
|
|
|
+ <!-- <el-form-item prop="createName">
|
|
|
<el-input
|
|
|
v-model="queryParams.createName"
|
|
|
placeholder="请输入创建人姓名"
|
|
@@ -47,7 +47,7 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
- <!-- <el-form-item label="创建人id" prop="createId">
|
|
|
+ <!-- <el-form-item label="创建人id" prop="createId">
|
|
|
<el-input
|
|
|
v-model="queryParams.createId"
|
|
|
placeholder="请输入创建人id"
|
|
@@ -56,7 +56,7 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
- <!-- <el-form-item prop="filePath">
|
|
|
+ <!-- <el-form-item prop="filePath">
|
|
|
<el-input
|
|
|
v-model="queryParams.filePath"
|
|
|
placeholder="请输入文件路径"
|
|
@@ -65,7 +65,7 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
- <!-- <el-form-item prop="fileName">
|
|
|
+ <!-- <el-form-item prop="fileName">
|
|
|
<el-input
|
|
|
v-model="queryParams.fileName"
|
|
|
placeholder="请输入文件名称"
|
|
@@ -83,7 +83,7 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
- <!-- <el-form-item label="记录人id" prop="recorderId">
|
|
|
+ <!-- <el-form-item label="记录人id" prop="recorderId">
|
|
|
<el-input
|
|
|
v-model="queryParams.recorderId"
|
|
|
placeholder="请输入记录人id"
|
|
@@ -92,7 +92,7 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
- <!-- <el-form-item prop="participants">
|
|
|
+ <!-- <el-form-item prop="participants">
|
|
|
<el-input
|
|
|
v-model="queryParams.participants"
|
|
|
placeholder="请输入参加人"
|
|
@@ -101,7 +101,7 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
- <!-- <el-form-item label="参加人id" prop="participantsId">
|
|
|
+ <!-- <el-form-item label="参加人id" prop="participantsId">
|
|
|
<el-input
|
|
|
v-model="queryParams.participantsId"
|
|
|
placeholder="请输入参加人id"
|
|
@@ -110,7 +110,7 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
- <!-- <el-form-item prop="organizer">
|
|
|
+ <!-- <el-form-item prop="organizer">
|
|
|
<el-input
|
|
|
v-model="queryParams.organizer"
|
|
|
placeholder="请输入组织人"
|
|
@@ -119,7 +119,7 @@
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
- <!-- <el-form-item label="组织人id" prop="organizerId">
|
|
|
+ <!-- <el-form-item label="组织人id" prop="organizerId">
|
|
|
<el-input
|
|
|
v-model="queryParams.organizerId"
|
|
|
placeholder="请输入组织人id"
|
|
@@ -128,9 +128,9 @@
|
|
|
@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="btr" @click="resetQuery">重置</el-button>
|
|
|
+ <!-- <el-form-item> -->
|
|
|
+ <!-- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> -->
|
|
|
+ <!-- <el-button icon="el-icon-refresh" size="btr" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form> -->
|
|
|
|
|
@@ -143,7 +143,8 @@
|
|
|
size="mini"
|
|
|
@click="handleAdd"
|
|
|
v-hasPermi="['thought:parliament:add']"
|
|
|
- >新增</el-button>
|
|
|
+ >新增</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -154,7 +155,8 @@
|
|
|
:disabled="single"
|
|
|
@click="handleUpdate"
|
|
|
v-hasPermi="['thought:parliament:edit']"
|
|
|
- >修改</el-button>
|
|
|
+ >修改</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -165,7 +167,8 @@
|
|
|
:disabled="multiple"
|
|
|
@click="handleDelete"
|
|
|
v-hasPermi="['thought:parliament:remove']"
|
|
|
- >删除</el-button>
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -176,66 +179,114 @@
|
|
|
:loading="exportLoading"
|
|
|
@click="handleExport"
|
|
|
v-hasPermi="['thought:parliament:export']"
|
|
|
- >导出</el-button>
|
|
|
+ >导出</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
+ <right-toolbar
|
|
|
+ :showSearch.sync="showSearch"
|
|
|
+ @queryTable="getList"
|
|
|
+ ></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" :data="parliamentList" @selection-change="handleSelectionChange">
|
|
|
+ <el-table
|
|
|
+ v-loading="loading"
|
|
|
+ :data="parliamentList"
|
|
|
+ @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="序号" type="index" width="50" align="center" />
|
|
|
<!-- <el-table-column label="单位名称" align="center" prop="unitName" /> -->
|
|
|
<!-- <el-table-column label="单位id" align="center" prop="unitId" /> -->
|
|
|
-
|
|
|
+
|
|
|
<!-- <el-table-column label="创建人姓名" align="center" prop="createName" /> -->
|
|
|
<!-- <el-table-column label="创建人id" align="center" prop="createId" /> -->
|
|
|
<!-- <el-table-column label="文件路径" align="center" prop="filePath" /> -->
|
|
|
- <el-table-column label="文件名称" align="center" prop="fileName" show-overflow-tooltip/>
|
|
|
- <el-table-column label="会议内容" align="center" prop="talkContent" show-overflow-tooltip >
|
|
|
- <template slot-scope="scope">
|
|
|
+ <el-table-column
|
|
|
+ label="文件名称"
|
|
|
+ align="center"
|
|
|
+ prop="fileName"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="会议内容"
|
|
|
+ align="center"
|
|
|
+ prop="talkContent"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
<span>{{ onEditor(scope.row.talkContent) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="记录人" align="center" prop="recorder" show-overflow-tooltip/>
|
|
|
+ <el-table-column
|
|
|
+ label="记录人"
|
|
|
+ align="center"
|
|
|
+ prop="recorder"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
<!-- <el-table-column label="记录人id" align="center" prop="recorderId" /> -->
|
|
|
- <el-table-column label="参加人" align="center" prop="participants" show-overflow-tooltip :formatter="unit2Format"/>
|
|
|
+ <el-table-column
|
|
|
+ label="参加人"
|
|
|
+ align="center"
|
|
|
+ prop="participants"
|
|
|
+ show-overflow-tooltip
|
|
|
+ :formatter="unit2Format"
|
|
|
+ />
|
|
|
<!-- <el-table-column label="参加人id" align="center" prop="participantsId" /> -->
|
|
|
<el-table-column label="组织人" align="center" prop="organizer" />
|
|
|
<!-- <el-table-column label="组织人id" align="center" prop="organizerId" /> -->
|
|
|
- <el-table-column label="议会主题" align="center" prop="talkTheme" show-overflow-tooltip/>
|
|
|
- <el-table-column label="开始时间" align="center" prop="startTime" width="180">
|
|
|
+ <el-table-column
|
|
|
+ label="议会主题"
|
|
|
+ align="center"
|
|
|
+ prop="talkTheme"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="开始时间"
|
|
|
+ align="center"
|
|
|
+ prop="startTime"
|
|
|
+ width="180"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.startTime, '{y}-{m}-{d}') }}</span>
|
|
|
+ <span>{{ parseTime(scope.row.startTime, "{y}-{m}-{d}") }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="结束时间" align="center" prop="endTime" width="180">
|
|
|
+ <el-table-column
|
|
|
+ label="结束时间"
|
|
|
+ align="center"
|
|
|
+ prop="endTime"
|
|
|
+ width="180"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.endTime, '{y}-{m}-{d}') }}</span>
|
|
|
+ <span>{{ parseTime(scope.row.endTime, "{y}-{m}-{d}") }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
+ <el-table-column
|
|
|
+ label="操作"
|
|
|
+ align="center"
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="btu"
|
|
|
type="text"
|
|
|
-
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['thought:parliament:edit']"
|
|
|
- >修改</el-button>
|
|
|
+ >修改</el-button
|
|
|
+ >
|
|
|
<el-button
|
|
|
size="btd"
|
|
|
type="text"
|
|
|
-
|
|
|
@click="handleDelete(scope.row)"
|
|
|
v-hasPermi="['thought:parliament:remove']"
|
|
|
- >删除</el-button>
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
-
|
|
|
+
|
|
|
<pagination
|
|
|
- v-show="total>0"
|
|
|
+ v-show="total > 0"
|
|
|
:total="total"
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
:limit.sync="queryParams.pageSize"
|
|
@@ -243,37 +294,52 @@
|
|
|
/>
|
|
|
|
|
|
<!-- 添加或修改党委议教会对话框 -->
|
|
|
- <el-dialog :title="title"
|
|
|
+ <el-dialog
|
|
|
+ :title="title"
|
|
|
:visible.sync="open"
|
|
|
width="1080px"
|
|
|
append-to-body
|
|
|
- :close-on-click-modal="false">
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="100px" :inline="true" >
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ >
|
|
|
+ <el-form
|
|
|
+ ref="form"
|
|
|
+ :model="form"
|
|
|
+ :rules="rules"
|
|
|
+ label-width="100px"
|
|
|
+ :inline="true"
|
|
|
+ >
|
|
|
<!-- <el-form-item label="单位名称" prop="unitName">
|
|
|
<el-select v-model="form.unitName" placeholder="请选择单位名称">
|
|
|
<el-option label="请选择字典生成" value="" />
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item> -->
|
|
|
- <div class="jiben">基本信息</div>
|
|
|
- <el-form-item prop="talkTheme" label="议会主题">
|
|
|
- <el-input v-model="form.talkTheme" placeholder="请输入内容" />
|
|
|
+ <div class="jiben">基本信息</div>
|
|
|
+ <el-form-item prop="talkTheme" label="议会主题">
|
|
|
+ <el-input v-model="form.talkTheme" placeholder="请输入内容" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="开始时间" prop="startTime">
|
|
|
- <el-date-picker clearable size="small"
|
|
|
- editable
|
|
|
+ <el-form-item label="开始时间" prop="startTime">
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ editable
|
|
|
v-model="form.startTime"
|
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
- placeholder="选择开始时间">
|
|
|
+ placeholder="选择开始时间"
|
|
|
+ >
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="结束时间" prop="endTime" label-width="115px">
|
|
|
- <el-date-picker editable clearable size="small"
|
|
|
+ <el-date-picker
|
|
|
+ editable
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
v-model="form.endTime"
|
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
- placeholder="选择结束时间">
|
|
|
+ placeholder="选择结束时间"
|
|
|
+ >
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
<!-- <el-form-item prop="unitName" label="单位名称"> -->
|
|
@@ -295,7 +361,7 @@
|
|
|
<!-- <el-form-item label="单位id" prop="unitId">
|
|
|
<el-input v-model="form.unitId" placeholder="请输入单位id" />
|
|
|
</el-form-item> -->
|
|
|
-
|
|
|
+
|
|
|
<!-- <el-form-item label="创建人姓名" prop="createName">
|
|
|
<el-input v-model="form.createName" placeholder="请输入创建人姓名" />
|
|
|
</el-form-item> -->
|
|
@@ -308,40 +374,39 @@
|
|
|
<el-form-item label="文件名称" prop="fileName">
|
|
|
<el-input v-model="form.fileName" placeholder="请输入文件名称" />
|
|
|
</el-form-item> -->
|
|
|
- <el-form-item label="组 织 人" prop="organizer">
|
|
|
+ <el-form-item label="组 织 人" prop="organizer">
|
|
|
<!-- <el-input v-model="form." placeholder="请输入组织人" /> -->
|
|
|
- <el-select
|
|
|
- filterable
|
|
|
- v-model="form.organizer"
|
|
|
- ref="createName"
|
|
|
- placeholder="请选择组织人"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in executor"
|
|
|
- :key="item.id"
|
|
|
- :label="item.name"
|
|
|
- :value="item.name"
|
|
|
- @click.native="zuzhiPeople(item.id)"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ <el-select
|
|
|
+ filterable
|
|
|
+ v-model="form.organizer"
|
|
|
+ ref="createName"
|
|
|
+ placeholder="请选择组织人"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in executor"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.name"
|
|
|
+ @click.native="zuzhiPeople(item.id)"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="记 录 人" prop="recorder">
|
|
|
<!-- <el-input v-model="form.recorder" placeholder="请输入记录人" /> -->
|
|
|
- <el-select
|
|
|
- v-model="form.recorder"
|
|
|
- ref="recorder"
|
|
|
- placeholder="请选择记录人"
|
|
|
- filterable
|
|
|
-
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in recodeexecutor"
|
|
|
- :key="item.id"
|
|
|
- :label="item.name"
|
|
|
- :value="item.name"
|
|
|
- @click.native="jiluPeople(item.id)"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ <el-select
|
|
|
+ v-model="form.recorder"
|
|
|
+ ref="recorder"
|
|
|
+ placeholder="请选择记录人"
|
|
|
+ filterable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in recodeexecutor"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.name"
|
|
|
+ @click.native="jiluPeople(item.id)"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<!-- <el-form-item label="记录人id" prop="recorderId">
|
|
|
<el-input v-model="form.recorderId" placeholder="请输入记录人id" />
|
|
@@ -350,8 +415,8 @@
|
|
|
<el-input v-model="form.participants" placeholder="请输入参加人" />
|
|
|
</el-form-item> -->
|
|
|
<el-form-item label="参 加 人" prop="participants" label-width="100px">
|
|
|
- <div>
|
|
|
- <!-- <el-select
|
|
|
+ <div>
|
|
|
+ <!-- <el-select
|
|
|
multiple
|
|
|
v-model="form.participants"
|
|
|
placeholder="请选择参加人"
|
|
@@ -367,14 +432,13 @@
|
|
|
@click.native="returnExecutor(item.deptId, item.nickName)"
|
|
|
/>
|
|
|
</el-select> -->
|
|
|
- <el-select
|
|
|
+ <el-select
|
|
|
v-model="form.participants"
|
|
|
ref="participants"
|
|
|
placeholder="请选择参加人"
|
|
|
class="canjiaren"
|
|
|
multiple
|
|
|
filterable
|
|
|
-
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in executor"
|
|
@@ -384,37 +448,37 @@
|
|
|
@click.native="returnExecutor(item.id, item.name)"
|
|
|
/>
|
|
|
</el-select>
|
|
|
- </div>
|
|
|
- </el-form-item>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
<!-- <el-form-item label="参加人id" prop="participantsId">
|
|
|
<el-input v-model="form.participantsId" placeholder="请输入参加人id" />
|
|
|
</el-form-item> -->
|
|
|
-
|
|
|
+
|
|
|
<!-- <el-form-item label="组织人id" prop="organizerId">
|
|
|
<el-input v-model="form.organizerId" placeholder="请输入组织人id" />
|
|
|
</el-form-item> -->
|
|
|
-
|
|
|
+
|
|
|
<div class="jiben">会议内容</div>
|
|
|
- <el-form-item >
|
|
|
+ <el-form-item>
|
|
|
<!-- <editor v-model="form.talkContent" :min-height="192"/> -->
|
|
|
<quill-editor
|
|
|
- class="quill-editor"
|
|
|
- ref="myTextEditor"
|
|
|
- v-model="form.talkContent"
|
|
|
- style="
|
|
|
- height: 150px;
|
|
|
- width: 1010px;
|
|
|
- margin-left: 0px;
|
|
|
- color: white;
|
|
|
- margin-bottom: 60px;
|
|
|
- "
|
|
|
- ></quill-editor>
|
|
|
+ class="quill-editor"
|
|
|
+ ref="myTextEditor"
|
|
|
+ v-model="form.talkContent"
|
|
|
+ style="
|
|
|
+ height: 150px;
|
|
|
+ width: 1010px;
|
|
|
+ margin-left: 0px;
|
|
|
+ color: white;
|
|
|
+ margin-bottom: 60px;
|
|
|
+ "
|
|
|
+ ></quill-editor>
|
|
|
</el-form-item>
|
|
|
- <div class="jiben">附件</div>
|
|
|
- <el-form-item>
|
|
|
+ <div class="jiben">附件</div>
|
|
|
+ <el-form-item>
|
|
|
<FileUpload v-model="form.fileName" />
|
|
|
- </el-form-item>
|
|
|
- <!-- <a :href="form.filePath" download class="downloadfile">下载附件</a> -->
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <a :href="form.filePath" download class="downloadfile">下载附件</a> -->
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
@@ -425,7 +489,14 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listParliament, getParliament, delParliament, addParliament, updateParliament, exportParliament } from "@/api/thought/parliament";
|
|
|
+import {
|
|
|
+ listParliament,
|
|
|
+ getParliament,
|
|
|
+ delParliament,
|
|
|
+ addParliament,
|
|
|
+ updateParliament,
|
|
|
+ exportParliament,
|
|
|
+} from "@/api/thought/parliament";
|
|
|
// 树形
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
@@ -434,8 +505,8 @@ import { getDept2, getAll } from "@/api/grassrootsregistration/bdglmeeting";
|
|
|
// import { getDept2, getAll,getWeiShu } from "@/api/grassrootsregistration/bdglmeeting";
|
|
|
export default {
|
|
|
name: "Parliament",
|
|
|
- components:{
|
|
|
- Treeselect
|
|
|
+ components: {
|
|
|
+ Treeselect,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -478,72 +549,72 @@ export default {
|
|
|
participantsId: null,
|
|
|
organizer: null,
|
|
|
organizerId: null,
|
|
|
- talkTheme: null
|
|
|
+ talkTheme: null,
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
talkTheme: [
|
|
|
- { required: true, message: "议会主题不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "议会主题不能为空", trigger: "blur" },
|
|
|
],
|
|
|
startTime: [
|
|
|
- { required: true, message: "开始时间不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "开始时间不能为空", trigger: "blur" },
|
|
|
],
|
|
|
endTime: [
|
|
|
- { required: true, message: "结束时间不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "结束时间不能为空", trigger: "blur" },
|
|
|
],
|
|
|
organizer: [
|
|
|
- { required: true, message: "组织人不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "组织人不能为空", trigger: "blur" },
|
|
|
],
|
|
|
recorder: [
|
|
|
- { required: true, message: "记录人不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "记录人不能为空", trigger: "blur" },
|
|
|
],
|
|
|
participants: [
|
|
|
- { required: true, message: "参加人不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "参加人不能为空", trigger: "blur" },
|
|
|
],
|
|
|
},
|
|
|
// 获取单位列表
|
|
|
- users:[],
|
|
|
- // 获取单位列表
|
|
|
- userss:[],
|
|
|
- unitName:"",
|
|
|
+ users: [],
|
|
|
+ // 获取单位列表
|
|
|
+ userss: [],
|
|
|
+ unitName: "",
|
|
|
// 组织人
|
|
|
- executor:[],
|
|
|
+ executor: [],
|
|
|
// 记录人
|
|
|
- recodeexecutor:[]
|
|
|
+ recodeexecutor: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
getDept2().then((res) => {
|
|
|
- // console.log(res,2)
|
|
|
- this.userss = res.data;
|
|
|
- // console.log(this.userss);
|
|
|
- });
|
|
|
- this.getSuoYou()
|
|
|
+ // console.log(res,2)
|
|
|
+ this.userss = res.data;
|
|
|
+ // console.log(this.userss);
|
|
|
+ });
|
|
|
+ this.getSuoYou();
|
|
|
},
|
|
|
methods: {
|
|
|
// 获取执行人
|
|
|
- unit2Format(row){
|
|
|
- var deptName=""
|
|
|
+ unit2Format(row) {
|
|
|
+ var deptName = "";
|
|
|
this.recodeexecutor.map((item) => {
|
|
|
// console.log(row.talkPeople)
|
|
|
- row.participants.split(",").forEach((items, index) => {
|
|
|
- // console.log(item.id,item.name)
|
|
|
- if (item.id == items) {
|
|
|
- deptName += item.name + " ";
|
|
|
- }
|
|
|
- });
|
|
|
+ row.participants.split(",").forEach((items, index) => {
|
|
|
+ // console.log(item.id,item.name)
|
|
|
+ if (item.id == items) {
|
|
|
+ deptName += item.name + " ";
|
|
|
+ }
|
|
|
});
|
|
|
- return deptName
|
|
|
+ });
|
|
|
+ return deptName;
|
|
|
},
|
|
|
- zuzhiPeople(id){
|
|
|
+ zuzhiPeople(id) {
|
|
|
// console.log(id)
|
|
|
- this.form.organizerId=id
|
|
|
+ this.form.organizerId = id;
|
|
|
},
|
|
|
- jiluPeople(id){
|
|
|
- this.form.recorderId=id
|
|
|
+ jiluPeople(id) {
|
|
|
+ this.form.recorderId = id;
|
|
|
// console.log(id)
|
|
|
},
|
|
|
// 获取所有人员
|
|
@@ -551,9 +622,9 @@ export default {
|
|
|
getAll().then((response) => {
|
|
|
this.executors = response.rows;
|
|
|
// 添加的人员
|
|
|
- this.executor=response.rows
|
|
|
+ this.executor = response.rows;
|
|
|
// 记录人
|
|
|
- this.recodeexecutor=response.rows
|
|
|
+ this.recodeexecutor = response.rows;
|
|
|
// console.log(this.executors);
|
|
|
});
|
|
|
},
|
|
@@ -566,16 +637,16 @@ export default {
|
|
|
return str;
|
|
|
}
|
|
|
},
|
|
|
- selectPeo(val){
|
|
|
+ selectPeo(val) {
|
|
|
// console.log(val)
|
|
|
this.queryParams.unitName = val.label;
|
|
|
- this.getList()
|
|
|
+ this.getList();
|
|
|
},
|
|
|
// 到访单位选中触发
|
|
|
selectPeo1(val) {
|
|
|
// console.log(val)
|
|
|
- this.unitName=val.label
|
|
|
- this.form.unitId=val.id
|
|
|
+ this.unitName = val.label;
|
|
|
+ this.form.unitId = val.id;
|
|
|
// console.log(this.unitName)
|
|
|
// 获取执行单位列表
|
|
|
// getDept2().then((res) => {
|
|
@@ -593,7 +664,7 @@ export default {
|
|
|
/** 查询党委议教会列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- listParliament(this.queryParams).then(response => {
|
|
|
+ listParliament(this.queryParams).then((response) => {
|
|
|
this.parliamentList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
@@ -625,7 +696,7 @@ export default {
|
|
|
participantsId: null,
|
|
|
organizer: null,
|
|
|
organizerId: null,
|
|
|
- talkTheme: null
|
|
|
+ talkTheme: null,
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -636,23 +707,23 @@ export default {
|
|
|
},
|
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
|
- this.queryParams={}
|
|
|
+ this.queryParams = {};
|
|
|
this.resetForm("queryForm");
|
|
|
this.handleQuery();
|
|
|
- this.getList()
|
|
|
+ this.getList();
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
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() {
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
this.title = "添加党委议教会";
|
|
|
- getDept2().then((res) => {
|
|
|
+ getDept2().then((res) => {
|
|
|
// console.log(res,2)
|
|
|
this.users = res.data;
|
|
|
// console.log(this.users);
|
|
@@ -661,36 +732,36 @@ export default {
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
|
- const id = row.id || this.ids
|
|
|
- getParliament(id).then(response => {
|
|
|
+ const id = row.id || this.ids;
|
|
|
+ getParliament(id).then((response) => {
|
|
|
this.form = response.data;
|
|
|
- this.form.participants = this.form.participants.split(",").map(Number);
|
|
|
+ this.form.participants = this.form.participants.split(",").map(Number);
|
|
|
this.open = true;
|
|
|
this.title = "修改党委议教会";
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
- if(this.form.fileName){
|
|
|
- this.form.filePath=this.form.fileName[0].url
|
|
|
- this.form.fileName=this.form.fileName[0].name
|
|
|
+ if (this.form.fileName) {
|
|
|
+ this.form.filePath = this.form.fileName[0].url;
|
|
|
+ this.form.fileName = this.form.fileName[0].name;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// console.log(this.form)
|
|
|
this.form.participants = this.form.participants.join(",");
|
|
|
this.form.participantsId = this.form.participants;
|
|
|
// console.log(this.form)
|
|
|
- this.form.unitName=this.unitName
|
|
|
- this.$refs["form"].validate(valid => {
|
|
|
+ this.form.unitName = this.unitName;
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (this.form.id != null) {
|
|
|
- updateParliament(this.form).then(response => {
|
|
|
+ updateParliament(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
|
});
|
|
|
} else {
|
|
|
- addParliament(this.form).then(response => {
|
|
|
+ addParliament(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|
|
@@ -702,62 +773,70 @@ export default {
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
|
- this.$modal.confirm('是否确认删除?').then(function() {
|
|
|
- return delParliament(ids);
|
|
|
- }).then(() => {
|
|
|
- this.getList();
|
|
|
- this.$modal.msgSuccess("删除成功");
|
|
|
- }).catch(() => {});
|
|
|
+ this.$modal
|
|
|
+ .confirm("是否确认删除?")
|
|
|
+ .then(function () {
|
|
|
+ return delParliament(ids);
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.getList();
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
const queryParams = this.queryParams;
|
|
|
- this.$modal.confirm('是否确认导出所有党委议教会数据项?').then(() => {
|
|
|
- this.exportLoading = true;
|
|
|
- return exportParliament(queryParams);
|
|
|
- }).then(response => {
|
|
|
- this.$download.name(response.msg);
|
|
|
- this.exportLoading = false;
|
|
|
- }).catch(() => {});
|
|
|
- }
|
|
|
- }
|
|
|
+ this.$modal
|
|
|
+ .confirm("是否确认导出所有党委议教会数据项?")
|
|
|
+ .then(() => {
|
|
|
+ this.exportLoading = true;
|
|
|
+ return exportParliament(queryParams);
|
|
|
+ })
|
|
|
+ .then((response) => {
|
|
|
+ this.$download.name(response.msg);
|
|
|
+ this.exportLoading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
/* 下载文件的样式 */
|
|
|
-.downloadfile{
|
|
|
+.downloadfile {
|
|
|
display: inline-block;
|
|
|
width: 60px;
|
|
|
height: 30px;
|
|
|
border: 1px solid white;
|
|
|
}
|
|
|
-::v-deep .el-pagination__sizes .el-input__suffix{
|
|
|
+::v-deep .el-pagination__sizes .el-input__suffix {
|
|
|
right: 6px;
|
|
|
}
|
|
|
-::v-deep .ql-snow .ql-picker-options .ql-picker-item:focus{
|
|
|
+::v-deep .ql-snow .ql-picker-options .ql-picker-item:focus {
|
|
|
outline: none !important;
|
|
|
}
|
|
|
-::v-deep .ql-snow .ql-picker:focus{
|
|
|
- outline: none !important;
|
|
|
+::v-deep .ql-snow .ql-picker:focus {
|
|
|
+ outline: none !important;
|
|
|
}
|
|
|
-::v-deep .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label:focus{
|
|
|
+::v-deep .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label:focus {
|
|
|
outline: none !important;
|
|
|
}
|
|
|
-::v-deep .ql-toolbar.ql-snow .ql-picker-label{
|
|
|
+::v-deep .ql-toolbar.ql-snow .ql-picker-label {
|
|
|
border: none !important;
|
|
|
}
|
|
|
-::v-deep .ql-formats:focus{
|
|
|
+::v-deep .ql-formats:focus {
|
|
|
outline: none !important;
|
|
|
}
|
|
|
-::v-deep .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{
|
|
|
+::v-deep .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
|
|
|
border-color: none !important;
|
|
|
color: black !important;
|
|
|
}
|
|
|
/* normal */
|
|
|
-::v-deep .ql-active{
|
|
|
- outline: none !important;
|
|
|
+::v-deep .ql-active {
|
|
|
+ outline: none !important;
|
|
|
}
|
|
|
-::v-deep .canjiaren .el-input__inner{
|
|
|
+::v-deep .canjiaren .el-input__inner {
|
|
|
width: 560px !important;
|
|
|
}
|
|
|
::v-deep .el-dialog {
|
|
@@ -775,7 +854,7 @@ export default {
|
|
|
border: 1px solid white !important;
|
|
|
}
|
|
|
/* 表格样式 */
|
|
|
-::v-deep .el-table .el-table__header-wrapper th{
|
|
|
+::v-deep .el-table .el-table__header-wrapper th {
|
|
|
background-color: #004d86 !important;
|
|
|
color: white;
|
|
|
}
|
|
@@ -785,30 +864,30 @@ export default {
|
|
|
/* border-bottom: 1px solid white; */
|
|
|
}
|
|
|
/* 标题下划线 */
|
|
|
-::v-deep .el-dialog__header{
|
|
|
+::v-deep .el-dialog__header {
|
|
|
border-bottom: 1px solid white;
|
|
|
}
|
|
|
/* 日历样式 */
|
|
|
-::v-deep .el-date-editor .el-input__inner{
|
|
|
+::v-deep .el-date-editor .el-input__inner {
|
|
|
height: 36px !important;
|
|
|
line-height: 36px;
|
|
|
}
|
|
|
-::v-deep .datesend .el-form-item__label{
|
|
|
+::v-deep .datesend .el-form-item__label {
|
|
|
width: 115px !important;
|
|
|
}
|
|
|
/* 会议文本域样式 */
|
|
|
-::v-deep .el-form-item__content .el-textarea{
|
|
|
- width: 1010px;
|
|
|
- /* height: 80px !important; */
|
|
|
+::v-deep .el-form-item__content .el-textarea {
|
|
|
+ width: 1010px;
|
|
|
+ /* height: 80px !important; */
|
|
|
}
|
|
|
-::v-deep .el-form-item__content .el-textarea .el-textarea__inner{
|
|
|
- /* width: 1000px; */
|
|
|
- height: 80px !important;
|
|
|
+::v-deep .el-form-item__content .el-textarea .el-textarea__inner {
|
|
|
+ /* width: 1000px; */
|
|
|
+ height: 80px !important;
|
|
|
}
|
|
|
::v-deep .el-dialog__body {
|
|
|
- padding-left: 35px !important;
|
|
|
- padding-right: 0px !important;
|
|
|
- padding-bottom: 0px !important;
|
|
|
+ padding-left: 35px !important;
|
|
|
+ padding-right: 0px !important;
|
|
|
+ padding-bottom: 0px !important;
|
|
|
}
|
|
|
/* 富文本内容 */
|
|
|
/* ::v-deep .editor{
|
|
@@ -829,14 +908,14 @@ export default {
|
|
|
::v-deep .ql-editor ql-blank {
|
|
|
color: #fff !important;
|
|
|
}
|
|
|
-::v-deep .ql-snow .ql-picker-label{
|
|
|
+::v-deep .ql-snow .ql-picker-label {
|
|
|
position: absolute;
|
|
|
bottom: 5px;
|
|
|
}
|
|
|
-::v-deep .ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{
|
|
|
+::v-deep .ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {
|
|
|
margin-top: -2px;
|
|
|
}
|
|
|
-::v-deep .ql-toolbar.ql-snow{
|
|
|
+::v-deep .ql-toolbar.ql-snow {
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
}
|
|
@@ -872,7 +951,7 @@ export default {
|
|
|
text-overflow: ellipsis;
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
-::v-deep .el-input__suffix{
|
|
|
+::v-deep .el-input__suffix {
|
|
|
right: 22px;
|
|
|
}
|
|
|
/* 树形样式 */
|
|
@@ -887,11 +966,11 @@ export default {
|
|
|
margin-right: 22px;
|
|
|
/* color: white; */
|
|
|
}
|
|
|
-::v-deep .vue-treeselect__single-value{
|
|
|
+::v-deep .vue-treeselect__single-value {
|
|
|
color: white;
|
|
|
}
|
|
|
/* 所搜到访单位 */
|
|
|
-::v-deep .waibudaofang .vue-treeselect__control{
|
|
|
+::v-deep .waibudaofang .vue-treeselect__control {
|
|
|
background-color: #00365f !important;
|
|
|
}
|
|
|
/* 计划附件 */
|
|
@@ -903,8 +982,8 @@ export default {
|
|
|
left: 90px;
|
|
|
color: white;
|
|
|
}
|
|
|
-::v-deep .el-link.el-link--default{
|
|
|
- color: white ;
|
|
|
+::v-deep .el-link.el-link--default {
|
|
|
+ color: white;
|
|
|
text-indent: 0.5em;
|
|
|
}
|
|
|
</style>
|