增加注释
Showing
17 changed files
with
281 additions
and
0 deletions
... | @@ -19,6 +19,10 @@ export default { | ... | @@ -19,6 +19,10 @@ export default { |
19 | } | 19 | } |
20 | }, | 20 | }, |
21 | methods: { | 21 | methods: { |
22 | /** | ||
23 | * @description: nextTo | ||
24 | * @author: renchao | ||
25 | */ | ||
22 | nextTo () { | 26 | nextTo () { |
23 | this.$router.push({ | 27 | this.$router.push({ |
24 | path: this.redirect || '/', | 28 | path: this.redirect || '/', | ... | ... |
... | @@ -27,6 +27,10 @@ export default { | ... | @@ -27,6 +27,10 @@ export default { |
27 | window.addEventListener("resize", this.debounce(this.setScale)); | 27 | window.addEventListener("resize", this.debounce(this.setScale)); |
28 | }, | 28 | }, |
29 | methods: { | 29 | methods: { |
30 | /** | ||
31 | * @description: getScale | ||
32 | * @author: renchao | ||
33 | */ | ||
30 | getScale() { | 34 | getScale() { |
31 | // 固定好16:9的宽高比,计算出最合适的缩放比 | 35 | // 固定好16:9的宽高比,计算出最合适的缩放比 |
32 | const { width, height } = this; | 36 | const { width, height } = this; |
... | @@ -34,6 +38,10 @@ export default { | ... | @@ -34,6 +38,10 @@ export default { |
34 | const ww = window.innerWidth / width; | 38 | const ww = window.innerWidth / width; |
35 | return ww < wh ? ww : wh; | 39 | return ww < wh ? ww : wh; |
36 | }, | 40 | }, |
41 | /** | ||
42 | * @description: setScale | ||
43 | * @author: renchao | ||
44 | */ | ||
37 | setScale() { | 45 | setScale() { |
38 | // 获取到缩放比例,设置它 | 46 | // 获取到缩放比例,设置它 |
39 | this.scale = this.getScale(); | 47 | this.scale = this.getScale(); |
... | @@ -41,6 +49,12 @@ export default { | ... | @@ -41,6 +49,12 @@ export default { |
41 | this.$refs.ScaleBox.style.setProperty("--scale", this.scale); | 49 | this.$refs.ScaleBox.style.setProperty("--scale", this.scale); |
42 | } | 50 | } |
43 | }, | 51 | }, |
52 | /** | ||
53 | * @description: debounce | ||
54 | * @param {*} fn | ||
55 | * @param {*} delay | ||
56 | * @author: renchao | ||
57 | */ | ||
44 | debounce(fn, delay) { | 58 | debounce(fn, delay) { |
45 | const delays = delay || 500; | 59 | const delays = delay || 500; |
46 | let timer; | 60 | let timer; | ... | ... |
... | @@ -56,6 +56,10 @@ | ... | @@ -56,6 +56,10 @@ |
56 | clearInterval(this.timing); | 56 | clearInterval(this.timing); |
57 | }, | 57 | }, |
58 | methods: { | 58 | methods: { |
59 | /** | ||
60 | * @description: cancelLoading | ||
61 | * @author: renchao | ||
62 | */ | ||
59 | cancelLoading () { | 63 | cancelLoading () { |
60 | setTimeout(() => { | 64 | setTimeout(() => { |
61 | this.loading = false; | 65 | this.loading = false; | ... | ... |
... | @@ -91,6 +91,10 @@ | ... | @@ -91,6 +91,10 @@ |
91 | }, | 91 | }, |
92 | }, | 92 | }, |
93 | methods: { | 93 | methods: { |
94 | /** | ||
95 | * @description: getsthjqxjrtotal | ||
96 | * @author: renchao | ||
97 | */ | ||
94 | getsthjqxjrtotal () { | 98 | getsthjqxjrtotal () { |
95 | return new Promise(async (resolve) => { | 99 | return new Promise(async (resolve) => { |
96 | try { | 100 | try { |
... | @@ -119,6 +123,10 @@ | ... | @@ -119,6 +123,10 @@ |
119 | } | 123 | } |
120 | }); | 124 | }); |
121 | }, | 125 | }, |
126 | /** | ||
127 | * @description: handleSthj | ||
128 | * @author: renchao | ||
129 | */ | ||
122 | handleSthj () { | 130 | handleSthj () { |
123 | this.$router.push({ | 131 | this.$router.push({ |
124 | path: '/sthj/sbbwcx', | 132 | path: '/sthj/sbbwcx', | ... | ... |
... | @@ -36,6 +36,10 @@ | ... | @@ -36,6 +36,10 @@ |
36 | clearInterval(this.timing); | 36 | clearInterval(this.timing); |
37 | }, | 37 | }, |
38 | methods: { | 38 | methods: { |
39 | /** | ||
40 | * @description: cancelLoading | ||
41 | * @author: renchao | ||
42 | */ | ||
39 | cancelLoading () { | 43 | cancelLoading () { |
40 | setTimeout(() => { | 44 | setTimeout(() => { |
41 | this.loading = false; | 45 | this.loading = false; | ... | ... |
... | @@ -56,6 +56,12 @@ export default { | ... | @@ -56,6 +56,12 @@ export default { |
56 | }; | 56 | }; |
57 | }, | 57 | }, |
58 | methods: { | 58 | methods: { |
59 | /** | ||
60 | * @description: drawProvinceMap | ||
61 | * @param {*} provinceName | ||
62 | * @param {*} mapName | ||
63 | * @author: renchao | ||
64 | */ | ||
59 | drawProvinceMap (provinceName, mapName) { | 65 | drawProvinceMap (provinceName, mapName) { |
60 | this.provinceName = provinceName; | 66 | this.provinceName = provinceName; |
61 | this.mapName = mapName; | 67 | this.mapName = mapName; | ... | ... |
... | @@ -76,10 +76,19 @@ | ... | @@ -76,10 +76,19 @@ |
76 | ...mapGetters(["dicData"]), | 76 | ...mapGetters(["dicData"]), |
77 | }, | 77 | }, |
78 | methods: { | 78 | methods: { |
79 | /** | ||
80 | * @description: endTimeChange | ||
81 | * @param {*} val | ||
82 | * @author: renchao | ||
83 | */ | ||
79 | endTimeChange (val) { | 84 | endTimeChange (val) { |
80 | this.form.endTime = timeFormat(new Date(val), true); | 85 | this.form.endTime = timeFormat(new Date(val), true); |
81 | }, | 86 | }, |
82 | //查询各区县办件数量 | 87 | //查询各区县办件数量 |
88 | /** | ||
89 | * @description: 查询各区县办件数量 | ||
90 | * @author: renchao | ||
91 | */ | ||
83 | async getProcessCounts () { | 92 | async getProcessCounts () { |
84 | this.pieChartsData = []; | 93 | this.pieChartsData = []; |
85 | let { result: res } = await efficient.getProcessCounts( | 94 | let { result: res } = await efficient.getProcessCounts( |
... | @@ -106,6 +115,10 @@ | ... | @@ -106,6 +115,10 @@ |
106 | }); | 115 | }); |
107 | }, | 116 | }, |
108 | // 重置 | 117 | // 重置 |
118 | /** | ||
119 | * @description: 重置 | ||
120 | * @author: renchao | ||
121 | */ | ||
109 | resetForm () { | 122 | resetForm () { |
110 | this.form = { | 123 | this.form = { |
111 | startTime: getFirstDayOfSeason(), | 124 | startTime: getFirstDayOfSeason(), |
... | @@ -114,6 +127,10 @@ | ... | @@ -114,6 +127,10 @@ |
114 | this.getProcessCounts(); | 127 | this.getProcessCounts(); |
115 | }, | 128 | }, |
116 | //玫瑰图初始化 | 129 | //玫瑰图初始化 |
130 | /** | ||
131 | * @description: 玫瑰图初始化 | ||
132 | * @author: renchao | ||
133 | */ | ||
117 | echartInit () { | 134 | echartInit () { |
118 | let _this = this; | 135 | let _this = this; |
119 | // 基于准备好的dom,初始化echarts实例 | 136 | // 基于准备好的dom,初始化echarts实例 |
... | @@ -178,6 +195,11 @@ | ... | @@ -178,6 +195,11 @@ |
178 | }); | 195 | }); |
179 | }, | 196 | }, |
180 | //柱图初始化 | 197 | //柱图初始化 |
198 | /** | ||
199 | * @description: 柱图初始化 | ||
200 | * @param {*} recType | ||
201 | * @author: renchao | ||
202 | */ | ||
181 | async barChartInit (recType) { | 203 | async barChartInit (recType) { |
182 | //请求recType对应业务的各区县数据 | 204 | //请求recType对应业务的各区县数据 |
183 | let { result: res } = await efficient.getProcessDays( | 205 | let { result: res } = await efficient.getProcessDays( | ... | ... |
... | @@ -87,9 +87,18 @@ | ... | @@ -87,9 +87,18 @@ |
87 | ...mapGetters(["dicData"]), | 87 | ...mapGetters(["dicData"]), |
88 | }, | 88 | }, |
89 | methods: { | 89 | methods: { |
90 | /** | ||
91 | * @description: endTimeChange | ||
92 | * @param {*} val | ||
93 | * @author: renchao | ||
94 | */ | ||
90 | endTimeChange (val) { | 95 | endTimeChange (val) { |
91 | this.form.endTime = timeFormat(new Date(val), true) | 96 | this.form.endTime = timeFormat(new Date(val), true) |
92 | }, | 97 | }, |
98 | /** | ||
99 | * @description: getSuucessRate | ||
100 | * @author: renchao | ||
101 | */ | ||
93 | async getSuucessRate () { | 102 | async getSuucessRate () { |
94 | this.recTypeArr = []; | 103 | this.recTypeArr = []; |
95 | this.chartData = []; | 104 | this.chartData = []; |
... | @@ -113,6 +122,10 @@ | ... | @@ -113,6 +122,10 @@ |
113 | }); | 122 | }); |
114 | }, | 123 | }, |
115 | // 重置 | 124 | // 重置 |
125 | /** | ||
126 | * @description: 重置 | ||
127 | * @author: renchao | ||
128 | */ | ||
116 | resetForm () { | 129 | resetForm () { |
117 | this.form = { | 130 | this.form = { |
118 | startTime: getFirstDayOfSeason(), | 131 | startTime: getFirstDayOfSeason(), |
... | @@ -121,6 +134,10 @@ | ... | @@ -121,6 +134,10 @@ |
121 | }; | 134 | }; |
122 | this.getSuucessRate(); | 135 | this.getSuucessRate(); |
123 | }, | 136 | }, |
137 | /** | ||
138 | * @description: echartInit | ||
139 | * @author: renchao | ||
140 | */ | ||
124 | echartInit () { | 141 | echartInit () { |
125 | let _this = this; | 142 | let _this = this; |
126 | // 基于准备好的dom,初始化echarts实例 | 143 | // 基于准备好的dom,初始化echarts实例 | ... | ... |
... | @@ -130,12 +130,26 @@ | ... | @@ -130,12 +130,26 @@ |
130 | this.generateFileName() | 130 | this.generateFileName() |
131 | }, | 131 | }, |
132 | methods: { | 132 | methods: { |
133 | /** | ||
134 | * @description: handleSearch | ||
135 | * @author: renchao | ||
136 | */ | ||
133 | handleSearch () { }, | 137 | handleSearch () { }, |
134 | // 生成文件名 | 138 | // 生成文件名 |
139 | /** | ||
140 | * @description: 生成文件名 | ||
141 | * @author: renchao | ||
142 | */ | ||
135 | generateFileName () { | 143 | generateFileName () { |
136 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; | 144 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; |
137 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据接入质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` | 145 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据接入质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` |
138 | }, | 146 | }, |
147 | /** | ||
148 | * @description: headerStyle | ||
149 | * @param {*} row | ||
150 | * @param {*} rowIndex | ||
151 | * @author: renchao | ||
152 | */ | ||
139 | headerStyle ({ row, rowIndex }) { | 153 | headerStyle ({ row, rowIndex }) { |
140 | if (rowIndex == 4) { | 154 | if (rowIndex == 4) { |
141 | row[2].rowSpan = 2; | 155 | row[2].rowSpan = 2; |
... | @@ -143,6 +157,12 @@ | ... | @@ -143,6 +157,12 @@ |
143 | row[4].rowSpan = 2; | 157 | row[4].rowSpan = 2; |
144 | } | 158 | } |
145 | }, | 159 | }, |
160 | /** | ||
161 | * @description: headerStyle1 | ||
162 | * @param {*} row | ||
163 | * @param {*} rowIndex | ||
164 | * @author: renchao | ||
165 | */ | ||
146 | headerStyle1 ({ row, rowIndex }) { | 166 | headerStyle1 ({ row, rowIndex }) { |
147 | if (rowIndex == 3) { | 167 | if (rowIndex == 3) { |
148 | row[2].rowSpan = 2; | 168 | row[2].rowSpan = 2; |
... | @@ -150,6 +170,11 @@ | ... | @@ -150,6 +170,11 @@ |
150 | row[4].rowSpan = 2; | 170 | row[4].rowSpan = 2; |
151 | } | 171 | } |
152 | }, | 172 | }, |
173 | /** | ||
174 | * @description: handlesetExport2Excel | ||
175 | * @param {*} val | ||
176 | * @author: renchao | ||
177 | */ | ||
153 | handlesetExport2Excel (val) { | 178 | handlesetExport2Excel (val) { |
154 | this.disableds = true | 179 | this.disableds = true |
155 | setTimeout(() => { | 180 | setTimeout(() => { |
... | @@ -159,6 +184,10 @@ | ... | @@ -159,6 +184,10 @@ |
159 | setExport2Excel(val) | 184 | setExport2Excel(val) |
160 | }, | 185 | }, |
161 | // 初始化数据 | 186 | // 初始化数据 |
187 | /** | ||
188 | * @description: 初始化数据 | ||
189 | * @author: renchao | ||
190 | */ | ||
162 | featchDataSelf () { | 191 | featchDataSelf () { |
163 | dataReceiveQuality(this.form.startTime, this.form.endTime).then(res => { | 192 | dataReceiveQuality(this.form.startTime, this.form.endTime).then(res => { |
164 | let records = res.result | 193 | let records = res.result |
... | @@ -166,6 +195,10 @@ | ... | @@ -166,6 +195,10 @@ |
166 | }) | 195 | }) |
167 | }, | 196 | }, |
168 | // 重置 | 197 | // 重置 |
198 | /** | ||
199 | * @description: 重置 | ||
200 | * @author: renchao | ||
201 | */ | ||
169 | handleResetForm () { | 202 | handleResetForm () { |
170 | this.form.startTime = getCurrentDate() | 203 | this.form.startTime = getCurrentDate() |
171 | this.form.endTime = getCurrentDate('time') | 204 | this.form.endTime = getCurrentDate('time') | ... | ... |
... | @@ -127,14 +127,27 @@ | ... | @@ -127,14 +127,27 @@ |
127 | }, | 127 | }, |
128 | methods: { | 128 | methods: { |
129 | // 生成文件名 | 129 | // 生成文件名 |
130 | /** | ||
131 | * @description: 生成文件名 | ||
132 | * @author: renchao | ||
133 | */ | ||
130 | generateFileName () { | 134 | generateFileName () { |
131 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; | 135 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; |
132 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据相关字段空项率统计(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` | 136 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据相关字段空项率统计(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` |
133 | }, | 137 | }, |
138 | /** | ||
139 | * @description: handlesetExport2Excel | ||
140 | * @param {*} val | ||
141 | * @author: renchao | ||
142 | */ | ||
134 | handlesetExport2Excel (val) { | 143 | handlesetExport2Excel (val) { |
135 | setExport2Excel(val) | 144 | setExport2Excel(val) |
136 | }, | 145 | }, |
137 | // 初始化数据 | 146 | // 初始化数据 |
147 | /** | ||
148 | * @description: 初始化数据 | ||
149 | * @author: renchao | ||
150 | */ | ||
138 | featchDataSelf () { | 151 | featchDataSelf () { |
139 | nonNullSta(this.form.startTime, this.form.endTime).then(res => { | 152 | nonNullSta(this.form.startTime, this.form.endTime).then(res => { |
140 | let records = res.result | 153 | let records = res.result |
... | @@ -142,6 +155,10 @@ | ... | @@ -142,6 +155,10 @@ |
142 | }) | 155 | }) |
143 | }, | 156 | }, |
144 | // 重置 | 157 | // 重置 |
158 | /** | ||
159 | * @description: 重置 | ||
160 | * @author: renchao | ||
161 | */ | ||
145 | handleResetForm () { | 162 | handleResetForm () { |
146 | this.form.startTime = getCurrentDate() | 163 | this.form.startTime = getCurrentDate() |
147 | this.form.endTime = getCurrentDate('time') | 164 | this.form.endTime = getCurrentDate('time') | ... | ... |
... | @@ -149,15 +149,34 @@ | ... | @@ -149,15 +149,34 @@ |
149 | 149 | ||
150 | }, | 150 | }, |
151 | methods: { | 151 | methods: { |
152 | /** | ||
153 | * @description: handleSearch | ||
154 | * @author: renchao | ||
155 | */ | ||
152 | handleSearch () { }, | 156 | handleSearch () { }, |
153 | // 生成文件名 | 157 | // 生成文件名 |
158 | /** | ||
159 | * @description: 生成文件名 | ||
160 | * @author: renchao | ||
161 | */ | ||
154 | generateFileName () { | 162 | generateFileName () { |
155 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; | 163 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; |
156 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据登簿质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` | 164 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据登簿质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` |
157 | }, | 165 | }, |
166 | /** | ||
167 | * @description: handlesetExport2Excel | ||
168 | * @param {*} val | ||
169 | * @author: renchao | ||
170 | */ | ||
158 | handlesetExport2Excel (val) { | 171 | handlesetExport2Excel (val) { |
159 | setExport2Excel(val) | 172 | setExport2Excel(val) |
160 | }, | 173 | }, |
174 | /** | ||
175 | * @description: headerStyle | ||
176 | * @param {*} row | ||
177 | * @param {*} rowIndex | ||
178 | * @author: renchao | ||
179 | */ | ||
161 | headerStyle ({ row, rowIndex }) { | 180 | headerStyle ({ row, rowIndex }) { |
162 | if (rowIndex == 1) { | 181 | if (rowIndex == 1) { |
163 | row.forEach(item => { | 182 | row.forEach(item => { |
... | @@ -165,6 +184,12 @@ | ... | @@ -165,6 +184,12 @@ |
165 | }) | 184 | }) |
166 | } | 185 | } |
167 | }, | 186 | }, |
187 | /** | ||
188 | * @description: headerStyle1 | ||
189 | * @param {*} row | ||
190 | * @param {*} rowIndex | ||
191 | * @author: renchao | ||
192 | */ | ||
168 | headerStyle1 ({ row, rowIndex }) { | 193 | headerStyle1 ({ row, rowIndex }) { |
169 | if (rowIndex == 2) { | 194 | if (rowIndex == 2) { |
170 | row.forEach(item => { | 195 | row.forEach(item => { |
... | @@ -173,6 +198,10 @@ | ... | @@ -173,6 +198,10 @@ |
173 | } | 198 | } |
174 | }, | 199 | }, |
175 | // 初始化数据 | 200 | // 初始化数据 |
201 | /** | ||
202 | * @description: 初始化数据 | ||
203 | * @author: renchao | ||
204 | */ | ||
176 | featchDataSelf () { | 205 | featchDataSelf () { |
177 | registerBookQuality(this.form.startTime, this.form.endTime).then(res => { | 206 | registerBookQuality(this.form.startTime, this.form.endTime).then(res => { |
178 | let records = res.result | 207 | let records = res.result |
... | @@ -180,6 +209,10 @@ | ... | @@ -180,6 +209,10 @@ |
180 | }) | 209 | }) |
181 | }, | 210 | }, |
182 | // 重置 | 211 | // 重置 |
212 | /** | ||
213 | * @description: 重置 | ||
214 | * @author: renchao | ||
215 | */ | ||
183 | handleResetForm () { | 216 | handleResetForm () { |
184 | this.form.startTime = getCurrentDate() | 217 | this.form.startTime = getCurrentDate() |
185 | this.form.endTime = getCurrentDate('time') | 218 | this.form.endTime = getCurrentDate('time') | ... | ... |
... | @@ -86,9 +86,18 @@ | ... | @@ -86,9 +86,18 @@ |
86 | ...mapGetters(["dicData"]), | 86 | ...mapGetters(["dicData"]), |
87 | }, | 87 | }, |
88 | methods: { | 88 | methods: { |
89 | /** | ||
90 | * @description: endTimeChange | ||
91 | * @param {*} val | ||
92 | * @author: renchao | ||
93 | */ | ||
89 | endTimeChange (val) { | 94 | endTimeChange (val) { |
90 | this.form.endTime = timeFormat(new Date(val), true) | 95 | this.form.endTime = timeFormat(new Date(val), true) |
91 | }, | 96 | }, |
97 | /** | ||
98 | * @description: getProcessCounts | ||
99 | * @author: renchao | ||
100 | */ | ||
92 | async getProcessCounts () { | 101 | async getProcessCounts () { |
93 | this.chartData = []; | 102 | this.chartData = []; |
94 | let { result: res } = await efficient.getProcessCounts( | 103 | let { result: res } = await efficient.getProcessCounts( |
... | @@ -105,6 +114,10 @@ | ... | @@ -105,6 +114,10 @@ |
105 | 114 | ||
106 | }, | 115 | }, |
107 | // 重置 | 116 | // 重置 |
117 | /** | ||
118 | * @description: 重置 | ||
119 | * @author: renchao | ||
120 | */ | ||
108 | resetForm () { | 121 | resetForm () { |
109 | this.form = { | 122 | this.form = { |
110 | startTime: getFirstDayOfSeason(), | 123 | startTime: getFirstDayOfSeason(), |
... | @@ -114,6 +127,11 @@ | ... | @@ -114,6 +127,11 @@ |
114 | this.getProcessCounts(); | 127 | this.getProcessCounts(); |
115 | }, | 128 | }, |
116 | //图表渲染 | 129 | //图表渲染 |
130 | /** | ||
131 | * @description: 图表渲染 | ||
132 | * @param {*} chartArr | ||
133 | * @author: renchao | ||
134 | */ | ||
117 | echartInit (chartArr) { | 135 | echartInit (chartArr) { |
118 | // 基于准备好的dom,初始化echarts实例 | 136 | // 基于准备好的dom,初始化echarts实例 |
119 | let myChart = this.$echarts.init(document.getElementById("myChart")); | 137 | let myChart = this.$echarts.init(document.getElementById("myChart")); | ... | ... |
... | @@ -45,6 +45,11 @@ export default { | ... | @@ -45,6 +45,11 @@ export default { |
45 | }, | 45 | }, |
46 | methods: { | 46 | methods: { |
47 | //记住用户名 | 47 | //记住用户名 |
48 | /** | ||
49 | * @description: 记住用户名 | ||
50 | * @param {*} flag | ||
51 | * @author: renchao | ||
52 | */ | ||
48 | checkUserName: function (flag) { | 53 | checkUserName: function (flag) { |
49 | this.user.checkStatus = flag; | 54 | this.user.checkStatus = flag; |
50 | if (this.user.checkStatus) { | 55 | if (this.user.checkStatus) { |
... | @@ -59,6 +64,11 @@ export default { | ... | @@ -59,6 +64,11 @@ export default { |
59 | this.user.account = localStorage.getItem("accountId"); | 64 | this.user.account = localStorage.getItem("accountId"); |
60 | } | 65 | } |
61 | }, | 66 | }, |
67 | /** | ||
68 | * @description: login | ||
69 | * @param {*} user | ||
70 | * @author: renchao | ||
71 | */ | ||
62 | login (user) { | 72 | login (user) { |
63 | var self = this | 73 | var self = this |
64 | this.$refs[user].validate(async (valid) => { | 74 | this.$refs[user].validate(async (valid) => { | ... | ... |
... | @@ -186,10 +186,19 @@ | ... | @@ -186,10 +186,19 @@ |
186 | }, | 186 | }, |
187 | methods: { | 187 | methods: { |
188 | //截止日期变化 | 188 | //截止日期变化 |
189 | /** | ||
190 | * @description: 截止日期变化 | ||
191 | * @param {*} val | ||
192 | * @author: renchao | ||
193 | */ | ||
189 | endTimeChange (val) { | 194 | endTimeChange (val) { |
190 | this.form.receiveEndTime = timeFormat(new Date(val), true) | 195 | this.form.receiveEndTime = timeFormat(new Date(val), true) |
191 | }, | 196 | }, |
192 | // 初始化数据 | 197 | // 初始化数据 |
198 | /** | ||
199 | * @description: 初始化数据 | ||
200 | * @author: renchao | ||
201 | */ | ||
193 | queryClickSearch () { | 202 | queryClickSearch () { |
194 | saveSearchRecord({ ...this.form, ...this.formData }).then( | 203 | saveSearchRecord({ ...this.form, ...this.formData }).then( |
195 | (res) => { | 204 | (res) => { |
... | @@ -202,15 +211,31 @@ | ... | @@ -202,15 +211,31 @@ |
202 | ) | 211 | ) |
203 | }, | 212 | }, |
204 | // 重置 | 213 | // 重置 |
214 | /** | ||
215 | * @description: 重置 | ||
216 | * @author: renchao | ||
217 | */ | ||
205 | resetForm () { | 218 | resetForm () { |
206 | this.$refs.ruleForm.resetFields(); | 219 | this.$refs.ruleForm.resetFields(); |
207 | this.form.currentPage = 1 | 220 | this.form.currentPage = 1 |
208 | }, | 221 | }, |
222 | /** | ||
223 | * @description: featchData | ||
224 | * @author: renchao | ||
225 | */ | ||
209 | featchData () { }, | 226 | featchData () { }, |
227 | /** | ||
228 | * @description: handleSearchResult | ||
229 | * @author: renchao | ||
230 | */ | ||
210 | handleSearchResult () { | 231 | handleSearchResult () { |
211 | this.queryClickSearch() | 232 | this.queryClickSearch() |
212 | }, | 233 | }, |
213 | // 详情 | 234 | // 详情 |
235 | /** | ||
236 | * @description: 详情 | ||
237 | * @author: renchao | ||
238 | */ | ||
214 | handleDetails (row) { | 239 | handleDetails (row) { |
215 | } | 240 | } |
216 | } | 241 | } | ... | ... |
... | @@ -176,10 +176,19 @@ | ... | @@ -176,10 +176,19 @@ |
176 | }, | 176 | }, |
177 | methods: { | 177 | methods: { |
178 | //截止日期变化 | 178 | //截止日期变化 |
179 | /** | ||
180 | * @description: 截止日期变化 | ||
181 | * @param {*} val | ||
182 | * @author: renchao | ||
183 | */ | ||
179 | endTimeChange (val) { | 184 | endTimeChange (val) { |
180 | this.form.receiveEndTime = timeFormat(new Date(val), true) | 185 | this.form.receiveEndTime = timeFormat(new Date(val), true) |
181 | }, | 186 | }, |
182 | // 初始化数据 | 187 | // 初始化数据 |
188 | /** | ||
189 | * @description: 初始化数据 | ||
190 | * @author: renchao | ||
191 | */ | ||
183 | queryClick () { | 192 | queryClick () { |
184 | getSearchRecordList({ ...this.form, ...this.formData }).then( | 193 | getSearchRecordList({ ...this.form, ...this.formData }).then( |
185 | (res) => { | 194 | (res) => { |
... | @@ -193,21 +202,37 @@ | ... | @@ -193,21 +202,37 @@ |
193 | ) | 202 | ) |
194 | }, | 203 | }, |
195 | // 重置 | 204 | // 重置 |
205 | /** | ||
206 | * @description: 重置 | ||
207 | * @author: renchao | ||
208 | */ | ||
196 | resetForm () { | 209 | resetForm () { |
197 | this.$refs.ruleForm.resetFields(); | 210 | this.$refs.ruleForm.resetFields(); |
198 | this.form.currentPage = 1 | 211 | this.form.currentPage = 1 |
199 | this.queryClick(); | 212 | this.queryClick(); |
200 | }, | 213 | }, |
214 | /** | ||
215 | * @description: featchData | ||
216 | * @author: renchao | ||
217 | */ | ||
201 | featchData () { | 218 | featchData () { |
202 | this.queryClick(); | 219 | this.queryClick(); |
203 | }, | 220 | }, |
204 | // 详情 | 221 | // 详情 |
222 | /** | ||
223 | * @description: 详情 | ||
224 | * @author: renchao | ||
225 | */ | ||
205 | handleDetails (row) { | 226 | handleDetails (row) { |
206 | editSearchRecord(row.bsm).then(res => { | 227 | editSearchRecord(row.bsm).then(res => { |
207 | this.dialogVisible = true | 228 | this.dialogVisible = true |
208 | this.dataDetail = res.result | 229 | this.dataDetail = res.result |
209 | }) | 230 | }) |
210 | }, | 231 | }, |
232 | /** | ||
233 | * @description: save | ||
234 | * @author: renchao | ||
235 | */ | ||
211 | save () { | 236 | save () { |
212 | this.dialogVisible = true | 237 | this.dialogVisible = true |
213 | } | 238 | } | ... | ... |
... | @@ -238,6 +238,11 @@ | ... | @@ -238,6 +238,11 @@ |
238 | }; | 238 | }; |
239 | }, | 239 | }, |
240 | methods: { | 240 | methods: { |
241 | /** | ||
242 | * @description: uploadRecord | ||
243 | * @param {*} file | ||
244 | * @author: renchao | ||
245 | */ | ||
241 | uploadRecord (file) { | 246 | uploadRecord (file) { |
242 | this.requested = true | 247 | this.requested = true |
243 | this.files = file; | 248 | this.files = file; |
... | @@ -253,6 +258,11 @@ | ... | @@ -253,6 +258,11 @@ |
253 | } | 258 | } |
254 | return (extension) && isLt5M | 259 | return (extension) && isLt5M |
255 | }, | 260 | }, |
261 | /** | ||
262 | * @description: fileChange | ||
263 | * @param {*} res | ||
264 | * @author: renchao | ||
265 | */ | ||
256 | fileChange (res) { | 266 | fileChange (res) { |
257 | let fd = new FormData() | 267 | let fd = new FormData() |
258 | fd.append('files', res.raw)// 文件对象 | 268 | fd.append('files', res.raw)// 文件对象 |
... | @@ -269,10 +279,19 @@ | ... | @@ -269,10 +279,19 @@ |
269 | }) | 279 | }) |
270 | }, | 280 | }, |
271 | //截止日期变化 | 281 | //截止日期变化 |
282 | /** | ||
283 | * @description: 截止日期变化 | ||
284 | * @param {*} val | ||
285 | * @author: renchao | ||
286 | */ | ||
272 | endTimeChange (val) { | 287 | endTimeChange (val) { |
273 | this.form.receiveEndTime = timeFormat(new Date(val), true) | 288 | this.form.receiveEndTime = timeFormat(new Date(val), true) |
274 | }, | 289 | }, |
275 | // 初始化数据 | 290 | // 初始化数据 |
291 | /** | ||
292 | * @description: 初始化数据 | ||
293 | * @author: renchao | ||
294 | */ | ||
276 | queryClick () { | 295 | queryClick () { |
277 | getReceiveDataReportPage({ ...this.form, ...this.formData }).then( | 296 | getReceiveDataReportPage({ ...this.form, ...this.formData }).then( |
278 | (res) => { | 297 | (res) => { |
... | @@ -286,19 +305,37 @@ | ... | @@ -286,19 +305,37 @@ |
286 | ) | 305 | ) |
287 | }, | 306 | }, |
288 | // 重置 | 307 | // 重置 |
308 | /** | ||
309 | * @description: 重置 | ||
310 | * @author: renchao | ||
311 | */ | ||
289 | resetForm () { | 312 | resetForm () { |
290 | this.$refs.ruleForm.resetFields(); | 313 | this.$refs.ruleForm.resetFields(); |
291 | this.form.currentPage = 1 | 314 | this.form.currentPage = 1 |
292 | this.queryClick(); | 315 | this.queryClick(); |
293 | }, | 316 | }, |
317 | /** | ||
318 | * @description: featchData | ||
319 | * @author: renchao | ||
320 | */ | ||
294 | featchData () { | 321 | featchData () { |
295 | this.queryClick(); | 322 | this.queryClick(); |
296 | }, | 323 | }, |
297 | // 结果 | 324 | // 结果 |
325 | /** | ||
326 | * @description: 结果 | ||
327 | * @param {*} row | ||
328 | * @author: renchao | ||
329 | */ | ||
298 | handleResult (row) { | 330 | handleResult (row) { |
299 | this.$popupDialog('响应结果', 'views/jsbwcx/components/result', row) | 331 | this.$popupDialog('响应结果', 'views/jsbwcx/components/result', row) |
300 | }, | 332 | }, |
301 | // 详情 | 333 | // 详情 |
334 | /** | ||
335 | * @description: 详情 | ||
336 | * @param {*} row | ||
337 | * @author: renchao | ||
338 | */ | ||
302 | handleDetails (row) { | 339 | handleDetails (row) { |
303 | if (row.rectypeName) { | 340 | if (row.rectypeName) { |
304 | this.title = row.rectypeName | 341 | this.title = row.rectypeName | ... | ... |
-
Please register or sign in to post a comment