解决控制台警告信息
This commit is contained in:
parent
ae99330228
commit
859c560351
@ -32,10 +32,28 @@
|
||||
<el-table :data="pager.lists" @cell-click="handleCurrentChange">
|
||||
<el-table-column label="账号" prop="account" min-width="120" />
|
||||
<el-table-column label="名称" prop="name" min-width="100" />
|
||||
<el-table-column label="角色" prop="role_name" min-width="100" show-tooltip-when-overflow />
|
||||
<el-table-column label="部门" prop="dept_name" min-width="100" show-tooltip-when-overflow />
|
||||
<el-table-column label="创建时间" prop="create_time" min-width="180" />
|
||||
<el-table-column label="最近登录时间" prop="login_time" min-width="180" />
|
||||
<el-table-column
|
||||
label="角色"
|
||||
prop="role_name"
|
||||
min-width="100"
|
||||
show-tooltip-when-overflow
|
||||
/>
|
||||
<el-table-column
|
||||
label="部门"
|
||||
prop="dept_name"
|
||||
min-width="100"
|
||||
show-tooltip-when-overflow
|
||||
/>
|
||||
<el-table-column
|
||||
label="创建时间"
|
||||
prop="create_time"
|
||||
min-width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
label="最近登录时间"
|
||||
prop="login_time"
|
||||
min-width="180"
|
||||
/>
|
||||
<el-table-column label="最近登录IP" prop="login_ip" min-width="120" />
|
||||
</el-table>
|
||||
</div>
|
||||
@ -47,11 +65,10 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="companyLists">
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { usePaging } from "@/hooks/usePaging";
|
||||
import { roleAll } from "@/api/perms/role";
|
||||
import { useDictData,useDictOptions } from '@/hooks/useDictOptions'
|
||||
import { useDictData, useDictOptions } from "@/hooks/useDictOptions";
|
||||
import { adminLists } from "@/api/perms/admin";
|
||||
import { defineEmits, defineProps } from 'vue'
|
||||
const { optionsData } = useDictOptions<{
|
||||
role: any[];
|
||||
}>({
|
||||
@ -63,32 +80,32 @@ const { optionsData } = useDictOptions<{
|
||||
const queryParams = reactive({
|
||||
name: "",
|
||||
role_id: "",
|
||||
})
|
||||
});
|
||||
|
||||
const props = defineProps({
|
||||
type: {
|
||||
type: Number,
|
||||
defualt: 0
|
||||
}
|
||||
})
|
||||
defualt: 0,
|
||||
},
|
||||
});
|
||||
|
||||
if (props.type == 8) {
|
||||
queryParams.role_id = 8
|
||||
queryParams.role_id = 8;
|
||||
}
|
||||
|
||||
// 选中数据
|
||||
const emits = defineEmits(['customEvent'])
|
||||
const emits = defineEmits(["customEvent"]);
|
||||
|
||||
// 选中数据子父传递
|
||||
const handleCurrentChange = (value: any) => {
|
||||
emits('customEvent', value)
|
||||
}
|
||||
emits("customEvent", value);
|
||||
};
|
||||
|
||||
// 分页相关
|
||||
const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||
fetchFun: adminLists,
|
||||
params: queryParams
|
||||
})
|
||||
params: queryParams,
|
||||
});
|
||||
|
||||
getLists()
|
||||
getLists();
|
||||
</script>
|
||||
|
@ -100,7 +100,7 @@ const queryParams = reactive({
|
||||
start_time: "",
|
||||
end_time: "",
|
||||
page_no: 1,
|
||||
pageSize: 150,
|
||||
page_size: 300,
|
||||
});
|
||||
if (route.query.id) {
|
||||
queryParams.scheduling_id = route.query.id.toString();
|
||||
|
@ -89,8 +89,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
datas: {
|
||||
type: Object,
|
||||
|
@ -89,8 +89,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
datas: {
|
||||
type: Object,
|
||||
|
@ -93,8 +93,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
datas: {
|
||||
type: Object,
|
||||
|
@ -97,8 +97,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
datas: {
|
||||
type: Object,
|
||||
|
@ -101,8 +101,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
datas: {
|
||||
type: Object,
|
||||
|
@ -217,8 +217,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
datas: {
|
||||
type: Object,
|
||||
|
@ -242,8 +242,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const storeTypeList = ref([
|
||||
"超市",
|
||||
"生鲜",
|
||||
|
@ -72,8 +72,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
datas: {
|
||||
type: Object,
|
||||
|
@ -40,8 +40,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
datas: {
|
||||
type: Object,
|
||||
|
@ -106,8 +106,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
datas: {
|
||||
type: Object,
|
||||
|
@ -113,8 +113,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const storeTypeList = ref([
|
||||
"超市",
|
||||
"生鲜",
|
||||
|
@ -256,8 +256,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const landPlanList = ref(["自己种", "出租", "代种", "租更多地扩大种植"]);
|
||||
|
||||
const props = defineProps({
|
||||
|
@ -164,8 +164,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const storeTypeList = ref([
|
||||
"超市",
|
||||
"生鲜",
|
||||
|
@ -242,8 +242,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { ref, defineProps } from "vue";
|
||||
|
||||
const storeTypeList = ref([
|
||||
"超市",
|
||||
"生鲜",
|
||||
|
Loading…
x
Reference in New Issue
Block a user