Commit bc3a52e5 authored by xinzhedeai's avatar xinzhedeai

g公司修改

parent 6f67f489
......@@ -5,7 +5,6 @@
</div>
<div class="subTopTitle">
<h2
@click="navTo('admin')"
:style="'background-image:url(' + Welcome + ');'"
>
<img src="@/assets/home4Index/icon5.png" />中和地信有限公司欢迎您!
......
......@@ -537,7 +537,7 @@
<el-table-column label="操作" width="200px" align="center" fixed="right">
<template slot-scope="scope">
<el-button size="mini" round @click="showEnterpriseInfo(scope.row.id)">查看详情</el-button>
<!-- <el-button size="mini" round @click="editEnterpriseInfo(scope.row)">修改</el-button> -->
<el-button size="mini" round @click="editEnterpriseInfo(scope.row)">修改</el-button>
<!-- <el-button v-show="scope.row.auditState==1" size="mini" round @click="auditBtn(scope.row, 2)">通过</el-button>
<el-button v-show="scope.row.auditState==1" size="mini" round @click="auditBtn(scope.row, 3)">不通过</el-button> -->
......@@ -731,6 +731,36 @@ export default {
if (this.mainDataEditing._safetyLicenseFileList) {
this.mainDataEditing.safetyLicenseFilePath = JSON.stringify(this.mainDataEditing._safetyLicenseFileList)
}
if(this.mainDataEditing.id){
let enterprise = JSON.parse(JSON.stringify(this.mainDataEditing))
enterprise.name = null
enterprise.createDatetime = null
enterprise.createBy = null
enterprise.updateDatetime = null
enterprise.updateBy = null
enterprise.hasEnable = null
enterprise.applyDatetime = null
enterprise.auditState = null
enterprise.auditDatetime = null
enterprise.auditBy = null
request({
url: 'api/enterprise/set-my',
method: 'post',
data: enterprise
}).then(() => {
this.addCompanyLoading = false
this.addCompanyShow = false
this.$message({
message: '操作完成',
type: 'success'
})
this.searchSubmit()
}).catch(() => {
this.addCompanyLoading = false
this.addCompanyShow = false
})
}else{
request({
url: 'api/enterprise/add/enterpriseList',
method: 'post',
......@@ -748,6 +778,7 @@ export default {
this.addCompanyShow = false
})
}
}
}else{
this.$message({
message: '填写不满足要求,请检查',
......@@ -758,6 +789,8 @@ export default {
},
add(){
this.mainDataEditing = {}
// this.mainDataEditing.id = null
this.addCompanyShow = true
},
elementuiUpListFormat(fileList) {
......@@ -879,7 +912,7 @@ export default {
this.mainDataEditing._safetyLicenseFileList = JSON.parse(this.mainDataEditing.safetyLicenseFilePath)
this.mainDataEditing._safetyLicenseFileListShow = JSON.parse(this.mainDataEditing.safetyLicenseFilePath) // 数据存放与原始绑定分开,可以防止中途赋值产生的闪烁问题
}
this.mainDataEditing._administrativeAreaCascade = row.deptId
this.mainDataEditing._administrativeAreaCascade = [row.deptId]
},
showEnterpriseInfo(enterpriseId) {
enterpriseApi.getById(enterpriseId).then(response => {
......
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