|
@@ -79,7 +79,7 @@
|
|
|
alt=""
|
|
|
style=""
|
|
|
/>
|
|
|
- {{ scope.row.fileName }}
|
|
|
+ <span style="cursor: pointer;" title="点击文件名称可直接打开文件" @dblclick="openFile(scope.row)">{{ scope.row.fileName }}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -173,8 +173,6 @@ const changeSearchType = (name) => {
|
|
|
//搜索框模糊搜索事件
|
|
|
const fileBlur = () => {
|
|
|
const arr = searchType.value != "all"?typeData.value: props.fileList;
|
|
|
- console.log("props.fileList", props.fileList);
|
|
|
- console.log("typeData.value", typeData.value);
|
|
|
if(searchFire.value){
|
|
|
tableData.value = arr?.filter((item) => {
|
|
|
if (item.fileName.includes(searchFire.value)) {
|
|
@@ -199,6 +197,10 @@ const collect = (row, bool) => {
|
|
|
const dCollect = (row, bool) => {
|
|
|
emit("delCollect", row, bool);
|
|
|
};
|
|
|
+//双击直接打开文件。需要根据文件类型做不同的打开动作
|
|
|
+const openFile=(item) =>{
|
|
|
+ console.log(item)
|
|
|
+}
|
|
|
|
|
|
//工具函数
|
|
|
//对mouseCli数组进行筛选,实现菜单的区分显示
|