|
@@ -5,20 +5,20 @@
|
|
|
<div class="flex flex-center">
|
|
<div class="flex flex-center">
|
|
|
<span class="mr-10 nowrap">项目阶段</span>
|
|
<span class="mr-10 nowrap">项目阶段</span>
|
|
|
<el-select
|
|
<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
|
|
<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-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
@@ -30,19 +30,27 @@
|
|
|
<div v-if="top">
|
|
<div v-if="top">
|
|
|
<div class="full-width flex flex-center flex-justify-between">
|
|
<div class="full-width flex flex-center flex-justify-between">
|
|
|
<div class="full-width flex flex-justify-start flex-align-center">
|
|
<div class="full-width flex flex-justify-start flex-align-center">
|
|
|
- <base-button title="新建文件夹" icon="Plus" @click="showDialog(1)"/>
|
|
|
|
|
- <base-button title="批量授权" icon="User"/>
|
|
|
|
|
|
|
+ <base-button
|
|
|
|
|
+ title="新建文件夹"
|
|
|
|
|
+ icon="Plus"
|
|
|
|
|
+ @click="showDialog(1)"
|
|
|
|
|
+ />
|
|
|
|
|
+ <base-button title="批量授权" icon="User" />
|
|
|
</div>
|
|
</div>
|
|
|
- <el-button round icon="el-icon-search"/>
|
|
|
|
|
|
|
+ <el-button round icon="el-icon-search" />
|
|
|
</div>
|
|
</div>
|
|
|
<el-breadcrumb
|
|
<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-item> 提示说明</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
</el-breadcrumb>
|
|
|
<xtable :data="data" :option="option" @row-click="top = !top">
|
|
<xtable :data="data" :option="option" @row-click="top = !top">
|
|
|
- <template #row="{ row, ele }"> {{ row[ele.prop] }}</template>
|
|
|
|
|
|
|
+ <template #row="{ row, ele }">
|
|
|
|
|
+ <div class="flex light-blue-bg">
|
|
|
|
|
+ {{ row[ele.prop] }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
</xtable>
|
|
</xtable>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 下级目录-->
|
|
<!-- 下级目录-->
|
|
@@ -53,23 +61,22 @@
|
|
|
<el-button type="primary" plain>新建文件夹</el-button>
|
|
<el-button type="primary" plain>新建文件夹</el-button>
|
|
|
<el-button type="primary" plain>批量授权</el-button>
|
|
<el-button type="primary" plain>批量授权</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
- <el-button round icon="el-icon-search"/>
|
|
|
|
|
|
|
+ <el-button round icon="el-icon-search" />
|
|
|
</div>
|
|
</div>
|
|
|
<el-breadcrumb
|
|
<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 @click="top = true"
|
|
|
- >返回上一层
|
|
|
|
|
- </el-breadcrumb-item
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ >返回上一层
|
|
|
|
|
+ </el-breadcrumb-item>
|
|
|
<el-breadcrumb-item>全部文件</el-breadcrumb-item>
|
|
<el-breadcrumb-item>全部文件</el-breadcrumb-item>
|
|
|
<el-breadcrumb-item>归档1</el-breadcrumb-item>
|
|
<el-breadcrumb-item>归档1</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
</el-breadcrumb>
|
|
|
<xtable :data="data" :option="option">
|
|
<xtable :data="data" :option="option">
|
|
|
<template #row="{ index, row, ele }">
|
|
<template #row="{ index, row, ele }">
|
|
|
<div v-if="index === 0" class="light-purple-bg flex flex-center">
|
|
<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>
|
|
<div>
|
|
|
{{ row[ele.prop] }}
|
|
{{ row[ele.prop] }}
|
|
|
</div>
|
|
</div>
|
|
@@ -80,10 +87,12 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
|
|
- <el-dialog v-model="show" :title="title"
|
|
|
|
|
- :width="width"
|
|
|
|
|
- >
|
|
|
|
|
- <floder v-if="showType === 1" :info="folderInfo" @close="colseDialog"></floder>
|
|
|
|
|
|
|
+ <el-dialog v-model="show" :title="title" :width="width">
|
|
|
|
|
+ <floder
|
|
|
|
|
+ v-if="showType === 1"
|
|
|
|
|
+ :info="folderInfo"
|
|
|
|
|
+ @close="colseDialog"
|
|
|
|
|
+ ></floder>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -99,7 +108,7 @@ meta: { 'show': false }
|
|
|
import tipsCustom from '@/components/tips-custom/index.vue'
|
|
import tipsCustom from '@/components/tips-custom/index.vue'
|
|
|
import xtable from '@/views/resource/component/xtable.vue'
|
|
import xtable from '@/views/resource/component/xtable.vue'
|
|
|
import floder from '@/views/resource/component/floder.vue'
|
|
import floder from '@/views/resource/component/floder.vue'
|
|
|
-import baseButton from "@/components/base-button.vue";
|
|
|
|
|
|
|
+import baseButton from '@/components/base-button.vue'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
@@ -116,14 +125,14 @@ export default {
|
|
|
width: 380,
|
|
width: 380,
|
|
|
title: '新建文件夹',
|
|
title: '新建文件夹',
|
|
|
top: true,
|
|
top: true,
|
|
|
- data: [],
|
|
|
|
|
|
|
+ data: [{ title: '@2' }, { title: '@3333', status: '555' }],
|
|
|
option: {
|
|
option: {
|
|
|
column: [
|
|
column: [
|
|
|
{
|
|
{
|
|
|
label: '名称',
|
|
label: '名称',
|
|
|
prop: 'title',
|
|
prop: 'title',
|
|
|
display: false,
|
|
display: false,
|
|
|
- width: 170
|
|
|
|
|
|
|
+ width: 270
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '状态',
|
|
label: '状态',
|
|
@@ -150,7 +159,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
page: {
|
|
page: {
|
|
|
current: 1,
|
|
current: 1,
|
|
|
- size: 10,
|
|
|
|
|
|
|
+ size: 10
|
|
|
},
|
|
},
|
|
|
total: ''
|
|
total: ''
|
|
|
}
|
|
}
|
|
@@ -170,7 +179,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
getFolderList() {
|
|
getFolderList() {
|
|
|
const data = {
|
|
const data = {
|
|
|
- stageId: this.folderInfo.stageId,
|
|
|
|
|
|
|
+ stageId: this.folderInfo.stageId
|
|
|
}
|
|
}
|
|
|
this.$api.project.folderList(Object.assign(data, this.page)).then(res => {
|
|
this.$api.project.folderList(Object.assign(data, this.page)).then(res => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
@@ -183,18 +192,19 @@ export default {
|
|
|
* 获取项目阶段
|
|
* 获取项目阶段
|
|
|
*/
|
|
*/
|
|
|
getStage() {
|
|
getStage() {
|
|
|
- this.$api.project.includeStage({projectId: this.folderInfo.projectId}).then(res => {
|
|
|
|
|
- if (res.code === 200) {
|
|
|
|
|
- this.stage = res.data
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.$api.project
|
|
|
|
|
+ .includeStage({ projectId: this.folderInfo.projectId })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ this.stage = res.data
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
folderResult(res) {
|
|
folderResult(res) {
|
|
|
this.stageId = res
|
|
this.stageId = res
|
|
|
this.getFolderList()
|
|
this.getFolderList()
|
|
|
}
|
|
}
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|