5.1日 暂定 水电表管理
This commit is contained in:
@@ -26,11 +26,11 @@
|
||||
</div>
|
||||
<div class="actions flex">
|
||||
<div @click="handleclick(item)">管理</div>
|
||||
<div @click="handleEdit(item)">编辑</div>
|
||||
<div @click="handleDelete(item)">删除</div>
|
||||
<div @click="handleEdit(item)" v-hasPermi="['system:village:edit']">编辑</div>
|
||||
<div @click="handleDelete(item)" v-hasPermi="['system:village:remove']">删除</div>
|
||||
</div>
|
||||
</div>
|
||||
<div @click="handleAdd" class="coummunity_card addActions flex flex-items-center justify-center">
|
||||
<div v-hasPermi="['system:village:add']" @click="handleAdd" class="coummunity_card addActions flex flex-items-center justify-center">
|
||||
<div class="addCoummunity">
|
||||
<el-icon>
|
||||
<AddLocation></AddLocation>
|
||||
@@ -60,7 +60,7 @@ function getlist() {
|
||||
getCommunitylistAPI().then((res) => {
|
||||
list.value = res.rows;
|
||||
const villageid = localStorage.getItem('villageid');
|
||||
const find = list.value.find((item) => item.villageId === Number(villageid));
|
||||
const find = list.value.find((item) => item.villageId === villageid);
|
||||
if (find) {
|
||||
currentViliageInfo.value = find;
|
||||
}
|
||||
@@ -95,10 +95,10 @@ function handleEdit(item: communitylist_rows_type) {
|
||||
/** 管理小区 */
|
||||
function handleclick(item: communitylist_rows_type) {
|
||||
switchVillageAPI(item.villageId).then(() => {
|
||||
localStorage.setItem('villageid', String(item.villageId));
|
||||
localStorage.setItem('villageid', item.villageId);
|
||||
houseStore.getviliageinfo(item.villageId);
|
||||
router.push({
|
||||
path: '/index'
|
||||
path: '/'
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user