Commit 377610553eed48d4e9e46e38d1ed271f868dc197

Authored by 何博文
1 parent fcc5106b

失信管理

trash-ui/src/views/business/ConstructionCredit/index.vue
@@ -123,10 +123,10 @@ @@ -123,10 +123,10 @@
123 reserve-keyword 123 reserve-keyword
124 placeholder="建筑垃圾类型"> 124 placeholder="建筑垃圾类型">
125 <el-option 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 </el-option> 130 </el-option>
131 </el-select> 131 </el-select>
132 </el-form-item> 132 </el-form-item>
@@ -201,7 +201,8 @@ @@ -201,7 +201,8 @@
201 } from "@/api/business/credit"; 201 } from "@/api/business/credit";
202 202
203 import { 203 import {
204 - constructionsitesList 204 + constructionsitesList,
  205 + getDict
205 } from "@/api/dict"; 206 } from "@/api/dict";
206 207
207 export default { 208 export default {
@@ -232,11 +233,7 @@ @@ -232,11 +233,7 @@
232 {label:"工地C",value:"工地C",id:"C"}, 233 {label:"工地C",value:"工地C",id:"C"},
233 {label:"工地D",value:"工地D",id:"D"}, 234 {label:"工地D",value:"工地D",id:"D"},
234 {label:"工地E",value:"工地E",id:"E"}], 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 places:[{label:"工地A",value:"工地A",id:"a"}, 237 places:[{label:"工地A",value:"工地A",id:"a"},
241 {label:"工地B",value:"工地B",id:"B"}, 238 {label:"工地B",value:"工地B",id:"B"},
242 {label:"工地C",value:"工地C",id:"C"}, 239 {label:"工地C",value:"工地C",id:"C"},
@@ -257,11 +254,18 @@ @@ -257,11 +254,18 @@
257 place: null, 254 place: null,
258 reason: null, 255 reason: null,
259 status: 0, 256 status: 0,
260 - lostCredit: 1 257 + lostCredit: 1,
  258 + },
  259 + dictParam:{
  260 + type: "CSDisSiteDisposalType"
261 }, 261 },
  262 +
262 // 表单参数 263 // 表单参数
263 form: {}, 264 form: {},
264 updateForm:{}, 265 updateForm:{},
  266 + //建筑垃圾类型集合
  267 + wasteList: [],
  268 +
265 // 表单校验 269 // 表单校验
266 rules: {name: [ 270 rules: {name: [
267 { required: true, message: '请选择工地', trigger: 'change' }, 271 { required: true, message: '请选择工地', trigger: 'change' },
@@ -275,30 +279,68 @@ @@ -275,30 +279,68 @@
275 { required: true, message: '请填写原因', trigger: 'blur' }, 279 { required: true, message: '请填写原因', trigger: 'blur' },
276 ]} 280 ]}
277 }; 281 };
  282 +
  283 +
278 }, 284 },
279 created() { 285 created() {
280 this.getList(); 286 this.getList();
281 this.getNamesData(); 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 methods: { 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 getDataInfo(row){ 336 getDataInfo(row){
295 let param ={"objectId":row.objectId} 337 let param ={"objectId":row.objectId}
296 listCredit(param).then(response => { 338 listCredit(param).then(response => {
297 this.creditListInfo = response.rows; 339 this.creditListInfo = response.rows;
298 this.infoDialog = true; 340 this.infoDialog = true;
299 }); 341 });
300 -  
301 }, 342 },
  343 +
302 getNamesData(){ 344 getNamesData(){
303 getNames(this.queryParams).then(response => { 345 getNames(this.queryParams).then(response => {
304 this.dictNames = response; 346 this.dictNames = response;
@@ -321,24 +363,7 @@ @@ -321,24 +363,7 @@
321 getObjId(a){ 363 getObjId(a){
322 this.form.objectId = a; 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 cancel() { 368 cancel() {
344 this.open = false; 369 this.open = false;
trash-ui/src/views/daily/toollist/index.vue
@@ -99,7 +99,7 @@ @@ -99,7 +99,7 @@
99 <!-- 添加或修改每日工作清单对话框 --> 99 <!-- 添加或修改每日工作清单对话框 -->
100 <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body> 100 <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
101 <el-form ref="form" :model="form" :rules="rules" label-width="40px"> 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 <el-input v-model="form.title" placeholder="请输入标题" /> 103 <el-input v-model="form.title" placeholder="请输入标题" />
104 </el-form-item> 104 </el-form-item>
105 <el-form-item label="区域" prop="region"> 105 <el-form-item label="区域" prop="region">
@@ -112,7 +112,7 @@ @@ -112,7 +112,7 @@
112 ></el-option> 112 ></el-option>
113 </el-select> 113 </el-select>
114 </el-form-item> 114 </el-form-item>
115 - <el-form-item label="操作人" prop="operator"> 115 + <el-form-item label="操作人" prop="operator" label-width="80px">
116 <el-input v-model="form.operator" placeholder="请输入操作人" /> 116 <el-input v-model="form.operator" placeholder="请输入操作人" />
117 </el-form-item> 117 </el-form-item>
118 <el-form-item label="日期" prop="date"> 118 <el-form-item label="日期" prop="date">
@@ -325,3 +325,9 @@ export default { @@ -325,3 +325,9 @@ export default {
325 } 325 }
326 }; 326 };
327 </script> 327 </script>
  328 +
  329 +<!--<style scoped>-->
  330 +<!--/deep/ .el-form-item__label{-->
  331 +<!-- width: 120px !important;-->
  332 +<!--}-->
  333 +<!--</style>-->