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