FrequencyView.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. <template>
  2. <div class="frenquency-container">
  3. <el-dialog
  4. custom-class="myMission"
  5. title="详细信息"
  6. :append-to-body="true"
  7. :modal="true"
  8. :visible.sync="dialogVisible"
  9. width="70%"
  10. height="60%"
  11. :before-close="handleClose"
  12. >
  13. <div>
  14. <div class="dialog_title_info">
  15. <div>
  16. 立项年度:{{
  17. formData[activeRowIndex] && formData[activeRowIndex].c_lxndwt ? formData[activeRowIndex].c_lxndwt : "--"
  18. }}
  19. </div>
  20. <div>
  21. 被审计镇:{{
  22. formData[activeRowIndex] &&
  23. formData[activeRowIndex].c_bsjzwt &&
  24. unTownOptions &&
  25. unTownOptions[formData[activeRowIndex].c_bsjzwt]
  26. ? unTownOptions[formData[activeRowIndex].c_bsjzwt]
  27. : "--"
  28. }}
  29. </div>
  30. </div>
  31. <div class="dialog_title_info">
  32. 问题金额(万元):{{
  33. formData[activeRowIndex] && formData[activeRowIndex].c_wtjewt ? formData[activeRowIndex].c_wtjewt : "--"
  34. }}
  35. </div>
  36. <div class="dialog_title">审计报告中的问题反映情况</div>
  37. <div v-for="(item, index) in dialogData" :key="index" class="dialog_table">
  38. <div>{{ item.title }}</div>
  39. <div>
  40. {{
  41. formData[activeRowIndex] && formData[activeRowIndex][item.columnName]
  42. ? formData[activeRowIndex][item.columnName]
  43. : "--"
  44. }}
  45. </div>
  46. </div>
  47. <!-- <div class="dialog_title3"><el-button size="mini" type="primary" class="infoBut">查看疑点图斑</el-button></div> -->
  48. </div>
  49. </el-dialog>
  50. <div class="frenquency-container-inner">
  51. <div class="header">
  52. <div class="header-title">频发问题</div>
  53. <div class="header-select">
  54. <div>
  55. <div class="text">类别 :</div>
  56. <NewSelect
  57. ref="auditTypeRef"
  58. :placeholder="'请选择类别'"
  59. class="select-input"
  60. v-model="typeSelectVal"
  61. :options="typeOptions"
  62. :value="typeSelectVal"
  63. />
  64. </div>
  65. <div>
  66. <div class="text">被审计街镇 :</div>
  67. <NewSelect
  68. ref="townTypeRef"
  69. :placeholder="'请选择街镇'"
  70. class="select-input"
  71. v-model="townSelectVal"
  72. :options="townOptions"
  73. :value="townSelectVal"
  74. />
  75. </div>
  76. <div>
  77. <div class="text">立项年度 :</div>
  78. <NewSelect
  79. ref="timeRef"
  80. :placeholder="'立项年度'"
  81. class="select-input"
  82. v-model="timeSelectVal"
  83. :options="timeOptions"
  84. :value="timeSelectVal"
  85. />
  86. </div>
  87. </div>
  88. <div class="query-btn" @click="getTableData(1)">查询</div>
  89. <div class="reset-btn" @click="resetEvent">重置</div>
  90. </div>
  91. <div class="center">
  92. <el-table :data="tableData" style="width: 100%" max-height="600" @row-click="rowClick">
  93. <el-table-column type="index" width="70" align="center"> </el-table-column>
  94. <el-table-column
  95. prop="createYear"
  96. label="立项年度"
  97. width="150"
  98. align="center"
  99. :filters="[{ text: '2019', value: '2019' }]"
  100. >
  101. </el-table-column>
  102. <el-table-column prop="auditTown" label="被审计镇" align="center" width="180"> </el-table-column>
  103. <el-table-column prop="type" label="类别" align="center"> </el-table-column>
  104. <el-table-column prop="keyPoint" label="重点审计事项" align="center"> </el-table-column>
  105. <el-table-column prop="problemType" label="参考问题定性" align="center"> </el-table-column>
  106. <!-- <el-table-column prop="problemNature" label="问题定性" align="center">
  107. </el-table-column> -->
  108. </el-table>
  109. </div>
  110. <div class="footer">
  111. <Pagination class="pagination-style" :paginationData="paginationData" />
  112. </div>
  113. </div>
  114. </div>
  115. </template>
  116. <script>
  117. import NewSelect from "@/components/common/NewSelect.vue";
  118. import Pagination from "@/components/common/Pagination.vue";
  119. /**
  120. * 频发问题 -- 智能辅助
  121. * @author: Gao Lu
  122. * @Date: 2022.11.24
  123. */
  124. export default {
  125. name: "FrequencyDialog",
  126. components: { NewSelect, Pagination },
  127. data() {
  128. return {
  129. // 数据字典暂存对象
  130. classDictMap: {},
  131. typeSelectVal: "",
  132. typeOptions: [],
  133. townSelectVal: "",
  134. townOptions: [],
  135. timeSelectVal: "",
  136. timeOptions: [],
  137. tableData: [],
  138. currentPage: 1,
  139. currentPageSize: 10,
  140. // 整改中的查看详情弹窗状态
  141. dialogVisible: false,
  142. dialogData: [
  143. { title: "问题分类", columnName: "c_wtflwt", info: "--" },
  144. { title: "问题定性1", columnName: "c_wtdx1wt", info: "--" },
  145. { title: "问题定性2", columnName: "c_wtdx2wt", info: "--" },
  146. { title: "问题事项", columnName: "c_wtsxwt", info: "--" },
  147. { title: "使用法条", columnName: "c_syftwt", info: "--" },
  148. { title: "边审边改情况", columnName: "c_bsbgqkwt", info: "--" }
  149. ],
  150. // 暂存全部数据
  151. formData: [],
  152. // 选中的rowinxdex
  153. activeRowIndex: 0,
  154. paginationData: {
  155. pageSize: 10,
  156. pagerCount: 5,
  157. currentPage: 1,
  158. pageSizes: [5, 10, 20, 30],
  159. total: 50,
  160. currentChange: val => {
  161. this.getTableData(val);
  162. },
  163. handleSizeChange: val => {
  164. this.handleSizeChange(val);
  165. }
  166. }
  167. };
  168. },
  169. created() {
  170. this.townOptions = [];
  171. this.unTownOptions = {};
  172. this.timeOptions = [];
  173. this.typeOptions = [];
  174. // 时间选择
  175. for (let i = 1980; i <= parseInt(this.$dayjs().format("YYYY")); i++) {
  176. this.timeOptions.unshift({
  177. value: i,
  178. label: i
  179. });
  180. }
  181. // 获取数据字典中下拉框数据
  182. this.classDictQuery("0", "sj_select", "审计类别");
  183. this.classDictQuery("0", "浦东新区行政区划", "浦东新区行政区划");
  184. this.getTableData(1);
  185. },
  186. methods: {
  187. // 数据字典查询 -- 获取所需类别
  188. classDictQuery(type, cName, keyName) {
  189. let params = new FormData();
  190. params = {
  191. type: type,
  192. cName: cName
  193. };
  194. this.$Post(this.urlsCollection.selectByCNameAType, params).then(res => {
  195. if (res.code === 200 && res.content.length > 0) {
  196. this.classDictMap[keyName] = new Map();
  197. res.content.forEach(v => {
  198. this.classDictMap[keyName].set(v.index + "", v.name);
  199. });
  200. if (keyName === "浦东新区行政区划") {
  201. this.classDictMap[keyName].forEach((v, i) => {
  202. this.townOptions.push({
  203. value: i,
  204. label: v
  205. });
  206. this.unTownOptions[i] = v;
  207. });
  208. this.townOptions.unshift({
  209. value: "全部",
  210. label: "全部"
  211. });
  212. }
  213. if (keyName === "审计类别") {
  214. this.classDictMap[keyName].forEach((v, i) => {
  215. this.typeOptions.push({
  216. value: i,
  217. label: v
  218. });
  219. });
  220. }
  221. }
  222. });
  223. },
  224. resetEvent() {
  225. this.typeSelectVal = "";
  226. this.townSelectVal = "";
  227. this.timeSelectVal = "";
  228. this.$refs.auditTypeRef.imgValue = "";
  229. this.$refs.townTypeRef.imgValue = "";
  230. this.$refs.timeRef.imgValue = "";
  231. this.getTableData(1);
  232. },
  233. rowClick(row, column, event) {
  234. this.activeRowIndex = row.rowIndex - 1;
  235. this.dialogVisible = true;
  236. },
  237. handleClose() {
  238. this.dialogVisible = false;
  239. },
  240. // 切换页
  241. getTableData(val) {
  242. this.tableData = [];
  243. let searchParam = [];
  244. // 类别
  245. if (this.typeSelectVal) {
  246. let paramType = {
  247. field: "c_sjlbwt",
  248. // 等值查询
  249. searchType: "1",
  250. content: {
  251. value: this.typeSelectVal
  252. }
  253. };
  254. searchParam.push(paramType);
  255. }
  256. // 被审计街镇
  257. if (this.townSelectVal && this.townSelectVal !== "全部") {
  258. let paramTown = {
  259. field: "c_bsjzwt",
  260. // 等值查询
  261. searchType: "1",
  262. content: {
  263. value: this.townSelectVal
  264. }
  265. };
  266. searchParam.push(paramTown);
  267. }
  268. // 立项年度
  269. if (this.timeSelectVal) {
  270. let paramTime = {
  271. field: "c_lxndwt",
  272. // 等值查询
  273. searchType: "1",
  274. content: {
  275. value: this.timeSelectVal
  276. }
  277. };
  278. searchParam.push(paramTime);
  279. }
  280. let params = new FormData();
  281. params = {
  282. columnId: 1127,
  283. states: "0,1,2,3",
  284. pageSize: this.currentPageSize,
  285. page: val - 1,
  286. search: JSON.stringify(searchParam)
  287. };
  288. this.$Post(this.urlsCollection.selectContentList, params).then(res => {
  289. if (res.code === 200 && res.content.data.length > 0) {
  290. this.paginationData.currentPage = val;
  291. this.paginationData.total = res.content.count;
  292. this.formData = res.content.data;
  293. let rowIndex = 0;
  294. this.tableData = res.content.data.map(v => {
  295. rowIndex++;
  296. return {
  297. rowIndex: rowIndex,
  298. id: v.id || "--",
  299. createYear: v.c_lxndwt || "--",
  300. // createYear: this.$dayjs(v.c_year).format("YYYY")|| "--",
  301. auditTown: this.classDictMap["浦东新区行政区划"].get(v.c_bsjzwt) || "--",
  302. type: this.classDictMap["审计类别"].get(v.c_sjlbwt) || "--",
  303. keyPoint: v.c_zdsjsxwt || "--",
  304. problemType: v.c_ckwtdxwt || "--",
  305. problemNature: v.c_wtdx1wt || "--"
  306. };
  307. });
  308. }
  309. });
  310. },
  311. // 切换条数
  312. handleSizeChange(val) {
  313. console.log(`每页 ${val} 条`);
  314. this.currentPageSize = val;
  315. this.getTableData(this.currentPage);
  316. }
  317. }
  318. };
  319. </script>
  320. <style lang="less" scoped>
  321. .frenquency-container {
  322. display: flex;
  323. align-items: center;
  324. justify-content: center;
  325. &-inner {
  326. width: 98%;
  327. height: 97%;
  328. background: rgba(0, 39, 77, 0.5);
  329. .header {
  330. height: 13%;
  331. width: 100%;
  332. position: relative;
  333. &-title {
  334. width: 84px;
  335. height: 20px;
  336. font-size: 20px;
  337. font-family: PingFang SC;
  338. font-weight: 400;
  339. color: #4dc3ff;
  340. line-height: 30px;
  341. position: absolute;
  342. top: 1px;
  343. left: 10px;
  344. }
  345. &-select {
  346. position: absolute;
  347. left: 10px;
  348. bottom: 5px;
  349. width: 900px;
  350. height: 40px;
  351. color: #e6e6e6;
  352. display: flex;
  353. justify-content: space-between;
  354. & > div {
  355. // position: absolute;
  356. display: flex;
  357. justify-content: space-around;
  358. width: 320px;
  359. .text {
  360. display: flex;
  361. align-items: center;
  362. justify-content: flex-end;
  363. width: 100px;
  364. height: 28px;
  365. }
  366. .select-input {
  367. width: 170px;
  368. }
  369. }
  370. }
  371. .reset-btn,
  372. .query-btn {
  373. width: 60px;
  374. height: 30px;
  375. border-radius: 3px;
  376. border: none;
  377. color: #fff;
  378. cursor: pointer;
  379. display: flex;
  380. align-items: center;
  381. justify-content: center;
  382. position: absolute;
  383. top: 15px;
  384. }
  385. .reset-btn {
  386. right: 30px;
  387. background: rgba(129, 140, 164, 1);
  388. }
  389. .query-btn {
  390. right: 110px;
  391. background-image: linear-gradient(to top, rgba(79, 172, 254, 1), rgba(0, 242, 254, 1));
  392. }
  393. }
  394. .center {
  395. height: 77%;
  396. width: 100%;
  397. overflow: auto;
  398. /deep/.el-table {
  399. background: rgba(0, 39, 77, 0.6);
  400. // font-size: 0.95rem;
  401. font-family: PingFang SC;
  402. font-weight: 500;
  403. thead {
  404. color: #4dc3ff;
  405. font-size: 15px;
  406. }
  407. }
  408. }
  409. .footer {
  410. height: 10%;
  411. width: 100%;
  412. position: absolute;
  413. .pagination-style {
  414. position: absolute;
  415. right: 50px;
  416. }
  417. }
  418. }
  419. }
  420. .dialog_title {
  421. font-size: 20px;
  422. font-weight: bold;
  423. color: #fff;
  424. padding-bottom: 1.5rem;
  425. &2 {
  426. font-weight: 100;
  427. font-size: 18px;
  428. color: #fff;
  429. padding-top: 1.5rem;
  430. }
  431. &3 {
  432. display: flex;
  433. justify-content: center;
  434. padding-top: 1.5rem;
  435. }
  436. &_info {
  437. display: flex;
  438. justify-content: space-between;
  439. align-items: center;
  440. font-size: 18px;
  441. font-weight: 400px;
  442. color: #dcdfe6;
  443. padding: 1rem 0;
  444. }
  445. }
  446. .dialog_table {
  447. display: flex;
  448. justify-content: space-between;
  449. div {
  450. width: 50%;
  451. text-align: center;
  452. background-color: #00000064 !important;
  453. margin: 1px;
  454. padding: 5px 10px;
  455. display: flex;
  456. justify-content: center;
  457. color: #dcdfe6;
  458. border: 1px solid #001d3c00;
  459. }
  460. }
  461. </style>