|
@@ -130,16 +130,8 @@
|
|
|
<!-- <div class="box-right"> -->
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- v-if="this.level == 1"
|
|
|
- plain
|
|
|
- icon="el-icon-plus"
|
|
|
- size="mini"
|
|
|
- @click="handleAdd"
|
|
|
- v-hasPermi="['thought:teacher:add']"
|
|
|
- >新增</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" v-if="this.level == 1" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
|
|
+ v-hasPermi="['thought:teacher:add']">新增</el-button>
|
|
|
</el-col>
|
|
|
<!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -175,12 +167,7 @@
|
|
|
>
|
|
|
</el-col> -->
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- class="turnback"
|
|
|
- @click.native="turnback"
|
|
|
- v-if="this.level != 1"
|
|
|
- >返回上级</el-button
|
|
|
- >
|
|
|
+ <el-button class="turnback" @click.native="turnback" v-if="this.level != 1">返回上级</el-button>
|
|
|
</el-col>
|
|
|
<!-- <el-col :span="1.5">
|
|
|
<el-button
|
|
@@ -193,98 +180,55 @@
|
|
|
v-hasPermi="['thought:teacher:export']"
|
|
|
>导出</el-button>
|
|
|
</el-col> -->
|
|
|
- <right-toolbar
|
|
|
- :showSearch.sync="showSearch"
|
|
|
- @queryTable="getList"
|
|
|
- ></right-toolbar>
|
|
|
+ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table
|
|
|
- v-loading="loading"
|
|
|
- :data="teacherList"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
- >
|
|
|
+ <el-table v-loading="loading" :data="teacherList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="序号" type="index" align="center" prop="id" />
|
|
|
<el-table-column label="目录" align="center" prop="directory" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <div
|
|
|
- @click="mulus(scope.row)"
|
|
|
- :class="scope.row.subclassification == 0 ? '' : 'undeline'"
|
|
|
- style="position: relative; cursor: pointer"
|
|
|
- >
|
|
|
- <img
|
|
|
- v-if="scope.row.subclassification != 0"
|
|
|
- src="../../../images/文件夹.png"
|
|
|
- alt=""
|
|
|
- style="
|
|
|
+ <div @click="mulus(scope.row)" :class="scope.row.subclassification == 0 ? 'fenlei' : 'undeline'"
|
|
|
+ style="position: relative; cursor: pointer">
|
|
|
+ <img v-if="scope.row.subclassification != 0" src="../../../images/文件夹.png" alt="" style="
|
|
|
margin-right: 5px;
|
|
|
position: absolute;
|
|
|
left: 80px;
|
|
|
top: 2px;
|
|
|
- "
|
|
|
- />
|
|
|
+ " />
|
|
|
<!-- -->
|
|
|
<!-- 分类图片 -->
|
|
|
- <img
|
|
|
- v-if="scope.row.subclassification == 0"
|
|
|
- src="../../../images/分类icon.png"
|
|
|
- alt=""
|
|
|
- style="
|
|
|
+ <img v-if="scope.row.subclassification == 0" src="../../../images/分类icon.png" alt="" style="
|
|
|
margin-right: 5px;
|
|
|
position: absolute;
|
|
|
left: 80px;
|
|
|
top: 2px;
|
|
|
- "
|
|
|
- />
|
|
|
+ " />
|
|
|
<span style="position: relative;right:-148px"> {{ scope.row.directory }}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- <el-table-column label="父目录ID" align="center" prop="parentId" /> -->
|
|
|
<!-- <el-table-column label="祖级列表" align="center" prop="ancestors" /> -->
|
|
|
- <el-table-column
|
|
|
- label="子分类数量"
|
|
|
- align="center"
|
|
|
- prop="subclassification"
|
|
|
- />
|
|
|
+ <el-table-column label="子分类数量" align="center" prop="subclassification" />
|
|
|
<el-table-column label="文件数" align="center" prop="documentsNumber" />
|
|
|
<!-- <el-table-column label="创建人姓名" align="center" prop="createUser" />
|
|
|
<el-table-column label="创建人ID" align="center" prop="createUserid" />
|
|
|
<el-table-column label="修改人姓名" align="center" prop="updateUser" />
|
|
|
<el-table-column label="修人姓名" align="center" prop="updateUserid" />
|
|
|
<el-table-column label="父级文件夹名称" align="center" prop="parentDirectory" /> -->
|
|
|
- <el-table-column
|
|
|
- label="操作"
|
|
|
- align="center"
|
|
|
- class-name="small-padding fixed-width"
|
|
|
- >
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="btu"
|
|
|
- type="text"
|
|
|
- @click="ViewProgress(scope.row)"
|
|
|
- v-hasPermi="['thought:teacher:edit']"
|
|
|
- >添加</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- size="btd"
|
|
|
- type="text"
|
|
|
- @click="handleDelete(scope.row)"
|
|
|
- v-hasPermi="['thought:teacher:remove']"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ <el-button size="btu" type="text" @click="ViewProgress(scope.row)" v-hasPermi="['thought:teacher:edit']">添加
|
|
|
+ </el-button>
|
|
|
+ <el-button size="btd" type="text" @click="handleDelete(scope.row)" v-hasPermi="['thought:teacher:remove']">删除
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
|
|
|
- <pagination
|
|
|
- v-show="total > 0"
|
|
|
- :total="total"
|
|
|
- :page.sync="queryParams.pageNum"
|
|
|
- :limit.sync="queryParams.pageSize"
|
|
|
- @pagination="getList"
|
|
|
- />
|
|
|
+ <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
|
|
+ @pagination="getList" />
|
|
|
|
|
|
<!-- 添加或修改教案库设置对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="400px" append-to-body>
|
|
@@ -299,28 +243,11 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 添加子分类弹框 -->
|
|
|
- <el-dialog
|
|
|
- style="color: pink"
|
|
|
- :title="title2"
|
|
|
- :visible.sync="open2"
|
|
|
- width="400px"
|
|
|
- append-to-body
|
|
|
- class="el-dialog__header"
|
|
|
- :close-on-click-modal="false"
|
|
|
- >
|
|
|
- <el-form
|
|
|
- ref="form2"
|
|
|
- :model="form2"
|
|
|
- :rules="rules"
|
|
|
- label-width="100px"
|
|
|
- :inline="true"
|
|
|
- >
|
|
|
+ <el-dialog style="color: pink" :title="title2" :visible.sync="open2" width="400px" append-to-body
|
|
|
+ class="el-dialog__header" :close-on-click-modal="false">
|
|
|
+ <el-form ref="form2" :model="form2" :rules="rules" label-width="100px" :inline="true">
|
|
|
<el-form-item prop="directory" label="子分类">
|
|
|
- <el-input
|
|
|
- v-model="form2.directory"
|
|
|
- placeholder="请输入子分类名称"
|
|
|
- class="filename"
|
|
|
- />
|
|
|
+ <el-input v-model="form2.directory" placeholder="请输入子分类名称" class="filename" />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -330,28 +257,10 @@
|
|
|
</el-dialog>
|
|
|
<!-- 上传文件弹框 -->
|
|
|
<div class="big">
|
|
|
- <el-dialog
|
|
|
- style="color: pink"
|
|
|
- :title="title3"
|
|
|
- :visible.sync="open3"
|
|
|
- width="400px"
|
|
|
- append-to-body
|
|
|
- class="el-dialog__header"
|
|
|
- :close-on-click-modal="false"
|
|
|
- >
|
|
|
- <el-form
|
|
|
- ref="form"
|
|
|
- :model="form"
|
|
|
- :rules="rules"
|
|
|
- label-width="130px"
|
|
|
- :inline="true"
|
|
|
- style="margin-left: 45px"
|
|
|
- >
|
|
|
- <el-form-item
|
|
|
- label-width="100px"
|
|
|
- prop="directory"
|
|
|
- class="change_plan_type"
|
|
|
- >
|
|
|
+ <el-dialog style="color: pink" :title="title3" :visible.sync="open3" width="400px" append-to-body
|
|
|
+ class="el-dialog__header" :close-on-click-modal="false">
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="130px" :inline="true" style="margin-left: 45px">
|
|
|
+ <el-form-item label-width="100px" prop="directory" class="change_plan_type">
|
|
|
<!-- <treeselect
|
|
|
v-model="form.directory"
|
|
|
:options="users"
|
|
@@ -733,7 +642,7 @@ export default {
|
|
|
});
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
})
|
|
|
- .catch(() => {});
|
|
|
+ .catch(() => { });
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
@@ -748,7 +657,7 @@ export default {
|
|
|
this.$download.name(response.msg);
|
|
|
this.exportLoading = false;
|
|
|
})
|
|
|
- .catch(() => {});
|
|
|
+ .catch(() => { });
|
|
|
},
|
|
|
},
|
|
|
};
|
|
@@ -769,6 +678,7 @@ export default {
|
|
|
color: #ccc;
|
|
|
background: #00365f;
|
|
|
}
|
|
|
+
|
|
|
.turnback:hover,
|
|
|
.turnback:focus,
|
|
|
.turnback:active {
|
|
@@ -784,13 +694,16 @@ export default {
|
|
|
margin-right: 25px;
|
|
|
color: white;
|
|
|
}
|
|
|
+
|
|
|
.threeselects {
|
|
|
width: 216px;
|
|
|
margin-right: 22px;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .vue-treeselect__single-value {
|
|
|
color: white;
|
|
|
}
|
|
|
+
|
|
|
/* 计划附件 */
|
|
|
::v-deep .el-upload__tip {
|
|
|
color: white;
|
|
@@ -800,29 +713,37 @@ export default {
|
|
|
left: 70px;
|
|
|
color: white;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-input__inner {
|
|
|
height: 36px;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-form-item__content {
|
|
|
width: 230px;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .select_file {
|
|
|
margin-left: -25px;
|
|
|
}
|
|
|
+
|
|
|
/* 选取附件 */
|
|
|
::v-deep .el-upload-list__item {
|
|
|
width: 400px;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-upload-list__item a {
|
|
|
color: white;
|
|
|
text-indent: 0.5em;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-select-dropdown__item {
|
|
|
color: white;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-dialog {
|
|
|
background-color: #004d86 !important;
|
|
|
}
|
|
|
+
|
|
|
/* 输入框 */
|
|
|
::v-deep .el-dialog .el-input__inner {
|
|
|
background-color: #004d86 !important;
|
|
@@ -831,6 +752,7 @@ export default {
|
|
|
margin-right: 20px;
|
|
|
border: 1px solid white !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-input__inner {
|
|
|
border: 1px solid white !important;
|
|
|
}
|
|
@@ -840,30 +762,36 @@ export default {
|
|
|
background-color: #004d86 !important;
|
|
|
color: white;
|
|
|
}
|
|
|
+
|
|
|
/* 标题弹框 */
|
|
|
::v-deep .el-dialog__title {
|
|
|
color: white;
|
|
|
/* border-bottom: 1px solid white; */
|
|
|
}
|
|
|
+
|
|
|
/* 标题下划线 */
|
|
|
::v-deep .el-dialog__header {
|
|
|
border-bottom: 1px solid white;
|
|
|
}
|
|
|
+
|
|
|
/* 左侧树形样式 */
|
|
|
::v-deep .data .el-date-editor.el-input {
|
|
|
width: 100%;
|
|
|
border: none;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .data .el-input__inner {
|
|
|
width: 100% !important;
|
|
|
border: none !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .data .el-input--medium .el-input__icon {
|
|
|
line-height: 36px;
|
|
|
position: absolute;
|
|
|
right: -223px;
|
|
|
top: 2px;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .data .el-input__inner {
|
|
|
background-color: transparent !important;
|
|
|
color: #fff;
|
|
@@ -874,16 +802,16 @@ export default {
|
|
|
::v-deep .el-dialog {
|
|
|
background-color: #004d86 !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-input__suffix {
|
|
|
right: 22px;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .el-tree-node__content {
|
|
|
height: 32px;
|
|
|
}
|
|
|
-::v-deep
|
|
|
- .el-tree--highlight-current
|
|
|
- .el-tree-node.is-current
|
|
|
- > .el-tree-node__content {
|
|
|
+
|
|
|
+::v-deep .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
|
|
|
height: 32px;
|
|
|
color: #fff !important;
|
|
|
background-color: #003156;
|
|
@@ -891,19 +819,38 @@ export default {
|
|
|
background-size: 100% 100%;
|
|
|
background-repeat: no-repeat;
|
|
|
}
|
|
|
+
|
|
|
/* 选择目录 */
|
|
|
::v-deep .choose .el-input__inner {
|
|
|
width: 240px;
|
|
|
}
|
|
|
+
|
|
|
.undeline {
|
|
|
/* text-decoration: underline; */
|
|
|
/* text-align: start; */
|
|
|
color: #00f0ff;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+
|
|
|
+::v-deep .undeline img, .fenlei img{
|
|
|
+ left: 20px !important;
|
|
|
+}
|
|
|
+
|
|
|
+::v-deep .undeline span, .fenlei span {
|
|
|
+ position: relative;
|
|
|
+ width: 176px;
|
|
|
+ display: inline-block;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ margin-left: 10px;
|
|
|
+ right: 0px !important;
|
|
|
+}
|
|
|
+
|
|
|
::v-deep .el-input__suffix {
|
|
|
right: 10px;
|
|
|
}
|
|
|
+
|
|
|
/* 树形样式 */
|
|
|
.vue-treeselect__control {
|
|
|
background-color: #003156 !important;
|