From c978996d3e0390c0050479be4684af895cfb72cd Mon Sep 17 00:00:00 2001 From: 李喆(开发组) <lzhe@yxqiche.com> Date: 星期二, 18 三月 2025 17:17:39 +0800 Subject: [PATCH] 1 --- src/views/dnc/factory-file/index.vue | 27 +++++++++++++++------------ 1 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/views/dnc/factory-file/index.vue b/src/views/dnc/factory-file/index.vue index 857bfc2..a85b199 100644 --- a/src/views/dnc/factory-file/index.vue +++ b/src/views/dnc/factory-file/index.vue @@ -1,7 +1,7 @@ <!-- * @Date: 2024-05-20 21:43:10 * @LastEditors: Sneed - * @LastEditTime: 2024-06-06 23:11:22 + * @LastEditTime: 2024-06-16 15:52:44 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/factory-file/index.vue --> <template> @@ -20,16 +20,10 @@ :params="params" :apiObj="apiObj" @selection-change="selectionChange" stripe> <el-table-column type="selection" width="50"></el-table-column> <el-table-column label="鏂囦欢鍚嶇О" prop="filename"> - <!-- <template #default="scope"> - <el-icon style="margin-right: 4px;"> - <el-icon-folder v-if="scope.row.fileType === 1" /> - <el-icon-document v-else /> - </el-icon> - <a v-if="scope.row.fileType === 1" @click="goCurrent(scope.row)" - style="color: var(--el-color-primary);cursor: pointer;">{{ scope.row.name }}</a> - <a v-else @click="viewHis(scope.row)" - style="color: var(--el-color-primary);cursor: pointer;">{{ scope.row.name }}</a> - </template> --> + <template #default="scope"> + <a @click="goCurrent(scope.row)" + style="color: var(--el-color-primary);cursor: pointer;">{{ scope.row.filename }}</a> + </template> </el-table-column> <el-table-column label="鐗堟湰" prop="versionDesc"></el-table-column> <el-table-column label="鏂囦欢澶у皬" prop="contentLength"></el-table-column> @@ -39,7 +33,11 @@ <el-table-column label="鎿嶄綔" fixed="right" align="right" width="160"> <template #default="scope"> <el-button-group> - <el-button text type="primary" size="small" @click="del([scope.row])">鍒犻櫎</el-button> + <el-popconfirm width="220" title="纭畾灏嗛�夋嫨鐨勬暟鎹垹闄�" @confirm="del([scope.row], '0')"> + <template #reference> + <el-button text type="primary" size="small">鍒犻櫎</el-button> + </template> + </el-popconfirm> </el-button-group> </template> </el-table-column> @@ -70,6 +68,11 @@ } }, methods: { + goCurrent(row) { + console.log(row) + window.open(row.link) + // this.$HTTP.get(row.link) + }, selectionChange(selection) { this.selection = selection }, -- Gitblit v1.9.3