|
@@ -28,6 +28,7 @@
|
|
|
v-model="queryParams.compereId"
|
|
|
placeholder="请选择主持人"
|
|
|
@change="Renyuan"
|
|
|
+ filterable
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in renYuans"
|
|
@@ -103,12 +104,19 @@
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<!-- <el-table-column label="序号" align="center" prop="id" /> -->
|
|
|
<el-table-column label="序号" type="index" width="50" align="center">
|
|
|
- <template scope="scope">
|
|
|
- <span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <template scope="scope">
|
|
|
+ <span>{{
|
|
|
+ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
|
|
+ }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="单位" align="center" prop="unitName" />
|
|
|
- <el-table-column label="会议议题" align="center" prop="title" show-overflow-tooltip/>
|
|
|
+ <el-table-column
|
|
|
+ label="会议议题"
|
|
|
+ align="center"
|
|
|
+ prop="title"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
<!-- <el-table-column label="会议议题" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<span v-html="scope.row.title"></span>
|
|
@@ -303,7 +311,11 @@ import {
|
|
|
exportBdgleven,
|
|
|
getDept,
|
|
|
} from "@/api/grassrootsregistration/bdgleven";
|
|
|
-import { getZhuChiRen } from "@/api/grassrootsregistration/bdglmeeting";
|
|
|
+import {
|
|
|
+ getZhuChiRen,
|
|
|
+ getShouBu,
|
|
|
+ getAll,
|
|
|
+} from "@/api/grassrootsregistration/bdglmeeting";
|
|
|
// 富文本
|
|
|
import "quill/dist/quill.core.css";
|
|
|
import "quill/dist/quill.snow.css";
|
|
@@ -407,13 +419,39 @@ export default {
|
|
|
result: {},
|
|
|
// 外面的人员
|
|
|
renYuans: [],
|
|
|
+ // 文本显示数字
|
|
|
+ str: "",
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
- this.getdept();
|
|
|
+ this.getBuMen();
|
|
|
+ this.getSuo();
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 获取搜索所有人
|
|
|
+ getSuo() {
|
|
|
+ getAll().then((res) => {
|
|
|
+ this.renYuans = res.rows;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 获取搜索下拉部门
|
|
|
+ getBuMen() {
|
|
|
+ getShouBu().then((res) => {
|
|
|
+ this.buMens = res.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 转义视图不加标签
|
|
|
+ onEditor(str) {
|
|
|
+ //可以在这里进行对应的操作 quill为富文本对象,html为富文本对象内内容由html标签组成,text为quill内容里面的所有文本内容
|
|
|
+ var str = str.replace(/<\/?[^>]*>/g, ""); //去除HTML tag
|
|
|
+ str = str.replace(/[ | ]*\n/g, "\n"); //去除行尾空白
|
|
|
+ //str = str.replace(/\n[\s| | ]*\r/g,'\n'); //去除多余空行
|
|
|
+ str = str.replace(/ /gi, ""); //去掉
|
|
|
+ // this.bdglevenList[0].title = str;
|
|
|
+ // console.log(this.bdglevenList[0].title);
|
|
|
+ this.str = str;
|
|
|
+ },
|
|
|
// 重置表单人员
|
|
|
ChongZhiRen() {
|
|
|
(this.form.compereId = null),
|
|
@@ -432,7 +470,6 @@ export default {
|
|
|
},
|
|
|
// 新增选择单位触发
|
|
|
selectPeo(val) {
|
|
|
- console.log(11);
|
|
|
this.ChongZhiRen();
|
|
|
this.form.unitId = val.id;
|
|
|
// 选中单位触发获取人员
|
|
@@ -510,6 +547,7 @@ export default {
|
|
|
},
|
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
|
+ this.getSuo();
|
|
|
this.resetForm("queryForm");
|
|
|
this.handleQuery();
|
|
|
},
|
|
@@ -545,7 +583,8 @@ export default {
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
// 人员
|
|
|
- (this.renYuan = []), this.reset();
|
|
|
+ this.renYuan = [];
|
|
|
+ this.reset();
|
|
|
this.getTreeselect();
|
|
|
this.open = true;
|
|
|
this.opens = true;
|
|
@@ -597,6 +636,11 @@ export default {
|
|
|
this.getList();
|
|
|
});
|
|
|
} else {
|
|
|
+ // var str = this.form.title;
|
|
|
+ // str = str.replace(/<\/?[^>]*>/g, ""); //去除HTML tag
|
|
|
+ // str = str.replace(/[ | ]*\n/g, "\n"); //去除行尾空白
|
|
|
+ // str = str.replace(/\n[\s| | ]*\r/g, "\n"); //去除多余空行
|
|
|
+ // this.form.title = str.replace(/ /gi, ""); //去掉
|
|
|
(this.form.joinId = this.form.joinId.join(",")),
|
|
|
addBdgleven(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
@@ -612,7 +656,7 @@ export default {
|
|
|
const ids = row.id || this.ids;
|
|
|
this.$modal
|
|
|
// .confirm('是否确认删除连务会记录本编号为"' + ids + '"的数据项?')
|
|
|
- .confirm('是否确认删除该数据?')
|
|
|
+ .confirm("是否确认删除该数据?")
|
|
|
.then(function () {
|
|
|
return delBdgleven(ids);
|
|
|
})
|
|
@@ -637,12 +681,6 @@ export default {
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
},
|
|
|
- // //获取部门列表
|
|
|
- getdept() {
|
|
|
- getDept().then((response) => {
|
|
|
- this.buMens = response.data;
|
|
|
- });
|
|
|
- },
|
|
|
/** 查询部门下拉树结构 */
|
|
|
getTreeselect() {
|
|
|
getDept().then((response) => {
|