清除多余代码
This commit is contained in:
@@ -72,13 +72,10 @@
|
|||||||
},
|
},
|
||||||
id: '',
|
id: '',
|
||||||
regPhone,
|
regPhone,
|
||||||
areaList: []
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.getAreaList()
|
|
||||||
|
|
||||||
if (this.params && this.params.areaId && !this.params.id) {
|
if (this.params && this.params.areaId && !this.params.id) {
|
||||||
this.form.areaId = this.params.areaId
|
this.form.areaId = this.params.areaId
|
||||||
this.form.areaName = this.params.areaName
|
this.form.areaName = this.params.areaName
|
||||||
@@ -99,19 +96,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getAreaList() {
|
|
||||||
this.instance.post(`/admin/area/queryAreaByParentId?id=341021104000`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.areaList = res.data.map(item => {
|
|
||||||
item.dictName = item.name
|
|
||||||
item.dictValue = item.id
|
|
||||||
|
|
||||||
return item
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
onClose () {
|
onClose () {
|
||||||
this.form.explain = ''
|
this.form.explain = ''
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -120,7 +120,6 @@ export default {
|
|||||||
label: 'name'
|
label: 'name'
|
||||||
},
|
},
|
||||||
currIndex: -1,
|
currIndex: -1,
|
||||||
areaList: [],
|
|
||||||
total: 10,
|
total: 10,
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{prop: 'name', label: '名称', align: 'left'},
|
{prop: 'name', label: '名称', align: 'left'},
|
||||||
@@ -153,7 +152,6 @@ export default {
|
|||||||
this.search.areaId = this.user.info.areaId
|
this.search.areaId = this.user.info.areaId
|
||||||
this.areaName = this.user.info.areaName
|
this.areaName = this.user.info.areaName
|
||||||
this.getTree()
|
this.getTree()
|
||||||
this.getAreaList()
|
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@@ -232,14 +230,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getAreaList() {
|
|
||||||
this.instance.post(`/admin/area/queryAreaByParentId?id=341021104000`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.areaList = res.data
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
remove(id) {
|
remove(id) {
|
||||||
this.$confirm('确定删除该数据?').then(() => {
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
this.instance.post(`/app/appconvenientaddressbook/delete?ids=${id}`).then(res => {
|
this.instance.post(`/app/appconvenientaddressbook/delete?ids=${id}`).then(res => {
|
||||||
|
|||||||
139
packages/3.0.0/AppNavConfig/components/List.vue
vendored
139
packages/3.0.0/AppNavConfig/components/List.vue
vendored
@@ -37,6 +37,13 @@
|
|||||||
<i class="el-icon-error icon" @click="removeApp(item.id)" v-if="isRemove && item.type !== '0' && item.picked !== '1'"></i>
|
<i class="el-icon-error icon" @click="removeApp(item.id)" v-if="isRemove && item.type !== '0' && item.picked !== '1'"></i>
|
||||||
<i class="el-icon-circle-plus icon" @click="addApp(item)" v-if="isCanAdd(item)"></i>
|
<i class="el-icon-circle-plus icon" @click="addApp(item)" v-if="isCanAdd(item)"></i>
|
||||||
<h2>{{ item.name }}</h2>
|
<h2>{{ item.name }}</h2>
|
||||||
|
<div class="item-setting">
|
||||||
|
<div class="item-mask"></div>
|
||||||
|
<div class="item-wrapper__icon" @click.stop="editApp(item)">
|
||||||
|
<i class="el-icon-setting"></i>
|
||||||
|
<div>编辑</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -93,8 +100,34 @@
|
|||||||
<el-form-item label="图标" prop="pictureUrl" style="width: 100%;" :rules="[{ required: true, message: '请上传图标 ', trigger: 'change' }]">
|
<el-form-item label="图标" prop="pictureUrl" style="width: 100%;" :rules="[{ required: true, message: '请上传图标 ', trigger: 'change' }]">
|
||||||
<ai-uploader v-model="form.pictureUrl" :instance="instance" :limit="1"></ai-uploader>
|
<ai-uploader v-model="form.pictureUrl" :instance="instance" :limit="1"></ai-uploader>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="权限配置" v-if="form.type === '0'" prop="pictureUrl" style="width: 100%;">
|
||||||
|
<el-input disabled :value="girdName" size="small" placeholder="请选择地区">
|
||||||
|
<template slot="append">
|
||||||
|
<el-button size="small" @click="isShowArea = true">选择地区</el-button>
|
||||||
|
</template>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
<ai-dialog
|
||||||
|
title="选择网格"
|
||||||
|
:visible.sync="isShowArea"
|
||||||
|
:destroyOnClose="true"
|
||||||
|
@close="showGrid = false"
|
||||||
|
@onConfirm="getCheckedTree"
|
||||||
|
width="720px">
|
||||||
|
<div class="grid">
|
||||||
|
<el-tree
|
||||||
|
:data="treeList"
|
||||||
|
:props="treeObj.defaultProps"
|
||||||
|
node-key="id"
|
||||||
|
ref="tree"
|
||||||
|
show-checkbox
|
||||||
|
:default-checked-keys="treeObj.checkedKeys"
|
||||||
|
default-expand-all>
|
||||||
|
</el-tree>
|
||||||
|
</div>
|
||||||
|
</ai-dialog>
|
||||||
</ai-dialog>
|
</ai-dialog>
|
||||||
</template>
|
</template>
|
||||||
</ai-list>
|
</ai-list>
|
||||||
@@ -121,6 +154,12 @@
|
|||||||
isEdit: false,
|
isEdit: false,
|
||||||
isRemove: false,
|
isRemove: false,
|
||||||
isRest: true,
|
isRest: true,
|
||||||
|
isShowArea: false,
|
||||||
|
defaultProps: {
|
||||||
|
children: "girdList",
|
||||||
|
label: "girdName",
|
||||||
|
},
|
||||||
|
treeList: [],
|
||||||
form: {
|
form: {
|
||||||
type: '',
|
type: '',
|
||||||
pictureUrl: [],
|
pictureUrl: [],
|
||||||
@@ -144,7 +183,9 @@
|
|||||||
dictValue: '4'
|
dictValue: '4'
|
||||||
}],
|
}],
|
||||||
isShowAdd: false,
|
isShowAdd: false,
|
||||||
list: []
|
list: [],
|
||||||
|
defaultExpanded: [],
|
||||||
|
defaultChecked: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -152,6 +193,7 @@
|
|||||||
this.dict.load('homeConfigMenuType', 'miniConfigCheckType').then(() => {
|
this.dict.load('homeConfigMenuType', 'miniConfigCheckType').then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
|
this.getTree()
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
@@ -169,6 +211,54 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getTree() {
|
||||||
|
this.instance.post(`/admin/area/queryAllArea?id=${this.user.info.areaId}`).then(res => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
let parent = res.data.map(v => {
|
||||||
|
v.label = v.name
|
||||||
|
v.children = []
|
||||||
|
|
||||||
|
return v
|
||||||
|
}).filter(e => !e.parentid)[0]
|
||||||
|
this.defaultExpanded = [parent.id]
|
||||||
|
this.defaultChecked = [parent.id]
|
||||||
|
this.search.areaId = parent.id
|
||||||
|
this.addChild(parent, res.data)
|
||||||
|
this.areaTree = [parent]
|
||||||
|
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.tree.setCurrentKey(parent.id)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
format (list) {
|
||||||
|
return list.map(item => {
|
||||||
|
if (item.girdLevel !== '2') {
|
||||||
|
item.disabled = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if (item.girdList && item.girdList.length) {
|
||||||
|
item.girdList = this.format(item.girdList)
|
||||||
|
}
|
||||||
|
|
||||||
|
return item
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
editApp (e) {
|
||||||
|
console.log(e)
|
||||||
|
this.form = {
|
||||||
|
...e,
|
||||||
|
pictureUrl: [{
|
||||||
|
url: e.pictureUrl
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
|
||||||
|
this.isShowAdd = true
|
||||||
|
},
|
||||||
|
|
||||||
isCanAdd (item) {
|
isCanAdd (item) {
|
||||||
const isHas = this.picked.map(v => v.id).indexOf(item.id) > -1
|
const isHas = this.picked.map(v => v.id).indexOf(item.id) > -1
|
||||||
|
|
||||||
@@ -328,6 +418,53 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
margin: 0 16px 16px 0;
|
margin: 0 16px 16px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
.item-setting {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 0;
|
||||||
|
opacity: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
transition: all ease 0.3s;
|
||||||
|
|
||||||
|
.item-wrapper__icon {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
div {
|
||||||
|
margin-top: 6px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
i, div {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-mask {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: rgba(0, 0, 0, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
z-index: 1;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
|
|||||||
@@ -153,7 +153,6 @@
|
|||||||
chart2: '',
|
chart2: '',
|
||||||
currIndex: -1,
|
currIndex: -1,
|
||||||
list: [],
|
list: [],
|
||||||
areaList: [],
|
|
||||||
unitName: '',
|
unitName: '',
|
||||||
areaId: ''
|
areaId: ''
|
||||||
}
|
}
|
||||||
@@ -175,7 +174,6 @@
|
|||||||
this.areaId = this.user.info.areaId
|
this.areaId = this.user.info.areaId
|
||||||
this.areaName = this.user.info.areaName
|
this.areaName = this.user.info.areaName
|
||||||
this.getTree()
|
this.getTree()
|
||||||
this.getAreaList()
|
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.chart1 = echarts.init(document.querySelector('.chart1'))
|
this.chart1 = echarts.init(document.querySelector('.chart1'))
|
||||||
@@ -245,14 +243,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getAreaList() {
|
|
||||||
this.instance.post(`/admin/area/queryAreaByParentId?id=341021104000`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.areaList = res.data
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
getInfo () {
|
getInfo () {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.instance.post(`/app/appvillageactivityinfo/statistic?areaId=${this.areaId}&time1=${this.time1 || ''}&time2=${this.time2 || '-'}`).then(res => {
|
this.instance.post(`/app/appvillageactivityinfo/statistic?areaId=${this.areaId}&time1=${this.time1 || ''}&time2=${this.time2 || '-'}`).then(res => {
|
||||||
|
|||||||
@@ -63,14 +63,11 @@
|
|||||||
picture: [],
|
picture: [],
|
||||||
isPublic: '1'
|
isPublic: '1'
|
||||||
},
|
},
|
||||||
id: '',
|
id: ''
|
||||||
areaList: []
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.getAreaList()
|
|
||||||
|
|
||||||
if (this.params && this.params.areaId && !this.params.id) {
|
if (this.params && this.params.areaId && !this.params.id) {
|
||||||
this.form.areaId = this.params.areaId
|
this.form.areaId = this.params.areaId
|
||||||
this.form.areaName = this.params.areaName
|
this.form.areaName = this.params.areaName
|
||||||
@@ -92,19 +89,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getAreaList() {
|
|
||||||
this.instance.post(`/admin/area/queryAreaByParentId?id=341021104000`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.areaList = res.data.map(item => {
|
|
||||||
item.dictName = item.name
|
|
||||||
item.dictValue = item.id
|
|
||||||
|
|
||||||
return item
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
onClose () {
|
onClose () {
|
||||||
this.form.explain = ''
|
this.form.explain = ''
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -110,7 +110,6 @@
|
|||||||
label: 'name'
|
label: 'name'
|
||||||
},
|
},
|
||||||
currIndex: -1,
|
currIndex: -1,
|
||||||
areaList: [],
|
|
||||||
total: 10,
|
total: 10,
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{prop: 'name', label: '姓名', align: 'left'},
|
{prop: 'name', label: '姓名', align: 'left'},
|
||||||
@@ -140,7 +139,6 @@
|
|||||||
this.search.areaId = this.user.info.areaId
|
this.search.areaId = this.user.info.areaId
|
||||||
this.areaName = this.user.info.areaName
|
this.areaName = this.user.info.areaName
|
||||||
this.getTree()
|
this.getTree()
|
||||||
this.getAreaList()
|
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@@ -219,14 +217,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getAreaList() {
|
|
||||||
this.instance.post(`/admin/area/queryAreaByParentId?id=341021104000`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.areaList = res.data
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
remove(id) {
|
remove(id) {
|
||||||
this.$confirm('确定删除该数据?').then(() => {
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
this.instance.post(`/app/appvillageauxiliarypolice/delete?ids=${id}`).then(res => {
|
this.instance.post(`/app/appvillageauxiliarypolice/delete?ids=${id}`).then(res => {
|
||||||
|
|||||||
@@ -106,13 +106,11 @@
|
|||||||
id: ''
|
id: ''
|
||||||
},
|
},
|
||||||
id: '',
|
id: '',
|
||||||
tagsList: [],
|
tagsList: []
|
||||||
areaList: []
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.getAreaList()
|
|
||||||
this.getTags()
|
this.getTags()
|
||||||
|
|
||||||
if (this.params && this.params.departmentId && !this.params.id) {
|
if (this.params && this.params.departmentId && !this.params.id) {
|
||||||
@@ -169,19 +167,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getAreaList() {
|
|
||||||
this.instance.post(`/admin/area/queryAreaByParentId?id=341021104000`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.areaList = res.data.map(item => {
|
|
||||||
item.dictName = item.name
|
|
||||||
item.dictValue = item.id
|
|
||||||
|
|
||||||
return item
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
onClose () {
|
onClose () {
|
||||||
this.form.explain = ''
|
this.form.explain = ''
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -55,14 +55,11 @@
|
|||||||
codeUrl: [],
|
codeUrl: [],
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
id: '',
|
id: ''
|
||||||
areaList: []
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.getAreaList()
|
|
||||||
|
|
||||||
if (this.params && this.params.areaId && !this.params.id) {
|
if (this.params && this.params.areaId && !this.params.id) {
|
||||||
this.form.areaId = this.params.areaId
|
this.form.areaId = this.params.areaId
|
||||||
this.form.areaName = this.params.areaName
|
this.form.areaName = this.params.areaName
|
||||||
@@ -86,19 +83,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getAreaList() {
|
|
||||||
this.instance.post(`/admin/area/queryAreaByParentId?id=341021104000`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.areaList = res.data.map(item => {
|
|
||||||
item.dictName = item.name
|
|
||||||
item.dictValue = item.id
|
|
||||||
|
|
||||||
return item
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
onClose () {
|
onClose () {
|
||||||
this.form.explain = ''
|
this.form.explain = ''
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -106,7 +106,6 @@
|
|||||||
label: 'name'
|
label: 'name'
|
||||||
},
|
},
|
||||||
currIndex: -1,
|
currIndex: -1,
|
||||||
areaList: [],
|
|
||||||
total: 10,
|
total: 10,
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{prop: 'codeName', label: '名称', align: 'left'},
|
{prop: 'codeName', label: '名称', align: 'left'},
|
||||||
@@ -141,7 +140,6 @@
|
|||||||
this.search.areaId = this.user.info.areaId
|
this.search.areaId = this.user.info.areaId
|
||||||
this.areaName = this.user.info.areaName
|
this.areaName = this.user.info.areaName
|
||||||
this.getTree()
|
this.getTree()
|
||||||
this.getAreaList()
|
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@@ -211,14 +209,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getAreaList() {
|
|
||||||
this.instance.post(`/admin/area/queryAreaByParentId?id=341021104000`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.areaList = res.data
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
remove(id) {
|
remove(id) {
|
||||||
this.$confirm('确定删除该数据?').then(() => {
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
this.instance.post(`/app/appeveryvillagecode/delete?ids=${id}`).then(res => {
|
this.instance.post(`/app/appeveryvillagecode/delete?ids=${id}`).then(res => {
|
||||||
|
|||||||
@@ -106,13 +106,11 @@
|
|||||||
id: ''
|
id: ''
|
||||||
},
|
},
|
||||||
id: '',
|
id: '',
|
||||||
tagsList: [],
|
tagsList: []
|
||||||
areaList: []
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.getAreaList()
|
|
||||||
this.getTags()
|
this.getTags()
|
||||||
|
|
||||||
if (this.params && this.params.departmentId && !this.params.id) {
|
if (this.params && this.params.departmentId && !this.params.id) {
|
||||||
@@ -162,19 +160,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getAreaList() {
|
|
||||||
this.instance.post(`/admin/area/queryAreaByParentId?id=341021104000`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.areaList = res.data.map(item => {
|
|
||||||
item.dictName = item.name
|
|
||||||
item.dictValue = item.id
|
|
||||||
|
|
||||||
return item
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
onClose () {
|
onClose () {
|
||||||
this.form.explain = ''
|
this.form.explain = ''
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -55,14 +55,11 @@
|
|||||||
codeUrl: [],
|
codeUrl: [],
|
||||||
type: '',
|
type: '',
|
||||||
},
|
},
|
||||||
id: '',
|
id: ''
|
||||||
areaList: []
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.getAreaList()
|
|
||||||
|
|
||||||
if (this.params && this.params.areaId && !this.params.id) {
|
if (this.params && this.params.areaId && !this.params.id) {
|
||||||
this.form.areaId = this.params.areaId
|
this.form.areaId = this.params.areaId
|
||||||
this.form.areaName = this.params.areaName
|
this.form.areaName = this.params.areaName
|
||||||
@@ -86,19 +83,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getAreaList() {
|
|
||||||
this.instance.post(`/admin/area/queryAreaByParentId?id=341021104000`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.areaList = res.data.map(item => {
|
|
||||||
item.dictName = item.name
|
|
||||||
item.dictValue = item.id
|
|
||||||
|
|
||||||
return item
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
onClose () {
|
onClose () {
|
||||||
this.form.explain = ''
|
this.form.explain = ''
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -105,7 +105,6 @@
|
|||||||
label: 'name'
|
label: 'name'
|
||||||
},
|
},
|
||||||
currIndex: -1,
|
currIndex: -1,
|
||||||
areaList: [],
|
|
||||||
total: 10,
|
total: 10,
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{prop: 'codeName', label: '名称', align: 'left'},
|
{prop: 'codeName', label: '名称', align: 'left'},
|
||||||
@@ -140,7 +139,6 @@
|
|||||||
this.search.areaId = this.user.info.areaId
|
this.search.areaId = this.user.info.areaId
|
||||||
this.areaName = this.user.info.areaName
|
this.areaName = this.user.info.areaName
|
||||||
this.getTree()
|
this.getTree()
|
||||||
this.getAreaList()
|
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@@ -210,14 +208,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getAreaList() {
|
|
||||||
this.instance.post(`/admin/area/queryAreaByParentId?id=341021104000`).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.areaList = res.data
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
remove(id) {
|
remove(id) {
|
||||||
this.$confirm('确定删除该数据?').then(() => {
|
this.$confirm('确定删除该数据?').then(() => {
|
||||||
this.instance.post(`/app/appeveryvillagecode/delete?ids=${id}`).then(res => {
|
this.instance.post(`/app/appeveryvillagecode/delete?ids=${id}`).then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user