代码优化
This commit is contained in:
parent
3135a41ec2
commit
43aa148f9d
|
|
@ -3,7 +3,7 @@ var testUrl = '112.29.103.165:21624/'
|
|||
// var testUrl = '192.168.0.14:21624/'
|
||||
// var testUrl = '192.168.0.166:8080'
|
||||
module.exports = {
|
||||
NODE_ENV: '"production"',
|
||||
NODE_ENV: 'production',
|
||||
//post用当前域名
|
||||
// API_ROOT: '"http://' + testUrl + '/iot"'
|
||||
// API_ROOT: '/',
|
||||
|
|
|
|||
|
|
@ -185,10 +185,10 @@
|
|||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="单位类型"
|
||||
align="center"
|
||||
prop="typeId"
|
||||
:show-overflow-tooltip="true"
|
||||
label="单位类型"
|
||||
align="center"
|
||||
prop="typeId"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="领料工程"
|
||||
|
|
@ -225,7 +225,6 @@
|
|||
align="center"
|
||||
prop="createTimes"
|
||||
:show-overflow-tooltip="true"
|
||||
sortable
|
||||
/>
|
||||
<el-table-column
|
||||
label="任务状态"
|
||||
|
|
@ -650,15 +649,15 @@ export default {
|
|||
const res = await getLeaseManageListAll(params)
|
||||
this.loading = false
|
||||
console.log('getList ============', res, '列表查询')
|
||||
res.data.rows.forEach(item => {
|
||||
switch (item.typeId) {
|
||||
case '0':
|
||||
item.typeId = '内部单位';
|
||||
break;
|
||||
case '1':
|
||||
item.typeId = '外部单位';
|
||||
break;
|
||||
}
|
||||
res.data.rows.forEach((item) => {
|
||||
switch (item.typeId) {
|
||||
case '0':
|
||||
item.typeId = '内部单位'
|
||||
break
|
||||
case '1':
|
||||
item.typeId = '外部单位'
|
||||
break
|
||||
}
|
||||
})
|
||||
this.leaseAuditList = res.data.rows
|
||||
// this.leaseAuditList.forEach((item,index)=>{
|
||||
|
|
|
|||
Loading…
Reference in New Issue