|
@@ -1,13 +1,33 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
+ <el-form
|
|
|
+ :model="queryParams"
|
|
|
+ ref="queryForm"
|
|
|
+ :inline="true"
|
|
|
+ v-show="showSearch"
|
|
|
+ label-width="68px"
|
|
|
+ >
|
|
|
<el-form-item prop="deptName">
|
|
|
- <el-input placeholder="请输入单位" v-model="queryParams.deptName" @input="handleQuery" />
|
|
|
+ <el-input
|
|
|
+ placeholder="请输入单位"
|
|
|
+ v-model="queryParams.deptName"
|
|
|
+ @input="handleQuery"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="" prop="compereId">
|
|
|
- <el-select v-model="queryParams.compereId" placeholder="请输入主持人" @change="Renyuan">
|
|
|
- <el-option v-for="item in renYuans" :key="item.id" :label="item.name" :value="item.id" class="input_xiala">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.compereId"
|
|
|
+ placeholder="请输入主持人"
|
|
|
+ @change="Renyuan"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in renYuans"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ class="input_xiala"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -17,8 +37,15 @@
|
|
|
</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="['grassrootsregistration:bdglmeeting:add']">新增</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ icon="el-icon-plus"
|
|
|
+ size="mini"
|
|
|
+ @click="handleAdd"
|
|
|
+ v-hasPermi="['grassrootsregistration:bdglmeeting:add']"
|
|
|
+ >新增</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
<!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -58,27 +85,51 @@
|
|
|
</el-col> -->
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" :data="bdglmeetingList" @selection-change="handleSelectionChange"
|
|
|
- :header-cell-style="{ background: '#003C69', color: 'white' }">
|
|
|
+ <el-table
|
|
|
+ v-loading="loading"
|
|
|
+ :data="bdglmeetingList"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ :header-cell-style="{ background: '#003C69', color: 'white' }"
|
|
|
+ >
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="序号" type="index" width="50" align="center">
|
|
|
<template scope="scope">
|
|
|
<span>{{
|
|
|
- (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
|
|
+ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
|
|
}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="单位" align="center" prop="deptName" />
|
|
|
- <el-table-column label="召开时间" align="center" prop="convokeTime" width="180">
|
|
|
+ <el-table-column
|
|
|
+ label="召开时间"
|
|
|
+ align="center"
|
|
|
+ prop="convokeTime"
|
|
|
+ width="180"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.convokeTime, "{y}-{m}-{d}") }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="召开地点" align="center" prop="address" />
|
|
|
<el-table-column label="主持人" align="center" prop="compereRen" />
|
|
|
- <el-table-column label="参加人" align="center" prop="joinId" show-overflow-tooltip />
|
|
|
- <el-table-column label="列席人" align="center" prop="peopleIds" show-overflow-tooltip />
|
|
|
- <el-table-column label="缺席人" align="center" prop="absentIds" show-overflow-tooltip />
|
|
|
+ <el-table-column
|
|
|
+ label="参加人"
|
|
|
+ align="center"
|
|
|
+ prop="joinId"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="列席人"
|
|
|
+ align="center"
|
|
|
+ prop="peopleIds"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="缺席人"
|
|
|
+ align="center"
|
|
|
+ prop="absentIds"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
<el-table-column label="记录人" align="center" prop="peopleJiLu" />
|
|
|
<!-- <el-table-column
|
|
|
label="会议议题"
|
|
@@ -91,51 +142,117 @@
|
|
|
<span>{{ onEditor(scope.row.title) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
|
|
|
+ <el-table-column
|
|
|
+ label="操作"
|
|
|
+ align="center"
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
+ width="200"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="btk" type="text" @click="handleChakan(scope.row)"
|
|
|
- v-hasPermi="['grassrootsregistration:bdgldiary:edit']"><span class="chakan">查看</span></el-button>
|
|
|
- <el-button size="btu" type="text" @click="handleUpdate(scope.row)"
|
|
|
- v-hasPermi="['grassrootsregistration:bdglmeeting:edit']"><span class="edit">修改</span></el-button>
|
|
|
- <el-button size="btd" type="text" @click="handleDelete(scope.row)"
|
|
|
- v-hasPermi="['grassrootsregistration:bdglmeeting:remove']"><span class="delete">删除</span></el-button>
|
|
|
+ <el-button
|
|
|
+ size="btk"
|
|
|
+ type="text"
|
|
|
+ @click="handleChakan(scope.row)"
|
|
|
+ v-hasPermi="['grassrootsregistration:bdgldiary:edit']"
|
|
|
+ ><span class="chakan">查看</span></el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ size="btu"
|
|
|
+ type="text"
|
|
|
+ @click="handleUpdate(scope.row)"
|
|
|
+ v-hasPermi="['grassrootsregistration:bdglmeeting:edit']"
|
|
|
+ ><span class="edit">修改</span></el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ size="btd"
|
|
|
+ type="text"
|
|
|
+ @click="handleDelete(scope.row)"
|
|
|
+ v-hasPermi="['grassrootsregistration:bdglmeeting:remove']"
|
|
|
+ ><span class="delete">删除</span></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" />
|
|
|
+ <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="1016px" append-to-body :close-on-click-modal="false">
|
|
|
+ <el-dialog
|
|
|
+ :title="title"
|
|
|
+ :visible.sync="open"
|
|
|
+ width="1016px"
|
|
|
+ append-to-body
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ >
|
|
|
<div class="userAgree">
|
|
|
<div class="jiben">基本信息</div>
|
|
|
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="80px" :inline="true">
|
|
|
+ <el-form
|
|
|
+ ref="form"
|
|
|
+ :model="form"
|
|
|
+ :rules="rules"
|
|
|
+ label-width="80px"
|
|
|
+ :inline="true"
|
|
|
+ >
|
|
|
<el-form-item label="单位" prop="unitId">
|
|
|
- <treeselect v-model="form.unitId" :options="deptOptions" placeholder="请选择单位" @select="selectPeo"
|
|
|
- @open="blurSelect" />
|
|
|
+ <treeselect
|
|
|
+ v-model="form.unitId"
|
|
|
+ :options="deptOptions"
|
|
|
+ placeholder="请选择单位"
|
|
|
+ @select="selectPeo"
|
|
|
+ @open="blurSelect"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="召开时间" prop="convokeTime">
|
|
|
- <el-date-picker clearable size="small" v-model="form.convokeTime" type="date" value-format="yyyy-MM-dd"
|
|
|
- placeholder="选择召开时间" :editable="false">
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ v-model="form.convokeTime"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择召开时间"
|
|
|
+ :editable="false"
|
|
|
+ >
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="召开地点" prop="address" class="address">
|
|
|
<el-input v-model="form.address" placeholder="请输入召开地点" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="主持人" prop="compereId">
|
|
|
- <el-select v-model="form.compereId" placeholder="请选择主持人" ref="headerSearchSelect">
|
|
|
- <el-option v-for="(item, i) in renYuan" :key="i" :label="item.name" :value="item.id"
|
|
|
- :disabled="item.status == 1" @click.native="compere(item.name)" class="input_xiala">
|
|
|
+ <el-select
|
|
|
+ v-model="form.compereId"
|
|
|
+ placeholder="请选择主持人"
|
|
|
+ ref="headerSearchSelect"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, i) in renYuan"
|
|
|
+ :key="i"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ :disabled="item.status == 1"
|
|
|
+ @click.native="compere(item.name)"
|
|
|
+ class="input_xiala"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="记录人" prop="peopleId">
|
|
|
<el-select v-model="form.peopleId" placeholder="请选择记录人">
|
|
|
- <el-option v-for="(item, i) in renYuan" :key="i" :label="item.name" :value="item.id"
|
|
|
- @click.native="people(item.name)" class="input_xiala">
|
|
|
+ <el-option
|
|
|
+ v-for="(item, i) in renYuan"
|
|
|
+ :key="i"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ @click.native="people(item.name)"
|
|
|
+ class="input_xiala"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -144,37 +261,93 @@
|
|
|
</el-form-item> -->
|
|
|
|
|
|
<el-form-item label="参加人" prop="joinId" class="joinId">
|
|
|
- <el-select ref="abc" v-model="form1.joinId" multiple placeholder="请选择参加人" class="input_xiala" filterable
|
|
|
- @remove-tag="removeSelect" @change="changeSelect">
|
|
|
- <el-option v-for="item in renYuan" :key="item.id" :label="item.name" :value="item.name"
|
|
|
- class="input_xiala" :disabled="item.disabled" :class="item.disabled == true ? 'colors' : ''">
|
|
|
+ <el-select
|
|
|
+ ref="abc"
|
|
|
+ v-model="form1.joinId"
|
|
|
+ multiple
|
|
|
+ placeholder="请选择参加人"
|
|
|
+ class="input_xiala"
|
|
|
+ filterable
|
|
|
+ @remove-tag="removeSelect"
|
|
|
+ @change="changeSelect"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in renYuan"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.name"
|
|
|
+ class="input_xiala"
|
|
|
+ :disabled="item.disabled"
|
|
|
+ :class="item.disabled == true ? 'colors' : ''"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="列席人" class="joinId">
|
|
|
- <el-select ref="abcd" v-model="form1.peopleIds" multiple placeholder="请选择列席人" class="input_xiala" filterable
|
|
|
- @remove-tag="removeSelect" @change="changeSelect">
|
|
|
- <el-option v-for="item in renYuan" :key="item.id" :label="item.name" :disabled="item.disabled"
|
|
|
- :value="item.name" class="input_xiala" :class="item.disabled == true ? 'colors' : ''">
|
|
|
+ <el-select
|
|
|
+ ref="abcd"
|
|
|
+ v-model="form1.peopleIds"
|
|
|
+ multiple
|
|
|
+ placeholder="请选择列席人"
|
|
|
+ class="input_xiala"
|
|
|
+ filterable
|
|
|
+ @remove-tag="removeSelect"
|
|
|
+ @change="changeSelect"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in renYuans"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :disabled="item.disabled"
|
|
|
+ :value="item.name"
|
|
|
+ class="input_xiala"
|
|
|
+ :class="item.disabled == true ? 'colors' : ''"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="缺席人" class="joinId">
|
|
|
- <el-select ref="abcde" v-model="form1.absentIds" multiple placeholder="请选择缺席人" class="input_xiala"
|
|
|
- filterable @remove-tag="removeSelect" @change="changeSelect">
|
|
|
- <el-option v-for="item in renYuan" :key="item.id" :label="item.name" :value="item.name"
|
|
|
- :disabled="item.disabled" class="input_xiala" :class="item.disabled == true ? 'colors' : ''">
|
|
|
+ <el-select
|
|
|
+ ref="abcde"
|
|
|
+ v-model="form1.absentIds"
|
|
|
+ multiple
|
|
|
+ placeholder="请选择缺席人"
|
|
|
+ class="input_xiala"
|
|
|
+ filterable
|
|
|
+ @remove-tag="removeSelect"
|
|
|
+ @change="changeSelect"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in renYuan"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.name"
|
|
|
+ :disabled="item.disabled"
|
|
|
+ class="input_xiala"
|
|
|
+ :class="item.disabled == true ? 'colors' : ''"
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
<div class="jiben">会议议题</div>
|
|
|
- <quill-editor class="quill-editor" ref="myTextEditor" v-model="form.title" style="height: 150px; width: 920px;
|
|
|
- margin-bottom: 60px margin-left: 0px; margin-bottom: 55px;"></quill-editor>
|
|
|
+ <quill-editor
|
|
|
+ class="quill-editor"
|
|
|
+ ref="myTextEditor"
|
|
|
+ v-model="form.title"
|
|
|
+ style=" height: 150px; width: 920px;
|
|
|
+ margin-bottom: 60px margin-left: 0px; margin-bottom: 55px;"
|
|
|
+ ></quill-editor>
|
|
|
|
|
|
<div class="jiben">会议内容</div>
|
|
|
- <quill-editor class="quill-editor" ref="myTextEditor" v-model="form.contents" style="height: 150px; width: 920px;
|
|
|
- margin-bottom: 60px margin-left: 0px; margin-bottom: 55px;"></quill-editor>
|
|
|
+ <ImageUpload v-model="form.fileUrl"></ImageUpload>
|
|
|
+ <!-- <quill-editor
|
|
|
+ class="quill-editor"
|
|
|
+ ref="myTextEditor"
|
|
|
+ v-model="form.contents"
|
|
|
+ style="height: 150px; width: 920px;
|
|
|
+ margin-bottom: 60px margin-left: 0px; margin-bottom: 55px;"
|
|
|
+ ></quill-editor> -->
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -182,8 +355,30 @@
|
|
|
<el-button @click="cancel" size="btn">取消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <el-dialog :visible.sync="menuRoleVisible" :title="title" append-to-body id="chakan" :close-on-click-modal="false">
|
|
|
- <bdglmeeting v-if="menuRoleVisible" ref="menuRole" :message="wordInfo"></bdglmeeting>
|
|
|
+ <!-- 查看 -->
|
|
|
+ <!-- <el-dialog
|
|
|
+ :visible.sync="menuRoleVisible"
|
|
|
+ :title="title"
|
|
|
+ append-to-body
|
|
|
+ id="chakan"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ >
|
|
|
+ <bdglmeeting
|
|
|
+ v-if="menuRoleVisible"
|
|
|
+ ref="menuRole"
|
|
|
+ :message="wordInfo"
|
|
|
+ ></bdglmeeting>
|
|
|
+ </el-dialog> -->
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="menuRoleVisible"
|
|
|
+ :title="title"
|
|
|
+ append-to-body
|
|
|
+ id="chakan"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ >
|
|
|
+ <div v-for="item in arr" :key="item" class="divbox">
|
|
|
+ <img :src="baseUrl + item" alt="" />
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -323,6 +518,8 @@ export default {
|
|
|
peopleIds: "",
|
|
|
absentIds: "",
|
|
|
},
|
|
|
+ baseUrl: process.env.VUE_APP_BASE_API,
|
|
|
+ arr: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -372,7 +569,7 @@ export default {
|
|
|
// 获取搜索所有人
|
|
|
getSuo() {
|
|
|
getAll().then((res) => {
|
|
|
- this.renYuans = res.rows;
|
|
|
+ this.renYuans = res.data;
|
|
|
});
|
|
|
},
|
|
|
// 转义视图不加标签
|
|
@@ -393,9 +590,9 @@ export default {
|
|
|
// 重置表单人员
|
|
|
ChongZhiRen() {
|
|
|
// 主持人
|
|
|
- this.form.compereId = null
|
|
|
+ this.form.compereId = null;
|
|
|
// 记录人
|
|
|
- this.form.peopleId = null
|
|
|
+ this.form.peopleId = null;
|
|
|
// 参加人
|
|
|
this.form1.joinId = [];
|
|
|
// 列席人
|
|
@@ -547,7 +744,7 @@ export default {
|
|
|
if (this.result.absentIds !== "" && this.result.absentIds != null) {
|
|
|
this.form1.absentIds = response.data.absentIds.split(",");
|
|
|
}
|
|
|
- this.changeSelect()
|
|
|
+ this.changeSelect();
|
|
|
this.form = this.result;
|
|
|
this.open = true;
|
|
|
this.title = "修改团支部会议登记本";
|
|
@@ -560,9 +757,15 @@ export default {
|
|
|
this.opens = false;
|
|
|
const id = row.id || this.ids;
|
|
|
getBdglmeeting(id).then((response) => {
|
|
|
- this.wordInfo = response.data;
|
|
|
- this.title = "查看团支部会议登记本";
|
|
|
- this.menuRoleVisible = true;
|
|
|
+ if (response.data.fileUrl != null) {
|
|
|
+ if (response.data.fileUrl != "") {
|
|
|
+ this.arr = response.data.fileUrl.split(",");
|
|
|
+ this.title = "查看团支部会议登记本";
|
|
|
+ this.menuRoleVisible = true;
|
|
|
+ this.tableStatus = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // this.wordInfo = response.data;
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -641,7 +844,7 @@ export default {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
})
|
|
|
- .catch(() => { });
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
@@ -656,7 +859,7 @@ export default {
|
|
|
this.$download.name(response.msg);
|
|
|
this.exportLoading = false;
|
|
|
})
|
|
|
- .catch(() => { });
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
},
|
|
|
};
|
|
@@ -857,7 +1060,11 @@ export default {
|
|
|
}
|
|
|
|
|
|
#chakan /deep/ .el-dialog__body {
|
|
|
- padding: 30px 0px 30px 0px;
|
|
|
+ padding: 30px 30px 30px 112px;
|
|
|
+}
|
|
|
+#chakan ::v-deep .el-dialog {
|
|
|
+ min-height: 700px;
|
|
|
+ background: #fff !important;
|
|
|
}
|
|
|
|
|
|
::v-deep .el-select__input {
|
|
@@ -867,4 +1074,23 @@ export default {
|
|
|
.colors {
|
|
|
color: #ccc !important;
|
|
|
}
|
|
|
+/* 图片上传 */
|
|
|
+::v-deep .el-upload--picture-card {
|
|
|
+ background-color: transparent;
|
|
|
+}
|
|
|
+::v-deep .el-upload__tip {
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+::v-deep img {
|
|
|
+ object-fit: cover;
|
|
|
+}
|
|
|
+.divbox {
|
|
|
+ width: 1016px !important;
|
|
|
+ min-height: 540px;
|
|
|
+}
|
|
|
+.divbox img {
|
|
|
+ width: 700px;
|
|
|
+ height: 500px;
|
|
|
+ border-radius: 10px;
|
|
|
+}
|
|
|
</style>
|