增加注释
Showing
31 changed files
with
795 additions
and
110 deletions
... | @@ -3,6 +3,10 @@ import { MessageBox } from 'element-ui'; | ... | @@ -3,6 +3,10 @@ import { MessageBox } from 'element-ui'; |
3 | var CreatedOKLodopObject, CLodopIsLocal, CLodopJsState; | 3 | var CreatedOKLodopObject, CLodopIsLocal, CLodopJsState; |
4 | 4 | ||
5 | //==判断是否需要CLodop(那些不支持插件的浏览器):== | 5 | //==判断是否需要CLodop(那些不支持插件的浏览器):== |
6 | /** | ||
7 | * @description: 判断是否需要CLodop | ||
8 | * @author: renchao | ||
9 | */ | ||
6 | function needCLodop () { | 10 | function needCLodop () { |
7 | try { | 11 | try { |
8 | var ua = navigator.userAgent; | 12 | var ua = navigator.userAgent; |
... | @@ -45,6 +49,10 @@ function needCLodop () { | ... | @@ -45,6 +49,10 @@ function needCLodop () { |
45 | } | 49 | } |
46 | 50 | ||
47 | //==加载引用CLodop的主JS,用双端口8000和18000(以防其中一个被占):== | 51 | //==加载引用CLodop的主JS,用双端口8000和18000(以防其中一个被占):== |
52 | /** | ||
53 | * @description: 加载引用CLodop的主JS,用双端口8000和18000 | ||
54 | * @author: renchao | ||
55 | */ | ||
48 | function loadCLodop () { | 56 | function loadCLodop () { |
49 | if (CLodopJsState == "loading" || CLodopJsState == "complete") return; | 57 | if (CLodopJsState == "loading" || CLodopJsState == "complete") return; |
50 | CLodopJsState = "loading"; | 58 | CLodopJsState = "loading"; |
... | @@ -63,7 +71,12 @@ function loadCLodop () { | ... | @@ -63,7 +71,12 @@ function loadCLodop () { |
63 | if (needCLodop()) { loadCLodop(); }//加载 | 71 | if (needCLodop()) { loadCLodop(); }//加载 |
64 | 72 | ||
65 | //==获取LODOP对象主过程,判断是否安装、需否升级:== | 73 | //==获取LODOP对象主过程,判断是否安装、需否升级:== |
66 | 74 | /** | |
75 | * @description: 获取LODOP对象主过程,判断是否安装、需否升级 | ||
76 | * @param {*} oOBJECT | ||
77 | * @param {*} oEMBED | ||
78 | * @author: renchao | ||
79 | */ | ||
67 | export function getLodop (oOBJECT, oEMBED) { | 80 | export function getLodop (oOBJECT, oEMBED) { |
68 | var strHtmInstall = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.zip' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"; | 81 | var strHtmInstall = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.zip' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"; |
69 | var strHtmUpdate = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop32.zip' target='_self'>执行升级</a>,升级后请重新进入。</font>"; | 82 | var strHtmUpdate = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop32.zip' target='_self'>执行升级</a>,升级后请重新进入。</font>"; |
... | @@ -95,7 +108,7 @@ export function getLodop (oOBJECT, oEMBED) { | ... | @@ -95,7 +108,7 @@ export function getLodop (oOBJECT, oEMBED) { |
95 | }).then(() => { | 108 | }).then(() => { |
96 | window.open('http://192.168.2.38:9000/bdcdj/20221212/b8702920-987d-4685-aff4-ade7a3a2b868/CLodop_Setup_for_Win32NT.zip') | 109 | window.open('http://192.168.2.38:9000/bdcdj/20221212/b8702920-987d-4685-aff4-ade7a3a2b868/CLodop_Setup_for_Win32NT.zip') |
97 | }).catch(() => { | 110 | }).catch(() => { |
98 | 111 | ||
99 | }); | 112 | }); |
100 | //document.body.innerHTML = strCLodopInstall_1 + (CLodopIsLocal ? strCLodopInstall_2 : "") + strCLodopInstall_3 + document.body.innerHTML; | 113 | //document.body.innerHTML = strCLodopInstall_1 + (CLodopIsLocal ? strCLodopInstall_2 : "") + strCLodopInstall_3 + document.body.innerHTML; |
101 | return; | 114 | return; |
... | @@ -108,7 +121,7 @@ export function getLodop (oOBJECT, oEMBED) { | ... | @@ -108,7 +121,7 @@ export function getLodop (oOBJECT, oEMBED) { |
108 | }).then(() => { | 121 | }).then(() => { |
109 | window.open('http://192.168.2.38:9000/bdcdj/20221212/cc00035b-4240-439a-b6a3-302cab44cb1e/install_lodop32.zip') | 122 | window.open('http://192.168.2.38:9000/bdcdj/20221212/cc00035b-4240-439a-b6a3-302cab44cb1e/install_lodop32.zip') |
110 | }).catch(() => { | 123 | }).catch(() => { |
111 | 124 | ||
112 | }); | 125 | }); |
113 | //document.body.innerHTML = strCLodopUpdate + document.body.innerHTML; | 126 | //document.body.innerHTML = strCLodopUpdate + document.body.innerHTML; |
114 | } | 127 | } |
... | @@ -147,7 +160,7 @@ export function getLodop (oOBJECT, oEMBED) { | ... | @@ -147,7 +160,7 @@ export function getLodop (oOBJECT, oEMBED) { |
147 | }).then(() => { | 160 | }).then(() => { |
148 | window.open('http://192.168.2.38:9000/bdcdj/20221212/b8702920-987d-4685-aff4-ade7a3a2b868/CLodop_Setup_for_Win32NT.zip') | 161 | window.open('http://192.168.2.38:9000/bdcdj/20221212/b8702920-987d-4685-aff4-ade7a3a2b868/CLodop_Setup_for_Win32NT.zip') |
149 | }).catch(() => { | 162 | }).catch(() => { |
150 | 163 | ||
151 | }); | 164 | }); |
152 | // if (ua.indexOf('Chrome') >= 0) | 165 | // if (ua.indexOf('Chrome') >= 0) |
153 | // document.body.innerHTML = strHtmChrome + document.body.innerHTML; | 166 | // document.body.innerHTML = strHtmChrome + document.body.innerHTML; |
... | @@ -166,7 +179,7 @@ export function getLodop (oOBJECT, oEMBED) { | ... | @@ -166,7 +179,7 @@ export function getLodop (oOBJECT, oEMBED) { |
166 | }).then(() => { | 179 | }).then(() => { |
167 | window.open('http://192.168.2.38:9000/bdcdj/20221212/cc00035b-4240-439a-b6a3-302cab44cb1e/install_lodop32.zip') | 180 | window.open('http://192.168.2.38:9000/bdcdj/20221212/cc00035b-4240-439a-b6a3-302cab44cb1e/install_lodop32.zip') |
168 | }).catch(() => { | 181 | }).catch(() => { |
169 | 182 | ||
170 | }); | 183 | }); |
171 | //document.body.innerHTML = (is64IE ? strHtm64_Update : strHtmUpdate) + document.body.innerHTML; | 184 | //document.body.innerHTML = (is64IE ? strHtm64_Update : strHtmUpdate) + document.body.innerHTML; |
172 | } | 185 | } | ... | ... |
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-03 08:59:06 | 4 | * @LastEditTime: 2023-07-03 08:59:06 |
5 | */ | 5 | */ |
6 | import store from '@/store' | 6 | import store from '@/store' |
7 | |||
8 | /** | ||
9 | * @description: getSjlx | ||
10 | * @param {*} level | ||
11 | * @author: renchao | ||
12 | */ | ||
7 | export function getSjlx (level) { | 13 | export function getSjlx (level) { |
8 | const resultMap = { | 14 | const resultMap = { |
9 | 1: '系统数据', | 15 | 1: '系统数据', |
... | @@ -13,6 +19,12 @@ export function getSjlx (level) { | ... | @@ -13,6 +19,12 @@ export function getSjlx (level) { |
13 | return resultMap[level] || resultMap.default; | 19 | return resultMap[level] || resultMap.default; |
14 | } | 20 | } |
15 | 21 | ||
22 | /** | ||
23 | * @description: getDictLeabel | ||
24 | * @param {*} level | ||
25 | * @param {*} code | ||
26 | * @author: renchao | ||
27 | */ | ||
16 | export function getDictLeabel (level, code) { | 28 | export function getDictLeabel (level, code) { |
17 | const resultMap = store.getters.dictData[code] | 29 | const resultMap = store.getters.dictData[code] |
18 | const desiredObject = resultMap.find(obj => obj.dcode === level); | 30 | const desiredObject = resultMap.find(obj => obj.dcode === level); |
... | @@ -23,4 +35,4 @@ export function getDictLeabel (level, code) { | ... | @@ -23,4 +35,4 @@ export function getDictLeabel (level, code) { |
23 | } else { | 35 | } else { |
24 | return '' | 36 | return '' |
25 | } | 37 | } |
26 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
38 | } | ... | ... |
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-17 13:31:39 | 4 | * @LastEditTime: 2023-07-17 13:31:39 |
5 | */ | 5 | */ |
6 | import store from '@/store' | 6 | import store from '@/store' |
7 | // table 内部过滤器 由于过滤器只能在模板中使用 所以 就有了 jsx内部方法过滤器 | 7 | // table 内部过滤器 由于过滤器只能在模板中使用 所以 就有了 jsx内部方法过滤器 |
8 | export default class filter { | 8 | export default class filter { |
9 | /** | ||
10 | * @description: selected | ||
11 | * @param {*} row | ||
12 | * @author: renchao | ||
13 | */ | ||
9 | selected (row) { | 14 | selected (row) { |
10 | // if (row.sfbl == 0) { // 正在办理不能申请 | 15 | // if (row.sfbl == 0) { // 正在办理不能申请 |
11 | // return false | 16 | // return false |
12 | // } else { | 17 | // } else { |
13 | // return true //可选择 | 18 | // return true //可选择 |
14 | // } | 19 | // } |
15 | return true | 20 | return true |
16 | } | 21 | } |
17 | // 业务来源 | 22 | // 业务来源 |
23 | /** | ||
24 | * @description: 业务来源 | ||
25 | * @param {*} val | ||
26 | * @author: renchao | ||
27 | */ | ||
18 | busSource (val) { | 28 | busSource (val) { |
19 | let status = { 1: '办事大厅', 2: '微信小程序' } | 29 | let status = { 1: '办事大厅', 2: '微信小程序' } |
20 | return status[val] | 30 | return status[val] |
21 | } | 31 | } |
22 | 32 | ||
23 | //申请分类(1:正常申请,2:一并申请,3:补录申请) | 33 | //申请分类(1:正常申请,2:一并申请,3:补录申请) |
34 | /** | ||
35 | * @description: 申请分类 | ||
36 | * @param {*} val | ||
37 | * @author: renchao | ||
38 | */ | ||
24 | sqfls (val) { | 39 | sqfls (val) { |
25 | let status = { 1: '正常申请', 2: '一并申请', 3: '补录申请' } | 40 | let status = { 1: '正常申请', 2: '一并申请', 3: '补录申请' } |
26 | return status[val] | 41 | return status[val] |
27 | } | 42 | } |
28 | // 字典 | 43 | // 字典 |
44 | /** | ||
45 | * @description: 字典 | ||
46 | * @param {*} val | ||
47 | * @param {*} code | ||
48 | * @author: renchao | ||
49 | */ | ||
29 | dicStatus (val, code) { | 50 | dicStatus (val, code) { |
30 | let data = store.getters.dictData[code], | 51 | let data = store.getters.dictData[code], |
31 | name = '暂无' | 52 | name = '暂无' |
... | @@ -38,12 +59,27 @@ export default class filter { | ... | @@ -38,12 +59,27 @@ export default class filter { |
38 | return name | 59 | return name |
39 | } | 60 | } |
40 | } | 61 | } |
62 | /** | ||
63 | * @description: filterHtml | ||
64 | * @param {*} content | ||
65 | * @author: renchao | ||
66 | */ | ||
41 | filterHtml (content) { | 67 | filterHtml (content) { |
42 | return content.replace(/<[^>]+>/g, ''); | 68 | return content.replace(/<[^>]+>/g, ''); |
43 | } | 69 | } |
70 | /** | ||
71 | * @description: getDictData | ||
72 | * @param {*} val | ||
73 | * @author: renchao | ||
74 | */ | ||
44 | getDictData (val) { | 75 | getDictData (val) { |
45 | return store.getters.dictData[val] | 76 | return store.getters.dictData[val] |
46 | } | 77 | } |
78 | /** | ||
79 | * @description: yWstatus | ||
80 | * @param {*} row | ||
81 | * @author: renchao | ||
82 | */ | ||
47 | yWstatus (row) { | 83 | yWstatus (row) { |
48 | let text = ""; | 84 | let text = ""; |
49 | let keys = 0; | 85 | let keys = 0; |
... | @@ -74,4 +110,4 @@ export default class filter { | ... | @@ -74,4 +110,4 @@ export default class filter { |
74 | 110 | ||
75 | return text; | 111 | return text; |
76 | } | 112 | } |
77 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
113 | } | ... | ... |
... | @@ -6,6 +6,11 @@ | ... | @@ -6,6 +6,11 @@ |
6 | import Vue from 'vue' | 6 | import Vue from 'vue' |
7 | const title = Vue.prototype.BASE_API.TITLE | 7 | const title = Vue.prototype.BASE_API.TITLE |
8 | 8 | ||
9 | /** | ||
10 | * @description: getPageTitle | ||
11 | * @param {*} pageTitle | ||
12 | * @author: renchao | ||
13 | */ | ||
9 | export default function getPageTitle (pageTitle) { | 14 | export default function getPageTitle (pageTitle) { |
10 | if (pageTitle) { | 15 | if (pageTitle) { |
11 | return `${pageTitle} - ${title}` | 16 | return `${pageTitle} - ${title}` | ... | ... |
... | @@ -2,6 +2,13 @@ import Vue from 'vue' | ... | @@ -2,6 +2,13 @@ import Vue from 'vue' |
2 | import axios from 'axios' | 2 | import axios from 'axios' |
3 | import request from '@/utils/request'; | 3 | import request from '@/utils/request'; |
4 | import { Message } from "element-ui"; | 4 | import { Message } from "element-ui"; |
5 | /** | ||
6 | * @description: removeTreeListItem | ||
7 | * @param {*} treeList | ||
8 | * @param {*} dictId | ||
9 | * @param {*} idName | ||
10 | * @author: renchao | ||
11 | */ | ||
5 | export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') { | 12 | export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') { |
6 | if (!treeList || !treeList.length) { | 13 | if (!treeList || !treeList.length) { |
7 | return | 14 | return |
... | @@ -15,6 +22,12 @@ export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') { | ... | @@ -15,6 +22,12 @@ export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') { |
15 | } | 22 | } |
16 | } | 23 | } |
17 | // 创造id | 24 | // 创造id |
25 | /** | ||
26 | * @description: 创造id | ||
27 | * @param {*} len | ||
28 | * @param {*} radix | ||
29 | * @author: renchao | ||
30 | */ | ||
18 | export function getUuid (len, radix) { | 31 | export function getUuid (len, radix) { |
19 | var chars = "0123456789abcdefghijklmnopqrstuvwxyz".split( | 32 | var chars = "0123456789abcdefghijklmnopqrstuvwxyz".split( |
20 | "" | 33 | "" |
... | @@ -37,6 +50,11 @@ export function getUuid (len, radix) { | ... | @@ -37,6 +50,11 @@ export function getUuid (len, radix) { |
37 | } | 50 | } |
38 | return uuid.join(""); | 51 | return uuid.join(""); |
39 | } | 52 | } |
53 | /** | ||
54 | * @description: judgeSort | ||
55 | * @param {*} arr | ||
56 | * @author: renchao | ||
57 | */ | ||
40 | export function judgeSort (arr) { | 58 | export function judgeSort (arr) { |
41 | if (arr.length) { | 59 | if (arr.length) { |
42 | for (let i in arr) { | 60 | for (let i in arr) { |
... | @@ -50,6 +68,13 @@ export function judgeSort (arr) { | ... | @@ -50,6 +68,13 @@ export function judgeSort (arr) { |
50 | return arr | 68 | return arr |
51 | } | 69 | } |
52 | // 上下移动 | 70 | // 上下移动 |
71 | /** | ||
72 | * @description: 上下移动 | ||
73 | * @param {*} bsmDict | ||
74 | * @param {*} operate | ||
75 | * @param {*} data | ||
76 | * @author: renchao | ||
77 | */ | ||
53 | export function realMove (bsmDict, operate, data) { | 78 | export function realMove (bsmDict, operate, data) { |
54 | function changeSort (arr, bsmDict) { | 79 | function changeSort (arr, bsmDict) { |
55 | if (arr.length) { | 80 | if (arr.length) { |
... | @@ -75,6 +100,12 @@ export function realMove (bsmDict, operate, data) { | ... | @@ -75,6 +100,12 @@ export function realMove (bsmDict, operate, data) { |
75 | data = judgeSort(changeSort(data, bsmDict)); | 100 | data = judgeSort(changeSort(data, bsmDict)); |
76 | } | 101 | } |
77 | // 获取所有父节点 | 102 | // 获取所有父节点 |
103 | /** | ||
104 | * @description: 获取所有父节点 | ||
105 | * @param {*} treeData | ||
106 | * @param {*} bsmDict | ||
107 | * @author: renchao | ||
108 | */ | ||
78 | export function findParents (treeData, bsmDict) { | 109 | export function findParents (treeData, bsmDict) { |
79 | if (treeData.length == 0) return | 110 | if (treeData.length == 0) return |
80 | for (let i = 0; i < treeData.length; i++) { | 111 | for (let i = 0; i < treeData.length; i++) { |
... | @@ -91,6 +122,12 @@ export function findParents (treeData, bsmDict) { | ... | @@ -91,6 +122,12 @@ export function findParents (treeData, bsmDict) { |
91 | } | 122 | } |
92 | } | 123 | } |
93 | // 上移下移 | 124 | // 上移下移 |
125 | /** | ||
126 | * @description: 上移下移 | ||
127 | * @param {*} index | ||
128 | * @param {*} data | ||
129 | * @author: renchao | ||
130 | */ | ||
94 | export function upward (index, data) { | 131 | export function upward (index, data) { |
95 | if (index > 0) { | 132 | if (index > 0) { |
96 | let upData = data[index - 1]; | 133 | let upData = data[index - 1]; |
... | @@ -102,6 +139,12 @@ export function upward (index, data) { | ... | @@ -102,6 +139,12 @@ export function upward (index, data) { |
102 | }); | 139 | }); |
103 | } | 140 | } |
104 | } | 141 | } |
142 | /** | ||
143 | * @description: down | ||
144 | * @param {*} index | ||
145 | * @param {*} data | ||
146 | * @author: renchao | ||
147 | */ | ||
105 | export function down (index, data) { | 148 | export function down (index, data) { |
106 | if ((index + 1) == data.length) { | 149 | if ((index + 1) == data.length) { |
107 | Message({ | 150 | Message({ |
... | @@ -139,4 +182,4 @@ export function getAltimeterInfo () { | ... | @@ -139,4 +182,4 @@ export function getAltimeterInfo () { |
139 | "quality": "3" | 182 | "quality": "3" |
140 | } | 183 | } |
141 | return axios.post("http://127.0.0.1:38088/video=grabimage", JSON.stringify(data)) | 184 | return axios.post("http://127.0.0.1:38088/video=grabimage", JSON.stringify(data)) |
142 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
185 | } | ... | ... |
... | @@ -5,6 +5,19 @@ | ... | @@ -5,6 +5,19 @@ |
5 | */ | 5 | */ |
6 | import ywPopup from '@/components/ywPopup/index' | 6 | import ywPopup from '@/components/ywPopup/index' |
7 | import Popup1 from '@/components/Popup1/index' | 7 | import Popup1 from '@/components/Popup1/index' |
8 | /** | ||
9 | * @description: popupDialog | ||
10 | * @param {*} title | ||
11 | * @param {*} url | ||
12 | * @param {*} params | ||
13 | * @param {*} width | ||
14 | * @param {*} isMain | ||
15 | * @param {*} height | ||
16 | * @param {*} btnShow | ||
17 | * @param {*} callback | ||
18 | * @param {*} cancel | ||
19 | * @author: renchao | ||
20 | */ | ||
8 | export function popupDialog (title, url, params, width = '75%', isMain, height, btnShow = false, callback, cancel) { | 21 | export function popupDialog (title, url, params, width = '75%', isMain, height, btnShow = false, callback, cancel) { |
9 | // Popup.install | 22 | // Popup.install |
10 | Popup1(title, url, { | 23 | Popup1(title, url, { |
... | @@ -23,6 +36,19 @@ export function popupDialog (title, url, params, width = '75%', isMain, height, | ... | @@ -23,6 +36,19 @@ export function popupDialog (title, url, params, width = '75%', isMain, height, |
23 | }) | 36 | }) |
24 | } | 37 | } |
25 | 38 | ||
39 | /** | ||
40 | * @description: ywPopupDialog | ||
41 | * @param {*} title | ||
42 | * @param {*} url | ||
43 | * @param {*} params | ||
44 | * @param {*} width | ||
45 | * @param {*} isMain | ||
46 | * @param {*} height | ||
47 | * @param {*} btnShow | ||
48 | * @param {*} callback | ||
49 | * @param {*} cancel | ||
50 | * @author: renchao | ||
51 | */ | ||
26 | export function ywPopupDialog (title, url, params, width = '75%', isMain, height, btnShow = true, callback, cancel) { | 52 | export function ywPopupDialog (title, url, params, width = '75%', isMain, height, btnShow = true, callback, cancel) { |
27 | // Popup.install | 53 | // Popup.install |
28 | ywPopup(title, url, { | 54 | ywPopup(title, url, { |
... | @@ -41,9 +67,18 @@ export function ywPopupDialog (title, url, params, width = '75%', isMain, height | ... | @@ -41,9 +67,18 @@ export function ywPopupDialog (title, url, params, width = '75%', isMain, height |
41 | }) | 67 | }) |
42 | } | 68 | } |
43 | 69 | ||
70 | /** | ||
71 | * @description: popupCacel | ||
72 | * @author: renchao | ||
73 | */ | ||
44 | export function popupCacel () { | 74 | export function popupCacel () { |
45 | Popup1().close() | 75 | Popup1().close() |
46 | } | 76 | } |
77 | |||
78 | /** | ||
79 | * @description: ywPopupCacel | ||
80 | * @author: renchao | ||
81 | */ | ||
47 | export function ywPopupCacel () { | 82 | export function ywPopupCacel () { |
48 | ywPopupDialog().close() | 83 | ywPopupDialog().close() |
49 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
84 | } | ... | ... |
... | @@ -5,10 +5,15 @@ | ... | @@ -5,10 +5,15 @@ |
5 | */ | 5 | */ |
6 | 6 | ||
7 | import Loading from '@/components/Loading/index.js'; | 7 | import Loading from '@/components/Loading/index.js'; |
8 | // 定义 loading | 8 | // 定义 loading |
9 | let loading | 9 | let loading |
10 | 10 | ||
11 | // loading开始 方法 | 11 | // loading开始 方法 |
12 | /** | ||
13 | * @description: loading开始 方法 | ||
14 | * @param {*} loadingText | ||
15 | * @author: renchao | ||
16 | */ | ||
12 | function startLoading (loadingText = '正在加载中...') { | 17 | function startLoading (loadingText = '正在加载中...') { |
13 | loading = Loading.service({ | 18 | loading = Loading.service({ |
14 | text: loadingText, | 19 | text: loadingText, |
... | @@ -18,6 +23,10 @@ function startLoading (loadingText = '正在加载中...') { | ... | @@ -18,6 +23,10 @@ function startLoading (loadingText = '正在加载中...') { |
18 | }) | 23 | }) |
19 | } | 24 | } |
20 | // loading结束 方法 | 25 | // loading结束 方法 |
26 | /** | ||
27 | * @description: loading结束 方法 | ||
28 | * @author: renchao | ||
29 | */ | ||
21 | function endLoading () { | 30 | function endLoading () { |
22 | loading.close() | 31 | loading.close() |
23 | } | 32 | } |
... | @@ -34,10 +43,13 @@ export function startLoadingAddCount (LoadingText, target) { | ... | @@ -34,10 +43,13 @@ export function startLoadingAddCount (LoadingText, target) { |
34 | } | 43 | } |
35 | loadingCount++ | 44 | loadingCount++ |
36 | } | 45 | } |
37 | 46 | /** | |
47 | * @description: endLoadingSubCount | ||
48 | * @author: renchao | ||
49 | */ | ||
38 | export function endLoadingSubCount () { | 50 | export function endLoadingSubCount () { |
39 | loadingCount-- | 51 | loadingCount-- |
40 | if (loadingCount === 0) { | 52 | if (loadingCount === 0) { |
41 | endLoading() | 53 | endLoading() |
42 | } | 54 | } |
43 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
55 | } | ... | ... |
1 | import cookies from './util.cookies' | 1 | import cookies from './util.cookies' |
2 | /** | ||
3 | * @description: getUrlParam | ||
4 | * @param {*} paraName | ||
5 | * @author: renchao | ||
6 | */ | ||
2 | export function getUrlParam (paraName) { | 7 | export function getUrlParam (paraName) { |
3 | let url = document.location.toString(); | 8 | let url = document.location.toString(); |
4 | let arrObj = url.split('?'); | 9 | let arrObj = url.split('?'); |
... | @@ -21,7 +26,11 @@ export function getUrlParam (paraName) { | ... | @@ -21,7 +26,11 @@ export function getUrlParam (paraName) { |
21 | return ''; | 26 | return ''; |
22 | } | 27 | } |
23 | } | 28 | } |
24 | 29 | /** | |
30 | * @description: setToken | ||
31 | * @param {*} token | ||
32 | * @author: renchao | ||
33 | */ | ||
25 | export function setToken (token) { | 34 | export function setToken (token) { |
26 | if (token === undefined) { | 35 | if (token === undefined) { |
27 | if (process.env.NODE_ENV === 'development') { | 36 | if (process.env.NODE_ENV === 'development') { |
... | @@ -37,7 +46,10 @@ export function setToken (token) { | ... | @@ -37,7 +46,10 @@ export function setToken (token) { |
37 | } | 46 | } |
38 | } | 47 | } |
39 | } | 48 | } |
40 | 49 | /** | |
50 | * @description: getToken | ||
51 | * @author: renchao | ||
52 | */ | ||
41 | export function getToken () { | 53 | export function getToken () { |
42 | if (process.env.NODE_ENV === 'development') { | 54 | if (process.env.NODE_ENV === 'development') { |
43 | return sessionStorage.getItem('token') | 55 | return sessionStorage.getItem('token') |
... | @@ -46,7 +58,11 @@ export function getToken () { | ... | @@ -46,7 +58,11 @@ export function getToken () { |
46 | } | 58 | } |
47 | 59 | ||
48 | // 获取当前时间 | 60 | // 获取当前时间 |
49 | 61 | /** | |
62 | * @description: 获取当前时间 | ||
63 | * @param {*} type | ||
64 | * @author: renchao | ||
65 | */ | ||
50 | export function getNewDate (type = 1) { | 66 | export function getNewDate (type = 1) { |
51 | const now = new Date(); | 67 | const now = new Date(); |
52 | const year = now.getFullYear(); | 68 | const year = now.getFullYear(); |
... | @@ -60,4 +76,4 @@ export function getNewDate (type = 1) { | ... | @@ -60,4 +76,4 @@ export function getNewDate (type = 1) { |
60 | } else { | 76 | } else { |
61 | return `${year}年${month}月${day}日 ${hours}时${minutes}分${seconds}秒` | 77 | return `${year}年${month}月${day}日 ${hours}时${minutes}分${seconds}秒` |
62 | } | 78 | } |
63 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
79 | } | ... | ... |
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-07-20 13:40:27 | ||
5 | --> | ||
6 | <template> | 1 | <template> |
7 | <dialogBox title="配置常办项目" @submitForm="submitForm" saveButton="保存" :isFullscreen="false" width="50%" | 2 | <dialogBox title="配置常办项目" @submitForm="submitForm" saveButton="保存" :isFullscreen="false" width="50%" |
8 | @closeDialog="closeDialog" v-model="myValue"> | 3 | @closeDialog="closeDialog" v-model="myValue"> |
... | @@ -11,103 +6,103 @@ | ... | @@ -11,103 +6,103 @@ |
11 | </dialogBox> | 6 | </dialogBox> |
12 | </template> | 7 | </template> |
13 | <script> | 8 | <script> |
14 | import { getMenuInfo } from "@/api/user.js"; | 9 | import { getMenuInfo } from "@/api/user.js"; |
15 | import Tree from "@/components/Tree/src/tree.vue" | 10 | import Tree from "@/components/Tree/src/tree.vue" |
16 | import { saveFrequentProjectsList, getHomeFrequentProjects } from "@/api/home.js"; | 11 | import { saveFrequentProjectsList, getHomeFrequentProjects } from "@/api/home.js"; |
17 | export default { | 12 | export default { |
18 | components: { | 13 | components: { |
19 | Tree | 14 | Tree |
20 | }, | 15 | }, |
21 | props: { | 16 | props: { |
22 | value: { type: Boolean, default: false }, | 17 | value: { type: Boolean, default: false }, |
23 | bindItem: { type: Array, default: [] } | 18 | bindItem: { type: Array, default: [] } |
24 | }, | 19 | }, |
25 | data () { | 20 | data () { |
26 | return { | 21 | return { |
27 | myValue: false, | 22 | myValue: false, |
28 | defaultCheckeds: [], | 23 | defaultCheckeds: [], |
29 | projectList: [], | 24 | projectList: [], |
30 | checkedItem: [], | 25 | checkedItem: [], |
31 | defaultProps: { | 26 | defaultProps: { |
32 | children: "children", | 27 | children: "children", |
33 | label: "name", | 28 | label: "name", |
34 | disabled: function (data, node) { | 29 | disabled: function (data, node) { |
35 | if (data.children && data.children.length > 0) { | 30 | if (data.children && data.children.length > 0) { |
36 | return true | 31 | return true |
37 | } else { | 32 | } else { |
38 | return false | 33 | return false |
39 | } | ||
40 | } | 34 | } |
41 | }, | 35 | } |
42 | uniqueValue: ''//最后拿到的唯一选择的moduldCode值,相当于id | 36 | }, |
37 | uniqueValue: ''//最后拿到的唯一选择的moduldCode值,相当于id | ||
38 | } | ||
39 | }, | ||
40 | watch: { | ||
41 | value (val) { | ||
42 | this.myValue = val | ||
43 | if (val) { | ||
44 | this.queryClick() | ||
43 | } | 45 | } |
46 | } | ||
47 | }, | ||
48 | mounted () { | ||
49 | this.dealCheckedItem(); | ||
50 | }, | ||
51 | methods: { | ||
52 | submitForm () { | ||
53 | var checkedNodes = this.$refs.tree.getCheckedNodes(); | ||
54 | if (checkedNodes.length > 6) { | ||
55 | this.$message.error("最多选择6个项目!"); | ||
56 | return | ||
57 | } | ||
58 | saveFrequentProjectsList(checkedNodes).then(res => { | ||
59 | if (res.code == 200) { | ||
60 | this.$parent.queryProjectList(); | ||
61 | this.$message.success("保存成功"); | ||
62 | this.$emit("input", false); | ||
63 | } else { | ||
64 | this.$message.error(res.message); | ||
65 | } | ||
66 | }) | ||
44 | }, | 67 | }, |
45 | watch: { | 68 | queryClick () { |
46 | value (val) { | 69 | let that = this |
47 | this.myValue = val | 70 | getMenuInfo().then(res => { |
48 | if (val) { | 71 | this.projectList = res.result.slice(0, -2) |
49 | this.queryClick() | 72 | }) |
73 | function lookForAllId (arr = []) { | ||
74 | for (let item of that.bindItem) { | ||
75 | arr.push(item.id) | ||
76 | if (item.children && item.children.length) lookForAllId(item.children, arr) | ||
50 | } | 77 | } |
78 | return arr | ||
51 | } | 79 | } |
80 | this.defaultCheckeds = lookForAllId() | ||
52 | }, | 81 | }, |
53 | mounted () { | 82 | dealCheckedItem () { |
54 | this.dealCheckedItem(); | ||
55 | }, | 83 | }, |
56 | methods: { | 84 | //关闭窗口 |
57 | submitForm () { | 85 | closeDialog () { |
58 | var checkedNodes = this.$refs.tree.getCheckedNodes(); | 86 | this.$emit("input", false); |
59 | if (checkedNodes.length > 6) { | 87 | }, |
60 | this.$message.error("最多选择6个项目!"); | 88 | //节点选择状态发生改变时 |
61 | return | 89 | handleClick (data, checked, node) { |
62 | } | 90 | var checkedNodes = this.$refs.tree.getCheckedNodes(); |
63 | saveFrequentProjectsList(checkedNodes).then(res => { | 91 | if (checkedNodes.length > 6) { |
64 | if (res.code == 200) { | 92 | this.$message({ |
65 | this.$parent.queryProjectList(); | 93 | message: '最后选择6条数据', |
66 | this.$message.success("保存成功"); | 94 | type: 'warning', |
67 | this.$emit("input", false); | 95 | customClass: 'messageIndex' |
68 | } else { | ||
69 | this.$message.error(res.message); | ||
70 | } | ||
71 | }) | ||
72 | }, | ||
73 | queryClick () { | ||
74 | let that = this | ||
75 | getMenuInfo().then(res => { | ||
76 | this.projectList = res.result.slice(0, -2) | ||
77 | }) | 96 | }) |
78 | function lookForAllId (arr = []) { | 97 | this.$refs.tree.setChecked(data, false) // 取消当前节点的选中状态 |
79 | for (let item of that.bindItem) { | ||
80 | arr.push(item.id) | ||
81 | if (item.children && item.children.length) lookForAllId(item.children, arr) | ||
82 | } | ||
83 | return arr | ||
84 | } | ||
85 | this.defaultCheckeds = lookForAllId() | ||
86 | }, | ||
87 | dealCheckedItem () { | ||
88 | }, | ||
89 | //关闭窗口 | ||
90 | closeDialog () { | ||
91 | this.$emit("input", false); | ||
92 | }, | ||
93 | //节点选择状态发生改变时 | ||
94 | handleClick (data, checked, node) { | ||
95 | var checkedNodes = this.$refs.tree.getCheckedNodes(); | ||
96 | if (checkedNodes.length > 6) { | ||
97 | this.$message({ | ||
98 | message: '最后选择6条数据', | ||
99 | type: 'warning', | ||
100 | customClass: 'messageIndex' | ||
101 | }) | ||
102 | this.$refs.tree.setChecked(data, false) // 取消当前节点的选中状态 | ||
103 | } | ||
104 | } | 98 | } |
105 | } | 99 | } |
106 | } | 100 | } |
101 | } | ||
107 | </script> | 102 | </script> |
108 | <style scoped lang='scss'> | 103 | <style scoped lang='scss'> |
109 | /deep/.el-tree-node.is-expanded > .el-tree-node__children { | 104 | /deep/.el-tree-node.is-expanded>.el-tree-node__children { |
110 | display: flex; | 105 | display: flex; |
111 | flex-wrap: wrap; | 106 | flex-wrap: wrap; |
112 | } | 107 | } |
113 | </style> | 108 | </style> | ... | ... |
... | @@ -177,6 +177,10 @@ | ... | @@ -177,6 +177,10 @@ |
177 | }) | 177 | }) |
178 | }) | 178 | }) |
179 | }, | 179 | }, |
180 | /** | ||
181 | * @description: prev | ||
182 | * @author: renchao | ||
183 | */ | ||
180 | prev () { | 184 | prev () { |
181 | let len = this.previewImg.imgList.length | 185 | let len = this.previewImg.imgList.length |
182 | if (this.isFirst || len == 0) { | 186 | if (this.isFirst || len == 0) { |
... | @@ -185,6 +189,10 @@ | ... | @@ -185,6 +189,10 @@ |
185 | this.$parent.previewImg.index = (this.$parent.previewImg.index - 1 + len) % len | 189 | this.$parent.previewImg.index = (this.$parent.previewImg.index - 1 + len) % len |
186 | } | 190 | } |
187 | }, | 191 | }, |
192 | /** | ||
193 | * @description: next | ||
194 | * @author: renchao | ||
195 | */ | ||
188 | next () { | 196 | next () { |
189 | let len = this.previewImg.imgList.length | 197 | let len = this.previewImg.imgList.length |
190 | if (this.isLast || len == 0) { | 198 | if (this.isLast || len == 0) { |
... | @@ -193,16 +201,34 @@ | ... | @@ -193,16 +201,34 @@ |
193 | this.$parent.previewImg.index = (this.$parent.previewImg.index + 1) % len | 201 | this.$parent.previewImg.index = (this.$parent.previewImg.index + 1) % len |
194 | } | 202 | } |
195 | }, | 203 | }, |
204 | /** | ||
205 | * @description: showCurrent | ||
206 | * @param {*} index | ||
207 | * @author: renchao | ||
208 | */ | ||
196 | showCurrent (index) { | 209 | showCurrent (index) { |
197 | this.previewImg.index = index | 210 | this.previewImg.index = index |
198 | }, | 211 | }, |
212 | /** | ||
213 | * @description: closeViewer | ||
214 | * @author: renchao | ||
215 | */ | ||
199 | closeViewer () { | 216 | closeViewer () { |
200 | this.showViewer = false | 217 | this.showViewer = false |
201 | }, | 218 | }, |
219 | /** | ||
220 | * @description: clickImage | ||
221 | * @author: renchao | ||
222 | */ | ||
202 | clickImage () { | 223 | clickImage () { |
203 | this.showViewer = true | 224 | this.showViewer = true |
204 | }, | 225 | }, |
205 | // 上传 | 226 | // 上传 |
227 | /** | ||
228 | * @description: 上传 | ||
229 | * @param {*} file | ||
230 | * @author: renchao | ||
231 | */ | ||
206 | beforeUpload (file) { | 232 | beforeUpload (file) { |
207 | const isJPEG = file.type === 'image/jpeg' | 233 | const isJPEG = file.type === 'image/jpeg' |
208 | const isPNG = file.type === 'image/png' | 234 | const isPNG = file.type === 'image/png' |
... | @@ -220,6 +246,12 @@ | ... | @@ -220,6 +246,12 @@ |
220 | this.imgHidden = (isJPG || isJPEG || isPNG || isGIF) && isLt5M | 246 | this.imgHidden = (isJPG || isJPEG || isPNG || isGIF) && isLt5M |
221 | return this.imgHidden | 247 | return this.imgHidden |
222 | }, | 248 | }, |
249 | /** | ||
250 | * @description: handleChange | ||
251 | * @param {*} file | ||
252 | * @param {*} files | ||
253 | * @author: renchao | ||
254 | */ | ||
223 | async handleChange (file, files) { | 255 | async handleChange (file, files) { |
224 | // 清空 fileList 数组 | 256 | // 清空 fileList 数组 |
225 | let length = files.length; | 257 | let length = files.length; |
... | @@ -244,6 +276,10 @@ | ... | @@ -244,6 +276,10 @@ |
244 | }) | 276 | }) |
245 | }, 0) | 277 | }, 0) |
246 | }, | 278 | }, |
279 | /** | ||
280 | * @description: handleDelete | ||
281 | * @author: renchao | ||
282 | */ | ||
247 | handleDelete () { | 283 | handleDelete () { |
248 | let that = this | 284 | let that = this |
249 | this.$confirm('此操作将永久删除, 是否继续?', '提示', { | 285 | this.$confirm('此操作将永久删除, 是否继续?', '提示', { | ... | ... |
... | @@ -178,10 +178,18 @@ | ... | @@ -178,10 +178,18 @@ |
178 | } | 178 | } |
179 | }, | 179 | }, |
180 | methods: { | 180 | methods: { |
181 | /** | ||
182 | * @description: closeDialog | ||
183 | * @author: renchao | ||
184 | */ | ||
181 | closeDialog () { | 185 | closeDialog () { |
182 | this.$emit("input", false); | 186 | this.$emit("input", false); |
183 | this.$refs['ruleForm'].resetFields(); | 187 | this.$refs['ruleForm'].resetFields(); |
184 | }, | 188 | }, |
189 | /** | ||
190 | * @description: submitForm | ||
191 | * @author: renchao | ||
192 | */ | ||
185 | submitForm () { | 193 | submitForm () { |
186 | this.$emit("input", false); | 194 | this.$emit("input", false); |
187 | this.$emit("updateDetail", _.cloneDeep(this.ruleForm)); | 195 | this.$emit("updateDetail", _.cloneDeep(this.ruleForm)); | ... | ... |
... | @@ -53,6 +53,10 @@ | ... | @@ -53,6 +53,10 @@ |
53 | }, | 53 | }, |
54 | methods: { | 54 | methods: { |
55 | // 批量删除确定按钮 | 55 | // 批量删除确定按钮 |
56 | /** | ||
57 | * @description: 批量删除确定按钮 | ||
58 | * @author: renchao | ||
59 | */ | ||
56 | submitdelclick () { | 60 | submitdelclick () { |
57 | var formdata = new FormData(); | 61 | var formdata = new FormData(); |
58 | formdata.append("bsmSldyList", this.selectBdcdy); | 62 | formdata.append("bsmSldyList", this.selectBdcdy); |
... | @@ -68,6 +72,11 @@ | ... | @@ -68,6 +72,11 @@ |
68 | }) | 72 | }) |
69 | }, | 73 | }, |
70 | // 批量删除勾选事件 | 74 | // 批量删除勾选事件 |
75 | /** | ||
76 | * @description: 批量删除勾选事件 | ||
77 | * @param {*} e | ||
78 | * @author: renchao | ||
79 | */ | ||
71 | handleSelectionChange (e) { | 80 | handleSelectionChange (e) { |
72 | this.selectBdcdy = []; | 81 | this.selectBdcdy = []; |
73 | e.forEach((item, index) => { | 82 | e.forEach((item, index) => { | ... | ... |
... | @@ -274,10 +274,18 @@ export default { | ... | @@ -274,10 +274,18 @@ export default { |
274 | }, | 274 | }, |
275 | methods: { | 275 | methods: { |
276 | 276 | ||
277 | /** | ||
278 | * @description: closeDialog | ||
279 | * @author: renchao | ||
280 | */ | ||
277 | closeDialog() { | 281 | closeDialog() { |
278 | this.$emit("input", false); | 282 | this.$emit("input", false); |
279 | this.$refs["ruleForm"].resetFields(); | 283 | this.$refs["ruleForm"].resetFields(); |
280 | }, | 284 | }, |
285 | /** | ||
286 | * @description: submitForm | ||
287 | * @author: renchao | ||
288 | */ | ||
281 | submitForm() { | 289 | submitForm() { |
282 | this.$refs.ruleForm.validate((valid) => { | 290 | this.$refs.ruleForm.validate((valid) => { |
283 | if (valid) { | 291 | if (valid) { | ... | ... |
... | @@ -197,10 +197,18 @@ | ... | @@ -197,10 +197,18 @@ |
197 | }, | 197 | }, |
198 | }, | 198 | }, |
199 | methods: { | 199 | methods: { |
200 | /** | ||
201 | * @description: closeDialog | ||
202 | * @author: renchao | ||
203 | */ | ||
200 | closeDialog () { | 204 | closeDialog () { |
201 | this.$emit("input", false); | 205 | this.$emit("input", false); |
202 | this.$refs["ruleForm"].resetFields(); | 206 | this.$refs["ruleForm"].resetFields(); |
203 | }, | 207 | }, |
208 | /** | ||
209 | * @description: submitForm | ||
210 | * @author: renchao | ||
211 | */ | ||
204 | submitForm () { | 212 | submitForm () { |
205 | this.$refs.ruleForm.validate((valid) => { | 213 | this.$refs.ruleForm.validate((valid) => { |
206 | if (valid) { | 214 | if (valid) { | ... | ... |
... | @@ -152,6 +152,10 @@ | ... | @@ -152,6 +152,10 @@ |
152 | }, | 152 | }, |
153 | methods: { | 153 | methods: { |
154 | // 材料目录明细初始化 | 154 | // 材料目录明细初始化 |
155 | /** | ||
156 | * @description: 材料目录明细初始化 | ||
157 | * @author: renchao | ||
158 | */ | ||
155 | clmlInitList () { | 159 | clmlInitList () { |
156 | return new Promise(resolve => { | 160 | return new Promise(resolve => { |
157 | this.unitData = this.$parent.unitData; | 161 | this.unitData = this.$parent.unitData; |
... | @@ -173,6 +177,12 @@ | ... | @@ -173,6 +177,12 @@ |
173 | }) | 177 | }) |
174 | }, | 178 | }, |
175 | // 上移 | 179 | // 上移 |
180 | /** | ||
181 | * @description: 上移 | ||
182 | * @param {*} index | ||
183 | * @param {*} row | ||
184 | * @author: renchao | ||
185 | */ | ||
176 | moveUpward (index, row) { | 186 | moveUpward (index, row) { |
177 | let obj = { | 187 | let obj = { |
178 | xh: row.xh, | 188 | xh: row.xh, |
... | @@ -180,6 +190,11 @@ | ... | @@ -180,6 +190,11 @@ |
180 | moveDirection: "UP", | 190 | moveDirection: "UP", |
181 | }; | 191 | }; |
182 | // 接口待调 | 192 | // 接口待调 |
193 | /** | ||
194 | * @description: 接口待调 | ||
195 | * @param {*} obj | ||
196 | * @author: renchao | ||
197 | */ | ||
183 | moveClml(obj).then(async (res) => { | 198 | moveClml(obj).then(async (res) => { |
184 | if (res.code == 200) { | 199 | if (res.code == 200) { |
185 | let res = await this.clmlInitList() | 200 | let res = await this.clmlInitList() |
... | @@ -196,6 +211,12 @@ | ... | @@ -196,6 +211,12 @@ |
196 | }) | 211 | }) |
197 | }, | 212 | }, |
198 | // 下移 | 213 | // 下移 |
214 | /** | ||
215 | * @description: 下移 | ||
216 | * @param {*} index | ||
217 | * @param {*} row | ||
218 | * @author: renchao | ||
219 | */ | ||
199 | moveDown (index, row) { | 220 | moveDown (index, row) { |
200 | let obj = { | 221 | let obj = { |
201 | xh: row.xh, | 222 | xh: row.xh, |
... | @@ -203,6 +224,11 @@ | ... | @@ -203,6 +224,11 @@ |
203 | moveDirection: "DOWN", | 224 | moveDirection: "DOWN", |
204 | } | 225 | } |
205 | // 接口待调 | 226 | // 接口待调 |
227 | /** | ||
228 | * @description: 接口待调 | ||
229 | * @param {*} obj | ||
230 | * @author: renchao | ||
231 | */ | ||
206 | moveClml(obj).then(async (res) => { | 232 | moveClml(obj).then(async (res) => { |
207 | if (res.code == 200) { | 233 | if (res.code == 200) { |
208 | let res = await this.clmlInitList() | 234 | let res = await this.clmlInitList() |
... | @@ -218,6 +244,12 @@ | ... | @@ -218,6 +244,12 @@ |
218 | }) | 244 | }) |
219 | }, | 245 | }, |
220 | // 材料目录删除 | 246 | // 材料目录删除 |
247 | /** | ||
248 | * @description: 材料目录删除 | ||
249 | * @param {*} index | ||
250 | * @param {*} row | ||
251 | * @author: renchao | ||
252 | */ | ||
221 | handleDelete (index, row) { | 253 | handleDelete (index, row) { |
222 | let that = this | 254 | let that = this |
223 | this.$confirm('此操作将永久删除该 是否继续?', '提示', { | 255 | this.$confirm('此操作将永久删除该 是否继续?', '提示', { |
... | @@ -245,6 +277,12 @@ | ... | @@ -245,6 +277,12 @@ |
245 | }) | 277 | }) |
246 | }, | 278 | }, |
247 | // 字典 | 279 | // 字典 |
280 | /** | ||
281 | * @description: 字典 | ||
282 | * @param {*} val | ||
283 | * @param {*} code | ||
284 | * @author: renchao | ||
285 | */ | ||
248 | dicStatus (val, code) { | 286 | dicStatus (val, code) { |
249 | let data = store.getters.dictData[code], | 287 | let data = store.getters.dictData[code], |
250 | name = "暂无"; | 288 | name = "暂无"; | ... | ... |
... | @@ -67,6 +67,13 @@ export function loadTreeData(qlxxData) { | ... | @@ -67,6 +67,13 @@ export function loadTreeData(qlxxData) { |
67 | } | 67 | } |
68 | 68 | ||
69 | //获取权利类型、不动产单元类型对应的树形节点信息 | 69 | //获取权利类型、不动产单元类型对应的树形节点信息 |
70 | /** | ||
71 | * @description: 获取权利类型、不动产单元类型对应的树形节点信息 | ||
72 | * @param {*} qllx | ||
73 | * @param {*} qlxx | ||
74 | * @param {*} bdcdylx | ||
75 | * @author: renchao | ||
76 | */ | ||
70 | export function getNode(qllx, qlxx, bdcdylx) { | 77 | export function getNode(qllx, qlxx, bdcdylx) { |
71 | let node; | 78 | let node; |
72 | for (var i = 0; i < qlxxPage.length; i++) { | 79 | for (var i = 0; i < qlxxPage.length; i++) { | ... | ... |
... | @@ -112,6 +112,10 @@ | ... | @@ -112,6 +112,10 @@ |
112 | }, | 112 | }, |
113 | methods: { | 113 | methods: { |
114 | //读取申请单元信息 | 114 | //读取申请单元信息 |
115 | /** | ||
116 | * @description: 读取申请单元信息 | ||
117 | * @author: renchao | ||
118 | */ | ||
115 | loadBdcdylist () { | 119 | loadBdcdylist () { |
116 | var formdata = new FormData(); | 120 | var formdata = new FormData(); |
117 | if (this.bsmSlsq) { | 121 | if (this.bsmSlsq) { |
... | @@ -128,6 +132,11 @@ | ... | @@ -128,6 +132,11 @@ |
128 | 132 | ||
129 | }, | 133 | }, |
130 | // 获取右侧菜单 | 134 | // 获取右侧菜单 |
135 | /** | ||
136 | * @description: 获取右侧菜单 | ||
137 | * @param {*} row | ||
138 | * @author: renchao | ||
139 | */ | ||
131 | getleftMenubl (row) { | 140 | getleftMenubl (row) { |
132 | 141 | ||
133 | leftMenubl(this.bsmSlsq).then((res) => { | 142 | leftMenubl(this.bsmSlsq).then((res) => { |
... | @@ -152,20 +161,41 @@ | ... | @@ -152,20 +161,41 @@ |
152 | } | 161 | } |
153 | }); | 162 | }); |
154 | }, | 163 | }, |
164 | /** | ||
165 | * @description: handleNodeClick | ||
166 | * @param {*} data | ||
167 | * @param {*} node | ||
168 | * @param {*} elem | ||
169 | * @author: renchao | ||
170 | */ | ||
155 | handleNodeClick (data, node, elem) { | 171 | handleNodeClick (data, node, elem) { |
156 | this.$parent.loadComponent(this.currentSelectProps, data); | 172 | this.$parent.loadComponent(this.currentSelectProps, data); |
157 | this.$parent.tabset(); | 173 | this.$parent.tabset(); |
158 | }, | 174 | }, |
159 | //申请单元点击事件 | 175 | //申请单元点击事件 |
176 | /** | ||
177 | * @description: 申请单元点击事件 | ||
178 | * @param {*} index | ||
179 | * @author: renchao | ||
180 | */ | ||
160 | unitClick (index) { | 181 | unitClick (index) { |
161 | this.currentSelectProps = this.supplementarylist[index]; | 182 | this.currentSelectProps = this.supplementarylist[index]; |
162 | this.$emit("getCurrentSelectProps", this.currentSelectProps); | 183 | this.$emit("getCurrentSelectProps", this.currentSelectProps); |
163 | }, | 184 | }, |
164 | //登记簿点击事件 | 185 | //登记簿点击事件 |
186 | /** | ||
187 | * @description: 登记簿点击事件 | ||
188 | * @author: renchao | ||
189 | */ | ||
165 | djbClick () { | 190 | djbClick () { |
166 | this.loadBdcdylist(); | 191 | this.loadBdcdylist(); |
167 | }, | 192 | }, |
168 | // 删除补录记录 | 193 | // 删除补录记录 |
194 | /** | ||
195 | * @description: 删除补录记录 | ||
196 | * @param {*} row | ||
197 | * @author: renchao | ||
198 | */ | ||
169 | handleDel (row) { | 199 | handleDel (row) { |
170 | this.$confirm("此操作将永久删除该条补录记录, 是否继续?", "提示", { | 200 | this.$confirm("此操作将永久删除该条补录记录, 是否继续?", "提示", { |
171 | confirmButtonText: "确定", | 201 | confirmButtonText: "确定", |
... | @@ -195,6 +225,10 @@ | ... | @@ -195,6 +225,10 @@ |
195 | }); | 225 | }); |
196 | }, | 226 | }, |
197 | //补录信息点击事件默认展示第一条补录记录 | 227 | //补录信息点击事件默认展示第一条补录记录 |
228 | /** | ||
229 | * @description: 补录信息点击事件默认展示第一条补录记录 | ||
230 | * @author: renchao | ||
231 | */ | ||
198 | blxxClick () { | 232 | blxxClick () { |
199 | if (this.supplementarylist.length) { | 233 | if (this.supplementarylist.length) { |
200 | this.unitClick(0); | 234 | this.unitClick(0); | ... | ... |
... | @@ -217,6 +217,11 @@ export default { | ... | @@ -217,6 +217,11 @@ export default { |
217 | }, | 217 | }, |
218 | }, | 218 | }, |
219 | methods: { | 219 | methods: { |
220 | /** | ||
221 | * @handleupdateDetail: 删除 | ||
222 | * @param {*} value | ||
223 | * @author: renchao | ||
224 | */ | ||
220 | handleupdateDetail(value) { | 225 | handleupdateDetail(value) { |
221 | if (this.isaddupdate) { | 226 | if (this.isaddupdate) { |
222 | if (!_.isEqual(value, this.tableData)) { | 227 | if (!_.isEqual(value, this.tableData)) { |
... | @@ -232,6 +237,10 @@ export default { | ... | @@ -232,6 +237,10 @@ export default { |
232 | this.key++; | 237 | this.key++; |
233 | }, | 238 | }, |
234 | // 新增 | 239 | // 新增 |
240 | /** | ||
241 | * @description: 新增 | ||
242 | * @author: renchao | ||
243 | */ | ||
235 | addClick() { | 244 | addClick() { |
236 | if (this.gyfs == "0" && this.tableDataList.length > 0) { | 245 | if (this.gyfs == "0" && this.tableDataList.length > 0) { |
237 | this.$message.warning("当前共有方式为单独所有,无法添加多个权利人"); | 246 | this.$message.warning("当前共有方式为单独所有,无法添加多个权利人"); |
... | @@ -242,6 +251,12 @@ export default { | ... | @@ -242,6 +251,12 @@ export default { |
242 | }, | 251 | }, |
243 | 252 | ||
244 | // 删除 | 253 | // 删除 |
254 | /** | ||
255 | * @description: 删除 | ||
256 | * @param {*} index | ||
257 | * @param {*} row | ||
258 | * @author: renchao | ||
259 | */ | ||
245 | deleClick(index, row) { | 260 | deleClick(index, row) { |
246 | this.$confirm("确定要删除吗, 是否继续?", "提示", { | 261 | this.$confirm("确定要删除吗, 是否继续?", "提示", { |
247 | confirmButtonText: "确定", | 262 | confirmButtonText: "确定", |
... | @@ -255,19 +270,39 @@ export default { | ... | @@ -255,19 +270,39 @@ export default { |
255 | }, | 270 | }, |
256 | 271 | ||
257 | // 身份证读取 | 272 | // 身份证读取 |
273 | /** | ||
274 | * @description: 身份证读取 | ||
275 | * @author: renchao | ||
276 | */ | ||
258 | readClick() {}, | 277 | readClick() {}, |
259 | 278 | ||
260 | // 身份证读取按钮禁用 | 279 | // 身份证读取按钮禁用 |
280 | /** | ||
281 | * @description: 身份证读取按钮禁用 | ||
282 | * @author: renchao | ||
283 | */ | ||
261 | onreadClick() { | 284 | onreadClick() { |
262 | this.$message.error("此阶段不可编辑"); | 285 | this.$message.error("此阶段不可编辑"); |
263 | }, | 286 | }, |
264 | // 修改 | 287 | // 修改 |
288 | /** | ||
289 | * @description: 修改 | ||
290 | * @param {*} index | ||
291 | * @param {*} row | ||
292 | * @author: renchao | ||
293 | */ | ||
265 | editClick(index, row) { | 294 | editClick(index, row) { |
266 | this.dataIndex = index; | 295 | this.dataIndex = index; |
267 | this.dialog = true; | 296 | this.dialog = true; |
268 | this.details = row; | 297 | this.details = row; |
269 | this.isaddupdate = false; | 298 | this.isaddupdate = false; |
270 | }, | 299 | }, |
300 | /** | ||
301 | * @description: queryViewClick | ||
302 | * @param {*} index | ||
303 | * @param {*} row | ||
304 | * @author: renchao | ||
305 | */ | ||
271 | queryViewClick(index, row) { | 306 | queryViewClick(index, row) { |
272 | this.dialog = true; | 307 | this.dialog = true; |
273 | this.details = row; | 308 | this.details = row; | ... | ... |
... | @@ -68,6 +68,10 @@ | ... | @@ -68,6 +68,10 @@ |
68 | this.getBackNode(); | 68 | this.getBackNode(); |
69 | }, | 69 | }, |
70 | methods: { | 70 | methods: { |
71 | /** | ||
72 | * @description: onSubmit | ||
73 | * @author: renchao | ||
74 | */ | ||
71 | onSubmit () { | 75 | onSubmit () { |
72 | this.selectItem.outstepopinion = this.outstepopinion; | 76 | this.selectItem.outstepopinion = this.outstepopinion; |
73 | sendBackTask({ | 77 | sendBackTask({ |
... | @@ -87,11 +91,20 @@ | ... | @@ -87,11 +91,20 @@ |
87 | }, 1000); | 91 | }, 1000); |
88 | }); | 92 | }); |
89 | }, | 93 | }, |
94 | /** | ||
95 | * @description: changeSelectItem | ||
96 | * @param {*} item | ||
97 | * @author: renchao | ||
98 | */ | ||
90 | changeSelectItem (item) { | 99 | changeSelectItem (item) { |
91 | this.selectItem = item; | 100 | this.selectItem = item; |
92 | this.selectActivity = item.activityId; | 101 | this.selectActivity = item.activityId; |
93 | }, | 102 | }, |
94 | //获取可回退环节信息 | 103 | //获取可回退环节信息 |
104 | /** | ||
105 | * @description: 获取可回退环节信息 | ||
106 | * @author: renchao | ||
107 | */ | ||
95 | getBackNode () { | 108 | getBackNode () { |
96 | getTaskBackNode(this.formData).then((res) => { | 109 | getTaskBackNode(this.formData).then((res) => { |
97 | if (res.code == 200) { | 110 | if (res.code == 200) { |
... | @@ -104,6 +117,10 @@ | ... | @@ -104,6 +117,10 @@ |
104 | }); | 117 | }); |
105 | }, | 118 | }, |
106 | 119 | ||
120 | /** | ||
121 | * @description: cancelBack | ||
122 | * @author: renchao | ||
123 | */ | ||
107 | cancelBack () { | 124 | cancelBack () { |
108 | popupCacel(); | 125 | popupCacel(); |
109 | } | 126 | } | ... | ... |
... | @@ -217,6 +217,11 @@ export default { | ... | @@ -217,6 +217,11 @@ export default { |
217 | }, | 217 | }, |
218 | }, | 218 | }, |
219 | methods: { | 219 | methods: { |
220 | /** | ||
221 | * @description: handleupdateDetail | ||
222 | * @param {*} value | ||
223 | * @author: renchao | ||
224 | */ | ||
220 | handleupdateDetail(value) { | 225 | handleupdateDetail(value) { |
221 | if (this.isaddupdate) { | 226 | if (this.isaddupdate) { |
222 | if (!_.isEqual(value, this.tableData)) { | 227 | if (!_.isEqual(value, this.tableData)) { |
... | @@ -232,6 +237,10 @@ export default { | ... | @@ -232,6 +237,10 @@ export default { |
232 | this.key++; | 237 | this.key++; |
233 | }, | 238 | }, |
234 | // 新增 | 239 | // 新增 |
240 | /** | ||
241 | * @description: 新增 | ||
242 | * @author: renchao | ||
243 | */ | ||
235 | addClick() { | 244 | addClick() { |
236 | if (this.gyfs == "0" && this.tableDataList.length > 0) { | 245 | if (this.gyfs == "0" && this.tableDataList.length > 0) { |
237 | this.$message.warning("当前共有方式为单独所有,无法添加多个权利人"); | 246 | this.$message.warning("当前共有方式为单独所有,无法添加多个权利人"); |
... | @@ -242,6 +251,12 @@ export default { | ... | @@ -242,6 +251,12 @@ export default { |
242 | }, | 251 | }, |
243 | 252 | ||
244 | // 删除 | 253 | // 删除 |
254 | /** | ||
255 | * @description: 删除 | ||
256 | * @param {*} index | ||
257 | * @param {*} row | ||
258 | * @author: renchao | ||
259 | */ | ||
245 | deleClick(index, row) { | 260 | deleClick(index, row) { |
246 | this.$confirm("确定要删除吗, 是否继续?", "提示", { | 261 | this.$confirm("确定要删除吗, 是否继续?", "提示", { |
247 | confirmButtonText: "确定", | 262 | confirmButtonText: "确定", |
... | @@ -255,15 +270,31 @@ export default { | ... | @@ -255,15 +270,31 @@ export default { |
255 | }, | 270 | }, |
256 | 271 | ||
257 | // 身份证读取 | 272 | // 身份证读取 |
273 | /** | ||
274 | * @description: 身份证读取 | ||
275 | * @author: renchao | ||
276 | */ | ||
258 | readClick() {}, | 277 | readClick() {}, |
259 | 278 | ||
260 | // 修改 | 279 | // 修改 |
280 | /** | ||
281 | * @description: 修改 | ||
282 | * @param {*} index | ||
283 | * @param {*} row | ||
284 | * @author: renchao | ||
285 | */ | ||
261 | editClick(index, row) { | 286 | editClick(index, row) { |
262 | this.dataIndex = index; | 287 | this.dataIndex = index; |
263 | this.dialog = true; | 288 | this.dialog = true; |
264 | this.details = row; | 289 | this.details = row; |
265 | this.isaddupdate = false; | 290 | this.isaddupdate = false; |
266 | }, | 291 | }, |
292 | /** | ||
293 | * @description: queryViewClick | ||
294 | * @param {*} index | ||
295 | * @param {*} row | ||
296 | * @author: renchao | ||
297 | */ | ||
267 | queryViewClick(index, row) { | 298 | queryViewClick(index, row) { |
268 | this.dialog = true; | 299 | this.dialog = true; |
269 | this.details = row; | 300 | this.details = row; | ... | ... |
... | @@ -39,6 +39,10 @@ | ... | @@ -39,6 +39,10 @@ |
39 | } | 39 | } |
40 | }, | 40 | }, |
41 | methods: { | 41 | methods: { |
42 | /** | ||
43 | * @description: tablelistFn | ||
44 | * @author: renchao | ||
45 | */ | ||
42 | tablelistFn () { | 46 | tablelistFn () { |
43 | getNextLinkInfo(this.queryForm).then(res => { | 47 | getNextLinkInfo(this.queryForm).then(res => { |
44 | if (res.code === 200) { | 48 | if (res.code === 200) { |
... | @@ -49,6 +53,10 @@ | ... | @@ -49,6 +53,10 @@ |
49 | } | 53 | } |
50 | }) | 54 | }) |
51 | }, | 55 | }, |
56 | /** | ||
57 | * @description: submitForm | ||
58 | * @author: renchao | ||
59 | */ | ||
52 | submitForm () { | 60 | submitForm () { |
53 | completeTask(this.queryForm).then(res => { | 61 | completeTask(this.queryForm).then(res => { |
54 | if (res.code === 200) { | 62 | if (res.code === 200) { |
... | @@ -62,6 +70,10 @@ | ... | @@ -62,6 +70,10 @@ |
62 | } | 70 | } |
63 | }) | 71 | }) |
64 | }, | 72 | }, |
73 | /** | ||
74 | * @description: closeDialog | ||
75 | * @author: renchao | ||
76 | */ | ||
65 | closeDialog () { | 77 | closeDialog () { |
66 | this.$emit("input", false); | 78 | this.$emit("input", false); |
67 | }, | 79 | }, | ... | ... |
... | @@ -461,13 +461,28 @@ export default { | ... | @@ -461,13 +461,28 @@ export default { |
461 | this.ableOperation=this.$parent.ableOperation | 461 | this.ableOperation=this.$parent.ableOperation |
462 | }, | 462 | }, |
463 | methods: { | 463 | methods: { |
464 | /** | ||
465 | * @description: ztQlxxchange | ||
466 | * @param {*} val | ||
467 | * @author: renchao | ||
468 | */ | ||
464 | ztQlxxchange(val) { | 469 | ztQlxxchange(val) { |
465 | this.ruleForm.ztQlxx = val; | 470 | this.ruleForm.ztQlxx = val; |
466 | }, | 471 | }, |
472 | /** | ||
473 | * @description: ssQlxxchange | ||
474 | * @param {*} val | ||
475 | * @author: renchao | ||
476 | */ | ||
467 | ssQlxxchange(val) { | 477 | ssQlxxchange(val) { |
468 | this.ruleForm.ssQlxx = val; | 478 | this.ruleForm.ssQlxx = val; |
469 | this.ruleForm.qlxx.ssywh = val.ssywh; | 479 | this.ruleForm.qlxx.ssywh = val.ssywh; |
470 | }, | 480 | }, |
481 | /** | ||
482 | * @description: djlxchange | ||
483 | * @param {*} val | ||
484 | * @author: renchao | ||
485 | */ | ||
471 | djlxchange(val) { | 486 | djlxchange(val) { |
472 | if (val == null || val == 100) { | 487 | if (val == null || val == 100) { |
473 | this.ssqlxxshow = false; | 488 | this.ssqlxxshow = false; |
... | @@ -475,6 +490,10 @@ export default { | ... | @@ -475,6 +490,10 @@ export default { |
475 | this.ssqlxxshow = true; | 490 | this.ssqlxxshow = true; |
476 | } | 491 | } |
477 | }, | 492 | }, |
493 | /** | ||
494 | * @description: loadData | ||
495 | * @author: renchao | ||
496 | */ | ||
478 | loadData() { | 497 | loadData() { |
479 | this.$startLoading(); | 498 | this.$startLoading(); |
480 | this.propsParam.isEdit = this.$parent.isEdit; | 499 | this.propsParam.isEdit = this.$parent.isEdit; |
... | @@ -521,6 +540,10 @@ export default { | ... | @@ -521,6 +540,10 @@ export default { |
521 | // this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 540 | // this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
522 | // this.key++; | 541 | // this.key++; |
523 | // }, | 542 | // }, |
543 | /** | ||
544 | * @description: onSubmit | ||
545 | * @author: renchao | ||
546 | */ | ||
524 | onSubmit() { | 547 | onSubmit() { |
525 | this.$refs.ruleForm.validate((valid) => { | 548 | this.$refs.ruleForm.validate((valid) => { |
526 | console.log("valid", valid); | 549 | console.log("valid", valid); | ... | ... |
... | @@ -639,9 +639,19 @@ export default { | ... | @@ -639,9 +639,19 @@ export default { |
639 | this.ableOperation = this.$parent.ableOperation; | 639 | this.ableOperation = this.$parent.ableOperation; |
640 | }, | 640 | }, |
641 | methods: { | 641 | methods: { |
642 | /** | ||
643 | * @description: ztQlxxchange | ||
644 | * @param {*} val | ||
645 | * @author: renchao | ||
646 | */ | ||
642 | ztQlxxchange(val) { | 647 | ztQlxxchange(val) { |
643 | this.ruleForm.ztQlxx = val; | 648 | this.ruleForm.ztQlxx = val; |
644 | }, | 649 | }, |
650 | /** | ||
651 | * @description: ssQlxxchange | ||
652 | * @param {*} val | ||
653 | * @author: renchao | ||
654 | */ | ||
645 | ssQlxxchange(val) { | 655 | ssQlxxchange(val) { |
646 | this.ruleForm.ssQlxx = val; | 656 | this.ruleForm.ssQlxx = val; |
647 | this.ruleForm.qlxx.ssywh = val.ssywh; | 657 | this.ruleForm.qlxx.ssywh = val.ssywh; |
... | @@ -653,6 +663,10 @@ export default { | ... | @@ -653,6 +663,10 @@ export default { |
653 | this.ssqlxxshow = true; | 663 | this.ssqlxxshow = true; |
654 | } | 664 | } |
655 | }, | 665 | }, |
666 | /** | ||
667 | * @description: loadData | ||
668 | * @author: renchao | ||
669 | */ | ||
656 | loadData() { | 670 | loadData() { |
657 | this.$startLoading(); | 671 | this.$startLoading(); |
658 | this.propsParam.isEdit = this.$parent.isEdit; | 672 | this.propsParam.isEdit = this.$parent.isEdit; |
... | @@ -684,21 +698,40 @@ export default { | ... | @@ -684,21 +698,40 @@ export default { |
684 | }); | 698 | }); |
685 | }, | 699 | }, |
686 | // 更新土地用途信息 | 700 | // 更新土地用途信息 |
701 | /** | ||
702 | * @description: 更新土地用途信息 | ||
703 | * @param {*} val | ||
704 | * @author: renchao | ||
705 | */ | ||
687 | upDateTdytxxList(val) { | 706 | upDateTdytxxList(val) { |
688 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 707 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
689 | this.key++; | 708 | this.key++; |
690 | }, | 709 | }, |
691 | // 更新权利人信息 | 710 | // 更新权利人信息 |
711 | /** | ||
712 | * @description: 更新权利人信息 | ||
713 | * @param {*} val | ||
714 | * @author: renchao | ||
715 | */ | ||
692 | upDateQlrxxList(val) { | 716 | upDateQlrxxList(val) { |
693 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 717 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
694 | this.czrOptions = this.ruleForm.qlrData; | 718 | this.czrOptions = this.ruleForm.qlrData; |
695 | this.key++; | 719 | this.key++; |
696 | }, | 720 | }, |
697 | // 更新义务人信息 | 721 | // 更新义务人信息 |
722 | /** | ||
723 | * @description: 更新义务人信息 | ||
724 | * @param {*} val | ||
725 | * @author: renchao | ||
726 | */ | ||
698 | upDateYwrxxList(val) { | 727 | upDateYwrxxList(val) { |
699 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 728 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
700 | this.key++; | 729 | this.key++; |
701 | }, | 730 | }, |
731 | /** | ||
732 | * @description: onSubmit | ||
733 | * @author: renchao | ||
734 | */ | ||
702 | onSubmit() { | 735 | onSubmit() { |
703 | this.$refs.ruleForm.validate((valid) => { | 736 | this.$refs.ruleForm.validate((valid) => { |
704 | if (valid) { | 737 | if (valid) { | ... | ... |
... | @@ -398,10 +398,20 @@ export default { | ... | @@ -398,10 +398,20 @@ export default { |
398 | this.ableOperation=this.$parent.ableOperation | 398 | this.ableOperation=this.$parent.ableOperation |
399 | }, | 399 | }, |
400 | methods: { | 400 | methods: { |
401 | /** | ||
402 | * @description: ssQlxxchange | ||
403 | * @param {*} val | ||
404 | * @author: renchao | ||
405 | */ | ||
401 | ssQlxxchange(val) { | 406 | ssQlxxchange(val) { |
402 | this.ruleForm.ssQlxx = val; | 407 | this.ruleForm.ssQlxx = val; |
403 | this.ruleForm.qlxx.ssywh = val.ssywh; | 408 | this.ruleForm.qlxx.ssywh = val.ssywh; |
404 | }, | 409 | }, |
410 | /** | ||
411 | * @description: djlxchange | ||
412 | * @param {*} val | ||
413 | * @author: renchao | ||
414 | */ | ||
405 | djlxchange(val) { | 415 | djlxchange(val) { |
406 | console.log("val",val); | 416 | console.log("val",val); |
407 | if (val == null || val == 100) { | 417 | if (val == null || val == 100) { |
... | @@ -410,6 +420,10 @@ export default { | ... | @@ -410,6 +420,10 @@ export default { |
410 | this.ssqlxxshow = true; | 420 | this.ssqlxxshow = true; |
411 | } | 421 | } |
412 | }, | 422 | }, |
423 | /** | ||
424 | * @description: loadData | ||
425 | * @author: renchao | ||
426 | */ | ||
413 | loadData() { | 427 | loadData() { |
414 | this.$startLoading(); | 428 | this.$startLoading(); |
415 | this.propsParam.isEdit = this.$parent.isEdit; | 429 | this.propsParam.isEdit = this.$parent.isEdit; |
... | @@ -435,21 +449,40 @@ export default { | ... | @@ -435,21 +449,40 @@ export default { |
435 | }); | 449 | }); |
436 | }, | 450 | }, |
437 | // 更新土地用途信息 | 451 | // 更新土地用途信息 |
452 | /** | ||
453 | * @description: 更新土地用途信息 | ||
454 | * @param {*} val | ||
455 | * @author: renchao | ||
456 | */ | ||
438 | upDateTdytxxList(val) { | 457 | upDateTdytxxList(val) { |
439 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 458 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
440 | this.key++; | 459 | this.key++; |
441 | }, | 460 | }, |
442 | // 更新权利人信息 | 461 | // 更新权利人信息 |
462 | /** | ||
463 | * @description: 更新权利人信息 | ||
464 | * @param {*} val | ||
465 | * @author: renchao | ||
466 | */ | ||
443 | upDateQlrxxList(val) { | 467 | upDateQlrxxList(val) { |
444 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 468 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
445 | this.czrOptions = this.ruleForm.qlrData; | 469 | this.czrOptions = this.ruleForm.qlrData; |
446 | this.key++; | 470 | this.key++; |
447 | }, | 471 | }, |
448 | // 更新义务人信息 | 472 | // 更新义务人信息 |
473 | /** | ||
474 | * @description: 更新义务人信息 | ||
475 | * @param {*} val | ||
476 | * @author: renchao | ||
477 | */ | ||
449 | upDateYwrxxList(val) { | 478 | upDateYwrxxList(val) { |
450 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 479 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
451 | this.key++; | 480 | this.key++; |
452 | }, | 481 | }, |
482 | /** | ||
483 | * @description: onSubmit | ||
484 | * @author: renchao | ||
485 | */ | ||
453 | onSubmit() { | 486 | onSubmit() { |
454 | this.$refs.ruleForm.validate((valid) => { | 487 | this.$refs.ruleForm.validate((valid) => { |
455 | if (valid) { | 488 | if (valid) { | ... | ... |
... | @@ -458,10 +458,20 @@ | ... | @@ -458,10 +458,20 @@ |
458 | this.ableOperation = this.$parent.ableOperation; | 458 | this.ableOperation = this.$parent.ableOperation; |
459 | }, | 459 | }, |
460 | methods: { | 460 | methods: { |
461 | /** | ||
462 | * @description: ssQlxxchange | ||
463 | * @param {*} val | ||
464 | * @author: renchao | ||
465 | */ | ||
461 | ssQlxxchange (val) { | 466 | ssQlxxchange (val) { |
462 | this.ruleForm.ssQlxx = val; | 467 | this.ruleForm.ssQlxx = val; |
463 | this.ruleForm.qlxx.ssywh = val.ssywh; | 468 | this.ruleForm.qlxx.ssywh = val.ssywh; |
464 | }, | 469 | }, |
470 | /** | ||
471 | * @description: djlxchange | ||
472 | * @param {*} val | ||
473 | * @author: renchao | ||
474 | */ | ||
465 | djlxchange (val) { | 475 | djlxchange (val) { |
466 | console.log("val", val); | 476 | console.log("val", val); |
467 | if (val == null || val == 100) { | 477 | if (val == null || val == 100) { |
... | @@ -471,6 +481,10 @@ | ... | @@ -471,6 +481,10 @@ |
471 | } | 481 | } |
472 | }, | 482 | }, |
473 | 483 | ||
484 | /** | ||
485 | * @description: loadData | ||
486 | * @author: renchao | ||
487 | */ | ||
474 | loadData () { | 488 | loadData () { |
475 | this.$startLoading(); | 489 | this.$startLoading(); |
476 | this.propsParam.isEdit = this.$parent.isEdit; | 490 | this.propsParam.isEdit = this.$parent.isEdit; |
... | @@ -502,21 +516,40 @@ | ... | @@ -502,21 +516,40 @@ |
502 | }); | 516 | }); |
503 | }, | 517 | }, |
504 | // 更新土地用途信息 | 518 | // 更新土地用途信息 |
519 | /** | ||
520 | * @description: 更新土地用途信息 | ||
521 | * @param {*} val | ||
522 | * @author: renchao | ||
523 | */ | ||
505 | upDateTdytxxList (val) { | 524 | upDateTdytxxList (val) { |
506 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 525 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
507 | this.key++; | 526 | this.key++; |
508 | }, | 527 | }, |
509 | // 更新权利人信息 | 528 | // 更新权利人信息 |
529 | /** | ||
530 | * @description: 更新权利人信息 | ||
531 | * @param {*} val | ||
532 | * @author: renchao | ||
533 | */ | ||
510 | upDateQlrxxList (val) { | 534 | upDateQlrxxList (val) { |
511 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 535 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
512 | this.czrOptions = this.ruleForm.qlrData; | 536 | this.czrOptions = this.ruleForm.qlrData; |
513 | this.key++; | 537 | this.key++; |
514 | }, | 538 | }, |
515 | // 更新义务人信息 | 539 | // 更新义务人信息 |
540 | /** | ||
541 | * @description: 更新义务人信息 | ||
542 | * @param {*} val | ||
543 | * @author: renchao | ||
544 | */ | ||
516 | upDateYwrxxList (val) { | 545 | upDateYwrxxList (val) { |
517 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 546 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
518 | this.key++; | 547 | this.key++; |
519 | }, | 548 | }, |
549 | /** | ||
550 | * @description: onSubmit | ||
551 | * @author: renchao | ||
552 | */ | ||
520 | onSubmit () { | 553 | onSubmit () { |
521 | this.$refs.ruleForm.validate((valid) => { | 554 | this.$refs.ruleForm.validate((valid) => { |
522 | if (valid) { | 555 | if (valid) { | ... | ... |
... | @@ -360,10 +360,20 @@ export default { | ... | @@ -360,10 +360,20 @@ export default { |
360 | this.ableOperation=this.$parent.ableOperation | 360 | this.ableOperation=this.$parent.ableOperation |
361 | }, | 361 | }, |
362 | methods: { | 362 | methods: { |
363 | /** | ||
364 | * @description: ssQlxxchange | ||
365 | * @param {*} val | ||
366 | * @author: renchao | ||
367 | */ | ||
363 | ssQlxxchange(val) { | 368 | ssQlxxchange(val) { |
364 | this.ruleForm.ssQlxx = val; | 369 | this.ruleForm.ssQlxx = val; |
365 | this.ruleForm.qlxx.ssywh = val.ssywh; | 370 | this.ruleForm.qlxx.ssywh = val.ssywh; |
366 | }, | 371 | }, |
372 | /** | ||
373 | * @description: djlxchange | ||
374 | * @param {*} val | ||
375 | * @author: renchao | ||
376 | */ | ||
367 | djlxchange(val) { | 377 | djlxchange(val) { |
368 | console.log("val",val); | 378 | console.log("val",val); |
369 | if (val == null || val == 100) { | 379 | if (val == null || val == 100) { |
... | @@ -373,9 +383,18 @@ export default { | ... | @@ -373,9 +383,18 @@ export default { |
373 | } | 383 | } |
374 | }, | 384 | }, |
375 | // 字典 | 385 | // 字典 |
386 | /** | ||
387 | * @description: 字典 | ||
388 | * @param {*} val | ||
389 | * @author: renchao | ||
390 | */ | ||
376 | getDictData(val) { | 391 | getDictData(val) { |
377 | return store.getters.dictData[val]; | 392 | return store.getters.dictData[val]; |
378 | }, | 393 | }, |
394 | /** | ||
395 | * @description: loadData | ||
396 | * @author: renchao | ||
397 | */ | ||
379 | loadData() { | 398 | loadData() { |
380 | this.$startLoading(); | 399 | this.$startLoading(); |
381 | this.propsParam.isEdit = this.$parent.isEdit; | 400 | this.propsParam.isEdit = this.$parent.isEdit; |
... | @@ -402,21 +421,40 @@ export default { | ... | @@ -402,21 +421,40 @@ export default { |
402 | }); | 421 | }); |
403 | }, | 422 | }, |
404 | // 更新土地用途信息 | 423 | // 更新土地用途信息 |
424 | /** | ||
425 | * @description: 更新土地用途信息 | ||
426 | * @param {*} val | ||
427 | * @author: renchao | ||
428 | */ | ||
405 | upDateTdytxxList(val) { | 429 | upDateTdytxxList(val) { |
406 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 430 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
407 | this.key++; | 431 | this.key++; |
408 | }, | 432 | }, |
409 | // 更新权利人信息 | 433 | // 更新权利人信息 |
434 | /** | ||
435 | * @description: 更新权利人信息 | ||
436 | * @param {*} val | ||
437 | * @author: renchao | ||
438 | */ | ||
410 | upDateQlrxxList(val) { | 439 | upDateQlrxxList(val) { |
411 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 440 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
412 | this.czrOptions = this.ruleForm.qlrData; | 441 | this.czrOptions = this.ruleForm.qlrData; |
413 | this.key++; | 442 | this.key++; |
414 | }, | 443 | }, |
415 | // 更新义务人信息 | 444 | // 更新义务人信息 |
445 | /** | ||
446 | * @description: 更新义务人信息 | ||
447 | * @param {*} val | ||
448 | * @author: renchao | ||
449 | */ | ||
416 | upDateYwrxxList(val) { | 450 | upDateYwrxxList(val) { |
417 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 451 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
418 | this.key++; | 452 | this.key++; |
419 | }, | 453 | }, |
454 | /** | ||
455 | * @description: onSubmit | ||
456 | * @author: renchao | ||
457 | */ | ||
420 | onSubmit() { | 458 | onSubmit() { |
421 | this.$refs.ruleForm.validate((valid) => { | 459 | this.$refs.ruleForm.validate((valid) => { |
422 | if (valid) { | 460 | if (valid) { | ... | ... |
... | @@ -415,10 +415,20 @@ export default { | ... | @@ -415,10 +415,20 @@ export default { |
415 | this.ableOperation=this.$parent.ableOperation | 415 | this.ableOperation=this.$parent.ableOperation |
416 | }, | 416 | }, |
417 | methods: { | 417 | methods: { |
418 | /** | ||
419 | * @description: ssQlxxchange | ||
420 | * @param {*} val | ||
421 | * @author: renchao | ||
422 | */ | ||
418 | ssQlxxchange(val) { | 423 | ssQlxxchange(val) { |
419 | this.ruleForm.ssQlxx = val; | 424 | this.ruleForm.ssQlxx = val; |
420 | this.ruleForm.qlxx.ssywh = val.ssywh; | 425 | this.ruleForm.qlxx.ssywh = val.ssywh; |
421 | }, | 426 | }, |
427 | /** | ||
428 | * @description: djlxchange | ||
429 | * @param {*} val | ||
430 | * @author: renchao | ||
431 | */ | ||
422 | djlxchange(val) { | 432 | djlxchange(val) { |
423 | console.log("val",val); | 433 | console.log("val",val); |
424 | if (val == null || val == 100) { | 434 | if (val == null || val == 100) { |
... | @@ -429,9 +439,18 @@ export default { | ... | @@ -429,9 +439,18 @@ export default { |
429 | }, | 439 | }, |
430 | 440 | ||
431 | // 字典 | 441 | // 字典 |
442 | /** | ||
443 | * @description: 字典 | ||
444 | * @param {*} val | ||
445 | * @author: renchao | ||
446 | */ | ||
432 | getDictData(val) { | 447 | getDictData(val) { |
433 | return store.getters.dictData[val]; | 448 | return store.getters.dictData[val]; |
434 | }, | 449 | }, |
450 | /** | ||
451 | * @description: loadData | ||
452 | * @author: renchao | ||
453 | */ | ||
435 | loadData() { | 454 | loadData() { |
436 | this.$startLoading(); | 455 | this.$startLoading(); |
437 | this.propsParam.isEdit = this.$parent.isEdit; | 456 | this.propsParam.isEdit = this.$parent.isEdit; |
... | @@ -462,11 +481,21 @@ export default { | ... | @@ -462,11 +481,21 @@ export default { |
462 | }); | 481 | }); |
463 | }, | 482 | }, |
464 | // 更新土地用途信息 | 483 | // 更新土地用途信息 |
484 | /** | ||
485 | * @description: 更新土地用途信息 | ||
486 | * @param {*} val | ||
487 | * @author: renchao | ||
488 | */ | ||
465 | upDateTdytxxList(val) { | 489 | upDateTdytxxList(val) { |
466 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 490 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
467 | this.key++; | 491 | this.key++; |
468 | }, | 492 | }, |
469 | // 更新权利人信息 | 493 | // 更新权利人信息 |
494 | /** | ||
495 | * @description: 更新权利人信息 | ||
496 | * @param {*} val | ||
497 | * @author: renchao | ||
498 | */ | ||
470 | upDateQlrxxList(val) { | 499 | upDateQlrxxList(val) { |
471 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 500 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
472 | this.czrOptions = this.ruleForm.qlrData; | 501 | this.czrOptions = this.ruleForm.qlrData; |
... | @@ -477,6 +506,10 @@ export default { | ... | @@ -477,6 +506,10 @@ export default { |
477 | // this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 506 | // this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
478 | // this.key++; | 507 | // this.key++; |
479 | // }, | 508 | // }, |
509 | /** | ||
510 | * @description: onSubmit | ||
511 | * @author: renchao | ||
512 | */ | ||
480 | onSubmit() { | 513 | onSubmit() { |
481 | this.$refs.ruleForm.validate((valid) => { | 514 | this.$refs.ruleForm.validate((valid) => { |
482 | if (valid) { | 515 | if (valid) { | ... | ... |
... | @@ -438,10 +438,20 @@ export default { | ... | @@ -438,10 +438,20 @@ export default { |
438 | this.ableOperation=this.$parent.ableOperation | 438 | this.ableOperation=this.$parent.ableOperation |
439 | }, | 439 | }, |
440 | methods: { | 440 | methods: { |
441 | /** | ||
442 | * @description: ssQlxxchange | ||
443 | * @param {*} val | ||
444 | * @author: renchao | ||
445 | */ | ||
441 | ssQlxxchange(val) { | 446 | ssQlxxchange(val) { |
442 | this.ruleForm.ssQlxx = val; | 447 | this.ruleForm.ssQlxx = val; |
443 | this.ruleForm.qlxx.ssywh = val.ssywh; | 448 | this.ruleForm.qlxx.ssywh = val.ssywh; |
444 | }, | 449 | }, |
450 | /** | ||
451 | * @description: djlxchange | ||
452 | * @param {*} val | ||
453 | * @author: renchao | ||
454 | */ | ||
445 | djlxchange(val) { | 455 | djlxchange(val) { |
446 | console.log("val",val); | 456 | console.log("val",val); |
447 | if (val == null || val == 100) { | 457 | if (val == null || val == 100) { |
... | @@ -450,6 +460,10 @@ export default { | ... | @@ -450,6 +460,10 @@ export default { |
450 | this.ssqlxxshow = true; | 460 | this.ssqlxxshow = true; |
451 | } | 461 | } |
452 | }, | 462 | }, |
463 | /** | ||
464 | * @description: loadData | ||
465 | * @author: renchao | ||
466 | */ | ||
453 | loadData() { | 467 | loadData() { |
454 | this.$startLoading(); | 468 | this.$startLoading(); |
455 | this.propsParam.isEdit=this.$parent.isEdit | 469 | this.propsParam.isEdit=this.$parent.isEdit |
... | @@ -475,21 +489,40 @@ export default { | ... | @@ -475,21 +489,40 @@ export default { |
475 | }); | 489 | }); |
476 | }, | 490 | }, |
477 | // 更新土地用途信息 | 491 | // 更新土地用途信息 |
492 | /** | ||
493 | * @description: 更新土地用途信息 | ||
494 | * @param {*} val | ||
495 | * @author: renchao | ||
496 | */ | ||
478 | upDateTdytxxList(val) { | 497 | upDateTdytxxList(val) { |
479 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 498 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
480 | this.key++; | 499 | this.key++; |
481 | }, | 500 | }, |
482 | // 更新权利人信息 | 501 | // 更新权利人信息 |
502 | /** | ||
503 | * @description: 更新权利人信息 | ||
504 | * @param {*} val | ||
505 | * @author: renchao | ||
506 | */ | ||
483 | upDateQlrxxList(val) { | 507 | upDateQlrxxList(val) { |
484 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 508 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
485 | this.czrOptions = this.ruleForm.qlrData; | 509 | this.czrOptions = this.ruleForm.qlrData; |
486 | this.key++; | 510 | this.key++; |
487 | }, | 511 | }, |
488 | // 更新义务人信息 | 512 | // 更新义务人信息 |
513 | /** | ||
514 | * @description: 更新义务人信息 | ||
515 | * @param {*} val | ||
516 | * @author: renchao | ||
517 | */ | ||
489 | upDateYwrxxList(val) { | 518 | upDateYwrxxList(val) { |
490 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 519 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
491 | this.key++; | 520 | this.key++; |
492 | }, | 521 | }, |
522 | /** | ||
523 | * @description: onSubmit | ||
524 | * @author: renchao | ||
525 | */ | ||
493 | onSubmit() { | 526 | onSubmit() { |
494 | this.$refs.ruleForm.validate((valid) => { | 527 | this.$refs.ruleForm.validate((valid) => { |
495 | if (valid) { | 528 | if (valid) { | ... | ... |
... | @@ -319,6 +319,10 @@ export default { | ... | @@ -319,6 +319,10 @@ export default { |
319 | this.ableOperation =this.$parent.ableOperation | 319 | this.ableOperation =this.$parent.ableOperation |
320 | }, | 320 | }, |
321 | methods: { | 321 | methods: { |
322 | /** | ||
323 | * @description: loadData | ||
324 | * @author: renchao | ||
325 | */ | ||
322 | loadData() { | 326 | loadData() { |
323 | this.$startLoading(); | 327 | this.$startLoading(); |
324 | this.propsParam.isEdit=this.$parent.isEdit | 328 | this.propsParam.isEdit=this.$parent.isEdit |
... | @@ -331,21 +335,40 @@ export default { | ... | @@ -331,21 +335,40 @@ export default { |
331 | }); | 335 | }); |
332 | }, | 336 | }, |
333 | // 更新土地用途信息 | 337 | // 更新土地用途信息 |
338 | /** | ||
339 | * @description: 更新土地用途信息 | ||
340 | * @param {*} val | ||
341 | * @author: renchao | ||
342 | */ | ||
334 | upDateTdytxxList(val) { | 343 | upDateTdytxxList(val) { |
335 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); | 344 | this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); |
336 | this.key++; | 345 | this.key++; |
337 | }, | 346 | }, |
338 | // 更新权利人信息 | 347 | // 更新权利人信息 |
348 | /** | ||
349 | * @description: 更新权利人信息 | ||
350 | * @param {*} val | ||
351 | * @author: renchao | ||
352 | */ | ||
339 | upDateQlrxxList(val) { | 353 | upDateQlrxxList(val) { |
340 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); | 354 | this.ruleForm.qlrData && (this.ruleForm.qlrData = _.cloneDeep(val)); |
341 | this.czrOptions = this.ruleForm.qlrData; | 355 | this.czrOptions = this.ruleForm.qlrData; |
342 | this.key++; | 356 | this.key++; |
343 | }, | 357 | }, |
344 | // 更新义务人信息 | 358 | // 更新义务人信息 |
359 | /** | ||
360 | * @description: 更新义务人信息 | ||
361 | * @param {*} val | ||
362 | * @author: renchao | ||
363 | */ | ||
345 | upDateYwrxxList(val) { | 364 | upDateYwrxxList(val) { |
346 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); | 365 | this.ruleForm.ywrData && (this.ruleForm.ywrData = _.cloneDeep(val)); |
347 | this.key++; | 366 | this.key++; |
348 | }, | 367 | }, |
368 | /** | ||
369 | * @description: onSubmit | ||
370 | * @author: renchao | ||
371 | */ | ||
349 | onSubmit() { | 372 | onSubmit() { |
350 | this.$refs.ruleForm.validate((valid) => { | 373 | this.$refs.ruleForm.validate((valid) => { |
351 | if (valid) { | 374 | if (valid) { | ... | ... |
... | @@ -109,6 +109,9 @@ export default { | ... | @@ -109,6 +109,9 @@ export default { |
109 | this.getShList(); | 109 | this.getShList(); |
110 | }, | 110 | }, |
111 | methods: { | 111 | methods: { |
112 | /** | ||
113 | * @description: getShList | ||
114 | * @a | ||
112 | getShList() { | 115 | getShList() { |
113 | this.$startLoading(); | 116 | this.$startLoading(); |
114 | var formdata = { | 117 | var formdata = { |
... | @@ -125,7 +128,16 @@ export default { | ... | @@ -125,7 +128,16 @@ export default { |
125 | } | 128 | } |
126 | }); | 129 | }); |
127 | }, | 130 | }, |
131 | /** | ||
132 | * @description: judgment | ||
133 | * @param {*} obj | ||
134 | * @author: renchao | ||
135 | */ | ||
128 | judgment(obj) {}, | 136 | judgment(obj) {}, |
137 | /** | ||
138 | * @description: onSubmit | ||
139 | * @author: renchao | ||
140 | */ | ||
129 | onSubmit() { | 141 | onSubmit() { |
130 | if ( | 142 | if ( |
131 | this.tableData[2].shyj == null || | 143 | this.tableData[2].shyj == null || |
... | @@ -188,6 +200,11 @@ export default { | ... | @@ -188,6 +200,11 @@ export default { |
188 | } | 200 | } |
189 | }, | 201 | }, |
190 | //打开常用意见列表弹窗 | 202 | //打开常用意见列表弹窗 |
203 | /** | ||
204 | * @description: 打开常用意见列表弹窗 | ||
205 | * @param {*} index | ||
206 | * @author: renchao | ||
207 | */ | ||
191 | commonOpinion(index) { | 208 | commonOpinion(index) { |
192 | this.currentindex = index; | 209 | this.currentindex = index; |
193 | this.$popupDialog( | 210 | this.$popupDialog( |
... | @@ -198,6 +215,11 @@ export default { | ... | @@ -198,6 +215,11 @@ export default { |
198 | true | 215 | true |
199 | ); | 216 | ); |
200 | }, | 217 | }, |
218 | /** | ||
219 | * @description: add | ||
220 | * @param {*} val | ||
221 | * @author: renchao | ||
222 | */ | ||
201 | add(val) { | 223 | add(val) { |
202 | if (val != "") { | 224 | if (val != "") { |
203 | this.$set(this.tableData[this.currentindex], "shyj", val); | 225 | this.$set(this.tableData[this.currentindex], "shyj", val); | ... | ... |
-
Please register or sign in to post a comment