|
|
@@ -5,20 +5,20 @@
|
|
|
<div class="flex flex-center">
|
|
|
<span class="mr-10 nowrap">项目阶段</span>
|
|
|
<el-select
|
|
|
- v-model="folderInfo.stageId"
|
|
|
- remote
|
|
|
- filterable
|
|
|
- clearable
|
|
|
- placeholder="筛选项目阶段"
|
|
|
- :remote-method="remoteMethod"
|
|
|
- style="width: 100%"
|
|
|
- @change="folderResult"
|
|
|
+ v-model="folderInfo.stageId"
|
|
|
+ remote
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ placeholder="筛选项目阶段"
|
|
|
+ :remote-method="remoteMethod"
|
|
|
+ style="width: 100%"
|
|
|
+ @change="folderResult"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in stage"
|
|
|
- :key="item.id"
|
|
|
- :label="item.name"
|
|
|
- :value="item.id"
|
|
|
+ v-for="item in stage"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
@@ -31,24 +31,24 @@
|
|
|
<div class="full-width flex flex-center flex-justify-between">
|
|
|
<div class="full-width flex flex-justify-start flex-align-center">
|
|
|
<base-button
|
|
|
- title="新建文件夹"
|
|
|
- icon="Plus"
|
|
|
- @click="showDialog(1)"
|
|
|
+ title="新建文件夹"
|
|
|
+ icon="Plus"
|
|
|
+ @click="showDialog(1)"
|
|
|
/>
|
|
|
- <base-button title="批量授权" icon="User"/>
|
|
|
+ <base-button title="批量授权" icon="User" />
|
|
|
</div>
|
|
|
<div class="flex flex-center">
|
|
|
<span class="nowrap mr-10">文件搜索</span>
|
|
|
<el-input
|
|
|
- v-model="folderInfo.keyword"
|
|
|
- placeholder="输入文件关键字"
|
|
|
- style="width: 100%"
|
|
|
+ v-model="folderInfo.keyword"
|
|
|
+ placeholder="输入文件关键字"
|
|
|
+ style="width: 100%"
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-breadcrumb
|
|
|
- separator-icon="ArrowRight"
|
|
|
- class="mt-20 main-color pointer"
|
|
|
+ separator-icon="ArrowRight"
|
|
|
+ class="mt-20 main-color pointer"
|
|
|
>
|
|
|
<el-breadcrumb-item>提示说明</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
|
@@ -68,14 +68,14 @@
|
|
|
<el-button type="primary" plain>新建文件夹</el-button>
|
|
|
<el-button type="primary" plain>批量授权</el-button>
|
|
|
</div>
|
|
|
- <el-button round icon="el-icon-search"/>
|
|
|
+ <el-button round icon="el-icon-search" />
|
|
|
</div>
|
|
|
<el-breadcrumb
|
|
|
- separator-icon="ArrowRight"
|
|
|
- class="mt-20 main-color pointer"
|
|
|
+ separator-icon="ArrowRight"
|
|
|
+ class="mt-20 main-color pointer"
|
|
|
>
|
|
|
<el-breadcrumb-item @click="top = true"
|
|
|
- >返回上一层
|
|
|
+ >返回上一层
|
|
|
</el-breadcrumb-item>
|
|
|
<el-breadcrumb-item>全部文件</el-breadcrumb-item>
|
|
|
<el-breadcrumb-item>{{ data.title }}</el-breadcrumb-item>
|
|
|
@@ -83,12 +83,12 @@
|
|
|
<xtable :data="data" :option="option">
|
|
|
<template #row="{ index, row, ele }">
|
|
|
<div v-if="index === 0" class="light-purple-bg flex flex-center">
|
|
|
- <img src="@/assets/svg/folder/edit.svg" style="width: 40px"/>
|
|
|
+ <img src="@/assets/svg/folder/edit.svg" style="width: 40px" />
|
|
|
<div>
|
|
|
{{ row[ele.prop] }}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-empty v-else/>
|
|
|
+ <el-empty v-else />
|
|
|
</template>
|
|
|
</xtable>
|
|
|
</div>
|
|
|
@@ -96,9 +96,9 @@
|
|
|
|
|
|
<el-dialog v-model="show" :title="title" :width="width">
|
|
|
<floder
|
|
|
- v-if="showType === 1"
|
|
|
- :info="folderInfo"
|
|
|
- @close="colseDialog"
|
|
|
+ v-if="showType === 1"
|
|
|
+ :info="folderInfo"
|
|
|
+ @close="colseDialog"
|
|
|
></floder>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
@@ -132,7 +132,7 @@ export default {
|
|
|
width: 380,
|
|
|
title: '新建文件夹',
|
|
|
top: true,
|
|
|
- data: [{title: '@2'}, {title: '@3333', status: '555'}],
|
|
|
+ data: [{ title: '@2' }, { title: '@3333', status: '555' }],
|
|
|
option: {
|
|
|
column: [
|
|
|
{
|
|
|
@@ -199,7 +199,7 @@ export default {
|
|
|
folderOpen(row) {
|
|
|
console.log(row)
|
|
|
this.top = !this.top
|
|
|
- const data = {id: row.id, isHistory: 0}
|
|
|
+ const data = { id: row.id, isHistory: 0 }
|
|
|
this.$api.project.fileList(Object.assign(data, this.page)).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.data = res.data
|
|
|
@@ -213,12 +213,12 @@ export default {
|
|
|
*/
|
|
|
getStage() {
|
|
|
this.$api.project
|
|
|
- .includeStage({projectId: this.folderInfo.projectId})
|
|
|
- .then(res => {
|
|
|
- if (res.code === 200) {
|
|
|
- this.stage = res.data
|
|
|
- }
|
|
|
- })
|
|
|
+ .includeStage({ projectId: this.folderInfo.projectId })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.stage = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
folderResult(res) {
|
|
|
this.stageId = res
|