Merge branch 'dev'
Showing
6 changed files
with
27 additions
and
21 deletions
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-16 11:10:16 | 4 | * @LastEditTime: 2023-08-16 11:22:21 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues loadingtext" v-Loading="loading" element-loading-text="拼命加载中..." style="height:720px;text-align: center;"> | 7 | <div class="from-clues loadingtext" v-Loading="loading" element-loading-text="拼命加载中..." style="height:720px;text-align: center;"> |
... | @@ -133,8 +133,8 @@ | ... | @@ -133,8 +133,8 @@ |
133 | context.fillText(this.bdcqz.qlr ? this.bdcqz.qlr : '', 129, 97); | 133 | context.fillText(this.bdcqz.qlr ? this.bdcqz.qlr : '', 129, 97); |
134 | context.fillText(this.bdcqz.gyqk ? this.bdcqz.gyqk : '', 129, 136); | 134 | context.fillText(this.bdcqz.gyqk ? this.bdcqz.gyqk : '', 129, 136); |
135 | 135 | ||
136 | let arr = this.bdcqz.bdcdyh.split('F') | 136 | this.bdcqz.bdcdyh = this.bdcqz.bdcdyh.slice(0, 6) + ' ' + this.bdcqz.bdcdyh.slice(6, 12) + ' ' + |
137 | this.bdcqz.bdcdyh = arr[0].slice(0, 6) + ' ' + arr[0].slice(6, 12) + ' ' + arr[0].slice(12, arr[0].length) + ' F' + arr[1] | 137 | this.bdcqz.bdcdyh.slice(12, 19) + ' ' + this.bdcqz.bdcdyh.slice(19, this.bdcqz.bdcdyh.length) |
138 | context.fillText(this.bdcqz.bdcdyh ? this.bdcqz.bdcdyh : '', 129, 223); | 138 | context.fillText(this.bdcqz.bdcdyh ? this.bdcqz.bdcdyh : '', 129, 223); |
139 | 139 | ||
140 | 140 | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-04 13:26:31 | 4 | * @LastEditTime: 2023-08-16 14:08:42 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div> | 7 | <div> |
... | @@ -179,7 +179,6 @@ | ... | @@ -179,7 +179,6 @@ |
179 | } | 179 | } |
180 | this.key++ | 180 | this.key++ |
181 | }, | 181 | }, |
182 | // 新增 | ||
183 | /** | 182 | /** |
184 | * @description: 新增 | 183 | * @description: 新增 |
185 | * @author: renchao | 184 | * @author: renchao | ... | ... |
... | @@ -344,7 +344,7 @@ | ... | @@ -344,7 +344,7 @@ |
344 | </el-col> | 344 | </el-col> |
345 | </el-row> | 345 | </el-row> |
346 | <qlrCommonTable @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList" :disabled="!ableOperation" | 346 | <qlrCommonTable @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList" :disabled="!ableOperation" |
347 | :gyfs="ruleForm.slsq.gyfs" /> | 347 | :gyfs="ruleForm.qlxx.gyfs" /> |
348 | 348 | ||
349 | <div v-if="ruleForm.ywrList && ruleForm.qlxx.djlx == '200'"> | 349 | <div v-if="ruleForm.ywrList && ruleForm.qlxx.djlx == '200'"> |
350 | <div class="slxx_title title-block"> | 350 | <div class="slxx_title title-block"> | ... | ... |
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) { | ... | ... |
-
Please register or sign in to post a comment