代码优化

This commit is contained in:
BianLzhaoMin 2024-09-12 10:05:49 +08:00
parent 3135a41ec2
commit 43aa148f9d
2 changed files with 14 additions and 15 deletions

View File

@ -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: '/',

View File

@ -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)=>{