Compare commits

..

2 Commits

Author SHA1 Message Date
wangxiaoshuang 58a590bbb7 Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web
continuous-integration/drone/push Build is passing Details
2025-04-10 17:46:47 +08:00
wangxiaoshuang b331b43b28 表格双击、授权按钮区分 2025-04-10 17:46:35 +08:00
1 changed files with 5 additions and 4 deletions

View File

@ -108,7 +108,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch v-model="scope.row.IsAuthorization" @change="(val) => auth(false, scope.row, val)" <el-switch v-model="scope.row.IsAuthorization" @change="(val) => auth(false, scope.row, val)"
:active-value="true" :inactive-value="false" :active-text="$fd('YesOrNo', true)" :active-value="true" :inactive-value="false" :active-text="$fd('YesOrNo', true)"
:inactive-text="$fd('YesOrNo', false)"> class="IsAuthorization_swich" :inactive-text="$fd('YesOrNo', false)">
</el-switch> </el-switch>
</template> </template>
</el-table-column> </el-table-column>
@ -128,8 +128,7 @@
v-if="rowData.FileFormat && ['png', 'jpg', 'jpeg'].includes(rowData.FileFormat.toLowerCase())" v-if="rowData.FileFormat && ['png', 'jpg', 'jpeg'].includes(rowData.FileFormat.toLowerCase())"
:images="[`${OSSclientConfig.basePath}${rowData.FilePath}`]" :options="viewerOptions"> :images="[`${OSSclientConfig.basePath}${rowData.FilePath}`]" :options="viewerOptions">
<img v-show="false" crossorigin="anonymous" :src="`${OSSclientConfig.basePath}${rowData.FilePath}`" <img v-show="false" :src="`${OSSclientConfig.basePath}${rowData.FilePath}`" alt="Image" />
alt="Image" />
</viewer> </viewer>
</div> </div>
</template> </template>
@ -966,7 +965,9 @@ export default {
// //
handleRowDblclick(row, column, event) { handleRowDblclick(row, column, event) {
// //
const isExpandButton = event.target.closest('.el-table__expand-icon'); let isExpandButton = event.target.closest('.el-table__expand-icon');
if (isExpandButton) return; //
isExpandButton = event.target.closest('.IsAuthorization_swich');
if (isExpandButton) return; // if (isExpandButton) return; //
if (!row.AuditDocumentTypeEnum) { if (!row.AuditDocumentTypeEnum) {
this.Id = row.Id this.Id = row.Id