Merge pull request 'fix:样式修改' (#327) from fix/change_task into test

Reviewed-on: #327
pull/329/head
yaoshuli 1 year ago
commit 1e472b162d

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

@ -96,10 +96,22 @@ const columns: DataTableColumns<RowData> = [
title: '更新者',
key: 'updateby',
},
{
{
title: '更新时间',
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)

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

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

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

Loading…
Cancel
Save