|
|
@@ -607,17 +607,17 @@
|
|
607
|
607
|
|
|
608
|
608
|
<div v-show="activeName=='second'" style="margin-top:20px;">
|
|
609
|
609
|
<el-form :model="formGrab" ref="formGrabRef" label-width="120px" :disabled ="flag == '0'">
|
|
610
|
|
- <el-col :span="15">
|
|
611
|
|
- <el-form-item v-for="(item,index) in formGrab.list" :prop="'list.' + index + '.value'" :label="item.column" :key="item.id"
|
|
|
610
|
+
|
|
|
611
|
+ <el-form-item v-for="(item,index) in formGrab.list" :prop="'list.' + index + '.value'" :label="item.name" :key="item.id"
|
|
612
|
612
|
:rules="{
|
|
613
|
613
|
required: true,
|
|
614
|
614
|
message: '内容不能为空',
|
|
615
|
615
|
trigger: 'blur'
|
|
616
|
616
|
}"
|
|
617
|
617
|
>
|
|
618
|
|
- <el-input type="textarea" v-model="item.value"></el-input>
|
|
|
618
|
+ <el-input type="textarea" rows="10" v-model="item.value"></el-input>
|
|
619
|
619
|
</el-form-item>
|
|
620
|
|
- </el-col>
|
|
|
620
|
+
|
|
621
|
621
|
</el-form>
|
|
622
|
622
|
<el-col :span="24">
|
|
623
|
623
|
<div style="text-align:center;margin-top:50px;">
|
|
|
@@ -629,7 +629,10 @@
|
|
629
|
629
|
|
|
630
|
630
|
</div>
|
|
631
|
631
|
|
|
632
|
|
-
|
|
|
632
|
+ <!-- <div slot="footer" class="dialog-footer">
|
|
|
633
|
+ <el-button type="primary" @click="submitForm" v-if="flag != 0" class="endbutton"><span>确 定</span></el-button>
|
|
|
634
|
+ <el-button @click="cancel" class="endbutton1"><span>取 消</span></el-button>
|
|
|
635
|
+ </div> -->
|
|
633
|
636
|
</el-dialog>
|
|
634
|
637
|
</div>
|
|
635
|
638
|
</template>
|
|
|
@@ -637,7 +640,7 @@
|
|
637
|
640
|
<script>
|
|
638
|
641
|
import moment from "moment"; //导入文件
|
|
639
|
642
|
import { getToken } from "@/utils/auth";
|
|
640
|
|
-import { addCaseApply, editCaseApply } from "@/api/caseAccess/caseEntry";
|
|
|
643
|
+import { addCaseApply, editCaseApply,editCaseApplicationDefineval} from "@/api/caseAccess/caseEntry";
|
|
641
|
644
|
export default {
|
|
642
|
645
|
props: [
|
|
643
|
646
|
"visible",
|
|
|
@@ -704,6 +707,7 @@ export default {
|
|
704
|
707
|
formGrab:{
|
|
705
|
708
|
list:[]
|
|
706
|
709
|
},
|
|
|
710
|
+ formGrabList:[],
|
|
707
|
711
|
// 表单校验
|
|
708
|
712
|
rules: {
|
|
709
|
713
|
// caseNum: [
|
|
|
@@ -1035,6 +1039,7 @@ export default {
|
|
1035
|
1039
|
"YYYY-MM-DD HH:mm:ss"
|
|
1036
|
1040
|
);
|
|
1037
|
1041
|
if (this.formData.id) {
|
|
|
1042
|
+ // this.formData['columnValues'] = this.formGrab.list
|
|
1038
|
1043
|
editCaseApply({
|
|
1039
|
1044
|
...this.formData,
|
|
1040
|
1045
|
caseAffiliates: this.formData.caseAffiliates,
|
|
|
@@ -1067,7 +1072,18 @@ export default {
|
|
1067
|
1072
|
// 提交抓取内容修改
|
|
1068
|
1073
|
submitFormGrab(){
|
|
1069
|
1074
|
this.$refs['formGrabRef'].validate((valid) => {
|
|
1070
|
|
- console.log(this.formGrab.list,valid)
|
|
|
1075
|
+ if(valid){
|
|
|
1076
|
+ this.formGrabList['columnValues']= this.formGrab.list
|
|
|
1077
|
+
|
|
|
1078
|
+ console.log(this.formGrabList)
|
|
|
1079
|
+ editCaseApplicationDefineval({columnValues:this.formGrab.list}).then(res=>{
|
|
|
1080
|
+ if (res.code == 200) {
|
|
|
1081
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
1082
|
+ this.$emit("cancel");
|
|
|
1083
|
+ this.getcaseApply(this.queryParams);
|
|
|
1084
|
+ }
|
|
|
1085
|
+ })
|
|
|
1086
|
+ }
|
|
1071
|
1087
|
});
|
|
1072
|
1088
|
},
|
|
1073
|
1089
|
// 详情显示,展示申请人案件文件
|