123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447 |
- <!-- 军人委员会记录本领导 -->
- <template>
- <div class="arr_conten">
- <el-form
- :model="form"
- ref="form"
- :inline="true"
- label-width="68px"
- style="padding-left: 30px"
- >
- <el-form-item prop="year">
- <el-date-picker
- v-model="form.year"
- type="year"
- placeholder="选择年"
- @change="getSoulist"
- value-format="yyyy"
- :editable="false"
- >
- </el-date-picker>
- </el-form-item>
- <el-form-item>
- <el-button size="btr" @click="resetQuery">重置</el-button>
- </el-form-item>
- </el-form>
- <div v-if="status == 1">
- <ul>
- <li v-for="(item, i) in lieList" :key="i">
- <div class="names">{{ item.deptName }}</div>
- <div class="btn">
- <el-button size="btJS" @click="chaKan(item.deptId)">查看</el-button>
- </div>
- </li>
- </ul>
- </div>
- <div v-if="status == 0">
- <ul v-for="(item, i) in lieList" :key="i + ''">
- <li v-for="(item1, i) in item" :key="i">
- <div class="names">{{ item1.deptName }}</div>
- <div class="btn">
- <el-button size="btJS" @click="chaKan(item1.deptId)"
- >查看</el-button
- >
- </div>
- </li>
- </ul>
- </div>
- <!-- 查看第一次 -->
- <el-dialog
- :visible.sync="tableStatus"
- :title="title"
- append-to-body
- id="list"
- :close-on-click-modal="false"
- custom-class="lieBiao"
- >
- <el-table
- v-loading="loading"
- :data="bdglpartyList"
- :header-cell-style="{ background: '#003C69', color: 'white' }"
- >
- <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>
- <el-table-column label="单位" align="center" prop="deptName" />
- <el-table-column label="会议议题" align="center" show-overflow-tooltip>
- <template slot-scope="scope">
- <span>{{ onEditor(scope.row.title) }}</span>
- </template>
- </el-table-column>
- <el-table-column label="记录人" align="center" prop="peopleJiLu" />
- <el-table-column label="主持人" align="center" prop="compereRen" />
- <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="address" />
- <el-table-column
- label="操作"
- align="center"
- class-name="small-padding fixed-width"
- width="100"
- >
- <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
- >
- </template>
- </el-table-column>
- </el-table>
- <pagination
- v-show="total > 0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="chaKan1"
- />
- </el-dialog>
- <!-- 查看二次-->
- <!-- <el-dialog
- :visible.sync="menuRoleVisible"
- :title="title"
- append-to-body
- id="chakan"
- :close-on-click-modal="false"
- :before-close="closes"
- >
- <bdglsoldier
- v-if="menuRoleVisible"
- ref="menuRole"
- :message="wordInfo"
- ></bdglsoldier>
- </el-dialog> -->
- <el-dialog
- :visible.sync="menuRoleVisible"
- :title="title"
- append-to-body
- id="chakan"
- :close-on-click-modal="false"
- :before-close="closes"
- >
- <div
- style="
- margin-bottom: 20px;
- margin-left: 28%;
- font-size: 16px;
- font-weight: 700;
- "
- >
- 会议形式:<span style="margin-right: 30px">{{ names }}</span>
- 会议时间:<span>{{ tiemse }}</span>
- </div>
- <div v-for="item in arr" :key="item" class="divbox">
- <img :src="baseUrl + item" alt="" />
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import {
- getBdglsoldier,
- getSoldierList,
- getSoldierOnUnitList,
- } from "@/api/grassrootsregistration/bdglsoldier";
- //引入查看表格
- import bdglsoldier from "@/components/look_word/bdglsoldier.vue";
- export default {
- name: "bdglsoldiers",
- dicts: ["sys_huiyi"],
- data() {
- return {
- lieList: [],
- //查看页面
- menuRoleVisible: false,
- title: null,
- tableStatus: false,
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- },
- // 党支部记录本表格数据
- bdglpartyList: [],
- loading: false,
- total: 0,
- unitId: undefined,
- form: {},
- year: null,
- status: null,
- baseUrl: process.env.VUE_APP_BASE_API,
- arr: [],
- // 会议形式
- huiYiList: [],
- names: null,
- tiemse: null,
- };
- },
- created() {
- this.getSoulist();
- //会议形式
- this.getDicts("sys_huiyi").then((response) => {
- this.huiYiList = response.data;
- });
- },
- methods: {
- resetQuery() {
- this.form.year = null;
- getSoldierList(this.year).then((res) => {
- res.rows.forEach((item) => {
- this.status = 1;
- });
- this.lieList = res.rows;
- });
- },
- getSoulist() {
- if (this.form.year == null || this.form.year == "") {
- getSoldierList().then((res) => {
- res.rows.forEach((item) => {
- this.status = 0;
- });
- this.lieList = res.rows;
- });
- } else {
- getSoldierList(this.form.year).then((res) => {
- res.rows.forEach((item) => {
- this.status = 1;
- });
- this.lieList = res.rows;
- });
- }
- },
- getList() {
- this.queryParams.unitId = this.unitId;
- getSoldierOnUnitList(this.queryParams).then((response) => {
- this.bdglpartyList = response.rows;
- this.total = response.total;
- });
- },
- chaKan(row) {
- this.queryParams.unitId = row;
- this.unitId = row;
- getSoldierOnUnitList(this.queryParams).then((response) => {
- this.bdglpartyList = response.rows;
- this.total = response.total;
- this.title = "查看军人委员会工作记录本";
- this.tableStatus = true;
- });
- },
- chaKan1(row) {
- getSoldierOnUnitList(this.queryParams).then((response) => {
- this.bdglpartyList = response.rows;
- this.total = response.total;
- this.title = "查看军人委员会工作记录本";
- this.tableStatus = true;
- });
- },
- handleChakan(row) {
- // console.log(row);
- const id = row.id || this.ids;
- getBdglsoldier(id).then((response) => {
- if (response.data.fileUrl != null) {
- if (response.data.fileUrl != "") {
- this.arr = response.data.fileUrl.split(",");
- this.tiemse = response.data.convokeTime;
- this.huiYiList.map((item) => {
- if (item.dictValue == response.data.meetingForm) {
- this.names = item.dictLabel;
- }
- });
- this.title = "查看军人委员会会议登记本";
- this.menuRoleVisible = true;
- this.tableStatus = false;
- return this.names;
- }
- }
- });
- },
- // 转义视图不加标签
- onEditor(str) {
- //可以在这里进行对应的操作 quill为富文本对象,html为富文本对象内内容由html标签组成,text为quill内容里面的所有文本内容
- if (str) {
- var str = str.replace(/<\/?[^>]*>/g, ""); //去除HTML tag
- str = str.replace(/[ | ]*\n/g, "\n"); //去除行尾空白
- return str;
- }
- },
- closes() {
- this.menuRoleVisible = false;
- this.tableStatus = true;
- },
- },
- components: {
- bdglsoldier,
- },
- computed: {},
- mounted() {},
- watch: {},
- };
- </script>
- <style scoped>
- ::v-deep .el-dialog {
- width: 1070px !important;
- }
- ::v-deep .el-dialog__body {
- margin: 10px 30px 20px 44px;
- padding-top: 20px !important;
- box-sizing: border-box;
- }
- ::v-deep .el-dialog__header {
- border-bottom: 1px solid #718a9d;
- }
- .arr_conten {
- padding-top: 20px;
- }
- ul {
- display: flex;
- /* justify-content: space-between; */
- padding: 0 22px;
- flex-wrap: wrap;
- }
- li {
- list-style: none;
- background: url("../../../assets/images/book.png") no-repeat;
- height: 140px;
- width: 222px;
- /* margin: 20px 0; */
- margin-bottom: 20px;
- background-size: 100% 100%;
- flex: 0 0 16%;
- margin-right: 10px;
- }
- .names {
- color: #fff;
- font-size: 14px;
- text-align: center;
- padding: 26px 26px 38px 26px;
- letter-spacing: 1px;
- }
- .btn {
- text-align: center;
- }
- ::v-deep .lieBiao {
- background: #004d86 !important;
- min-height: 42vh !important;
- }
- ::v-deep .el-dialog__title {
- color: #fff;
- font: 18px;
- }
- ::v-deep .el-dialog__headerbtn .el-dialog__close {
- color: #fff;
- }
- ::v-deep .pagination-container {
- /* display: none; */
- position: relative;
- height: 49px;
- margin-bottom: 10px;
- margin-top: 6vh;
- padding: 10px 20px !important;
- background: transparent !important;
- }
- ::v-deep .el-pagination .el-select .el-input .el-input__inner {
- background: #00365f !important;
- }
- ::v-deep .el-pagination.is-background .btn-prev,
- .el-pagination.is-background .btn-next {
- background: #00365f !important;
- }
- ::v-deep .el-pagination__editor.el-input .el-input__inner {
- background: #00365f !important;
- }
- ::v-deep .el-pagination.is-background .btn-next {
- background: #00365f !important;
- }
- ::v-deep .el-pagination.is-background .el-pager li {
- background: #00365f;
- }
- ::v-deep .el-table__body tr:hover > td {
- background-color: #3c749d !important;
- }
- ::v-deep .el-table tr:nth-child(even) {
- background: #00365f;
- }
- ::v-deep .el-input__inner {
- cursor: pointer !important;
- }
- ::v-deep .el-input__inner {
- background: transparent;
- color: #fff;
- border: 1px solid white !important;
- border-color: #fff !important;
- }
- ::v-deep .el-input--medium .el-input__inner {
- height: 36px;
- line-height: 37px;
- }
- #chakan ::v-deep .el-dialog {
- min-height: 700px;
- background: #fff !important;
- }
- #chakan /deep/ .el-dialog__body {
- padding: 30px 30px 30px 132px;
- }
- ::v-deep img {
- object-fit: cover;
- }
- .divbox {
- width: 1016px !important;
- min-height: 540px;
- }
- .divbox img {
- width: 700px;
- height: 500px;
- border-radius: 10px;
- }
- </style>
|