fix:样式修改 #327

Merged
yaoshuli merged 1 commits from fix/change_task into test 1 year ago

@ -105,13 +105,22 @@ export default defineComponent({
// 退 // 退
const doLogout = () => { const doLogout = () => {
dialog.info({ dialog.warning({
title: '提示', title: '确认提示',
content: '您确定要退出登录吗', content: '您确定要退出登录吗',
positiveText: '确定', positiveText: '取消',
negativeText: '取消', negativeText: '确定',
negativeButtonProps: {
type: 'info',
ghost: false,
},
positiveButtonProps: {
type: 'default',
},
onPositiveClick: () => { onPositiveClick: () => {
userStore.logout().then(() => {
},
onNegativeClick: () => { userStore.logout().then(() => {
message.success('成功退出登录') message.success('成功退出登录')
router router
.replace({ .replace({
@ -121,9 +130,7 @@ export default defineComponent({
}, },
}) })
.finally(() => location.reload()) .finally(() => location.reload())
}) })},
},
onNegativeClick: () => {},
}) })
} }

@ -96,10 +96,22 @@ const columns: DataTableColumns<RowData> = [
title: '更新者', title: '更新者',
key: 'updateby', key: 'updateby',
}, },
{ {
title: '更新时间', title: '更新时间',
key: 'updatetime', key: 'updatetime',
width:180,
renderSorterIcon: ({ order }) => {
if (order === false)
return h(SvgIcon, { name: 'sort-2' })
if (order === 'ascend')
return h(SvgIcon, { name: 'sort-1' })
if (order === 'descend')
return h(SvgIcon, { name: 'sort-3' })
},
sorter: (row1, row2) =>
new Date(row1?.updatetime).getTime() - new Date(row2?.updatetime).getTime(),
}, },
] ]
const loading = ref(true) const loading = ref(true)

@ -521,6 +521,7 @@ watch(
for (let i=0; i<item.length;i++){ for (let i=0; i<item.length;i++){
console.log(item[i]) console.log(item[i])
item[i].showcheck=true item[i].showcheck=true
selectionIds.value.push(item[i])
ooo.push(item[i]) ooo.push(item[i])
} }
// console.log(item) // console.log(item)
@ -541,7 +542,7 @@ watch(
item=ooo item=ooo
newlist.push(item) newlist.push(item)
}) })
selectionIds.value=[]
tableData.value=newlist tableData.value=newlist
} }

@ -280,13 +280,7 @@ defineExpose({
<div class="wrapper" > <div class="wrapper" >
<div class="wrapper-left"> <div class="wrapper-left">
<svg-icon v-if="icontype==0" name="shield" size="32" /> <svg-icon v-if="icontype==0" name="shield" size="32" />
<SvgIcon
v-if="icontype==1"
:style="{ marginLeft: '5px' }"
name="xiala"
size="16"
color="#999999"
/>
<n-popover <n-popover
ref="popover" ref="popover"
:style="{ padding: '0px' }" :style="{ padding: '0px' }"
@ -297,6 +291,13 @@ defineExpose({
> >
<template #trigger> <template #trigger>
<div class="wrapper-left-dropdown" @click="showClick"> <div class="wrapper-left-dropdown" @click="showClick">
<SvgIcon
v-if="icontype==1"
:style="{ marginLeft: '-10px',marginRight:'10px' }"
name="xiala"
size="16"
color="#999999"
/>
<n-tooltip trigger="hover"> <n-tooltip trigger="hover">
<template #trigger> <template #trigger>
<span <span
@ -311,12 +312,7 @@ defineExpose({
{{ currentlySelectedAdvanced }} {{ currentlySelectedAdvanced }}
</n-tooltip> </n-tooltip>
<SvgIcon
:style="{ marginLeft: '5px' }"
name="down"
size="14"
color="#999999"
/>
</div> </div>
</template> </template>
<n-spin :show="loading"> <n-spin :show="loading">
@ -349,12 +345,13 @@ defineExpose({
</n-form-item> </n-form-item>
</n-form> </n-form>
<ul ref="el" class="wrapper-left-list" @scroll="handleScroll"> <ul ref="el" class="wrapper-left-list" @scroll="handleScroll">
<VueDraggable <VueDraggable
v-model="data" v-model="data"
class="draggable-ul" class="draggable-ul"
:animation="150" :animation="150"
group="shared" group="sleceted"
@end="moveoneEnd" @end="moveoneEnd"
> >
<li <li
@ -429,7 +426,9 @@ defineExpose({
v-html="item.name" v-html="item.name"
/> />
</li> </li>
</VueDraggable> </VueDraggable><div>
</div>
</ul> </ul>
</div> </div>
</n-spin> </n-spin>

@ -113,7 +113,17 @@ const columns: DataTableColumns<RowData> = [
title: '创建时间', title: '创建时间',
key: 'createtime', key: 'createtime',
width: 180, width: 180,
renderSorterIcon: ({ order }) => {
},
{
title: '更新者',
key: 'updateby',
},
{
title: '更新时间',
key: 'updatetime',
width: 180,
renderSorterIcon: ({ order }) => {
if (order === false) if (order === false)
return h(SvgIcon, { name: 'sort-2' }) return h(SvgIcon, { name: 'sort-2' })
if (order === 'ascend') if (order === 'ascend')
@ -121,22 +131,13 @@ const columns: DataTableColumns<RowData> = [
if (order === 'descend') if (order === 'descend')
return h(SvgIcon, { name: 'sort-3' }) return h(SvgIcon, { name: 'sort-3' })
}, },
sorter: (row1, row2) => { sorter: (row1, row2) => {
// tableData.value.sort( // tableData.value.sort(
// (a, b) => new Date(a?.createtime).getTime() - new Date(b?.createtime).getTime() // (a, b) => new Date(a?.createtime).getTime() - new Date(b?.createtime).getTime()
// ) // )
return new Date(row1?.createtime).getTime() - new Date(row2?.createtime).getTime() return new Date(row1?.updatetime).getTime() - new Date(row2?.updatetime).getTime()
}, },
}, },
{
title: '更新者',
key: 'updateby',
},
{
title: '更新时间',
key: 'updatetime',
width: 180,
},
] ]
const total = ref(0) const total = ref(0)
const loading = ref(true) const loading = ref(true)

Loading…
Cancel
Save