8/4 更新 输入限制,修复收银台
This commit is contained in:
@@ -19,13 +19,13 @@
|
||||
<div
|
||||
class="topbox"
|
||||
:class="{
|
||||
quickbg: Sideactive === 1,
|
||||
todobg: Sideactive === 2
|
||||
quickbg: sideActive === 1,
|
||||
todobg: sideActive === 2
|
||||
}"
|
||||
>
|
||||
<div
|
||||
:class="{
|
||||
active: Sideactive === 1
|
||||
active: sideActive === 1
|
||||
}"
|
||||
@click="handleSelect(1)"
|
||||
>
|
||||
@@ -34,7 +34,7 @@
|
||||
</div>
|
||||
<div
|
||||
:class="{
|
||||
active: Sideactive === 2
|
||||
active: sideActive === 2
|
||||
}"
|
||||
@click="handleSelect(2)"
|
||||
>
|
||||
@@ -43,8 +43,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="body flex-1">
|
||||
<quick v-if="Sideactive === SideList.quick"></quick>
|
||||
<todo v-else-if="Sideactive === SideList.todo"></todo>
|
||||
<quick v-if="sideActive === SideList.quick"></quick>
|
||||
<todo v-else-if="sideActive === SideList.todo"></todo>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -68,7 +68,7 @@ import icon1 from './assets/user.png';
|
||||
import icon2 from './assets/user.png';
|
||||
import icon3 from './assets/car.png';
|
||||
import icon4 from './assets/device.png';
|
||||
import icon5 from './assets/wuliao.png';
|
||||
// import icon5 from './assets/wuliao.png';
|
||||
import icon6 from './assets/tousu.png';
|
||||
|
||||
import { getVillageByIdAPI } from '@/api/system/community';
|
||||
@@ -81,7 +81,7 @@ import quick from './components/quick.vue';
|
||||
import todo from './components/todo.vue';
|
||||
import feeOverview from './components/feeOverview.vue';
|
||||
|
||||
import inandoutEcharts from './components/inandout.vue';
|
||||
// import inandoutEcharts from './components/inandout.vue';
|
||||
import repairechartsAll from './components/repairechartsAll.vue';
|
||||
const houseStore = useHouseStore();
|
||||
const villageinfo = ref({
|
||||
@@ -97,15 +97,15 @@ const list = ref([
|
||||
// { name: '物料总数量', value: 458, icon: icon5 }
|
||||
]);
|
||||
|
||||
function getVillageinfo() {
|
||||
function getVillageInfo() {
|
||||
const id = localStorage.getItem('villageid');
|
||||
workSpaceTotalListApi(id).then((res) => {
|
||||
list.value[0].value = res.totalResident;
|
||||
list.value[1].value = res.totalHouse;
|
||||
list.value[2].value = res.totalParking;
|
||||
list.value[3].value = res.totalDevice;
|
||||
list.value[4].value = res.totalMaterial;
|
||||
list.value[5].value = res.totalComplaint;
|
||||
list.value[4].value = res.totalComplaint;
|
||||
list.value[5].value = res.totalMaterial;
|
||||
});
|
||||
getVillageByIdAPI(id).then((res) => {
|
||||
villageinfo.value = {
|
||||
@@ -127,12 +127,12 @@ function getVillageinfo() {
|
||||
houseStore.updateVilageinfo(res.data);
|
||||
});
|
||||
}
|
||||
getVillageinfo();
|
||||
getVillageInfo();
|
||||
|
||||
// ! 侧边栏
|
||||
const Sideactive = ref(1);
|
||||
const sideActive = ref(1);
|
||||
function handleSelect(val: number) {
|
||||
Sideactive.value = val;
|
||||
sideActive.value = val;
|
||||
}
|
||||
// ! 侧边栏
|
||||
/** 侧边栏功能枚举 */
|
||||
|
||||
Reference in New Issue
Block a user