增加注释
Showing
9 changed files
with
207 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 || '/', | ... | ... |
| ... | @@ -83,10 +83,19 @@ | ... | @@ -83,10 +83,19 @@ |
| 83 | ...mapGetters(["dicData"]), | 83 | ...mapGetters(["dicData"]), |
| 84 | }, | 84 | }, |
| 85 | methods: { | 85 | methods: { |
| 86 | /** | ||
| 87 | * @description: endTimeChange | ||
| 88 | * @param {*} val | ||
| 89 | * @author: renchao | ||
| 90 | */ | ||
| 86 | endTimeChange (val) { | 91 | endTimeChange (val) { |
| 87 | this.form.endTime = timeFormat(new Date(val), true); | 92 | this.form.endTime = timeFormat(new Date(val), true); |
| 88 | }, | 93 | }, |
| 89 | //查询各区县办件数量 | 94 | //查询各区县办件数量 |
| 95 | /** | ||
| 96 | * @description: 查询各区县办件数量 | ||
| 97 | * @author: renchao | ||
| 98 | */ | ||
| 90 | async getProcessCounts () { | 99 | async getProcessCounts () { |
| 91 | this.pieChartsData = []; | 100 | this.pieChartsData = []; |
| 92 | let { result: res } = await efficient.getProcessCounts( | 101 | let { result: res } = await efficient.getProcessCounts( |
| ... | @@ -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 | this.getProcessCounts(); | 134 | this.getProcessCounts(); |
| 122 | }, | 135 | }, |
| 123 | //玫瑰图初始化 | 136 | //玫瑰图初始化 |
| 137 | /** | ||
| 138 | * @description: 玫瑰图初始化 | ||
| 139 | * @author: renchao | ||
| 140 | */ | ||
| 124 | echartInit () { | 141 | echartInit () { |
| 125 | let _this = this; | 142 | let _this = this; |
| 126 | // 基于准备好的dom,初始化echarts实例 | 143 | // 基于准备好的dom,初始化echarts实例 |
| ... | @@ -185,6 +202,11 @@ | ... | @@ -185,6 +202,11 @@ |
| 185 | }); | 202 | }); |
| 186 | }, | 203 | }, |
| 187 | //柱图初始化 | 204 | //柱图初始化 |
| 205 | /** | ||
| 206 | * @description: 柱图初始化 | ||
| 207 | * @param {*} recType | ||
| 208 | * @author: renchao | ||
| 209 | */ | ||
| 188 | async barChartInit (recType) { | 210 | async barChartInit (recType) { |
| 189 | //请求recType对应业务的各区县数据 | 211 | //请求recType对应业务的各区县数据 |
| 190 | let { result: res } = await efficient.getProcessDays( | 212 | let { result: res } = await efficient.getProcessDays( | ... | ... |
| ... | @@ -94,9 +94,18 @@ | ... | @@ -94,9 +94,18 @@ |
| 94 | ...mapGetters(["dicData"]), | 94 | ...mapGetters(["dicData"]), |
| 95 | }, | 95 | }, |
| 96 | methods: { | 96 | methods: { |
| 97 | /** | ||
| 98 | * @description: endTimeChange | ||
| 99 | * @param {*} val | ||
| 100 | * @author: renchao | ||
| 101 | */ | ||
| 97 | endTimeChange (val) { | 102 | endTimeChange (val) { |
| 98 | this.form.endTime = timeFormat(new Date(val), true) | 103 | this.form.endTime = timeFormat(new Date(val), true) |
| 99 | }, | 104 | }, |
| 105 | /** | ||
| 106 | * @description: getSuucessRate | ||
| 107 | * @author: renchao | ||
| 108 | */ | ||
| 100 | async getSuucessRate () { | 109 | async getSuucessRate () { |
| 101 | this.recTypeArr = []; | 110 | this.recTypeArr = []; |
| 102 | this.chartData = []; | 111 | this.chartData = []; |
| ... | @@ -120,6 +129,10 @@ | ... | @@ -120,6 +129,10 @@ |
| 120 | }); | 129 | }); |
| 121 | }, | 130 | }, |
| 122 | // 重置 | 131 | // 重置 |
| 132 | /** | ||
| 133 | * @description: 重置 | ||
| 134 | * @author: renchao | ||
| 135 | */ | ||
| 123 | resetForm () { | 136 | resetForm () { |
| 124 | this.form = { | 137 | this.form = { |
| 125 | startTime: getFirstDayOfSeason(), | 138 | startTime: getFirstDayOfSeason(), |
| ... | @@ -128,6 +141,10 @@ | ... | @@ -128,6 +141,10 @@ |
| 128 | }; | 141 | }; |
| 129 | this.getSuucessRate(); | 142 | this.getSuucessRate(); |
| 130 | }, | 143 | }, |
| 144 | /** | ||
| 145 | * @description: echartInit | ||
| 146 | * @author: renchao | ||
| 147 | */ | ||
| 131 | echartInit () { | 148 | echartInit () { |
| 132 | let _this = this; | 149 | let _this = this; |
| 133 | // 基于准备好的dom,初始化echarts实例 | 150 | // 基于准备好的dom,初始化echarts实例 | ... | ... |
| ... | @@ -137,12 +137,26 @@ | ... | @@ -137,12 +137,26 @@ |
| 137 | this.generateFileName() | 137 | this.generateFileName() |
| 138 | }, | 138 | }, |
| 139 | methods: { | 139 | methods: { |
| 140 | /** | ||
| 141 | * @description: handleSearch | ||
| 142 | * @author: renchao | ||
| 143 | */ | ||
| 140 | handleSearch () { }, | 144 | handleSearch () { }, |
| 141 | // 生成文件名 | 145 | // 生成文件名 |
| 146 | /** | ||
| 147 | * @description: 生成文件名 | ||
| 148 | * @author: renchao | ||
| 149 | */ | ||
| 142 | generateFileName () { | 150 | generateFileName () { |
| 143 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; | 151 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; |
| 144 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据接入质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` | 152 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据接入质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` |
| 145 | }, | 153 | }, |
| 154 | /** | ||
| 155 | * @description: headerStyle | ||
| 156 | * @param {*} row | ||
| 157 | * @param {*} rowIndex | ||
| 158 | * @author: renchao | ||
| 159 | */ | ||
| 146 | headerStyle ({ row, rowIndex }) { | 160 | headerStyle ({ row, rowIndex }) { |
| 147 | if (rowIndex == 4) { | 161 | if (rowIndex == 4) { |
| 148 | row[2].rowSpan = 2; | 162 | row[2].rowSpan = 2; |
| ... | @@ -150,6 +164,12 @@ | ... | @@ -150,6 +164,12 @@ |
| 150 | row[4].rowSpan = 2; | 164 | row[4].rowSpan = 2; |
| 151 | } | 165 | } |
| 152 | }, | 166 | }, |
| 167 | /** | ||
| 168 | * @description: headerStyle1 | ||
| 169 | * @param {*} row | ||
| 170 | * @param {*} rowIndex | ||
| 171 | * @author: renchao | ||
| 172 | */ | ||
| 153 | headerStyle1 ({ row, rowIndex }) { | 173 | headerStyle1 ({ row, rowIndex }) { |
| 154 | if (rowIndex == 3) { | 174 | if (rowIndex == 3) { |
| 155 | row[2].rowSpan = 2; | 175 | row[2].rowSpan = 2; |
| ... | @@ -157,6 +177,11 @@ | ... | @@ -157,6 +177,11 @@ |
| 157 | row[4].rowSpan = 2; | 177 | row[4].rowSpan = 2; |
| 158 | } | 178 | } |
| 159 | }, | 179 | }, |
| 180 | /** | ||
| 181 | * @description: handlesetExport2Excel | ||
| 182 | * @param {*} val | ||
| 183 | * @author: renchao | ||
| 184 | */ | ||
| 160 | handlesetExport2Excel (val) { | 185 | handlesetExport2Excel (val) { |
| 161 | this.disableds = true | 186 | this.disableds = true |
| 162 | setTimeout(() => { | 187 | setTimeout(() => { |
| ... | @@ -166,6 +191,10 @@ | ... | @@ -166,6 +191,10 @@ |
| 166 | setExport2Excel(val) | 191 | setExport2Excel(val) |
| 167 | }, | 192 | }, |
| 168 | // 初始化数据 | 193 | // 初始化数据 |
| 194 | /** | ||
| 195 | * @description: 初始化数据 | ||
| 196 | * @author: renchao | ||
| 197 | */ | ||
| 169 | featchDataSelf () { | 198 | featchDataSelf () { |
| 170 | dataReceiveQuality(this.form.startTime, this.form.endTime).then(res => { | 199 | dataReceiveQuality(this.form.startTime, this.form.endTime).then(res => { |
| 171 | let records = res.result | 200 | let records = res.result |
| ... | @@ -173,6 +202,10 @@ | ... | @@ -173,6 +202,10 @@ |
| 173 | }) | 202 | }) |
| 174 | }, | 203 | }, |
| 175 | // 重置 | 204 | // 重置 |
| 205 | /** | ||
| 206 | * @description: 重置 | ||
| 207 | * @author: renchao | ||
| 208 | */ | ||
| 176 | handleResetForm () { | 209 | handleResetForm () { |
| 177 | this.form.startTime = getCurrentDate() | 210 | this.form.startTime = getCurrentDate() |
| 178 | this.form.endTime = getCurrentDate('time') | 211 | this.form.endTime = getCurrentDate('time') | ... | ... |
| ... | @@ -134,14 +134,27 @@ | ... | @@ -134,14 +134,27 @@ |
| 134 | }, | 134 | }, |
| 135 | methods: { | 135 | methods: { |
| 136 | // 生成文件名 | 136 | // 生成文件名 |
| 137 | /** | ||
| 138 | * @description: 生成文件名 | ||
| 139 | * @author: renchao | ||
| 140 | */ | ||
| 137 | generateFileName () { | 141 | generateFileName () { |
| 138 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; | 142 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; |
| 139 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据相关字段空项率统计(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` | 143 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据相关字段空项率统计(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` |
| 140 | }, | 144 | }, |
| 145 | /** | ||
| 146 | * @description: handlesetExport2Excel | ||
| 147 | * @param {*} val | ||
| 148 | * @author: renchao | ||
| 149 | */ | ||
| 141 | handlesetExport2Excel (val) { | 150 | handlesetExport2Excel (val) { |
| 142 | setExport2Excel(val) | 151 | setExport2Excel(val) |
| 143 | }, | 152 | }, |
| 144 | // 初始化数据 | 153 | // 初始化数据 |
| 154 | /** | ||
| 155 | * @description: 初始化数据 | ||
| 156 | * @author: renchao | ||
| 157 | */ | ||
| 145 | featchDataSelf () { | 158 | featchDataSelf () { |
| 146 | nonNullSta(this.form.startTime, this.form.endTime).then(res => { | 159 | nonNullSta(this.form.startTime, this.form.endTime).then(res => { |
| 147 | let records = res.result | 160 | let records = res.result |
| ... | @@ -149,6 +162,10 @@ | ... | @@ -149,6 +162,10 @@ |
| 149 | }) | 162 | }) |
| 150 | }, | 163 | }, |
| 151 | // 重置 | 164 | // 重置 |
| 165 | /** | ||
| 166 | * @description: 重置 | ||
| 167 | * @author: renchao | ||
| 168 | */ | ||
| 152 | handleResetForm () { | 169 | handleResetForm () { |
| 153 | this.form.startTime = getCurrentDate() | 170 | this.form.startTime = getCurrentDate() |
| 154 | this.form.endTime = getCurrentDate('time') | 171 | this.form.endTime = getCurrentDate('time') | ... | ... |
| ... | @@ -151,15 +151,34 @@ | ... | @@ -151,15 +151,34 @@ |
| 151 | 151 | ||
| 152 | }, | 152 | }, |
| 153 | methods: { | 153 | methods: { |
| 154 | /** | ||
| 155 | * @description: handleSearch | ||
| 156 | * @author: renchao | ||
| 157 | */ | ||
| 154 | handleSearch () { }, | 158 | handleSearch () { }, |
| 155 | // 生成文件名 | 159 | // 生成文件名 |
| 160 | /** | ||
| 161 | * @description: 生成文件名 | ||
| 162 | * @author: renchao | ||
| 163 | */ | ||
| 156 | generateFileName () { | 164 | generateFileName () { |
| 157 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; | 165 | var reg = /(\d{4})\-(\d{2})\-(\d{2})/; |
| 158 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据登簿质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` | 166 | this.downTitle = this.BASE_API.XZQ + `不动产登记增量数据登簿质量评价表(${this.form.startTime.replace(reg, "$1年$2月$3日")}至${this.form.endTime.replace(reg, "$1年$2月$3日")})` |
| 159 | }, | 167 | }, |
| 168 | /** | ||
| 169 | * @description: handlesetExport2Excel | ||
| 170 | * @param {*} val | ||
| 171 | * @author: renchao | ||
| 172 | */ | ||
| 160 | handlesetExport2Excel (val) { | 173 | handlesetExport2Excel (val) { |
| 161 | setExport2Excel(val) | 174 | setExport2Excel(val) |
| 162 | }, | 175 | }, |
| 176 | /** | ||
| 177 | * @description: headerStyle | ||
| 178 | * @param {*} row | ||
| 179 | * @param {*} rowIndex | ||
| 180 | * @author: renchao | ||
| 181 | */ | ||
| 163 | headerStyle ({ row, rowIndex }) { | 182 | headerStyle ({ row, rowIndex }) { |
| 164 | if (rowIndex == 1) { | 183 | if (rowIndex == 1) { |
| 165 | row.forEach(item => { | 184 | row.forEach(item => { |
| ... | @@ -167,6 +186,12 @@ | ... | @@ -167,6 +186,12 @@ |
| 167 | }) | 186 | }) |
| 168 | } | 187 | } |
| 169 | }, | 188 | }, |
| 189 | /** | ||
| 190 | * @description: headerStyle1 | ||
| 191 | * @param {*} row | ||
| 192 | * @param {*} rowIndex | ||
| 193 | * @author: renchao | ||
| 194 | */ | ||
| 170 | headerStyle1 ({ row, rowIndex }) { | 195 | headerStyle1 ({ row, rowIndex }) { |
| 171 | if (rowIndex == 2) { | 196 | if (rowIndex == 2) { |
| 172 | row.forEach(item => { | 197 | row.forEach(item => { |
| ... | @@ -175,6 +200,10 @@ | ... | @@ -175,6 +200,10 @@ |
| 175 | } | 200 | } |
| 176 | }, | 201 | }, |
| 177 | // 初始化数据 | 202 | // 初始化数据 |
| 203 | /** | ||
| 204 | * @description: 初始化数据 | ||
| 205 | * @author: renchao | ||
| 206 | */ | ||
| 178 | featchDataSelf () { | 207 | featchDataSelf () { |
| 179 | registerBookQuality(this.form.startTime, this.form.endTime).then(res => { | 208 | registerBookQuality(this.form.startTime, this.form.endTime).then(res => { |
| 180 | let records = res.result | 209 | let records = res.result |
| ... | @@ -182,6 +211,10 @@ | ... | @@ -182,6 +211,10 @@ |
| 182 | }) | 211 | }) |
| 183 | }, | 212 | }, |
| 184 | // 重置 | 213 | // 重置 |
| 214 | /** | ||
| 215 | * @description: 重置 | ||
| 216 | * @author: renchao | ||
| 217 | */ | ||
| 185 | handleResetForm () { | 218 | handleResetForm () { |
| 186 | this.form.startTime = getCurrentDate() | 219 | this.form.startTime = getCurrentDate() |
| 187 | this.form.endTime = getCurrentDate('time') | 220 | this.form.endTime = getCurrentDate('time') | ... | ... |
| ... | @@ -93,9 +93,18 @@ | ... | @@ -93,9 +93,18 @@ |
| 93 | ...mapGetters(["dicData"]), | 93 | ...mapGetters(["dicData"]), |
| 94 | }, | 94 | }, |
| 95 | methods: { | 95 | methods: { |
| 96 | /** | ||
| 97 | * @description: endTimeChange | ||
| 98 | * @param {*} val | ||
| 99 | * @author: renchao | ||
| 100 | */ | ||
| 96 | endTimeChange (val) { | 101 | endTimeChange (val) { |
| 97 | this.form.endTime = timeFormat(new Date(val), true) | 102 | this.form.endTime = timeFormat(new Date(val), true) |
| 98 | }, | 103 | }, |
| 104 | /** | ||
| 105 | * @description: getProcessCounts | ||
| 106 | * @author: renchao | ||
| 107 | */ | ||
| 99 | async getProcessCounts () { | 108 | async getProcessCounts () { |
| 100 | this.chartData = []; | 109 | this.chartData = []; |
| 101 | let { result: res } = await efficient.getProcessCounts( | 110 | let { result: res } = await efficient.getProcessCounts( |
| ... | @@ -112,6 +121,10 @@ | ... | @@ -112,6 +121,10 @@ |
| 112 | 121 | ||
| 113 | }, | 122 | }, |
| 114 | // 重置 | 123 | // 重置 |
| 124 | /** | ||
| 125 | * @description: 重置 | ||
| 126 | * @author: renchao | ||
| 127 | */ | ||
| 115 | resetForm () { | 128 | resetForm () { |
| 116 | this.form = { | 129 | this.form = { |
| 117 | startTime: getFirstDayOfSeason(), | 130 | startTime: getFirstDayOfSeason(), |
| ... | @@ -121,6 +134,11 @@ | ... | @@ -121,6 +134,11 @@ |
| 121 | this.getProcessCounts(); | 134 | this.getProcessCounts(); |
| 122 | }, | 135 | }, |
| 123 | //图表渲染 | 136 | //图表渲染 |
| 137 | /** | ||
| 138 | * @description: 图表渲染 | ||
| 139 | * @param {*} chartArr | ||
| 140 | * @author: renchao | ||
| 141 | */ | ||
| 124 | echartInit (chartArr) { | 142 | echartInit (chartArr) { |
| 125 | // 基于准备好的dom,初始化echarts实例 | 143 | // 基于准备好的dom,初始化echarts实例 |
| 126 | let myChart = this.$echarts.init(document.getElementById("myChart")); | 144 | let myChart = this.$echarts.init(document.getElementById("myChart")); | ... | ... |
| ... | @@ -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 | ... | ... |
| ... | @@ -123,6 +123,10 @@ export default { | ... | @@ -123,6 +123,10 @@ export default { |
| 123 | }, | 123 | }, |
| 124 | methods: { | 124 | methods: { |
| 125 | // 更新验证码 | 125 | // 更新验证码 |
| 126 | /** | ||
| 127 | * @description: 更新验证码 | ||
| 128 | * @author: renchao | ||
| 129 | */ | ||
| 126 | reloadCaptcha(){ | 130 | reloadCaptcha(){ |
| 127 | axios.get(window._config.services.management + "/management/captcha?format=json").then(res => { | 131 | axios.get(window._config.services.management + "/management/captcha?format=json").then(res => { |
| 128 | if (res.data.status === 1) { | 132 | if (res.data.status === 1) { |
| ... | @@ -132,6 +136,10 @@ export default { | ... | @@ -132,6 +136,10 @@ export default { |
| 132 | }) | 136 | }) |
| 133 | }, | 137 | }, |
| 134 | // 初始化 | 138 | // 初始化 |
| 139 | /** | ||
| 140 | * @description: 初始化 | ||
| 141 | * @author: renchao | ||
| 142 | */ | ||
| 135 | initPage() { | 143 | initPage() { |
| 136 | let userInfo = | 144 | let userInfo = |
| 137 | localStorage.getItem("userInfo") && | 145 | localStorage.getItem("userInfo") && |
| ... | @@ -142,6 +150,10 @@ export default { | ... | @@ -142,6 +150,10 @@ export default { |
| 142 | } | 150 | } |
| 143 | }, | 151 | }, |
| 144 | // 登录 | 152 | // 登录 |
| 153 | /** | ||
| 154 | * @description: 登录 | ||
| 155 | * @author: renchao | ||
| 156 | */ | ||
| 145 | goHome() { | 157 | goHome() { |
| 146 | if (this.userInfo.username && this.userInfo.password) { | 158 | if (this.userInfo.username && this.userInfo.password) { |
| 147 | axios | 159 | axios |
| ... | @@ -165,13 +177,27 @@ export default { | ... | @@ -165,13 +177,27 @@ export default { |
| 165 | return | 177 | return |
| 166 | } | 178 | } |
| 167 | }, | 179 | }, |
| 180 | /** | ||
| 181 | * @description: selectEyes | ||
| 182 | * @author: renchao | ||
| 183 | */ | ||
| 168 | selectEyes() { | 184 | selectEyes() { |
| 169 | this.selectEye = !this.selectEye; | 185 | this.selectEye = !this.selectEye; |
| 170 | }, | 186 | }, |
| 171 | //获取焦点 | 187 | //获取焦点 |
| 188 | /** | ||
| 189 | * @description: 获取焦点 | ||
| 190 | * @param {*} type | ||
| 191 | * @author: renchao | ||
| 192 | */ | ||
| 172 | reduceBorder(type) { | 193 | reduceBorder(type) { |
| 173 | this.change[type] = true | 194 | this.change[type] = true |
| 174 | }, | 195 | }, |
| 196 | /** | ||
| 197 | * @description: addBorder | ||
| 198 | * @param {*} type | ||
| 199 | * @author: renchao | ||
| 200 | */ | ||
| 175 | addBorder(type) { | 201 | addBorder(type) { |
| 176 | //失去焦点 | 202 | //失去焦点 |
| 177 | switch (type) { | 203 | switch (type) { | ... | ... |
-
Please register or sign in to post a comment