Commit 485129a4 authored by lizhichao's avatar lizhichao

所属企业 改为string

parent 576d3722
...@@ -48,16 +48,16 @@ public class TSupMajorHazard extends BaseEntity ...@@ -48,16 +48,16 @@ public class TSupMajorHazard extends BaseEntity
@Excel(name = "分级情况") @Excel(name = "分级情况")
private String fLevel; private String fLevel;
public Long getBeyondEnterpriseId() { public String getBeyondEnterpriseId() {
return beyondEnterpriseId; return beyondEnterpriseId;
} }
public void setBeyondEnterpriseId(Long beyondEnterpriseId) { public void setBeyondEnterpriseId(String beyondEnterpriseId) {
this.beyondEnterpriseId = beyondEnterpriseId; this.beyondEnterpriseId = beyondEnterpriseId;
} }
/** 权属单位 */ /** 权属单位 */
private Long beyondEnterpriseId; private String beyondEnterpriseId;
/** 创建时间 */ /** 创建时间 */
private Date fCreateTime; private Date fCreateTime;
......
...@@ -54,7 +54,7 @@ public class TVehicleInfo extends BaseEntity ...@@ -54,7 +54,7 @@ public class TVehicleInfo extends BaseEntity
/** 所属企业 */ /** 所属企业 */
@Excel(name = "所属企业") @Excel(name = "所属企业")
private int beyondEnterpriseId; private String beyondEnterpriseId;
/** 责任人 */ /** 责任人 */
@Excel(name = "责任人") @Excel(name = "责任人")
...@@ -265,11 +265,11 @@ public class TVehicleInfo extends BaseEntity ...@@ -265,11 +265,11 @@ public class TVehicleInfo extends BaseEntity
return vehicleInspect; return vehicleInspect;
} }
public int getBeyondEnterpriseId() { public String getBeyondEnterpriseId() {
return beyondEnterpriseId; return beyondEnterpriseId;
} }
public void setBeyondEnterpriseId(int beyondEnterpriseId) { public void setBeyondEnterpriseId(String beyondEnterpriseId) {
this.beyondEnterpriseId = beyondEnterpriseId; this.beyondEnterpriseId = beyondEnterpriseId;
} }
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
<!-- 添加或修改重大危险源监管对话框 --> <!-- 添加或修改重大危险源监管对话框 -->
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="名称" prop="fName"> <el-form-item label="名称" prop="fName">
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="所属单位" prop="beyondEnterpriseId"> <el-form-item label="所属单位" prop="beyondEnterpriseId">
<el-select v-model="form.beyondEnterpriseId" placeholder="请选择所属单位名称" style="width: 100%" @change="selectworkAssignEnterprose($event)"> <el-select v-model="form.beyondEnterpriseId" placeholder="请选择所属单位名称" style="width: 100%" >
<el-option <el-option
v-for="item in enterprises" v-for="item in enterprises"
:key="item.enterpriseId" :key="item.enterpriseId"
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
</div> </div>
</el-dialog> </el-dialog>
<GetPos <GetPos
:dialogVisible.sync="dialogTableVisibles" :dialogVisible.sync="dialogTableVisibles"
device="" device=""
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
{ required: true, message: "请输入责任人", trigger: "blur" }, { required: true, message: "请输入责任人", trigger: "blur" },
], ],
}, },
/**--------------地图使用数据---------------*/ /**--------------地图使用数据---------------*/
dialogTableVisibles: false, dialogTableVisibles: false,
devicePos: [] devicePos: []
...@@ -270,16 +270,16 @@ export default { ...@@ -270,16 +270,16 @@ export default {
// fLevelFormat(row, column) { // fLevelFormat(row, column) {
// return this.selectDictLabel(this.fLevelOptions, row.fLevel); // return this.selectDictLabel(this.fLevelOptions, row.fLevel);
// }, // },
fLevelFormat(row){ fLevelFormat(row){
let obj=this.fLevelOptions.find(item=>{ let obj=this.fLevelOptions.find(item=>{
return item.dictValue==row.fLevel; return item.dictValue==row.fLevel;
}) })
if(obj!=undefined || obj!=null){ if(obj!=undefined || obj!=null){
return obj.dictLabel; return obj.dictLabel;
} }
}, },
beyondEnterpriseFormat(row){ beyondEnterpriseFormat(row){
let info = this.enterprises.find(item => item.enterpriseId == row.beyondEnterpriseId); let info = this.enterprises.find(item => item.enterpriseId == row.beyondEnterpriseId);
return info?info.enterpriseName:"-"; return info?info.enterpriseName:"-";
}, },
...@@ -420,15 +420,15 @@ export default { ...@@ -420,15 +420,15 @@ export default {
this.form.longitude = res[0]; this.form.longitude = res[0];
this.form.latitude = res[1]; this.form.latitude = res[1];
}, },
getInspectionUserList(enterpriseId){ // getInspectionUserList(enterpriseId){
getInspectionUsers(enterpriseId,"se").then(response =>{ // getInspectionUsers(enterpriseId,"se").then(response =>{
this.inspectors = response.data; // this.inspectors = response.data;
}) // })
}, // },
//
selectworkAssignEnterprose(enterpriseId){ // selectworkAssignEnterprose(enterpriseId){
this.getInspectionUserList(enterpriseId); // this.getInspectionUserList(enterpriseId);
}, // },
//所属单位 //所属单位
getEnterpriseLists(){ getEnterpriseLists(){
const param = {}; const param = {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment