From 8fbfb078e256bff9712b8a1fa51cc9b3208edf11 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Fri, 24 May 2024 17:32:15 +0800
Subject: [PATCH] 矛盾纠纷导入优化调整
---
src/views/cGovernance/taskECallTwo/index.vue | 65 ++++++++++++++++++++------------
1 files changed, 40 insertions(+), 25 deletions(-)
diff --git a/src/views/cGovernance/taskECallTwo/index.vue b/src/views/cGovernance/taskECallTwo/index.vue
index 65c077d..70b7b45 100644
--- a/src/views/cGovernance/taskECallTwo/index.vue
+++ b/src/views/cGovernance/taskECallTwo/index.vue
@@ -36,7 +36,7 @@
</avue-crud>
<el-dialog title="编辑" append-to-body :visible.sync="editPopup" center @close="editClose">
- <avue-form ref="formRef" :option="option" v-model="editForm" @submit="rowUpdate">
+ <avue-form ref="formRef" :option="option" v-model="editForm" @submit="handleSubmit">
<template slot-scope="{type, disabled}" slot="sceneGeo">
<el-button type="primary" style="font-size: 14px; border: none;" icon="el-icon-map-location"
@@ -286,6 +286,8 @@
prop: "sceneGeo",
dataType: "string",
type: 'map',
+ hide: true,
+ viewDisplay: false,
// dataType: "string",
span: 24,
// value: [117.966460, 28.431002, ""]
@@ -329,16 +331,16 @@
label: "归口类型",
prop: "issueClazz",
type: "tree",
- // dicUrl: "/api/blade-issueClazz/issueClazz/tree",
- // props: {
- // label: "title",
- // value: "id"
- // },
- // rules: [{
- // required: true,
- // message: "请选择归口类型",
- // trigger: "blur",
- // }, ],
+ dicUrl: "/api/blade-issueClazz/issueClazz/tree",
+ props: {
+ label: "title",
+ value: "id"
+ },
+ rules: [{
+ required: true,
+ message: "请选择归口类型",
+ trigger: "blur",
+ }, ],
span: 12,
},
{
@@ -458,7 +460,9 @@
// form是表单或者表格绑定的数据集,v-model='form'
handler(val) {
if (typeof val == "object") {
- if (!val) {
+ console.log("*****11**********" + val)
+ console.log("*****789111**********" + !val)
+ if (val.length <= 0) {
return
}
console.log("*****789**********" + val)
@@ -476,10 +480,11 @@
// form是表单或者表格绑定的数据集,v-model='form'
handler(val) {
if (typeof val == "object") {
- if (!val) {
+ if (val.length <= 0) {
return
}
console.log("*****789**********" + val)
+ console.log("*****78910**********" + !val)
var arr = val
//经纬度替换
@@ -566,8 +571,25 @@
}
)
},
- rowUpdate(row, index, done, loading) {
+ handleSubmit(form, done) {
+ update(form).then(
+ () => {
+ this.onLoad(this.page)
+ this.editPopup = false
+ this.$message({
+ type: "success",
+ message: "操作成功!",
+ })
+ done()
+ },
+ (error) => {
+ window.console.log(error)
+ loading()
+ }
+ )
+ },
+ rowUpdate(row, index, done, loading) {
update(row).then(
() => {
this.onLoad(this.page)
@@ -653,8 +675,10 @@
this.sharePopup = false
},
handleEdit(row) {
- this.editForm = row
- this.editPopup = true
+ getDetail(row.orderId).then((res) => {
+ this.editForm = res.data.data
+ this.editPopup = true
+ })
},
handleDelete() {
if (this.selectionList.length === 0) {
@@ -682,15 +706,6 @@
if (["edit", "view"].includes(type)) {
getDetail(this.form.orderId).then((res) => {
this.form = res.data.data
- // this.form.sceneAddr = [this.form.sceneGeoLng, this.form.sceneGeoLat, this.form.sceneAddr].join(',')
- // if (this.form.imageUrls.length > 0) {
- // var urls = []
- // var names = this.form.imageUrls.split(",")
- // names.forEach(name => {
- // urls.push(website.minioUrl + name)
- // })
- // this.form.imageUrls = urls.join(",")
- // }
})
}
// con
--
Gitblit v1.9.3