|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
|
- <div style="display: table" @click="handleClick">
|
|
|
+ <div style="display: table">
|
|
|
<el-row class="statistic-row h-full" :gutter="8" style="width: 180px" :class="{ 'is-admin': userInfo.usermode === 0 }">
|
|
|
<el-col :span="24" v-for="(item, index) in statisticData" :key="index">
|
|
|
- <StatisticItem :data="item" v-bind="$attrs" :iforigin="props.iforigin" />
|
|
|
+ <StatisticItem :data="item" v-bind="$attrs" :iforigin="props.iforigin" @click="handleClick(item)" />
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -165,9 +165,9 @@ watch(
|
|
|
{ immediate: true, deep: true }
|
|
|
);
|
|
|
|
|
|
-const handleClick = () => {
|
|
|
+const handleClick = (item: any) => {
|
|
|
if (userInfo.usermode === 0) {
|
|
|
- emit("click");
|
|
|
+ emit("click", item);
|
|
|
}
|
|
|
};
|
|
|
</script>
|