增加注释
Showing
13 changed files
with
369 additions
and
11 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-19 16:04:43 | 4 | * @LastEditTime: 2023-07-19 16:04:43 |
5 | --> | 5 | --> |
... | @@ -53,6 +53,10 @@ | ... | @@ -53,6 +53,10 @@ |
53 | }, | 53 | }, |
54 | 54 | ||
55 | methods: { | 55 | methods: { |
56 | /** | ||
57 | * @description: submitForm | ||
58 | * @author: renchao | ||
59 | */ | ||
56 | submitForm () { | 60 | submitForm () { |
57 | let that = this; | 61 | let that = this; |
58 | that.$refs.ruleForm.validate(valid => { | 62 | that.$refs.ruleForm.validate(valid => { |
... | @@ -74,18 +78,35 @@ | ... | @@ -74,18 +78,35 @@ |
74 | }); | 78 | }); |
75 | }, | 79 | }, |
76 | //关闭窗口 | 80 | //关闭窗口 |
81 | /** | ||
82 | * @description: 关闭窗口 | ||
83 | * @author: renchao | ||
84 | */ | ||
77 | closeDialog () { | 85 | closeDialog () { |
78 | this.$emit("input", false); | 86 | this.$emit("input", false); |
79 | this.resetRuleForm(); | 87 | this.resetRuleForm(); |
80 | }, | 88 | }, |
81 | // | 89 | /** |
90 | * @description: resetRuleForm | ||
91 | * @author: renchao | ||
92 | */ | ||
82 | resetRuleForm () { | 93 | resetRuleForm () { |
83 | this.$refs['ruleForm'].resetFields(); | 94 | this.$refs['ruleForm'].resetFields(); |
84 | this.ruleForm.noticeType = '2' | 95 | this.ruleForm.noticeType = '2' |
85 | }, | 96 | }, |
97 | /** | ||
98 | * @description: beforeUpload | ||
99 | * @param {*} file | ||
100 | * @author: renchao | ||
101 | */ | ||
86 | beforeUpload (file) { | 102 | beforeUpload (file) { |
87 | return true; | 103 | return true; |
88 | }, | 104 | }, |
105 | /** | ||
106 | * @description: handleChange | ||
107 | * @param {*} file | ||
108 | * @author: renchao | ||
109 | */ | ||
89 | async handleChange (file) { | 110 | async handleChange (file) { |
90 | var formdata = new FormData(); | 111 | var formdata = new FormData(); |
91 | formdata.append("file", file.raw); | 112 | formdata.append("file", file.raw); | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-19 16:04:47 | 4 | * @LastEditTime: 2023-07-19 16:04:47 |
5 | --> | 5 | --> |
... | @@ -63,6 +63,10 @@ | ... | @@ -63,6 +63,10 @@ |
63 | }, | 63 | }, |
64 | methods: { | 64 | methods: { |
65 | // 列表渲染接口 | 65 | // 列表渲染接口 |
66 | /** | ||
67 | * @description: 列表渲染接口 | ||
68 | * @author: renchao | ||
69 | */ | ||
66 | queryClick () { | 70 | queryClick () { |
67 | this.$startLoading() | 71 | this.$startLoading() |
68 | getSysPolicyList({ ...this.ruleForm, ...this.pageData }, { 'target': '#flfgLoading' }).then(res => { | 72 | getSysPolicyList({ ...this.ruleForm, ...this.pageData }, { 'target': '#flfgLoading' }).then(res => { |
... | @@ -75,14 +79,28 @@ | ... | @@ -75,14 +79,28 @@ |
75 | }) | 79 | }) |
76 | }, | 80 | }, |
77 | //打开新增弹窗 | 81 | //打开新增弹窗 |
82 | /** | ||
83 | * @description: 打开新增弹窗 | ||
84 | * @author: renchao | ||
85 | */ | ||
78 | openDialog () { | 86 | openDialog () { |
79 | this.isDialog = true; | 87 | this.isDialog = true; |
80 | }, | 88 | }, |
89 | /** | ||
90 | * @description: downloadFile | ||
91 | * @param {*} item | ||
92 | * @author: renchao | ||
93 | */ | ||
81 | downloadFile (item) { | 94 | downloadFile (item) { |
82 | const href = item.noticeFileUrl | 95 | const href = item.noticeFileUrl |
83 | window.open(href, '_blank'); | 96 | window.open(href, '_blank'); |
84 | }, | 97 | }, |
85 | //删除 | 98 | //删除 |
99 | /** | ||
100 | * @description: 删除 | ||
101 | * @param {*} item | ||
102 | * @author: renchao | ||
103 | */ | ||
86 | delNotice (item) { | 104 | delNotice (item) { |
87 | this.$confirm('是否确定删除', '提示', { | 105 | this.$confirm('是否确定删除', '提示', { |
88 | confirmButtonText: '确定', | 106 | confirmButtonText: '确定', | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-19 16:04:58 | 4 | * @LastEditTime: 2023-07-19 16:04:58 |
5 | --> | 5 | --> |
... | @@ -205,9 +205,18 @@ | ... | @@ -205,9 +205,18 @@ |
205 | } | 205 | } |
206 | }, | 206 | }, |
207 | methods: { | 207 | methods: { |
208 | /** | ||
209 | * @description: handleSelect | ||
210 | * @param {*} index | ||
211 | * @author: renchao | ||
212 | */ | ||
208 | handleSelect (index) { | 213 | handleSelect (index) { |
209 | this.n = index | 214 | this.n = index |
210 | }, | 215 | }, |
216 | /** | ||
217 | * @description: submitForm | ||
218 | * @author: renchao | ||
219 | */ | ||
211 | submitForm () { | 220 | submitForm () { |
212 | let that = this | 221 | let that = this |
213 | updateSysSqywmbsz(this.ruleForm).then(res => { | 222 | updateSysSqywmbsz(this.ruleForm).then(res => { | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-19 14:09:29 | 4 | * @LastEditTime: 2023-07-19 14:09:29 |
5 | --> | 5 | --> |
... | @@ -65,6 +65,10 @@ | ... | @@ -65,6 +65,10 @@ |
65 | }, | 65 | }, |
66 | methods: { | 66 | methods: { |
67 | // 初始化数据 | 67 | // 初始化数据 |
68 | /** | ||
69 | * @description: 初始化数据 | ||
70 | * @author: renchao | ||
71 | */ | ||
68 | queryClick () { | 72 | queryClick () { |
69 | this.$startLoading(); | 73 | this.$startLoading(); |
70 | sysSqywmbszSearch({ ...this.pageData, ...this.queryForm }).then(res => { | 74 | sysSqywmbszSearch({ ...this.pageData, ...this.queryForm }).then(res => { |
... | @@ -74,6 +78,11 @@ | ... | @@ -74,6 +78,11 @@ |
74 | this.tableData.total = total ? total : 0 | 78 | this.tableData.total = total ? total : 0 |
75 | }) | 79 | }) |
76 | }, | 80 | }, |
81 | /** | ||
82 | * @description: editClick | ||
83 | * @param {*} row | ||
84 | * @author: renchao | ||
85 | */ | ||
77 | editClick (row) { | 86 | editClick (row) { |
78 | this.$popupDialog("其他及附记模板", "system/qtjfjmb/components/editDialog", row, '60%') | 87 | this.$popupDialog("其他及附记模板", "system/qtjfjmb/components/editDialog", row, '60%') |
79 | } | 88 | } | ... | ... |
... | @@ -181,6 +181,10 @@ | ... | @@ -181,6 +181,10 @@ |
181 | }, | 181 | }, |
182 | }, | 182 | }, |
183 | methods: { | 183 | methods: { |
184 | /** | ||
185 | * @description: handleAdd | ||
186 | * @author: renchao | ||
187 | */ | ||
184 | handleAdd () { | 188 | handleAdd () { |
185 | this.tableData.push( | 189 | this.tableData.push( |
186 | { | 190 | { |
... | @@ -194,11 +198,22 @@ | ... | @@ -194,11 +198,22 @@ |
194 | ) | 198 | ) |
195 | this.key++ | 199 | this.key++ |
196 | }, | 200 | }, |
201 | /** | ||
202 | * @description: handleSelectGgcl | ||
203 | * @param {*} item | ||
204 | * @author: renchao | ||
205 | */ | ||
197 | handleSelectGgcl (item) { | 206 | handleSelectGgcl (item) { |
198 | if (item.sfggcl == '1') { | 207 | if (item.sfggcl == '1') { |
199 | item.djqxbm = '' | 208 | item.djqxbm = '' |
200 | } | 209 | } |
201 | }, | 210 | }, |
211 | /** | ||
212 | * @description: handleMinus | ||
213 | * @param {*} index | ||
214 | * @param {*} row | ||
215 | * @author: renchao | ||
216 | */ | ||
202 | handleMinus (index, row) { | 217 | handleMinus (index, row) { |
203 | this.$confirm('此操作将永久删除, 是否继续?', '提示', { | 218 | this.$confirm('此操作将永久删除, 是否继续?', '提示', { |
204 | confirmButtonText: '确定', | 219 | confirmButtonText: '确定', |
... | @@ -218,9 +233,21 @@ | ... | @@ -218,9 +233,21 @@ |
218 | }); | 233 | }); |
219 | }, | 234 | }, |
220 | // 上移下移 | 235 | // 上移下移 |
236 | /** | ||
237 | * @description: 上移下移 | ||
238 | * @param {*} index | ||
239 | * @param {*} row | ||
240 | * @author: renchao | ||
241 | */ | ||
221 | moveUpward (index, row) { | 242 | moveUpward (index, row) { |
222 | upward(index, this.tableData) | 243 | upward(index, this.tableData) |
223 | }, | 244 | }, |
245 | /** | ||
246 | * @description: moveDown | ||
247 | * @param {*} index | ||
248 | * @param {*} row | ||
249 | * @author: renchao | ||
250 | */ | ||
224 | moveDown (index, row) { | 251 | moveDown (index, row) { |
225 | down(index, this.tableData) | 252 | down(index, this.tableData) |
226 | }, | 253 | }, |
... | @@ -228,4 +255,4 @@ | ... | @@ -228,4 +255,4 @@ |
228 | } | 255 | } |
229 | </script> | 256 | </script> |
230 | <style scoped lang='scss'> | 257 | <style scoped lang='scss'> |
231 | </style> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
258 | </style> | ... | ... |
... | @@ -181,6 +181,12 @@ | ... | @@ -181,6 +181,12 @@ |
181 | }, | 181 | }, |
182 | methods: { | 182 | methods: { |
183 | // 添加索引 | 183 | // 添加索引 |
184 | /** | ||
185 | * @description: 添加索引 | ||
186 | * @param {*} data | ||
187 | * @param {*} isAdd | ||
188 | * @author: renchao | ||
189 | */ | ||
184 | addIndexes (data = this.tableData, isAdd = true) { | 190 | addIndexes (data = this.tableData, isAdd = true) { |
185 | data.forEach((item, index) => { | 191 | data.forEach((item, index) => { |
186 | if (isAdd) { | 192 | if (isAdd) { |
... | @@ -188,6 +194,10 @@ | ... | @@ -188,6 +194,10 @@ |
188 | } | 194 | } |
189 | }) | 195 | }) |
190 | }, | 196 | }, |
197 | /** | ||
198 | * @description: handleAdd | ||
199 | * @author: renchao | ||
200 | */ | ||
191 | handleAdd () { | 201 | handleAdd () { |
192 | this.$nextTick(() => { | 202 | this.$nextTick(() => { |
193 | let container = this.$el.querySelector('.el-table__body-wrapper'); | 203 | let container = this.$el.querySelector('.el-table__body-wrapper'); |
... | @@ -205,6 +215,12 @@ | ... | @@ -205,6 +215,12 @@ |
205 | this.addIndexes() | 215 | this.addIndexes() |
206 | this.key++ | 216 | this.key++ |
207 | }, | 217 | }, |
218 | /** | ||
219 | * @description: handleMinus | ||
220 | * @param {*} index | ||
221 | * @param {*} row | ||
222 | * @author: renchao | ||
223 | */ | ||
208 | handleMinus (index, row) { | 224 | handleMinus (index, row) { |
209 | this.$confirm('此操作将永久删除, 是否继续?', '提示', { | 225 | this.$confirm('此操作将永久删除, 是否继续?', '提示', { |
210 | confirmButtonText: '确定', | 226 | confirmButtonText: '确定', |
... | @@ -223,6 +239,12 @@ | ... | @@ -223,6 +239,12 @@ |
223 | }); | 239 | }); |
224 | }); | 240 | }); |
225 | }, | 241 | }, |
242 | /** | ||
243 | * @description: nodecodeBlur | ||
244 | * @param {*} index | ||
245 | * @param {*} row | ||
246 | * @author: renchao | ||
247 | */ | ||
226 | nodecodeBlur (index, row) { | 248 | nodecodeBlur (index, row) { |
227 | let list = _.cloneDeep(this.tableData).filter(item => item.bsmSqyw != row.bsmSqyw) | 249 | let list = _.cloneDeep(this.tableData).filter(item => item.bsmSqyw != row.bsmSqyw) |
228 | let arr = list.map(item => item.nodecode) | 250 | let arr = list.map(item => item.nodecode) |
... | @@ -234,10 +256,22 @@ | ... | @@ -234,10 +256,22 @@ |
234 | } | 256 | } |
235 | }, | 257 | }, |
236 | // 上移下移 | 258 | // 上移下移 |
259 | /** | ||
260 | * @description: 上移下移 | ||
261 | * @param {*} index | ||
262 | * @param {*} row | ||
263 | * @author: renchao | ||
264 | */ | ||
237 | moveUpward (index, row) { | 265 | moveUpward (index, row) { |
238 | upward(index, this.tableData) | 266 | upward(index, this.tableData) |
239 | this.key++ | 267 | this.key++ |
240 | }, | 268 | }, |
269 | /** | ||
270 | * @description: moveDown | ||
271 | * @param {*} index | ||
272 | * @param {*} row | ||
273 | * @author: renchao | ||
274 | */ | ||
241 | moveDown (index, row) { | 275 | moveDown (index, row) { |
242 | down(index, this.tableData) | 276 | down(index, this.tableData) |
243 | this.key++ | 277 | this.key++ |
... | @@ -253,4 +287,4 @@ | ... | @@ -253,4 +287,4 @@ |
253 | } | 287 | } |
254 | } | 288 | } |
255 | } | 289 | } |
256 | </style> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
290 | </style> | ... | ... |
... | @@ -89,16 +89,29 @@ | ... | @@ -89,16 +89,29 @@ |
89 | }, | 89 | }, |
90 | }, | 90 | }, |
91 | methods: { | 91 | methods: { |
92 | /** | ||
93 | * @description: handleSelect | ||
94 | * @param {*} item | ||
95 | * @author: renchao | ||
96 | */ | ||
92 | handleSelect (item) { | 97 | handleSelect (item) { |
93 | if (item.checked) { | 98 | if (item.checked) { |
94 | item.selected = '0' | 99 | item.selected = '0' |
95 | } | 100 | } |
96 | }, | 101 | }, |
102 | /** | ||
103 | * @description: handleSelectall | ||
104 | * @author: renchao | ||
105 | */ | ||
97 | handleSelectall () { | 106 | handleSelectall () { |
98 | this.dataList.sxql.forEach(item => { | 107 | this.dataList.sxql.forEach(item => { |
99 | item.checked = true | 108 | item.checked = true |
100 | }) | 109 | }) |
101 | }, | 110 | }, |
111 | /** | ||
112 | * @description: handleInvert | ||
113 | * @author: renchao | ||
114 | */ | ||
102 | handleInvert () { | 115 | handleInvert () { |
103 | this.dataList.sxql.forEach(item => { | 116 | this.dataList.sxql.forEach(item => { |
104 | item.checked = false | 117 | item.checked = false |
... | @@ -154,4 +167,4 @@ | ... | @@ -154,4 +167,4 @@ |
154 | border-right: 1px solid $borderColor; | 167 | border-right: 1px solid $borderColor; |
155 | } | 168 | } |
156 | } | 169 | } |
157 | </style> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
170 | </style> | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-19 14:10:56 | 4 | * @LastEditTime: 2023-07-19 14:10:56 |
5 | --> | 5 | --> |
... | @@ -232,6 +232,11 @@ | ... | @@ -232,6 +232,11 @@ |
232 | }; | 232 | }; |
233 | }, | 233 | }, |
234 | methods: { | 234 | methods: { |
235 | /** | ||
236 | * @description: getSqdjywDetail | ||
237 | * @param {*} bsmSqyw | ||
238 | * @author: renchao | ||
239 | */ | ||
235 | getSqdjywDetail (bsmSqyw) { | 240 | getSqdjywDetail (bsmSqyw) { |
236 | getSqdjywDetail(bsmSqyw).then(res => { | 241 | getSqdjywDetail(bsmSqyw).then(res => { |
237 | this.subData = res.result | 242 | this.subData = res.result |
... | @@ -239,23 +244,44 @@ | ... | @@ -239,23 +244,44 @@ |
239 | this.ruleForm = ywDetail | 244 | this.ruleForm = ywDetail |
240 | }) | 245 | }) |
241 | }, | 246 | }, |
247 | /** | ||
248 | * @description: handleTitleSelct | ||
249 | * @param {*} obj | ||
250 | * @param {*} index | ||
251 | * @author: renchao | ||
252 | */ | ||
242 | handleTitleSelct (obj, index) { | 253 | handleTitleSelct (obj, index) { |
243 | this.n = 0 | 254 | this.n = 0 |
244 | this.tn = index | 255 | this.tn = index |
245 | this.getSqdjywDetail(obj.bsmSqyw) | 256 | this.getSqdjywDetail(obj.bsmSqyw) |
246 | }, | 257 | }, |
258 | /** | ||
259 | * @description: getDjqxValue | ||
260 | * @param {*} val | ||
261 | * @author: renchao | ||
262 | */ | ||
247 | getDjqxValue (val) { | 263 | getDjqxValue (val) { |
248 | if (!_.isEqual(val.djqx, this.subData.djqx)) { | 264 | if (!_.isEqual(val.djqx, this.subData.djqx)) { |
249 | this.subData.djqx = val.djqx | 265 | this.subData.djqx = val.djqx |
250 | this.btnDisabled = val.btnDisabled | 266 | this.btnDisabled = val.btnDisabled |
251 | } | 267 | } |
252 | }, | 268 | }, |
269 | /** | ||
270 | * @description: getClgzValue | ||
271 | * @param {*} val | ||
272 | * @author: renchao | ||
273 | */ | ||
253 | getClgzValue (val) { | 274 | getClgzValue (val) { |
254 | if (!_.isEqual(val, this.subData.clxx)) { | 275 | if (!_.isEqual(val, this.subData.clxx)) { |
255 | this.subData.clxx = val | 276 | this.subData.clxx = val |
256 | } | 277 | } |
257 | }, | 278 | }, |
258 | // 单元状态设定 | 279 | // 单元状态设定 |
280 | /** | ||
281 | * @description: 单元状态设定 | ||
282 | * @param {*} val | ||
283 | * @author: renchao | ||
284 | */ | ||
259 | getDyztsdValue (val) { | 285 | getDyztsdValue (val) { |
260 | if (!_.isEqual(val.sxql, this.subData.sxql)) { | 286 | if (!_.isEqual(val.sxql, this.subData.sxql)) { |
261 | this.subData.sxql = val.sxql | 287 | this.subData.sxql = val.sxql |
... | @@ -264,6 +290,10 @@ | ... | @@ -264,6 +290,10 @@ |
264 | this.subData.sxzt = val.sxzt | 290 | this.subData.sxzt = val.sxzt |
265 | } | 291 | } |
266 | }, | 292 | }, |
293 | /** | ||
294 | * @description: submitForm | ||
295 | * @author: renchao | ||
296 | */ | ||
267 | submitForm () { | 297 | submitForm () { |
268 | this.$refs['ruleForm'].validate(async (valid) => { | 298 | this.$refs['ruleForm'].validate(async (valid) => { |
269 | let that = this | 299 | let that = this |
... | @@ -284,12 +314,26 @@ | ... | @@ -284,12 +314,26 @@ |
284 | } | 314 | } |
285 | }) | 315 | }) |
286 | }, | 316 | }, |
317 | /** | ||
318 | * @description: closeDialog | ||
319 | * @author: renchao | ||
320 | */ | ||
287 | closeDialog () { | 321 | closeDialog () { |
288 | this.$emit('input', false) | 322 | this.$emit('input', false) |
289 | }, | 323 | }, |
324 | /** | ||
325 | * @description: hanldeItem | ||
326 | * @param {*} index | ||
327 | * @author: renchao | ||
328 | */ | ||
290 | hanldeItem (index) { | 329 | hanldeItem (index) { |
291 | this.n = index | 330 | this.n = index |
292 | }, | 331 | }, |
332 | /** | ||
333 | * @description: uploadRecord | ||
334 | * @param {*} file | ||
335 | * @author: renchao | ||
336 | */ | ||
293 | uploadRecord (file) { | 337 | uploadRecord (file) { |
294 | this.requested = true | 338 | this.requested = true |
295 | this.files = file; | 339 | this.files = file; |
... | @@ -306,6 +350,11 @@ | ... | @@ -306,6 +350,11 @@ |
306 | } | 350 | } |
307 | return (extension || extension2) && isLt5M | 351 | return (extension || extension2) && isLt5M |
308 | }, | 352 | }, |
353 | /** | ||
354 | * @description: handleSuccess | ||
355 | * @param {*} res | ||
356 | * @author: renchao | ||
357 | */ | ||
309 | handleSuccess (res) { | 358 | handleSuccess (res) { |
310 | if (res.code === 200) { | 359 | if (res.code === 200) { |
311 | this.requested = false | 360 | this.requested = false | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-19 14:11:05 | 4 | * @LastEditTime: 2023-07-19 14:11:05 |
5 | --> | 5 | --> |
... | @@ -177,6 +177,10 @@ | ... | @@ -177,6 +177,10 @@ |
177 | }, | 177 | }, |
178 | methods: { | 178 | methods: { |
179 | //页面初始化 | 179 | //页面初始化 |
180 | /** | ||
181 | * @description: 页面初始化 | ||
182 | * @author: renchao | ||
183 | */ | ||
180 | init () { | 184 | init () { |
181 | this.tn = 0; | 185 | this.tn = 0; |
182 | getDjlxInfo(this.formData.bsmSqyw).then((res) => { | 186 | getDjlxInfo(this.formData.bsmSqyw).then((res) => { |
... | @@ -189,9 +193,18 @@ | ... | @@ -189,9 +193,18 @@ |
189 | } | 193 | } |
190 | }) | 194 | }) |
191 | }, | 195 | }, |
196 | /** | ||
197 | * @description: orderNoChange | ||
198 | * @author: renchao | ||
199 | */ | ||
192 | orderNoChange () { | 200 | orderNoChange () { |
193 | this.$forceUpdate(); | 201 | this.$forceUpdate(); |
194 | }, | 202 | }, |
203 | /** | ||
204 | * @description: uploadRecord | ||
205 | * @param {*} file | ||
206 | * @author: renchao | ||
207 | */ | ||
195 | uploadRecord (file) { | 208 | uploadRecord (file) { |
196 | this.requested = true | 209 | this.requested = true |
197 | this.files = file; | 210 | this.files = file; |
... | @@ -208,14 +221,29 @@ | ... | @@ -208,14 +221,29 @@ |
208 | } | 221 | } |
209 | return (extension || extension2) && isLt5M | 222 | return (extension || extension2) && isLt5M |
210 | }, | 223 | }, |
224 | /** | ||
225 | * @description: handleSuccess | ||
226 | * @author: renchao | ||
227 | */ | ||
211 | handleSuccess () { }, | 228 | handleSuccess () { }, |
212 | //tab选项卡事件 | 229 | //tab选项卡事件 |
230 | /** | ||
231 | * @description: tab选项卡事件 | ||
232 | * @param {*} obj | ||
233 | * @param {*} index | ||
234 | * @author: renchao | ||
235 | */ | ||
213 | handleTitleSelct (obj, index) { | 236 | handleTitleSelct (obj, index) { |
214 | this.n = 0; | 237 | this.n = 0; |
215 | this.tn = index; | 238 | this.tn = index; |
216 | this.getDetail(this.djlxList[index].bsmSqyw); | 239 | this.getDetail(this.djlxList[index].bsmSqyw); |
217 | }, | 240 | }, |
218 | //获取业务具体明细内容 | 241 | //获取业务具体明细内容 |
242 | /** | ||
243 | * @description: 获取业务具体明细内容 | ||
244 | * @param {*} bsmSqyw | ||
245 | * @author: renchao | ||
246 | */ | ||
219 | getDetail (bsmSqyw) { | 247 | getDetail (bsmSqyw) { |
220 | let _this = this | 248 | let _this = this |
221 | getSqdjywDetail(bsmSqyw).then((res) => { | 249 | getSqdjywDetail(bsmSqyw).then((res) => { |
... | @@ -233,6 +261,10 @@ | ... | @@ -233,6 +261,10 @@ |
233 | }) | 261 | }) |
234 | }, | 262 | }, |
235 | //提交保存数据 | 263 | //提交保存数据 |
264 | /** | ||
265 | * @description: 提交保存数据 | ||
266 | * @author: renchao | ||
267 | */ | ||
236 | submit () { | 268 | submit () { |
237 | let that = this; | 269 | let that = this; |
238 | saveSqdjyw(this.form).then((res) => { | 270 | saveSqdjyw(this.form).then((res) => { |
... | @@ -246,6 +278,13 @@ | ... | @@ -246,6 +278,13 @@ |
246 | }) | 278 | }) |
247 | }, | 279 | }, |
248 | // 上移下移 | 280 | // 上移下移 |
281 | /** | ||
282 | * @description: 上移下移 | ||
283 | * @param {*} index | ||
284 | * @param {*} row | ||
285 | * @param {*} type | ||
286 | * @author: renchao | ||
287 | */ | ||
249 | moveUpward (index, row, type) { | 288 | moveUpward (index, row, type) { |
250 | if (type == "clxx") { | 289 | if (type == "clxx") { |
251 | upward(index, this.form.clxx); | 290 | upward(index, this.form.clxx); |
... | @@ -253,6 +292,13 @@ | ... | @@ -253,6 +292,13 @@ |
253 | upward(index, this.form.djqx); | 292 | upward(index, this.form.djqx); |
254 | } | 293 | } |
255 | }, | 294 | }, |
295 | /** | ||
296 | * @description: moveDown | ||
297 | * @param {*} index | ||
298 | * @param {*} row | ||
299 | * @param {*} type | ||
300 | * @author: renchao | ||
301 | */ | ||
256 | moveDown (index, row, type) { | 302 | moveDown (index, row, type) { |
257 | if (type == "clxx") { | 303 | if (type == "clxx") { |
258 | down(index, this.form.clxx); | 304 | down(index, this.form.clxx); |
... | @@ -260,6 +306,10 @@ | ... | @@ -260,6 +306,10 @@ |
260 | down(index, this.form.djqx); | 306 | down(index, this.form.djqx); |
261 | } | 307 | } |
262 | }, | 308 | }, |
309 | /** | ||
310 | * @description: addDjqx | ||
311 | * @author: renchao | ||
312 | */ | ||
263 | addDjqx () { | 313 | addDjqx () { |
264 | this.form.djqx.push({ | 314 | this.form.djqx.push({ |
265 | nodecode: "", | 315 | nodecode: "", |
... | @@ -269,9 +319,19 @@ | ... | @@ -269,9 +319,19 @@ |
269 | sfqydjyymb: "0", | 319 | sfqydjyymb: "0", |
270 | }); | 320 | }); |
271 | }, | 321 | }, |
322 | /** | ||
323 | * @description: removeDjqx | ||
324 | * @param {*} index | ||
325 | * @param {*} row | ||
326 | * @author: renchao | ||
327 | */ | ||
272 | removeDjqx (index, row) { | 328 | removeDjqx (index, row) { |
273 | this.form.djqx.splice(index, 1); | 329 | this.form.djqx.splice(index, 1); |
274 | }, | 330 | }, |
331 | /** | ||
332 | * @description: addClxx | ||
333 | * @author: renchao | ||
334 | */ | ||
275 | addClxx () { | 335 | addClxx () { |
276 | this.form.clxx.push({ | 336 | this.form.clxx.push({ |
277 | isrequired: "1", | 337 | isrequired: "1", |
... | @@ -282,6 +342,12 @@ | ... | @@ -282,6 +342,12 @@ |
282 | sfggcl: "1", | 342 | sfggcl: "1", |
283 | }); | 343 | }); |
284 | }, | 344 | }, |
345 | /** | ||
346 | * @description: removeClxx | ||
347 | * @param {*} index | ||
348 | * @param {*} row | ||
349 | * @author: renchao | ||
350 | */ | ||
285 | removeClxx (index, row) { | 351 | removeClxx (index, row) { |
286 | this.form.clxx.splice(index, 1); | 352 | this.form.clxx.splice(index, 1); |
287 | } | 353 | } | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-19 14:11:20 | 4 | * @LastEditTime: 2023-07-19 14:11:20 |
5 | --> | 5 | --> |
... | @@ -78,6 +78,10 @@ | ... | @@ -78,6 +78,10 @@ |
78 | }, | 78 | }, |
79 | methods: { | 79 | methods: { |
80 | // 初始化数据 | 80 | // 初始化数据 |
81 | /** | ||
82 | * @description: 初始化数据 | ||
83 | * @author: renchao | ||
84 | */ | ||
81 | queryClick () { | 85 | queryClick () { |
82 | this.$startLoading(); | 86 | this.$startLoading(); |
83 | getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then( | 87 | getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then( |
... | @@ -92,6 +96,11 @@ | ... | @@ -92,6 +96,11 @@ |
92 | ); | 96 | ); |
93 | }, | 97 | }, |
94 | // 修改 | 98 | // 修改 |
99 | /** | ||
100 | * @description: 修改 | ||
101 | * @param {*} row | ||
102 | * @author: renchao | ||
103 | */ | ||
95 | editClick (row) { | 104 | editClick (row) { |
96 | this.sqqlRule = row; | 105 | this.sqqlRule = row; |
97 | // this.dialogVisible = true; | 106 | // this.dialogVisible = true; | ... | ... |
... | @@ -156,6 +156,10 @@ export default { | ... | @@ -156,6 +156,10 @@ export default { |
156 | } | 156 | } |
157 | }, | 157 | }, |
158 | methods: { | 158 | methods: { |
159 | /** | ||
160 | * @description: submitForm | ||
161 | * @author: renchao | ||
162 | */ | ||
159 | submitForm () { | 163 | submitForm () { |
160 | let that = this; | 164 | let that = this; |
161 | that.$refs.ruleForm.validate(valid => { | 165 | that.$refs.ruleForm.validate(valid => { |
... | @@ -171,11 +175,19 @@ export default { | ... | @@ -171,11 +175,19 @@ export default { |
171 | }); | 175 | }); |
172 | }, | 176 | }, |
173 | //关闭窗口 | 177 | //关闭窗口 |
178 | /** | ||
179 | * @description: 关闭窗口 | ||
180 | * @author: renchao | ||
181 | */ | ||
174 | closeDialog () { | 182 | closeDialog () { |
175 | this.$popupCacel() | 183 | this.$popupCacel() |
176 | this.resetRuleForm(); | 184 | this.resetRuleForm(); |
177 | }, | 185 | }, |
178 | //新增通知 | 186 | //新增通知 |
187 | /** | ||
188 | * @description: 新增通知 | ||
189 | * @author: renchao | ||
190 | */ | ||
179 | addNotice () { | 191 | addNotice () { |
180 | // 解决报错 | 192 | // 解决报错 |
181 | // this.ruleForm.noticeType = "1" | 193 | // this.ruleForm.noticeType = "1" |
... | @@ -191,6 +203,10 @@ export default { | ... | @@ -191,6 +203,10 @@ export default { |
191 | }); | 203 | }); |
192 | }, | 204 | }, |
193 | //编辑通知 | 205 | //编辑通知 |
206 | /** | ||
207 | * @description: 编辑通知 | ||
208 | * @author: renchao | ||
209 | */ | ||
194 | editNotice () { | 210 | editNotice () { |
195 | updateSysNotice(this.ruleForm).then(res => { | 211 | updateSysNotice(this.ruleForm).then(res => { |
196 | if (res.code == 200) { | 212 | if (res.code == 200) { |
... | @@ -204,6 +220,10 @@ export default { | ... | @@ -204,6 +220,10 @@ export default { |
204 | }); | 220 | }); |
205 | }, | 221 | }, |
206 | //重置表单 | 222 | //重置表单 |
223 | /** | ||
224 | * @description: 重置表单 | ||
225 | * @author: renchao | ||
226 | */ | ||
207 | resetRuleForm () { | 227 | resetRuleForm () { |
208 | this.ruleForm = { | 228 | this.ruleForm = { |
209 | noticeTitle: "", | 229 | noticeTitle: "", |
... | @@ -214,10 +234,20 @@ export default { | ... | @@ -214,10 +234,20 @@ export default { |
214 | noticeType: "1" | 234 | noticeType: "1" |
215 | } | 235 | } |
216 | }, | 236 | }, |
237 | /** | ||
238 | * @description: beforeUpload | ||
239 | * @param {*} file | ||
240 | * @author: renchao | ||
241 | */ | ||
217 | beforeUpload (file) { | 242 | beforeUpload (file) { |
218 | return true; | 243 | return true; |
219 | }, | 244 | }, |
220 | //附件上传事件 | 245 | //附件上传事件 |
246 | /** | ||
247 | * @description: 附件上传事件 | ||
248 | * @param {*} file | ||
249 | * @author: renchao | ||
250 | */ | ||
221 | async handleChange (file) { | 251 | async handleChange (file) { |
222 | var formdata = new FormData(); | 252 | var formdata = new FormData(); |
223 | formdata.append("file", file.raw); | 253 | formdata.append("file", file.raw); |
... | @@ -226,16 +256,36 @@ export default { | ... | @@ -226,16 +256,36 @@ export default { |
226 | }); | 256 | }); |
227 | }, | 257 | }, |
228 | //富文本图片上传事件 | 258 | //富文本图片上传事件 |
259 | /** | ||
260 | * @description: 富文本图片上传事件 | ||
261 | * @param {*} file | ||
262 | * @author: renchao | ||
263 | */ | ||
229 | RichTexthandleChange (file) { | 264 | RichTexthandleChange (file) { |
230 | this.uploadPicture(file.raw) | 265 | this.uploadPicture(file.raw) |
231 | }, | 266 | }, |
232 | //图片粘贴事件 | 267 | //图片粘贴事件 |
268 | /** | ||
269 | * @description: 图片粘贴事件 | ||
270 | * @param {*} file | ||
271 | * @author: renchao | ||
272 | */ | ||
233 | clipboardPictureChange (file) { | 273 | clipboardPictureChange (file) { |
234 | this.uploadPicture(file) | 274 | this.uploadPicture(file) |
235 | }, | 275 | }, |
276 | /** | ||
277 | * @description: getDetailInfo | ||
278 | * @param {*} item | ||
279 | * @author: renchao | ||
280 | */ | ||
236 | getDetailInfo (item) { | 281 | getDetailInfo (item) { |
237 | this.ruleForm = item | 282 | this.ruleForm = item |
238 | }, | 283 | }, |
284 | /** | ||
285 | * @description: uploadPicture | ||
286 | * @param {*} file | ||
287 | * @author: renchao | ||
288 | */ | ||
239 | uploadPicture (file) { | 289 | uploadPicture (file) { |
240 | let that = this; | 290 | let that = this; |
241 | var formdata = new FormData(); | 291 | var formdata = new FormData(); |
... | @@ -252,22 +302,48 @@ export default { | ... | @@ -252,22 +302,48 @@ export default { |
252 | quill.setSelection(length + 1); | 302 | quill.setSelection(length + 1); |
253 | }); | 303 | }); |
254 | }, | 304 | }, |
305 | /** | ||
306 | * @description: onSubmit | ||
307 | * @author: renchao | ||
308 | */ | ||
255 | onSubmit () { | 309 | onSubmit () { |
256 | //console.log("submit!"); | 310 | //console.log("submit!"); |
257 | }, | 311 | }, |
258 | // 失去焦点事件 | 312 | // 失去焦点事件 |
313 | /** | ||
314 | * @description: 失去焦点事件 | ||
315 | * @param {*} quill | ||
316 | * @author: renchao | ||
317 | */ | ||
259 | onEditorBlur (quill) { | 318 | onEditorBlur (quill) { |
260 | //console.log("editor blur!", quill); | 319 | //console.log("editor blur!", quill); |
261 | }, | 320 | }, |
262 | // 获得焦点事件 | 321 | // 获得焦点事件 |
322 | /** | ||
323 | * @description: 获得焦点事件 | ||
324 | * @param {*} quill | ||
325 | * @author: renchao | ||
326 | */ | ||
263 | onEditorFocus (quill) { | 327 | onEditorFocus (quill) { |
264 | //console.log("editor focus!", quill); | 328 | //console.log("editor focus!", quill); |
265 | }, | 329 | }, |
266 | // 准备富文本编辑器 | 330 | // 准备富文本编辑器 |
331 | /** | ||
332 | * @description: 准备富文本编辑器 | ||
333 | * @param {*} quill | ||
334 | * @author: renchao | ||
335 | */ | ||
267 | onEditorReady (quill) { | 336 | onEditorReady (quill) { |
268 | //console.log("editor ready!", quill); | 337 | //console.log("editor ready!", quill); |
269 | }, | 338 | }, |
270 | // 内容改变事件 | 339 | // 内容改变事件 |
340 | /** | ||
341 | * @description: 内容改变事件 | ||
342 | * @param {*} quill | ||
343 | * @param {*} html | ||
344 | * @param {*} text | ||
345 | * @author: renchao | ||
346 | */ | ||
271 | onEditorChange ({ quill, html, text }) { | 347 | onEditorChange ({ quill, html, text }) { |
272 | //console.log("editor change!", quill, html, text); | 348 | //console.log("editor change!", quill, html, text); |
273 | //this.content = html; | 349 | //this.content = html; | ... | ... |
... | @@ -72,6 +72,10 @@ export default { | ... | @@ -72,6 +72,10 @@ export default { |
72 | }, | 72 | }, |
73 | methods: { | 73 | methods: { |
74 | // 列表渲染接口 | 74 | // 列表渲染接口 |
75 | /** | ||
76 | * @description: 列表渲染接口 | ||
77 | * @author: renchao | ||
78 | */ | ||
75 | queryClick () { | 79 | queryClick () { |
76 | this.$startLoading() | 80 | this.$startLoading() |
77 | getSysNoticeList({ ...this.ruleForm, ...this.pageData }, { 'target': '#xttzLoading' }).then(res => { | 81 | getSysNoticeList({ ...this.ruleForm, ...this.pageData }, { 'target': '#xttzLoading' }).then(res => { |
... | @@ -84,6 +88,11 @@ export default { | ... | @@ -84,6 +88,11 @@ export default { |
84 | }) | 88 | }) |
85 | }, | 89 | }, |
86 | //打开新增弹窗 | 90 | //打开新增弹窗 |
91 | /** | ||
92 | * @description: 打开新增弹窗 | ||
93 | * @param {*} item | ||
94 | * @author: renchao | ||
95 | */ | ||
87 | openDialog (item) { | 96 | openDialog (item) { |
88 | if (item) { | 97 | if (item) { |
89 | this.$popupDialog("系统通知详情", "system/xttz/components/addDialog", { ...item, "isButtonFlag": false }, "50%") | 98 | this.$popupDialog("系统通知详情", "system/xttz/components/addDialog", { ...item, "isButtonFlag": false }, "50%") | ... | ... |
... | @@ -60,6 +60,10 @@ export default { | ... | @@ -60,6 +60,10 @@ export default { |
60 | }, | 60 | }, |
61 | methods: { | 61 | methods: { |
62 | // 列表渲染接口 | 62 | // 列表渲染接口 |
63 | /** | ||
64 | * @description: 列表渲染接口 | ||
65 | * @author: renchao | ||
66 | */ | ||
63 | queryClick () { | 67 | queryClick () { |
64 | this.$startLoading() | 68 | this.$startLoading() |
65 | getSysNoticeList({ ...this.ruleForm, ...this.pageData }, { 'target': '#xttzLoading' }).then(res => { | 69 | getSysNoticeList({ ...this.ruleForm, ...this.pageData }, { 'target': '#xttzLoading' }).then(res => { |
... | @@ -72,6 +76,11 @@ export default { | ... | @@ -72,6 +76,11 @@ export default { |
72 | }) | 76 | }) |
73 | }, | 77 | }, |
74 | //打开新增弹窗 | 78 | //打开新增弹窗 |
79 | /** | ||
80 | * @description: 打开新增弹窗 | ||
81 | * @param {*} item | ||
82 | * @author: renchao | ||
83 | */ | ||
75 | openDialog (item) { | 84 | openDialog (item) { |
76 | this.$nextTick(() => { | 85 | this.$nextTick(() => { |
77 | this.isButtonFlag = false; | 86 | this.isButtonFlag = false; |
... | @@ -91,6 +100,10 @@ export default { | ... | @@ -91,6 +100,10 @@ export default { |
91 | } | 100 | } |
92 | }, | 101 | }, |
93 | //一键已读 | 102 | //一键已读 |
103 | /** | ||
104 | * @description: 一键已读 | ||
105 | * @author: renchao | ||
106 | */ | ||
94 | toReadAll () { | 107 | toReadAll () { |
95 | setAllRead().then(res => { | 108 | setAllRead().then(res => { |
96 | if (res.code == 200) { | 109 | if (res.code == 200) { |
... | @@ -101,6 +114,11 @@ export default { | ... | @@ -101,6 +114,11 @@ export default { |
101 | } | 114 | } |
102 | }) | 115 | }) |
103 | }, | 116 | }, |
117 | /** | ||
118 | * @description: downloadFile | ||
119 | * @param {*} item | ||
120 | * @author: renchao | ||
121 | */ | ||
104 | downloadFile (item) { | 122 | downloadFile (item) { |
105 | const href = item.noticeFileUrl | 123 | const href = item.noticeFileUrl |
106 | window.open(href, '_blank'); | 124 | window.open(href, '_blank'); | ... | ... |
-
Please register or sign in to post a comment