123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626 |
- <template>
- <div class="frenquency-container">
- <el-dialog
- custom-class="myMission"
- title="详细信息"
- :append-to-body="true"
- :modal="true"
- :visible.sync="dialogVisible"
- width="70%"
- height="60%"
- :before-close="handleClose"
- >
- <div>
- <div class="dialog_title_info">
- <div>
- 立项年度:{{
- formData[activeRowIndex] && formData[activeRowIndex].c_lxndwt ? formData[activeRowIndex].c_lxndwt : "--"
- }}
- </div>
- <div>
- 被审计镇:{{
- formData[activeRowIndex] &&
- formData[activeRowIndex].c_bsjzwt &&
- unTownOptions &&
- unTownOptions[formData[activeRowIndex].c_bsjzwt]
- ? unTownOptions[formData[activeRowIndex].c_bsjzwt]
- : "--"
- }}
- </div>
- </div>
- <div class="dialog_title_info">
- 问题金额(万元):{{
- formData[activeRowIndex] && formData[activeRowIndex].c_wtjewt ? formData[activeRowIndex].c_wtjewt : "--"
- }}
- </div>
- <div class="dialog_title">审计报告中的问题反映情况</div>
- <div v-for="(item, index) in dialogData" :key="index" class="dialog_table">
- <div>{{ item.title }}</div>
- <div>
- {{
- formData[activeRowIndex] && formData[activeRowIndex][item.columnName]
- ? formData[activeRowIndex][item.columnName]
- : "--"
- }}
- </div>
- </div>
- <!-- <div class="dialog_title3"><el-button size="mini" type="primary" class="infoBut">查看疑点图斑</el-button></div> -->
- </div>
- </el-dialog>
- <div class="frenquency-container-inner">
- <div class="header">
- <div class="header-title">历史问题</div>
- <!-- <div class="header-select">
- <div>
- <div class="text">类别 :</div>
- <NewSelect
- ref="auditTypeRef"
- :placeholder="'请选择类别'"
- class="select-input"
- v-model="typeSelectVal"
- :options="typeOptions"
- :value="typeSelectVal"
- />
- </div>
- <div>
- <div class="text">被审计街镇 :</div>
- <NewSelect
- ref="townTypeRef"
- :placeholder="'请选择街镇'"
- class="select-input"
- v-model="townSelectVal"
- :options="townOptions"
- :value="townSelectVal"
- />
- </div>
- <div>
- <div class="text">立项年度 :</div>
- <NewSelect
- ref="timeRef"
- :placeholder="'立项年度'"
- class="select-input"
- v-model="timeSelectVal"
- :options="timeOptions"
- :value="timeSelectVal"
- />
- </div>
- </div> -->
- <!-- <div class="query-btn" @click="getTableData(1)">查询</div> -->
- <div class="reset-btn" @click="resetEvent">重置</div>
- </div>
- <div class="center" v-if="reStart">
- <el-table :data="tableData" style="width: 100%" max-height="600" @row-click="rowClick">
- <el-table-column type="index" width="70" align="center" label="序号"> </el-table-column>
- <el-table-column
- prop="createYear"
- label="立项年度"
- width="150"
- align="center"
- :filters="filters.createYearFilters"
- :filter-multiple="false"
- :filter-method="filterMethod"
- >
- </el-table-column>
- <el-table-column
- prop="auditTown"
- label="被审计镇"
- align="center"
- width="180"
- :filters="filters.auditTownFilters"
- :filter-multiple="false"
- :filter-method="filterMethod"
- >
- </el-table-column>
- <el-table-column
- prop="type"
- label="类别"
- align="center"
- :filters="filters.typeFilters"
- :filter-multiple="false"
- :filter-method="filterMethod"
- >
- </el-table-column>
- <el-table-column
- prop="keyPoint"
- label="重点审计事项"
- align="center"
- :filters="filters.keyPointFilters"
- :filter-multiple="false"
- :filter-method="filterMethod"
- >
- </el-table-column>
- <el-table-column
- prop="problemType"
- label="参考问题定性"
- align="center"
- :filters="filters.problemTypeFilters"
- :filter-multiple="false"
- :filter-method="filterMethod"
- >
- </el-table-column>
- <!-- <el-table-column prop="problemNature" label="问题定性" align="center">
- </el-table-column> -->
- </el-table>
- </div>
- <div class="footer">
- <Pagination class="pagination-style" :paginationData="paginationData" />
- </div>
- </div>
- </div>
- </template>
- <script>
- import NewSelect from "@/components/common/NewSelect.vue";
- import Pagination from "@/components/common/Pagination.vue";
- /**
- * 历史问题 -- 智能辅助
- * @author: Gao Lu
- * @Date: 2022.11.24
- */
- export default {
- name: "FrequencyDialog",
- components: { NewSelect, Pagination },
- data() {
- return {
- // 数据字典暂存对象
- classDictMap: {},
- typeSelectVal: "",
- typeOptions: [],
- townSelectVal: "",
- townOptions: [],
- reStart: true,
- problemType: "",
- keyPoint: "",
- // 立项年度搜索框
- timeSelectVal: "",
- timeOptions: [],
- tableData: [],
- currentPage: 1,
- currentPageSize: 10,
- filters: {
- createYearFilters: [],
- auditTownFilters: [],
- typeFilters: [],
- keyPointFilters: [],
- problemTypeFilters: []
- },
- // 整改中的查看详情弹窗状态
- dialogVisible: false,
- dialogData: [
- { title: "问题分类", columnName: "c_wtflwt", info: "--" },
- { title: "问题定性1", columnName: "c_wtdx1wt", info: "--" },
- { title: "问题定性2", columnName: "c_wtdx2wt", info: "--" },
- { title: "问题事项", columnName: "c_wtsxwt", info: "--" },
- { title: "使用法条", columnName: "c_syftwt", info: "--" },
- { title: "边审边改情况", columnName: "c_bsbgqkwt", info: "--" }
- ],
- // 暂存全部数据
- formData: [],
- // 选中的rowinxdex
- activeRowIndex: 0,
- paginationData: {
- pageSize: 10,
- pagerCount: 5,
- currentPage: 1,
- pageSizes: [5, 10, 20, 30],
- total: 50,
- currentChange: val => {
- this.getTableData(val);
- },
- handleSizeChange: val => {
- this.handleSizeChange(val);
- }
- }
- };
- },
- created() {
- this.townOptions = [];
- this.unTownOptions = {};
- this.timeOptions = [];
- this.typeOptions = [];
- // 时间选择
- for (let i = 1980; i <= parseInt(this.$dayjs().format("YYYY")); i++) {
- this.timeOptions.unshift({
- value: i,
- label: i
- });
- }
- // 获取数据字典中下拉框数据
- this.classDictQuery("0", "sj_select", "审计类别");
- this.classDictQuery("0", "浦东新区行政区划", "浦东新区行政区划");
- this.getTableData(1);
- },
- methods: {
- // 数据字典查询 -- 获取所需类别
- classDictQuery(type, cName, keyName) {
- let params = new FormData();
- params = {
- type: type,
- cName: cName
- };
- this.$Post(this.urlsCollection.selectByCNameAType, params).then(res => {
- if (res.code === 200 && res.content.length > 0) {
- this.classDictMap[keyName] = new Map();
- res.content.forEach(v => {
- this.classDictMap[keyName].set(v.index + "", v.name);
- });
- if (keyName === "浦东新区行政区划") {
- this.classDictMap[keyName].forEach((v, i) => {
- this.townOptions.push({
- value: i,
- label: v
- });
- this.unTownOptions[i] = v;
- });
- this.townOptions.unshift({
- value: "全部",
- label: "全部"
- });
- }
- if (keyName === "审计类别") {
- this.classDictMap[keyName].forEach((v, i) => {
- this.typeOptions.push({
- value: i,
- label: v
- });
- });
- }
- }
- });
- },
- resetEvent() {
- this.typeSelectVal = "";
- this.townSelectVal = "";
- this.timeSelectVal = "";
- this.keyPoint = "";
- this.problemType = "";
- this.reStart = false;
- setTimeout(() => {
- this.reStart = true;
- this.getTableData(1);
- });
- },
- rowClick(row, column, event) {
- this.activeRowIndex = row.rowIndex - 1;
- this.dialogVisible = true;
- },
- handleClose() {
- this.dialogVisible = false;
- },
- filterMethod(value, row, column) {
- let selectState = false;
- // 立项年度
- if (column.property === "createYear" && this.timeSelectVal !== value) {
- selectState = true;
- this.timeSelectVal = Number(value);
- }
- // 被审计镇
- if (column.property === "auditTown" && this.townSelectVal !== value) {
- selectState = true;
- this.townSelectVal = value;
- }
- // 类别
- if (column.property === "type" && this.typeSelectVal !== value) {
- selectState = true;
- this.typeSelectVal = value;
- }
- // 重点审计事项
- if (column.property === "keyPoint" && this.keyPoint !== value) {
- selectState = true;
- this.keyPoint = value;
- }
- // 参与问题定性
- if (column.property === "problemType" && this.problemType !== value) {
- selectState = true;
- this.problemType = value;
- }
- if (selectState) {
- this.getTableData(this.paginationData.currentPage);
- }
- return true;
- },
- sortList(a, b) {
- return a - b;
- },
- // 切换页
- getTableData(val) {
- this.tableData = [];
- let searchParam = [];
- // 类别
- if (this.typeSelectVal) {
- let paramType = {
- field: "c_sjlbwt",
- // 等值查询
- searchType: "1",
- content: {
- value: this.typeSelectVal
- }
- };
- searchParam.push(paramType);
- }
- // 被审计街镇
- if (this.townSelectVal && this.townSelectVal !== "全部") {
- let paramTown = {
- field: "c_bsjzwt",
- // 等值查询
- searchType: "1",
- content: {
- value: this.townSelectVal
- }
- };
- searchParam.push(paramTown);
- }
- // 立项年度
- if (this.timeSelectVal) {
- let paramTime = {
- field: "c_lxndwt",
- // 等值查询
- searchType: "1",
- content: {
- value: this.timeSelectVal
- }
- };
- searchParam.push(paramTime);
- }
- if (this.keyPoint) {
- let paramTime = {
- field: "c_zdsjsxwt",
- // 等值查询
- searchType: "1",
- content: {
- value: this.keyPoint
- }
- };
- searchParam.push(paramTime);
- }
- if (this.problemType) {
- let paramTime = {
- field: "c_ckwtdxwt",
- // 等值查询
- searchType: "1",
- content: {
- value: this.problemType
- }
- };
- searchParam.push(paramTime);
- }
- let params = new FormData();
- params = {
- columnId: 1127,
- states: "0,1,2,3",
- pageSize: this.currentPageSize,
- page: val - 1,
- search: JSON.stringify(searchParam),
- group: "c_lxndwt,c_bsjzwt,c_sjlbwt,c_zdsjsxwt,c_ckwtdxwt"
- };
- // auditSelectContentList
- this.$Post(this.urlsCollection.auditSelectContentList, params).then(res => {
- if (res.code === 200 && res.content.data.length > 0) {
- this.paginationData.currentPage = val;
- this.paginationData.total = res.content.count;
- this.formData = res.content.data;
- this.filters = {
- createYearFilters: [],
- auditTownFilters: [],
- typeFilters: [],
- keyPointFilters: [],
- problemTypeFilters: []
- };
- if (res.content.select) {
- if (res.content.select.c_bsjzwt && res.content.select.c_bsjzwt.length > 0) {
- res.content.select.c_bsjzwt.forEach(item => {
- this.filters.auditTownFilters.push({ text: this.classDictMap["浦东新区行政区划"].get(item), value: item });
- });
- }
- if (res.content.select.c_lxndwt && res.content.select.c_lxndwt.length > 0) {
- let yearsList = [];
- res.content.select.c_lxndwt.forEach(item => {
- yearsList.push(Number(item));
- });
- for (let index = 0; index < yearsList.length; index++) {
- for (let index2 = index; index2 < yearsList.length; index2++) {
- let syearsList = yearsList[index];
- let eyearsList = yearsList[index2];
- if (syearsList > eyearsList) {
- yearsList[index] = eyearsList;
- yearsList[index2] = syearsList;
- }
- }
- }
- yearsList.forEach(item => {
- this.filters.createYearFilters.push({ text: Number(item), value: Number(item) });
- });
- }
- if (res.content.select.c_sjlbwt && res.content.select.c_sjlbwt.length > 0) {
- res.content.select.c_sjlbwt.forEach(item => {
- this.filters.typeFilters.push({ text: this.classDictMap["审计类别"].get(item), value: item });
- });
- }
- if (res.content.select.c_ckwtdxwt && res.content.select.c_ckwtdxwt.length > 0) {
- res.content.select.c_ckwtdxwt.forEach(item => {
- this.filters.problemTypeFilters.push({ text: item, value: item });
- });
- }
- if (res.content.select.c_zdsjsxwt && res.content.select.c_zdsjsxwt.length > 0) {
- res.content.select.c_zdsjsxwt.forEach(item => {
- this.filters.keyPointFilters.push({ text: item, value: item });
- });
- }
- }
- let rowIndex = 0;
- this.tableData = res.content.data.map(v => {
- rowIndex++;
- return {
- rowIndex: rowIndex,
- id: v.id || "--",
- createYear: v.c_lxndwt || "--",
- // createYear: this.$dayjs(v.c_year).format("YYYY")|| "--",
- auditTown: this.classDictMap["浦东新区行政区划"].get(v.c_bsjzwt) || "--",
- type: this.classDictMap["审计类别"].get(v.c_sjlbwt) || "--",
- keyPoint: v.c_zdsjsxwt || "--",
- problemType: v.c_ckwtdxwt || "--",
- problemNature: v.c_wtdx1wt || "--"
- };
- });
- }
- });
- },
- // 切换条数
- handleSizeChange(val) {
- console.log(`每页 ${val} 条`);
- this.currentPageSize = val;
- this.getTableData(this.currentPage);
- }
- }
- };
- </script>
- <style lang="less" scoped>
- .frenquency-container {
- display: flex;
- align-items: center;
- justify-content: center;
- &-inner {
- width: 98%;
- height: 97%;
- background: rgba(0, 39, 77, 0.5);
- .header {
- height: 13%;
- width: 100%;
- position: relative;
- &-title {
- width: 84px;
- height: 20px;
- font-size: 20px;
- font-family: PingFang SC;
- font-weight: 400;
- color: #4dc3ff;
- line-height: 30px;
- position: absolute;
- top: 1px;
- left: 10px;
- }
- &-select {
- position: absolute;
- left: 10px;
- bottom: 5px;
- width: 900px;
- height: 40px;
- color: #e6e6e6;
- display: flex;
- justify-content: space-between;
- & > div {
- // position: absolute;
- display: flex;
- justify-content: space-around;
- width: 320px;
- .text {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- width: 100px;
- height: 28px;
- }
- .select-input {
- width: 170px;
- }
- }
- }
- .reset-btn,
- .query-btn {
- width: 60px;
- height: 30px;
- border-radius: 3px;
- border: none;
- color: #fff;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- position: absolute;
- top: 15px;
- }
- .reset-btn {
- right: 30px;
- background: rgba(129, 140, 164, 1);
- }
- .query-btn {
- right: 110px;
- background-image: linear-gradient(to top, rgba(79, 172, 254, 1), rgba(0, 242, 254, 1));
- }
- }
- .center {
- height: 77%;
- width: 100%;
- overflow: auto;
- /deep/.el-table {
- background: rgba(0, 39, 77, 0.6);
- // font-size: 0.95rem;
- font-family: PingFang SC;
- font-weight: 500;
- thead {
- color: #4dc3ff;
- font-size: 15px;
- }
- }
- }
- .footer {
- height: 10%;
- width: 100%;
- position: absolute;
- .pagination-style {
- position: absolute;
- right: 50px;
- }
- }
- }
- }
- .dialog_title {
- font-size: 20px;
- font-weight: bold;
- color: #fff;
- padding-bottom: 1.5rem;
- &2 {
- font-weight: 100;
- font-size: 18px;
- color: #fff;
- padding-top: 1.5rem;
- }
- &3 {
- display: flex;
- justify-content: center;
- padding-top: 1.5rem;
- }
- &_info {
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: 18px;
- font-weight: 400px;
- color: #dcdfe6;
- padding: 1rem 0;
- }
- }
- .dialog_table {
- display: flex;
- justify-content: space-between;
- div {
- width: 50%;
- text-align: center;
- background-color: #00000064 !important;
- margin: 1px;
- padding: 5px 10px;
- display: flex;
- justify-content: center;
- color: #dcdfe6;
- border: 1px solid #001d3c00;
- }
- }
- </style>
|