mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
0a1e1be130
commit
4ffc954f46
@ -32,7 +32,7 @@
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="addMachineInfo.typeId" @change="setAddMachineTypeCd(addMachineInfo.typeId)">
|
||||
<option selected disabled value="">{{vc.i18n('必填','addMachine')}},请选择设备类型</option>
|
||||
<option v-for="(item,index) in addMachineInfo.machineTypes" :key="index" :value="item.typeId" v-if="item.machineTypeCd == '9994'">
|
||||
<option v-for="(item,index) in addMachineInfo.machineTypes" :key="index" :value="item.typeId">
|
||||
{{item.machineTypeName}}</option>
|
||||
</select>
|
||||
</select>
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
<div class="col-sm-10">
|
||||
<select class="custom-select" v-model="editMachineInfo.typeId" @change="setEditMachineTypeCd(editMachineInfo.typeId)">
|
||||
<option selected disabled value="">{{vc.i18n('必填,请选择设备类型','editMachine')}}</option>
|
||||
<option v-for="(item,index) in editMachineInfo.machineTypes" :key="index" :value="item.typeId" v-if="item.machineTypeCd == '9994'">
|
||||
<option v-for="(item,index) in editMachineInfo.machineTypes" :key="index" :value="item.typeId" >
|
||||
{{item.machineTypeName}}</option>
|
||||
</select>
|
||||
</select>
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/machineRecord.listMachineRecords"',
|
||||
vc.http.apiGet('/machineRecord.listMachineRecords',
|
||||
param,
|
||||
function(json, res) {
|
||||
var _machineRecordManageInfo = JSON.parse(json);
|
||||
@ -58,7 +58,8 @@
|
||||
dataCount: vc.component.machineRecordManageInfo.total,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user