Commit 377610553eed48d4e9e46e38d1ed271f868dc197
1 parent
fcc5106b
失信管理
Showing
2 changed files
with
71 additions
and
40 deletions
trash-ui/src/views/business/ConstructionCredit/index.vue
| ... | ... | @@ -123,10 +123,10 @@ |
| 123 | 123 | reserve-keyword |
| 124 | 124 | placeholder="建筑垃圾类型"> |
| 125 | 125 | <el-option |
| 126 | - v-for="item in types" | |
| 127 | - :key="item.id" | |
| 128 | - :label="item.label" | |
| 129 | - :value="item.value"> | |
| 126 | + v-for="item in wasteList" | |
| 127 | + :key="item.code" | |
| 128 | + :label="item.name" | |
| 129 | + :value="item.code"> | |
| 130 | 130 | </el-option> |
| 131 | 131 | </el-select> |
| 132 | 132 | </el-form-item> |
| ... | ... | @@ -201,7 +201,8 @@ |
| 201 | 201 | } from "@/api/business/credit"; |
| 202 | 202 | |
| 203 | 203 | import { |
| 204 | - constructionsitesList | |
| 204 | + constructionsitesList, | |
| 205 | + getDict | |
| 205 | 206 | } from "@/api/dict"; |
| 206 | 207 | |
| 207 | 208 | export default { |
| ... | ... | @@ -232,11 +233,7 @@ |
| 232 | 233 | {label:"工地C",value:"工地C",id:"C"}, |
| 233 | 234 | {label:"工地D",value:"工地D",id:"D"}, |
| 234 | 235 | {label:"工地E",value:"工地E",id:"E"}], |
| 235 | - types:[{label:"工地A",value:"工地A",id:"a"}, | |
| 236 | - {label:"工地B",value:"工地B",id:"B"}, | |
| 237 | - {label:"工地C",value:"工地C",id:"C"}, | |
| 238 | - {label:"工地D",value:"工地D",id:"D"}, | |
| 239 | - {label:"工地E",value:"工地E",id:"E"}], | |
| 236 | + types:[], | |
| 240 | 237 | places:[{label:"工地A",value:"工地A",id:"a"}, |
| 241 | 238 | {label:"工地B",value:"工地B",id:"B"}, |
| 242 | 239 | {label:"工地C",value:"工地C",id:"C"}, |
| ... | ... | @@ -257,11 +254,18 @@ |
| 257 | 254 | place: null, |
| 258 | 255 | reason: null, |
| 259 | 256 | status: 0, |
| 260 | - lostCredit: 1 | |
| 257 | + lostCredit: 1, | |
| 258 | + }, | |
| 259 | + dictParam:{ | |
| 260 | + type: "CSDisSiteDisposalType" | |
| 261 | 261 | }, |
| 262 | + | |
| 262 | 263 | // 表单参数 |
| 263 | 264 | form: {}, |
| 264 | 265 | updateForm:{}, |
| 266 | + //建筑垃圾类型集合 | |
| 267 | + wasteList: [], | |
| 268 | + | |
| 265 | 269 | // 表单校验 |
| 266 | 270 | rules: {name: [ |
| 267 | 271 | { required: true, message: '请选择工地', trigger: 'change' }, |
| ... | ... | @@ -275,30 +279,68 @@ |
| 275 | 279 | { required: true, message: '请填写原因', trigger: 'blur' }, |
| 276 | 280 | ]} |
| 277 | 281 | }; |
| 282 | + | |
| 283 | + | |
| 278 | 284 | }, |
| 279 | 285 | created() { |
| 280 | 286 | this.getList(); |
| 281 | 287 | this.getNamesData(); |
| 288 | + //获取字典表中的数据 | |
| 289 | + this.getDictList(); | |
| 290 | + this.getconstructionsitesList(); | |
| 282 | 291 | |
| 283 | - let query = { | |
| 284 | - 'page':1, | |
| 285 | - 'size':9999, | |
| 286 | - 'creditStatus':0 | |
| 287 | - } | |
| 288 | - | |
| 289 | - constructionsitesList(query).then(response => { | |
| 290 | - console.log(response); | |
| 291 | - }); | |
| 292 | + // let query = { | |
| 293 | + // 'page':1, | |
| 294 | + // 'size':9999, | |
| 295 | + // 'creditStatus':0 | |
| 296 | + // }, | |
| 297 | + // | |
| 298 | + // constructionsitesList(query).then(response => { | |
| 299 | + // console.log(response); | |
| 300 | + // }); | |
| 292 | 301 | }, |
| 293 | 302 | methods: { |
| 303 | + //获取字典中的数据 | |
| 304 | + getDictList(){ | |
| 305 | + getDict(this.dictParam).then(response => { | |
| 306 | + this.wasteList = response.result; | |
| 307 | + }); | |
| 308 | + }, | |
| 309 | + | |
| 310 | + getconstructionsitesList(){ | |
| 311 | + constructionsitesList(this.data).then(response =>{ | |
| 312 | + console.log(response); | |
| 313 | + }); | |
| 314 | + }, | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + getList() { | |
| 319 | + this.loading = true; | |
| 320 | + if (this.queryParams.status == 0) { | |
| 321 | + listCredit(this.queryParams).then(response => { | |
| 322 | + this.creditList = response.rows; | |
| 323 | + this.total = response.total; | |
| 324 | + this.loading = false; | |
| 325 | + }); | |
| 326 | + } | |
| 327 | + if(this.queryParams.status==1){ | |
| 328 | + historyCredit(this.queryParams).then(response => { | |
| 329 | + this.creditList = response.rows; | |
| 330 | + this.total = response.total; | |
| 331 | + this.loading = false; | |
| 332 | + }); | |
| 333 | + } | |
| 334 | + }, | |
| 335 | + | |
| 294 | 336 | getDataInfo(row){ |
| 295 | 337 | let param ={"objectId":row.objectId} |
| 296 | 338 | listCredit(param).then(response => { |
| 297 | 339 | this.creditListInfo = response.rows; |
| 298 | 340 | this.infoDialog = true; |
| 299 | 341 | }); |
| 300 | - | |
| 301 | 342 | }, |
| 343 | + | |
| 302 | 344 | getNamesData(){ |
| 303 | 345 | getNames(this.queryParams).then(response => { |
| 304 | 346 | this.dictNames = response; |
| ... | ... | @@ -321,24 +363,7 @@ |
| 321 | 363 | getObjId(a){ |
| 322 | 364 | this.form.objectId = a; |
| 323 | 365 | }, |
| 324 | - getList() { | |
| 325 | - this.loading = true; | |
| 326 | - if(this.queryParams.status==0){ | |
| 327 | - listCredit(this.queryParams).then(response => { | |
| 328 | - this.creditList = response.rows; | |
| 329 | - this.total = response.total; | |
| 330 | - this.loading = false; | |
| 331 | - }); | |
| 332 | - } | |
| 333 | - if(this.queryParams.status==1){ | |
| 334 | - historyCredit(this.queryParams).then(response => { | |
| 335 | - this.creditList = response.rows; | |
| 336 | - this.total = response.total; | |
| 337 | - this.loading = false; | |
| 338 | - }); | |
| 339 | - } | |
| 340 | 366 | |
| 341 | - }, | |
| 342 | 367 | // 取消按钮 |
| 343 | 368 | cancel() { |
| 344 | 369 | this.open = false; | ... | ... |
trash-ui/src/views/daily/toollist/index.vue
| ... | ... | @@ -99,7 +99,7 @@ |
| 99 | 99 | <!-- 添加或修改每日工作清单对话框 --> |
| 100 | 100 | <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body> |
| 101 | 101 | <el-form ref="form" :model="form" :rules="rules" label-width="40px"> |
| 102 | - <el-form-item label="标题" prop="title"> | |
| 102 | + <el-form-item label="标题" prop="title" label-width="80px"> | |
| 103 | 103 | <el-input v-model="form.title" placeholder="请输入标题" /> |
| 104 | 104 | </el-form-item> |
| 105 | 105 | <el-form-item label="区域" prop="region"> |
| ... | ... | @@ -112,7 +112,7 @@ |
| 112 | 112 | ></el-option> |
| 113 | 113 | </el-select> |
| 114 | 114 | </el-form-item> |
| 115 | - <el-form-item label="操作人" prop="operator"> | |
| 115 | + <el-form-item label="操作人" prop="operator" label-width="80px"> | |
| 116 | 116 | <el-input v-model="form.operator" placeholder="请输入操作人" /> |
| 117 | 117 | </el-form-item> |
| 118 | 118 | <el-form-item label="日期" prop="date"> |
| ... | ... | @@ -325,3 +325,9 @@ export default { |
| 325 | 325 | } |
| 326 | 326 | }; |
| 327 | 327 | </script> |
| 328 | + | |
| 329 | +<!--<style scoped>--> | |
| 330 | +<!--/deep/ .el-form-item__label{--> | |
| 331 | +<!-- width: 120px !important;--> | |
| 332 | +<!--}--> | |
| 333 | +<!--</style>--> | ... | ... |