12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226 |
- <template>
- <div class="flexlayout guizhangzhidu">
- <!-- 文件区域 左边-->
- <div class="tablesfile">
- <div class="jichu">文件</div>
- <el-table
- v-loading="loading1"
- :data="fileinfoList"
- @selection-change="handleSelectionChange"
- :header-cell-style="{ background: '#003C69', color: 'white' }"
- >
- <el-table-column label="序号" type="index" width="100">
- </el-table-column>
- <el-table-column
- label="文件"
- align="center"
- width="650"
- prop="directory"
- class="fileNAME"
- >
- <template slot-scope="scope">
- <div style="display: flex; flex-warp: warp; margin-top: 10px">
- <div style="padding-left: 20px" class="uploadPeople">
- <!-- 根据后缀名控制图片显示doc还是pdf形式 -->
- <img
- v-if="scope.row.parentDirId == '.pdf'"
- src="../../../images/PDF.png"
- alt=""
- />
- <img
- v-else-if="scope.row.parentDirId == '.doc'|| scope.row.parentDirId == '.docx'"
- src="../../../images/doc.png"
- alt=""
- />
- </div>
- <!-- 文件名称 fileName -->
- <div>
- <div style="text-align: start; width: 100%;margin-left:30px">
- {{ scope.row.fileName }}
- </div>
- <!-- 上传人 createUser -->
- <!-- 页数 theNumberPages-->
- <!-- 时间 createTime -->
- <!-- 阅读量 readVolume -->
- <div style="display:flex">
- <span
- style="
- font-size: 14px;
- color: rgba(204, 204, 204, 1);
- margin-right: 30px;
- width:100px;
- margin-left:30px;
- display:block;
- text-align:start
- "
- >上传人:{{ scope.row.createUser }}</span
- >
- <span
- style="
- font-size: 14px;
- color: rgba(204, 204, 204, 1);
- margin-right: 30px;
- width:50px;
- display:block;
- text-align:start
- "
- >页数:{{ scope.row.theNumberPages }}</span
- >
- <span
- style="
- font-size: 14px;
- color: rgba(204, 204, 204, 1);
- margin-right: 30px;
- width:200px;
- display:block;
- text-align:start
- "
- >时间:{{ scope.row.createTime }}</span
- >
- <span
- style="
- font-size: 14px;
- color: rgba(204, 204, 204, 1);
- width:100px;
- display:block;
- "
- >阅读量:{{ scope.row.readVolume }}</span
- >
- </div>
- </div>
- </div>
- </template>
- </el-table-column>
- <!-- <el-table-column
- label="文件"
- align="center"
- class-name="small-padding fixed-width"
- label-width="30px"
- >
- <template slot-scope="scope">
- {{scope.row.directoryName}}
- </template>
- </el-table-column> -->
- <el-table-column
- label="操作"
- align="center"
- class-name="small-padding fixed-width"
- label-width="150px"
- >
- <template slot-scope="scope">
- <el-button
- size="read"
- type="text"
- @click.native="ViewRead(scope.row)"
- >
- <span>
- <!-- <iframe :src="'http://192.168.5.177:8080'+scope.row.parentDirName" target="_blank">阅读</iframe> -->
- <a
- :href="'http://192.168.5.177:8080' + scope.row.parentDirName"
- target="_blank"
- >阅读</a
- >
- </span>
- </el-button>
- <el-button
- size="reads"
- type="text"
- @click="handleupLoad(scope.row)"
- >
- <span class="chakan1">
- <a :href="scope.row.parentDirName" download>下载</a>
- </span>
- </el-button>
- <el-button size="dels" type="text" @click="handledels(scope.row)">
- <span> 删除 </span>
- </el-button>
- </template>
- </el-table-column>
- </el-table>
- <!-- <el-pagination
- :background="background"
- :current-page.sync="currentPage"
- :page-size.sync="queryParams.pageSize"
- :layout="layout"
- :page-sizes="queryParams.pageNum"
- :pager-count="pagerCount"
- :total="total"
- v-bind="$attrs"
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- /> -->
- <pagination
- v-show="total > 0"
- :total="total"
- :page.sync="queryParams.pageNum"
- :limit.sync="queryParams.pageSize"
- @pagination="getList"
- />
- </div>
- <!-- 右边 -->
- <div class="rights">
- <!-- 目录 -->
- <div class="catalog">
- <div class="jichu">
- 目录
- <el-button class="turnback" @click="turnback" v-if="addbtn==0">返回上级</el-button>
- <el-button class="uploadfilesbtn" :class="addbtn?'margins':''" @click="upload" v-if="addbtn!=0">上传文件</el-button
- ><el-button class="manage" @click="mange" v-if="addbtn!=0">目录管理</el-button>
- </div>
- <el-table
- v-loading="loading"
- :data="directory"
- @selection-change="handleSelectionChange"
- :header-cell-style="{ background: '#003C69', color: 'white' }"
- >
- <el-table-column label="序号" type="index" width="50">
- </el-table-column>
- <el-table-column label="目录" align="center" prop="directory">
- <template slot-scope="scope">
- <div
- @click="mulus(scope.row)"
- :class="scope.row.subclassification == 0 ? '' : 'undeline'"
- style="position:relative;cursor:pointer"
- >
- <img src="../../../images/文件夹.png" alt="" style="margin-right:5px;position:absolute;left:5px;top:2px">
- <span style="margin-left:25px"> {{ scope.row.directory }}</span>
- </div>
- </template>
- </el-table-column>
- <el-table-column
- label="子分类"
- align="center"
- prop="subclassification"
- />
- <el-table-column label="文件" align="center" prop="documentsNumber" />
- <!-- <el-table-column
- label="更新时间"
- align="center"
- class-name="small-padding fixed-width"
- >
- <template slot-scope="scope">
- <el-button
- size="add"
- type="text"
- @click="ViewProgress(scope.row)"
- v-if="addbtn==true"
- >
- <span>添加</span>
- </el-button>
- <el-button
- size="dels"
- type="text"
- @click="handleDelete(scope.row)"
- >
- <span class="chakan">删除</span>
- </el-button>
- </template>
- </el-table-column> -->
- <el-table-column
- label="操作"
- align="center"
- class-name="small-padding fixed-width"
- >
- <template slot-scope="scope">
- <el-button
- size="add"
- type="text"
- @click="ViewProgress(scope.row)"
- v-if="addbtn==true"
- >
- <span>添加</span>
- </el-button>
- <el-button
- size="dels"
- type="text"
- @click="handleDelete(scope.row)"
- >
- <span class="chakan">删除</span>
- </el-button>
- </template>
- </el-table-column>
- </el-table>
- <pagination
- class="pagination"
- v-show="total1 > 0"
- :total="total1"
- :page.sync="queryParams1.pageNum"
- :limit.sync="queryParams1.pageSize"
- @pagination="ListDirectoryinfo"
- />
- </div>
- <!-- 排行 -->
- <div class="Ranking">
- <div class="jichu">排行</div>
- <table style="color: white">
- <tr class="borderBottom" v-for="(item,index) in Ranking" :key="item.directory_id">
- <!-- 作战类 documentCategory -->
- <!-- 上月阅读量 readnumber1 -->
- <!-- 本月阅读量 readnumber2 -->
- <!-- 排序 -->
- <td class="numbers">{{index+1}}</td>
- <!-- 作战类类别 -->
- <td class="find">{{item.documentCategory}}</td>
- <!-- 上周阅读量 -->
- <td class="readnumber">
- 上月阅读量 <span style="margin-left: 5px">{{item.readnumber2}}</span>
- </td>
- <!-- 本周阅读量 -->
- <td class="thisweek" style="position:relative">
- <!-- <img src="../../../images/upRow.png" alt="" style="position:absolute;top:18px;right:158px" > -->
- <!-- <img src="../../../images/downRow.png" alt="" style="position:absolute;top:17px;right:158px"> -->
- 本月阅读量 <span style="color: red; margin-left: 5px">{{item. readnumber1}}</span>
- </td>
- </tr>
- </table>
- <!-- <el-table
- v-loading="loading"
- :data="list"
- @selection-change="handleSelectionChange"
- :header-cell-style="{ background: '#003C69', color: 'white' }"
- class="RankingTables"
- >
- <el-table-column label="排名" type="index" width="50">
- </el-table-column>
- <el-table-column label="类别" align="center" prop="directory">
- <template slot-scope="scope">
- <div
- @click="mulus(scope.row)"
- :class="scope.row.subclassification == 0 ? '' : 'undeline'"
- >
- {{ scope.row.directory }}
- </div>
- </template>
- </el-table-column>
- <el-table-column
- label="上周阅读量"
- align="center"
- prop="subclassification"
- />
- <el-table-column
- label="本周阅读量"
- align="center"
- class-name="small-padding fixed-width"
- >
- <template slot-scope="scope">
- <div style="position:relative"> -->
- <!-- 阅读量增长箭头 -->
- <!-- <img src="../../../images/upRow.png" alt="" style="position:absolute;top:5px;right:130px" >
- 阅读量下降箭头
- <img src="../../../images/downRow.png" alt="" style="position:absolute;top:5px;right:130px"> -->
- <!-- 本周阅读量
- {{scope.row.read}}
- </div>
- </template>
- </el-table-column>
- </el-table> -->
- </div>
- <!-- 上传文件弹框 -->
- <div class="big">
- <el-dialog
- style="color: pink"
- :title="title"
- :visible.sync="open"
- width="520px"
- append-to-body
- class="el-dialog__header"
- >
- <el-form
- ref="form"
- :model="form"
- :rules="rules"
- label-width="130px"
- :inline="true"
- >
- <el-form-item
- label-width="100px"
- prop="directory"
- class="change_plan_type"
- >
- <el-select
- v-model="form.directory"
- placeholder="请选择目录"
- clearable
- size="small"
- class="choose"
- >
- <el-option
- v-for="item in directory"
- :key="item.id"
- :label="item.directory"
- :value="item.directory"
- @click.native="chooseDirect(item.id)"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- prop="subclassification"
- class="change_plan_type"
- id="son"
- >
- <el-select
- v-model="form.subclassification"
- placeholder="请选择子分类"
- ref="dict"
- clearable
- size="small"
- >
- <el-option
- v-for="item in subclassification"
- :key="item.id"
- :label="item.directory"
- :value="item.directory"
- @click.native="soncategory(item.id)"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item style="margin-left: 30px; margin-top: 30px">
- <FileUpload v-model="form.file" />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">确 定</el-button>
- <el-button @click="cancel">取 消</el-button>
- </div>
- </el-dialog>
- </div>
- <!-- 新建分类弹框 -->
- <el-dialog
- style="color: pink"
- :title="title1"
- :visible.sync="open1"
- width="316px"
- append-to-body
- class="el-dialog__header"
- >
- <el-form
- ref="form1"
- :model="form1"
- :rules="rules"
- label-width="130px"
- :inline="true"
- >
- <el-form-item prop="directory">
- <el-input
- v-model="form1.directory"
- placeholder="请输入目录名称"
- @click.native="planName"
- class="filename"
- />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm1">确 定</el-button>
- <el-button @click="cancel">取 消</el-button>
- </div>
- </el-dialog>
- <!-- 添加子分类弹框 -->
- <el-dialog
- style="color: pink"
- :title="title2"
- :visible.sync="open2"
- width="316px"
- append-to-body
- class="el-dialog__header"
- >
- <el-form
- ref="form2"
- :model="form2"
- :rules="rules"
- label-width="130px"
- :inline="true"
- >
- <el-form-item prop="directory">
- <el-input
- v-model="form2.directory"
- placeholder="请输入子分类名称"
- @click.native="planName"
- class="filename"
- />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm2">确 定</el-button>
- <el-button @click="cancel">取 消</el-button>
- </div>
- </el-dialog>
- </div>
- </div>
- </template>
- <script>
- import {
- // 获取文件列表接口
- listFileinfo,
- // 修改文件列表接口
- getFileinfo,
- // 删除文件列表接口
- delFileinfo,
- // 上传文件
- addFileinfo,
- // 修改文件列表接口
- updateFileinfo,
- // 导出文件列表接口
- exportFileinfo,
- // 获取排行接口
- rankList
- } from "@/api/regulations/fileinfo";
- import {
- // 查询目录列表接口
- listDirectoryinfo,
- // 添加目录列表接口
- addDirectoryinfo,
- // 删除目录列表接口
- delDirectoryinfo,
- } from "@/api/regulations/directoryinfo";
- export default {
- name: "Fileinfo",
- data() {
- return {
- list: [
- {
- id: 1,
- file: "文件",
- },
- {
- id: 2,
- file: "文件",
- },
- {
- id: 3,
- file: "文件",
- },
- ],
- // 分页器1
- total: 0,
- // 分页器2
- total1: 0,
- queryParams: {
- pageNum: 1,
- pageSize: 8,
- catalog: "",
- category: "",
- fileName: null,
- readVolume: null,
- theNumberPages: null,
- createUser: null,
- createUserid: null,
- directoryId: null,
- directoryName: null,
- parentDirId: null,
- parentDirName: null,
- fileSize: null,
- },
- queryParams1: {
- pageNum: 1,
- pageSize: 5,
- catalog: "",
- category: "",
- fileName: null,
- readVolume: null,
- theNumberPages: null,
- createUser: null,
- createUserid: null,
- directoryId: null,
- directoryName: null,
- parentDirId: null,
- parentDirName: null,
- fileSize: null,
- },
- // 上传文件
- open: false,
- // 新建分类
- open1: false,
- // 添加子分类
- open2: false,
- // 表单参数
- form: {},
- // 新建目录
- form1: {},
- // 新建子分类
- form2: {},
- // 规章制度文件记录表格数据
- fileinfoList: [],
- // 表单校验
- rules: {},
- // 目录
- directory: [],
- // 父节点id
- parentId: "",
- // 遮罩层
- loading: true,
- // 导出遮罩层
- exportLoading: false,
- // 子分类
- subclassification: [],
- // 刷新
- loading1: false,
- // 文件
- file: {},
- //文件类型判断
- fileType: 1,
- // 添加子分类名称
- title2: "",
- // 添加新建分类名称
- title1: "",
- // 添加上传文件名称
- title: "",
- // 排行数据
- Ranking:[],
- // 添加按钮
- addbtn:true
- };
- },
- created() {
- this.getList();
- // 获取目录接口
- this.ListDirectoryinfo();
- // 获取排行目录接口
- rankList().then(res=>{
- this.Ranking=res.data
- })
- $(".app-wrapper").removeClass("openSidebar")
- console.log($(".app-wrapper"))
- $(".app-wrapper").addClass("hideSidebar")
- $(".sidebar-logo-container").removeClass("collapse")
- },
- methods: {
- // 文件删除按钮操作
- handledels(row) {
- this.$modal
- .confirm('是否确认删除该文件')
- .then(function () {
- return delFileinfo(row.id);
- })
- .then(() => {
- this.getList();
- this.$modal.msgSuccess("删除成功");
- })
- .catch(() => {});
- },
- // 子分类id
- soncategory(id) {
- this.form.directoryId = id;
- },
- // 获取目录列表
- ListDirectoryinfo() {
- this.loading = true;
- this.queryParams.common = "1";
- listDirectoryinfo(this.queryParams).then((res) => {
- console.log(res.rows)
- this.directory = res.rows;
- this.total1 = res.rows.length;
- this.loading = false;
- // console.log(this.directory);
- });
- },
- // 点击目录根据子目录的数量控制他是否可以点进去进行渲染
- mulus(row) {
- this.parentId = row.id;
- this.form.directoryId=row.id
- listFileinfo({directoryId:this.form.directoryId}).then(res=>{
- this.fileinfoList = res.rows;
- this.total = res.total;
- })
- listDirectoryinfo({ parentId: this.parentId }).then((res) => {
- res.rows.forEach((item) => {
- if (item.subclassification == 0) {
- this.directory = res.rows;
- this.addbtn=false
- } else {
- return;
- }
- });
- });
- // 绑定的数据 directory
- },
- // 返回目录
- turnback() {
- this.addbtn=true
- this.getList()
- this.ListDirectoryinfo();
- },
- // 选中父目录之后
- chooseDirect(id) {
- this.subclassification = [];
- this.parentId = id;
- // 获取到父目录id了
- listDirectoryinfo({ parentId: this.parentId }).then((res) => {
- this.subclassification = res.rows;
- });
- },
- /** 查询规章制度文件记录列表 */
- getList() {
- this.loading = true;
- listFileinfo(this.queryParams).then((response) => {
- console.log(response.total)
- this.fileinfoList = response.rows;
- this.total = response.total;
- this.loading=false
- });
- },
- // 取消按钮
- cancel() {
- this.open = false;
- this.reset();
- },
- // 表单重置
- reset() {
- this.form = {
- id: null,
- fileName: null,
- readVolume: null,
- theNumberPages: null,
- createUser: null,
- createUserid: null,
- createTime: null,
- directoryId: null,
- directoryName: null,
- parentDirId: null,
- parentDirName: null,
- fileSize: null,
- };
- this.resetForm("form");
- },
- /** 搜索按钮操作 */
- handleQuery() {
- this.queryParams.pageNum = 1;
- this.getList();
- },
- /** 重置按钮操作 */
- resetQuery() {
- this.resetForm("queryForm");
- this.handleQuery();
- },
- // 多选框选中数据
- handleSelectionChange(selection) {
- this.ids = selection.map((item) => item.id);
- this.single = selection.length !== 1;
- this.multiple = !selection.length;
- },
- /** 新增按钮操作 */
- handleAdd() {
- this.reset();
- this.open = true;
- this.title = "添加规章制度文件记录";
- },
- /** 修改按钮操作 */
- handleUpdate(row) {
- this.reset();
- const id = row.id || this.ids;
- getFileinfo(id).then((response) => {
- this.form = response.data;
- this.open = true;
- this.title = "修改规章制度文件记录";
- });
- },
- /** 上传文件提交按钮 */
- submitForm() {
- console.log(this.form)
- this.$refs["form"].validate((valid) => {
- if (valid) {
- console.log(this.form.file[0]);
- // 文件名
- this.form.fileName = this.form.file[0].name;
- // 路径
- this.form.parentDirName = this.form.file[0].url;
- // 后缀
- this.form.parentDirId = this.form.file[0].houZUI;
- // 页数
- this.form.theNumberPages = this.form.file[0].pageCount;
- // 文件大小
- this.form.fileSize = this.form.file[0].fileLength;
- // 目录名称
- this.form.directoryName = this.form.subclassification;
- //输出结果
- console.log(this.form);
- // 上传文件接口
- addFileinfo(this.form).then((response) => {
- this.ListDirectoryinfo();
- this.$modal.msgSuccess("上传成功");
- this.open = false;
- this.getList();
- });
- }
- });
- },
- // 新建分类
- submitForm1() {
- // 新建分类接口
- // addDirectoryinfo
- this.$refs["form1"].validate((valid) => {
- if (valid) {
- addDirectoryinfo(this.form1).then((response) => {
- this.$modal.msgSuccess("新增成功");
- this.ListDirectoryinfo();
- this.open1 = false;
- this.form1 = {};
- // this.reset()
- });
- }
- });
- },
- // 添加子分类
- submitForm2() {
- this.$refs["form2"].validate((valid) => {
- console.log(this.form2);
- if (valid) {
- addDirectoryinfo(this.form2).then((response) => {
- this.$modal.msgSuccess("上传子分类成功");
- this.open2 = false;
- this.form2 = {};
- this.ListDirectoryinfo();
- });
- }
- });
- },
- /** 删除按钮操作 */
- handleDelete(row) {
- const ids = row.id;
- console.log(ids);
- this.$modal
- .confirm("是否确认删除?")
- .then(function () {
- this.ListDirectoryinfo();
- this.getList();
- return delDirectoryinfo(ids);
- })
- .then(() => {
- this.ListDirectoryinfo();
- this.loading=false
- this.loading1=false
- this.$modal.msgSuccess("删除成功");
- })
- .catch(() => {});
- },
- /** 导出按钮操作 */
- handleExport() {
- const queryParams = this.queryParams;
- this.$modal
- .confirm("是否确认导出所有规章制度文件记录数据项?")
- .then(() => {
- this.exportLoading = true;
- return exportFileinfo(queryParams);
- })
- .then((response) => {
- this.$download.name(response.msg);
- this.exportLoading = false;
- })
- .catch(() => {});
- },
- // 上传
- upload() {
- // this.getList()
- this.reset();
- this.open = true;
- this.title = "上传文件";
- this.ListDirectoryinfo();
- },
- // 目录管理
- mange() {
- this.open1 = true;
- this.title1 = "新建分类";
- },
- // 添加
- ViewProgress(row) {
- // 传入父亲目录id
- this.form2.parentId = row.id;
- // console.log(this.form2.parentId)
- this.open2 = true;
- this.title2 = "请输入子分类名称";
- },
- // 取消按钮
- cancel() {
- this.open = false;
- this.open1 = false;
- this.open2 = false;
- this.comstatus = 0;
- this.reset();
- },
- // 阅读按钮操作
- ViewRead(row) {
- // console.log(row.id)
- // console.log(row)
- row.common = "1";
- updateFileinfo(row).then((res) => {
- this.getList();
- });
- // console.log(this.fileinfoList);
- // window.open("www.baidu.com","_self");
- },
- // 下载按钮操作
- handleupLoad() {},
- },
- };
- </script>
- <style scoped>
- .jichu {
- color: white;
- width: 100%;
- height: 40px;
- line-height: 40px;
- border-left: 4px solid rgba(29, 150, 255, 1);
- text-indent: 1em;
-
- }
- /* 文件表格 */
- .tablesfile {
- /* height: 87vh; */
- background: #00365f;
- width: calc(100% - 695px);
- position: absolute;
- left: 20px;
- top: 20px;
- bottom: 20px;
- }
- /* 弹性布局 */
- .flexlayout {
- display: flex;
- justify-content: space-around;
- align-items: flex-start;
- height: 100%;
- display: flex;
- width: 100%;
- margin: 20px 20px 20px;
- }
- /* 目录 */
- .catalog {
- width: 100%;
- height: 50%;
- position: relative;
- background-color: #00365f;
- }
- /* 弹框按钮 */
- .dialog-footer .el-button {
- width: 60px;
- height: 30px;
- }
- /* 分页器样式 */
- .pagination {
- position: absolute;
- bottom: 20px;
- right: 10px;
- }
- /* 排行 */
- .Ranking {
- width: 100%;
- height: 48.6%;
- right: 12%;
- top: 45%;
- background-color: #00365f;
- margin-top: 10px;
- margin-bottom: 20px;
- }
- /* 右边栏样式 */
- .rights {
- /* height: 100vh; */
- /* height: 85vh; */
- width: 632px;
- float: right;
- position: absolute;
- top: 20px;
- right: 20px;
- bottom: 20px;
- }
- /* 阅读 */
- .el-button--read {
- color: #ffffff;
- width: 50px;
- height: 30px;
- background-color: #1d96ff;
- border-radius: 4px;
- font-size: 14px;
- line-height: 5px;
- margin-right: 10px;
- }
- /* 阅读按钮1样式 */
- .el-button--reads {
- color: #ffffff;
- width: 67px;
- height: 30px;
- background-color: #1d96ff;
- border-radius: 4px;
- font-size: 14px;
- background-image: url("../../../images/uploads.png");
- background-repeat: no-repeat;
- background-position: 8px 6px;
- /* text-align: center; */
- line-height: 30px;
- margin-right: 10px;
- }
- /* 删除按钮样式 */
- .el-button--dels {
- color: #ffffff;
- width: 60px;
- height: 30px;
- background-color: #ff4949;
- border-radius: 4px;
- font-size: 14px;
- background-repeat: no-repeat;
- background-position: 8px 6px;
- /* text-align: center; */
- line-height: 5px;
- margin-right: 10px;
- }
- /* 查看按钮样式 */
- .el-button--reads .chakan {
- margin-left: 7px;
- }
- /* 阅读按钮样式 */
- .el-button--reads .chakan1 {
- padding-top:2px;
- margin-left: 7px;
- }
- /* 表格 */
- .tdfirst {
- width: 60px;
- text-align: center;
- }
- .tdsecound {
- width: 880px;
- }
- .tdthird {
- width: 70px;
- }
- .tdfourth {
- width: 70px;
- }
- tr {
- width: 100%;
- height: 50px;
- }
- .lefttable tr:nth-child(even) {
- background-color: #00365f;
- }
- .lefttable tr:nth-child(odd) {
- background-color: rgb(0, 60, 105);
- }
- /* 表格 */
- .numbers {
- width: 50px;
- text-align: center;
- /* background: pink; */
- /* margin-left: 10px; */
- }
- .find {
- /* background-color: skyblue; */
- font-size: 14px;
- width: 200px;
- text-align: center;
- }
- .readnumber {
- font-size: 14px;
- width: 220px;
- text-align: center;
- }
- .thisweek {
- font-size: 14px;
- width: 210px;
- text-align: center;
- }
- .borderBottom {
- width: 100%;
- height: 50px;
- border-bottom: 1px solid #718a9dff;
- }
- table {
- border-collapse: collapse;
- width: 100%;
- }
- /* 左边表格 */
- .lefttable tr {
- width: 100%;
- height: 60px;
- background-color: pink;
- }
- /* 上传文件 */
- .uploadfilesbtn {
- width: 80px;
- height: 33px;
- line-height: 33px;
- background-color: #1d96ff;
- color: white;
- border-radius: 4px;
- font-size: 14px;
- text-align: center;
- }
- .margins{
- margin-left: 370px;
- }
- /* 返回目录按钮 */
- .turnback {
- width: 86px;
- height: 33px;
- border: 1px solid #ccc;
- border-radius: 4px;
- font-size: 14px;
- line-height: 33px;
- margin-left: 30px;
- text-align: center;
- margin-left: 450px;
- color: #ccc;
- background: #00365f;
- }
- /* 目录管理 */
- .manage {
- /* display: inline-block; */
- width: 80px;
- height: 33px;
- line-height: 33px;
- background-color: #1d96ff;
- color: white;
- font-size: 14px;
- border-radius: 4px;
- margin-left: 10px;
- }
- .pagination-container {
- background: #fff;
- padding: 32px 16px;
- }
- .pagination-container.hidden {
- display: none;
- }
- /* 弹框样式修改 */
- ::v-deep .el-dialog {
- background-color: #004d86 !important;
- }
- ::v-deep .el-dialog__title {
- color: white;
- }
- ::v-deep .el-dialog__header {
- border-bottom: 1px solid #718a9dff;
- }
- ::v-deep .select_file {
- margin-left: -30px;
- }
- /* 计划附件 */
- ::v-deep .el-upload__tip {
- color: white;
- position: absolute;
- top: -5px;
- width: 500px;
- left: 80px;
- color: white;
- }
- ::v-deep .el-form-item__content {
- width: 230px;
- }
- /* 选取附件 */
- ::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-input__inner {
- background-color: #004d86;
- /* width: 270px; */
- }
- ::v-deep .filename .el-input__inner {
- width: 270px;
- color: white;
- }
- ::v-deep .el-select-dropdown__wrap {
- background-color: white !important;
- }
- .el-select-dropdown__item {
- text-indent: 1em;
- color: white;
- border: none !important;
- }
- ::v-deep .el-select-dropdown__wrap .el-scrollbar__view {
- background-color: white !important;
- }
- ::v-deep .pagination-container {
- display: block !important;
- }
- /* 添加按钮 */
- .el-button--add {
- width: 55px !important;
- border: 1px solid transparent;
- padding: 3px 8px;
- font-size: 14px;
- line-height: 1.5;
- border-radius: 3px;
- color: #fff;
- background-color: #13ce66;
- }
- /* 删除按钮 */
- .el-button--del {
- width: 46px !important;
- border: 1px solid transparent;
- padding: 3px 8px;
- font-size: 14px;
- line-height: 1.5;
- border-radius: 3px;
- color: #fff;
- background-color: #ff4949;
- }
- /* 下划线 */
- .undeline {
- /* text-decoration: underline; */
- /* text-align: start; */
- color: #1d96ff;
- cursor: pointer;
- }
- /* 序号居中 */
- ::v-deep .el-table_1_column_1,.el-table_3_column_9 {
- text-align: center;
- }
- ::v-deep .el-table_2_column_4 {
- text-align: center;
- }
- /* 导入按钮 */
- .imports {
- color: skyblue;
- display: inline-block;
- margin-top: 30px;
- margin-right: 150px;
- /* padding-top: 10px; */
- }
- .is-ready li {
- width: 300px !important;
- }
- .cursor {
- cursor: pointer;
- color: #409eff;
- font-size: 16px;
- }
- * {
- padding: 0;
- margin: 0;
- }
- html,
- body,
- #app {
- height: 100%;
- margin: 0;
- padding: 0;
- }
- /* .el-table td.el-table__cell div {
- margin: auto;
- } */
- /* 下拉框样式 */
- ::v-deep .guizhangzhidu .el-select-dropdown .el-select-dropdown__wrap .el-scrollbar__view{
- background-color: white !important;
- text-indent: 1em !important;
- }
- ::v-deep .guizhangzhidu .el-select-dropdown__list{
- background: white !important;
- }
- ::v-deep .el-table_2_column_13 .cell{
- text-align: center !important;
- }
- </style>
|