|
|
|
@ -214,6 +214,7 @@
|
|
|
|
|
<!-- <el-button type="primary" @click="save">确 定</el-button>--> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<div class="page_content_table"> |
|
|
|
|
<el-table |
|
|
|
|
:data="tableData" |
|
|
|
@ -274,6 +275,7 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<!-- 添加||修改 --> |
|
|
|
|
<el-dialog :title="title" :visible.sync="dialogVisible" width="35%"> |
|
|
|
|
<el-form :model="editForm" :disabled="dialogReadOnly" :rules="rules" label-width="200px"> |
|
|
|
|
<el-form-item label="周边地区名称:" prop="name"> |
|
|
|
@ -440,6 +442,7 @@ import {
|
|
|
|
|
delGroupData, |
|
|
|
|
} from "@/views/banner/api/api"; |
|
|
|
|
import { getInterest,addInterest, delInterest ,updateInterest ,selectInterestType ,importFile ,getInterestRim ,delInterestRim } from "@/views/city/cityInterest/api/Interest"; |
|
|
|
|
import * as api from "../../city/cityInterest/api/Interest"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: "interest", |
|
|
|
@ -652,7 +655,7 @@ export default {
|
|
|
|
|
} |
|
|
|
|
console.log(param); |
|
|
|
|
this.title = "删除城市数据"; |
|
|
|
|
getInterestRim(param).then(rest => { |
|
|
|
|
api.getInterestRim(param).then(rest => { |
|
|
|
|
//console.log(rest.data); |
|
|
|
|
this.aroundTownRim = rest.data.data.records; |
|
|
|
|
//console.log(this.aroundTownRim); |
|
|
|
@ -669,7 +672,7 @@ export default {
|
|
|
|
|
console.log(row); |
|
|
|
|
let pasme = row ; |
|
|
|
|
this.$modal.confirm('是否确认删除地区为"' + row.county + '"的数据项?').then(function() { |
|
|
|
|
return delInterestRim(pasme); |
|
|
|
|
return api.delInterestRim(pasme); |
|
|
|
|
}).then(() => { |
|
|
|
|
|
|
|
|
|
this.circumDelete("1"); |
|
|
|
@ -694,7 +697,7 @@ export default {
|
|
|
|
|
const file = e; |
|
|
|
|
let formData = new FormData(); |
|
|
|
|
formData.append("uploadFile", file); |
|
|
|
|
importFile(formData).then((res) => { |
|
|
|
|
api.importFile(formData).then((res) => { |
|
|
|
|
this.loading = false; |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message({ |
|
|
|
@ -725,7 +728,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
//查询类型 |
|
|
|
|
selectTypeLists(){ |
|
|
|
|
selectInterestType().then(rest => { |
|
|
|
|
api.selectInterestType().then(rest => { |
|
|
|
|
this.interestType = rest.data.data; |
|
|
|
|
//console.log(this.interestType) |
|
|
|
|
}) |
|
|
|
@ -765,8 +768,8 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
this.searchForm |
|
|
|
|
); |
|
|
|
|
console.log(param); |
|
|
|
|
getInterest(param).then((response) => { |
|
|
|
|
// console.log(param); |
|
|
|
|
api.getInterest(param).then((response) => { |
|
|
|
|
//console.log(response.data); |
|
|
|
|
this.tableData = response.data.data.records; |
|
|
|
|
this.page.total = response.data.data.total; |
|
|
|
@ -859,7 +862,7 @@ export default {
|
|
|
|
|
this.editForm.oldType = null; |
|
|
|
|
} |
|
|
|
|
console.log(this.editForm) |
|
|
|
|
updateInterest(this.editForm).then((res) => { |
|
|
|
|
api.updateInterest(this.editForm).then((res) => { |
|
|
|
|
this.dialogVisible = false; |
|
|
|
|
this.onSubmit(); |
|
|
|
|
this.hiedType =true; |
|
|
|
@ -896,7 +899,7 @@ export default {
|
|
|
|
|
let param = Object.assign( |
|
|
|
|
this.editForm); |
|
|
|
|
console.log(param); |
|
|
|
|
addInterest(param).then((res) => { |
|
|
|
|
api.addInterest(param).then((res) => { |
|
|
|
|
this.dialogVisible = false; |
|
|
|
|
this.onSubmit(); |
|
|
|
|
this.$message.success("添加成功"); |
|
|
|
@ -923,7 +926,7 @@ export default {
|
|
|
|
|
type: "warning", |
|
|
|
|
}).then(function () { |
|
|
|
|
//console.log(row); |
|
|
|
|
delInterest(row.gid).then((res) => { |
|
|
|
|
api.delInterest(row.gid).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
_this.$message({ |
|
|
|
|
type: "success", |
|
|
|
@ -950,8 +953,8 @@ export default {
|
|
|
|
|
for (let item of this.selectedData) { |
|
|
|
|
ids.push(item["gid"]); |
|
|
|
|
} |
|
|
|
|
console.log(ids) |
|
|
|
|
delInterest(ids).then((res) => { |
|
|
|
|
// console.log(ids) |
|
|
|
|
api.delInterest(ids).then((res) => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.$message({ |
|
|
|
|
type: "success", |
|
|
|
|