|
@@ -12,7 +12,7 @@
|
|
|
<div>
|
|
|
<el-button v-if="litigation1.model=='view'" type="text" @click="edit('litigation1')">编辑</el-button>
|
|
|
<template v-else-if="litigation1.model=='edit'">
|
|
|
- <el-button type="text" @click="save('litigation1')">保存</el-button>
|
|
|
+ <el-button type="text" @click="save('litigation1',1)">保存</el-button>
|
|
|
<el-button type="text" @click="cancel('litigation1')">取消修改</el-button>
|
|
|
</template>
|
|
|
</div>
|
|
@@ -33,7 +33,7 @@
|
|
|
<div>
|
|
|
<el-button v-if="litigation2.model=='view'" type="text" @click="edit('litigation2')">编辑</el-button>
|
|
|
<template v-else-if="litigation2.model=='edit'">
|
|
|
- <el-button type="text" @click="save('litigation2')">保存</el-button>
|
|
|
+ <el-button type="text" @click="save('litigation2',2)">保存</el-button>
|
|
|
<el-button type="text" @click="cancel('litigation2')">取消修改</el-button>
|
|
|
</template>
|
|
|
</div>
|
|
@@ -49,80 +49,80 @@
|
|
|
const litigation1 = [
|
|
|
{
|
|
|
label:'行诉一审案号',
|
|
|
- field:'value1'
|
|
|
+ field:'caseNumber'
|
|
|
},
|
|
|
{
|
|
|
label:'一审立案时间',
|
|
|
- field:'value2',
|
|
|
+ field:'caseFieldTime',
|
|
|
type:'date'
|
|
|
},
|
|
|
{
|
|
|
label:'一审原告',
|
|
|
- field:'value3'
|
|
|
+ field:'plaintiff'
|
|
|
},
|
|
|
{
|
|
|
label:'一审被告',
|
|
|
- field:'value4'
|
|
|
+ field:'defendant'
|
|
|
},
|
|
|
{
|
|
|
label:'第三人',
|
|
|
- field:'value5'
|
|
|
+ field:'thirdPerson'
|
|
|
},
|
|
|
{
|
|
|
label:'合议庭成员',
|
|
|
- field:'value6'
|
|
|
+ field:'panelMember'
|
|
|
},
|
|
|
{
|
|
|
label:'原告代理人',
|
|
|
- field:'value7'
|
|
|
+ field:'plaintiffAgent'
|
|
|
},
|
|
|
{
|
|
|
label:'第三人代理人',
|
|
|
- field:'value8'
|
|
|
+ field:'thirdAgent'
|
|
|
},
|
|
|
{
|
|
|
label:'一审进展/结果',
|
|
|
- field:'value9',
|
|
|
+ field:'conclusion',
|
|
|
noEdit:true
|
|
|
},
|
|
|
]
|
|
|
const litigation2 = [
|
|
|
{
|
|
|
label:'行诉二审案号',
|
|
|
- field:'value1'
|
|
|
+ field:'caseNumber'
|
|
|
},
|
|
|
{
|
|
|
label:'二审立案时间',
|
|
|
- field:'value2',
|
|
|
+ field:'caseFieldTime',
|
|
|
type:'date'
|
|
|
},
|
|
|
{
|
|
|
label:'二审原告',
|
|
|
- field:'value3'
|
|
|
+ field:'plaintiff'
|
|
|
},
|
|
|
{
|
|
|
label:'二审被告',
|
|
|
- field:'value4'
|
|
|
+ field:'defendant'
|
|
|
},
|
|
|
{
|
|
|
label:'第三人',
|
|
|
- field:'value5'
|
|
|
+ field:'thirdPerson'
|
|
|
},
|
|
|
{
|
|
|
label:'合议庭成员',
|
|
|
- field:'value6'
|
|
|
+ field:'panelMember'
|
|
|
},
|
|
|
{
|
|
|
label:'原告代理人',
|
|
|
- field:'value7'
|
|
|
+ field:'plaintiffAgent'
|
|
|
},
|
|
|
{
|
|
|
label:'第三人代理人',
|
|
|
- field:'value8'
|
|
|
+ field:'thirdAgent'
|
|
|
},
|
|
|
{
|
|
|
label:'二审进展/结果',
|
|
|
- field:'value9',
|
|
|
+ field:'conclusion',
|
|
|
noEdit:true
|
|
|
},
|
|
|
]
|
|
@@ -167,7 +167,17 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getData(){
|
|
|
-
|
|
|
+ let params = {
|
|
|
+ projectId:this.projectId
|
|
|
+ }
|
|
|
+ this.$api.queryLitigation(params).then(response=>{
|
|
|
+ if(response.code == 200){
|
|
|
+ if(response.data){
|
|
|
+ this.litigation1.data = response.data.litigationVO1 || {}
|
|
|
+ this.litigation2.data = response.data.litigationVO2 || {}
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
//编辑数据
|
|
|
edit(field){
|
|
@@ -175,9 +185,25 @@ export default {
|
|
|
this[field].model = 'edit'
|
|
|
},
|
|
|
//保存数据
|
|
|
- save(field){
|
|
|
- this.editMessage[field] = null
|
|
|
- this[field].model = 'view'
|
|
|
+ save(field,type){
|
|
|
+ this[field].data.type = type
|
|
|
+ var message = this.$message({
|
|
|
+ message: '信息保存中...',
|
|
|
+ type: 'warning',
|
|
|
+ duration:0
|
|
|
+ });
|
|
|
+ this.$api.addOrUpdateLitigation(this[field].data).then(response=>{
|
|
|
+ if(response.code == 200){
|
|
|
+ message.close()
|
|
|
+ this.$message.success('信息保存成功')
|
|
|
+ this.editMessage[field] = null
|
|
|
+ this[field].model = 'view'
|
|
|
+ }
|
|
|
+ }).catch(error=>{
|
|
|
+ message.close()
|
|
|
+ this.$message.error('信息保存失败')
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
// 取消修改
|
|
|
cancel(field){
|