档案目录调整

master
wanglei 2 years ago
parent a54d3509c2
commit 7ca5ad7885

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="70px">
<el-form-item label="目录名称" prop="muName"> <el-form-item label="目录名称" prop="muName">
<el-input <el-input
v-model="queryParams.muName" v-model="queryParams.muName"
@ -9,22 +9,6 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="祖级列表" prop="ancestors">
<el-input
v-model="queryParams.ancestors"
placeholder="请输入祖级列表"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="显示顺序" prop="orderNum">
<el-input
v-model="queryParams.orderNum"
placeholder="请输入显示顺序"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"></el-button>
@ -60,13 +44,13 @@
row-key="id" row-key="id"
:default-expand-all="isExpandAll" :default-expand-all="isExpandAll"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}" border> :tree-props="{children: 'children', hasChildren: 'hasChildren'}" border>
<el-table-column label="目录名称" align="left" header-align="center" prop="muName" min-width="160" fixed> <el-table-column label="目录名称" align="left" header-align="center" prop="muName" min-width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link type="primary" @click="handleDAXX(scope.row)">{{ scope.row.muName }}</el-link> <el-link type="primary" @click="handleDAXX(scope.row)">{{ scope.row.muName }}</el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="ID" align="center" prop="id"/> <el-table-column label="ID" align="center" prop="id" min-width="50" show-overflow-tooltip/>
<el-table-column label="业务类型" align="center" prop="ywType" > <el-table-column label="业务类型" align="center" prop="ywType" min-width="100" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.yw_type" :value="scope.row.ywType"/> <dict-tag :options="dict.type.yw_type" :value="scope.row.ywType"/>
</template> </template>
@ -82,7 +66,7 @@
<image-preview :src="scope.row.picPath" :width="50" :height="50" v-if="scope.row.pid===0"/> <image-preview :src="scope.row.picPath" :width="50" :height="50" v-if="scope.row.pid===0"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间" align="center" prop="createTime"> <el-table-column label="创建时间" align="center" prop="createTime" min-width="100" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span> <span>{{ parseTime(scope.row.createTime) }}</span>
</template> </template>
@ -164,7 +148,7 @@
<el-form-item label="显示顺序" prop="orderNum"> <el-form-item label="显示顺序" prop="orderNum">
<el-input-number v-model="form.orderNum" controls-position="right" :min="0" /> <el-input-number v-model="form.orderNum" controls-position="right" :min="0" />
</el-form-item> </el-form-item>
<el-form-item label="菜单状态" prop="status"> <el-form-item label="目录状态" prop="status">
<el-radio-group v-model="form.status"> <el-radio-group v-model="form.status">
<el-radio <el-radio
v-for="dict in dict.type.sys_normal_disable" v-for="dict in dict.type.sys_normal_disable"
@ -265,10 +249,6 @@ export default {
queryParams: { queryParams: {
muName: null, muName: null,
pid: null, pid: null,
ancestors: null,
orderNum: null,
ywType: null,
status: null,
}, },
// //
form: {}, form: {},
@ -315,8 +295,6 @@ export default {
listCatalog(this.queryParams).then(response => { listCatalog(this.queryParams).then(response => {
this.list = this.handleTree(response.data, "id","pid"); this.list = this.handleTree(response.data, "id","pid");
this.loading = false; this.loading = false;
console.log(this.list);
}); });
}, },
/** 转换目录数据结构 */ /** 转换目录数据结构 */
@ -353,7 +331,7 @@ export default {
ancestors: null, ancestors: null,
orderNum: null, orderNum: null,
ywType: null, ywType: null,
status: null, status: '0',
remark: null, remark: null,
createBy: null, createBy: null,
createTime: null, createTime: null,

Loading…
Cancel
Save