lyc-dev #68

Merged
lyc merged 2 commits from lyc-dev into main 2024-07-26 13:28:02 +08:00
4 changed files with 6 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -215,6 +215,7 @@ function setLayout() {
height: 30px; height: 30px;
border-radius: 10px; border-radius: 10px;
margin-top: 8px; margin-top: 8px;
margin-right: 10px;
} }
.user-avatar:hover { .user-avatar:hover {

View File

@ -29,7 +29,7 @@
<i class="iconfont icon-bianji"></i> <i class="iconfont icon-bianji"></i>
<span>编辑</span> <span>编辑</span>
</div> </div>
<div class="item-popover-item" @click="delRow(item)"> <div class="item-popover-item" v-if="userInfo.userId == item.uploadUserId" @click="delRow(item)">
<i class="iconfont icon-shanchu"></i> <i class="iconfont icon-shanchu"></i>
<span>删除</span> <span>删除</span>
</div> </div>
@ -65,11 +65,15 @@ import FileImage from '@/components/file-image/index.vue'
import { deleteSmarttalk, updateSmarttalk } from '@/api/file' import { deleteSmarttalk, updateSmarttalk } from '@/api/file'
import { addFileToPrepare } from '@/api/subject' import { addFileToPrepare } from '@/api/subject'
import { getFileSuffix } from '@/utils/ruoyi' import { getFileSuffix } from '@/utils/ruoyi'
import useUserStore from '@/store/modules/user'
import useResoureStore from '../store' import useResoureStore from '../store'
const { ipcRenderer } = window.electron || {} const { ipcRenderer } = window.electron || {}
const userstore = useUserStore()
const sourceStore = useResoureStore() const sourceStore = useResoureStore()
const userInfo = userstore.user
// change // change
const handleSizeChange = (limit) => { const handleSizeChange = (limit) => {
sourceStore.query.pageSize = limit sourceStore.query.pageSize = limit