项目基本信息(全景计划):编辑删除功能以及bug修复
This commit is contained in:
parent
adc0419024
commit
1b276e9519
@ -73,11 +73,11 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- 操作 -->
|
<!-- 操作 -->
|
||||||
<el-table-column align="center" :label="$t('message.projectInfo.operation')" width="120">
|
<el-table-column align="center" :label="$t('message.projectInfo.operation')" width="200">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button type="text" icon="el-icon-tickets" @click="previewData(scope.row)"><!-- 查看 -->{{$t('message.projectInfo.look')}}</el-button>
|
<el-button type="text" icon="el-icon-tickets" @click="previewData(scope.row)"><!-- 查看 -->{{$t('message.projectInfo.look')}}</el-button>
|
||||||
<!-- <el-button type="text" icon="el-icon-edit-outline" @click="editData(scope.row)">编辑</el-button>-->
|
<el-button type="text" icon="el-icon-edit-outline" @click="editData(scope.row)">编辑</el-button>
|
||||||
<!-- <el-button class="delete-btn" type="text" icon="el-icon-delete" @click="deleteData(scope.row)">删除</el-button>-->
|
<el-button class="delete-btn" type="text" icon="el-icon-delete" @click="deleteData(scope.row)">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -114,7 +114,7 @@
|
|||||||
class="dialogFormBox">
|
class="dialogFormBox">
|
||||||
<!-- 标段名称 -->
|
<!-- 标段名称 -->
|
||||||
<el-form-item :label="$t('message.projectInfo.sectionName')" prop="projectfName" required>
|
<el-form-item :label="$t('message.projectInfo.sectionName')" prop="projectfName" required>
|
||||||
<el-select v-model="dialogdata.projectfName" :placeholder="$t('message.projectInfo.pleaseChoose')">
|
<el-select :disabled="formType == 3" v-model="dialogdata.projectfName" :placeholder="$t('message.projectInfo.pleaseChoose')">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item , index ) in projectfNameList"
|
v-for="(item , index ) in projectfNameList"
|
||||||
:key="index"
|
:key="index"
|
||||||
@ -360,12 +360,13 @@ export default {
|
|||||||
console.log(valid)
|
console.log(valid)
|
||||||
if(valid){
|
if(valid){
|
||||||
let data = this.dialogdata
|
let data = this.dialogdata
|
||||||
|
// let data = JSON.stringify(JSON.parse(this.dialogdata))
|
||||||
data.projectSn = this.projectSn
|
data.projectSn = this.projectSn
|
||||||
|
// console.log('标段名称',this.dialogdata.projectfName)
|
||||||
data.bidSectionId = this.dialogdata.projectfName
|
data.bidSectionId = this.dialogdata.projectfName
|
||||||
console.log(data)
|
|
||||||
if(this.formType == 1){
|
if(this.formType == 1){
|
||||||
addPanoramaNodePlan(data).then(res=>{
|
addPanoramaNodePlan(data).then(res=>{
|
||||||
console.log('新增成功了吗',res)
|
// console.log('新增成功了吗',res)
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$message.success(this.$t('message.projectInfo.addSuccess')+'!')
|
this.$message.success(this.$t('message.projectInfo.addSuccess')+'!')
|
||||||
this.closeDialog()
|
this.closeDialog()
|
||||||
@ -373,8 +374,9 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else if(this.formType == 2){
|
} else if(this.formType == 2){
|
||||||
|
console.log('编辑时候的参数',data)
|
||||||
editPanoramaNodePlan(data).then(res=>{
|
editPanoramaNodePlan(data).then(res=>{
|
||||||
console.log(res)
|
console.log('编辑的结果',res)
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$message.success(this.$t('message.projectInfo.editSuccess')+'!')
|
this.$message.success(this.$t('message.projectInfo.editSuccess')+'!')
|
||||||
this.closeDialog()
|
this.closeDialog()
|
||||||
@ -417,7 +419,7 @@ export default {
|
|||||||
this.formType = 3
|
this.formType = 3
|
||||||
},
|
},
|
||||||
editData(val){
|
editData(val){
|
||||||
this.dialogdata = val
|
this.dialogdata = JSON.parse(JSON.stringify(val))
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
this.dialogTitle = /* '编辑计划' */this.$t('message.projectInfo.editPlan'),
|
this.dialogTitle = /* '编辑计划' */this.$t('message.projectInfo.editPlan'),
|
||||||
this.formType = 2
|
this.formType = 2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user