406a5855 by renchao@pashanhoo.com

Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev

2 parents 5626fa9e c65d3597
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-07-03 08:59:06 4 * @LastEditTime: 2023-08-16 11:30:45
5 */ 5 */
6 import store from '@/store' 6 import store from '@/store'
7 7
...@@ -27,12 +27,18 @@ export function getSjlx (level) { ...@@ -27,12 +27,18 @@ export function getSjlx (level) {
27 */ 27 */
28 export function getDictLeabel (level, code) { 28 export function getDictLeabel (level, code) {
29 const resultMap = store.getters.dictData[code] 29 const resultMap = store.getters.dictData[code]
30 const desiredObject = resultMap.find(obj => obj.dcode === level); 30 function findNode(tree, func) {
31 31 for (const node of tree) {
32 if (desiredObject) { 32 if (func(node)) return node
33 const desiredName = desiredObject.dname; 33 if (node.children) {
34 return desiredName 34 const res = findNode(node.children, func)
35 } else { 35 if (res) return res
36 return '' 36 }
37 }
38 return {dname:""}
37 } 39 }
38 } 40 let data = findNode(resultMap, (node) => {
41 return node.dcode === level
42 })
43 return data.dname
44 }
...\ No newline at end of file ...\ No newline at end of file
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-11 15:33:53 4 * @LastEditTime: 2023-08-16 11:29:20
5 --> 5 -->
6 <template> 6 <template>
7 <div class="djxxTable"> 7 <div class="djxxTable">
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
59 59
60 <script> 60 <script>
61 import { datas } from "./qlxxFormData.js"; 61 import { datas } from "./qlxxFormData.js";
62 import { getSjlx } from "@/utils/dictionary.js"; 62 import { getSjlx, getDictLeabel } from "@/utils/dictionary.js";
63 import { getLqList } from "@/api/djbDetail.js"; 63 import { getLqList } from "@/api/djbDetail.js";
64 export default { 64 export default {
65 data() { 65 data() {
...@@ -101,6 +101,9 @@ export default { ...@@ -101,6 +101,9 @@ export default {
101 this.tableData = res.result; 101 this.tableData = res.result;
102 this.tableData.forEach((item) => { 102 this.tableData.forEach((item) => {
103 item.sjlx = getSjlx(item.sjlx); 103 item.sjlx = getSjlx(item.sjlx);
104 item.ldsyqxz = getDictLeabel(item.ldsyqxz, 'A45')
105 item.lz = getDictLeabel(item.lz, 'A26')
106 item.qy = getDictLeabel(item.qy, 'A52')
104 }); 107 });
105 if (this.tableData.length < datas.columns().emptycolNum) { 108 if (this.tableData.length < datas.columns().emptycolNum) {
106 this.emptycolNum = 109 this.emptycolNum =
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-15 14:01:37 4 * @LastEditTime: 2023-08-15 14:36:06
5 --> 5 -->
6 <template> 6 <template>
7 <div class="from-clues"> 7 <div class="from-clues">
...@@ -110,10 +110,8 @@ ...@@ -110,10 +110,8 @@
110 } 110 }
111 this.loading = true 111 this.loading = true
112 startBusinessFlow({ 112 startBusinessFlow({
113 bsmSqyw: this.bsmSqyw, 113 bsmSqyw: this.sqywInfo.bsmSqyw,
114 bdcdysz: this.bdcdysz, 114 bdcdysz: this.bdcdysz,
115 djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
116 djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
117 }).then((res) => { 115 }).then((res) => {
118 this.loading = false 116 this.loading = false
119 if (res.code == 200) { 117 if (res.code == 200) {
......