Commit bc3a52e5 authored by xinzhedeai's avatar xinzhedeai

g公司修改

parent 6f67f489
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
</div> </div>
<div class="subTopTitle"> <div class="subTopTitle">
<h2 <h2
@click="navTo('admin')"
:style="'background-image:url(' + Welcome + ');'" :style="'background-image:url(' + Welcome + ');'"
> >
<img src="@/assets/home4Index/icon5.png" />中和地信有限公司欢迎您! <img src="@/assets/home4Index/icon5.png" />中和地信有限公司欢迎您!
......
...@@ -537,7 +537,7 @@ ...@@ -537,7 +537,7 @@
<el-table-column label="操作" width="200px" align="center" fixed="right"> <el-table-column label="操作" width="200px" align="center" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" round @click="showEnterpriseInfo(scope.row.id)">查看详情</el-button> <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, 2)">通过</el-button>
<el-button v-show="scope.row.auditState==1" size="mini" round @click="auditBtn(scope.row, 3)">不通过</el-button> --> <el-button v-show="scope.row.auditState==1" size="mini" round @click="auditBtn(scope.row, 3)">不通过</el-button> -->
...@@ -731,22 +731,53 @@ export default { ...@@ -731,22 +731,53 @@ export default {
if (this.mainDataEditing._safetyLicenseFileList) { if (this.mainDataEditing._safetyLicenseFileList) {
this.mainDataEditing.safetyLicenseFilePath = JSON.stringify(this.mainDataEditing._safetyLicenseFileList) this.mainDataEditing.safetyLicenseFilePath = JSON.stringify(this.mainDataEditing._safetyLicenseFileList)
} }
request({
url: 'api/enterprise/add/enterpriseList', if(this.mainDataEditing.id){
method: 'post', let enterprise = JSON.parse(JSON.stringify(this.mainDataEditing))
data: this.mainDataEditing enterprise.name = null
}).then(() => { enterprise.createDatetime = null
this.addCompanyLoading = false enterprise.createBy = null
this.addCompanyShow = false enterprise.updateDatetime = null
this.$message({ enterprise.updateBy = null
message: '操作完成', enterprise.hasEnable = null
type: 'success' 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',
data: this.mainDataEditing
}).then(() => {
this.addCompanyLoading = false
this.addCompanyShow = false
this.$message({
message: '操作完成',
type: 'success'
})
this.searchSubmit()
}).catch(() => {
this.addCompanyLoading = false
this.addCompanyShow = false
}) })
this.searchSubmit() }
}).catch(() => {
this.addCompanyLoading = false
this.addCompanyShow = false
})
} }
}else{ }else{
this.$message({ this.$message({
...@@ -758,6 +789,8 @@ export default { ...@@ -758,6 +789,8 @@ export default {
}, },
add(){ add(){
this.mainDataEditing = {}
// this.mainDataEditing.id = null
this.addCompanyShow = true this.addCompanyShow = true
}, },
elementuiUpListFormat(fileList) { elementuiUpListFormat(fileList) {
...@@ -879,7 +912,7 @@ export default { ...@@ -879,7 +912,7 @@ export default {
this.mainDataEditing._safetyLicenseFileList = JSON.parse(this.mainDataEditing.safetyLicenseFilePath) this.mainDataEditing._safetyLicenseFileList = JSON.parse(this.mainDataEditing.safetyLicenseFilePath)
this.mainDataEditing._safetyLicenseFileListShow = 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) { showEnterpriseInfo(enterpriseId) {
enterpriseApi.getById(enterpriseId).then(response => { 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