修复管理员bug

This commit is contained in:
X1627315083
2024-10-28 09:33:47 +08:00
parent 2ce3bcf1ba
commit e85a2cd802

View File

@@ -77,11 +77,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, ref, createVNode, computed } from "vue"; import { defineComponent, ref, createVNode, computed } from "vue";
import { useStore } from "vuex";
import { Https } from "@/tool/https"; import { Https } from "@/tool/https";
export default defineComponent({ export default defineComponent({
components: { components: {
}, },
setup() { setup() {
const store:any = useStore()
let rangePickerValue: any = ref([]); let rangePickerValue: any = ref([]);
let rangeTimeValue: any = ref([]); let rangeTimeValue: any = ref([]);
let renameData: any = ref({}); //修改名字选中的数据 let renameData: any = ref({}); //修改名字选中的数据
@@ -200,7 +202,9 @@ export default defineComponent({
]; ];
}); });
let allUserList: any = ref([]); let allUserList: any = computed(()=>{
return store.state.adminPage.allUserList
})
let ids = ref([]) let ids = ref([])
let email = ref('') let email = ref('')
let dataList: any = ref([]); let dataList: any = ref([]);
@@ -237,10 +241,6 @@ export default defineComponent({
let historyTable: any = this.$refs.historyTable; let historyTable: any = this.$refs.historyTable;
this.historyTableHeight = historyTable.clientHeight - 200; this.historyTableHeight = historyTable.clientHeight - 200;
this.gettrialList(); this.gettrialList();
let allUserList: any = sessionStorage.getItem("allUserList");
if (allUserList) {
this.allUserList = JSON.parse(allUserList);
}
}, },
methods: { methods: {
//改变页码 //改变页码