1、档案目录 点击 上传记录 跳转到 上传历史记录 已识别

2、档案目录      先查出所有目录   然后显示数量
3、档案目录、档案采集      展开/折叠后排序  (按拼音,顺序)
master
wanglei 1 year ago
parent c2df02daa0
commit f704b4a997

@ -9,6 +9,25 @@ export function listCatalog(query) {
})
}
// 查询档案目录列表 count
export function countCatalog(query) {
return request({
url: '/dangan/catalog/count',
method: 'get',
params: query
})
}
// 排序 number
export function getCatalogNumber(id) {
return request({
url: '/dangan/catalog/number/' + id,
method: 'get'
})
}
// 查询档案目录详细
export function getCatalog(id) {
return request({

@ -35,6 +35,51 @@
@click="toggleExpandAll"
>展开/折叠</el-button>
</el-col>
<el-col :span="1.5">
<el-button
v-if="queryParams.spell===null"
plain
size="mini"
@click="onSpell(0)"
>拼音</el-button>
<el-button
plain
v-if="queryParams.spell===0"
icon="el-icon-sort-up"
size="mini"
@click="onSpell(1)"
>拼音</el-button>
<el-button
plain
v-if="queryParams.spell===1"
icon="el-icon-sort-down"
size="mini"
@click="onSpell(0)"
>拼音</el-button>
</el-col>
<el-col :span="1.5">
<el-button
v-if="queryParams.xuhao===null"
plain
size="mini"
@click="onXuhao(0)"
>序号</el-button>
<el-button
plain
v-if="queryParams.xuhao===0"
icon="el-icon-sort-up"
size="mini"
@click="onXuhao(1)"
>序号</el-button>
<el-button
plain
v-if="queryParams.xuhao===1"
icon="el-icon-sort-down"
size="mini"
@click="onXuhao(0)"
>序号</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -250,7 +295,7 @@
</template>
<script>
import { listCatalog, getCatalog, delCatalog, addCatalog, updateCatalog } from "@/api/dangan/catalog";
import { listCatalog, getCatalog, delCatalog, addCatalog, updateCatalog, countCatalog, getCatalogNumber } from "@/api/dangan/catalog";
import { listAreaSort } from "@/api/dangan/areaSort";
import { listPictureRecard } from "@/api/dangan/pictureRecard";
import Treeselect from "@riophae/vue-treeselect";
@ -282,6 +327,8 @@ export default {
queryParams: {
muName: null,
pid: null,
spell: null,
xuhao: 1,
},
//
form: {},
@ -341,6 +388,10 @@ export default {
listCatalog(this.queryParams).then(response => {
this.list = this.handleTree(response.data, "id","pid");
this.loading = false;
countCatalog(this.queryParams).then(response => {
this.list = this.handleTree(response.data, "id","pid");
});
});
},
/** 转换目录数据结构 */
@ -460,13 +511,19 @@ export default {
},
//
handleSCJL(row){
this.$router.push("/pictureRecard?muId=" + row.id+"&ywType=" + row.ywType);
this.$router.push("/pictureRecard?muId=" + row.id+"&ywType=" + row.ywType+"&recognize=1");
},
//
selectPid(){
selectPid(row){
this.form.ywType = undefined;
this.form.picPath = undefined;
this.form.muName = undefined;
if(row.id!==0){
getCatalogNumber(row.id).then(response => {
this.form.orderNum = response.orderNum;
});
}
},
//
changeYwType(val){
@ -563,6 +620,26 @@ export default {
carouselChange(i){
console.log('carouselChange',i);
this.dtyl.index = i
},
onSpell(val){
this.queryParams.xuhao=null
if(val===0){
this.queryParams.spell=0;
this.getList();
}else {
this.queryParams.spell=1;
this.getList();
}
},
onXuhao(val){
this.queryParams.spell=null;
if(val===0){
this.queryParams.xuhao=0;
this.getList();
}else {
this.queryParams.xuhao=1;
this.getList();
}
}
}
};

@ -324,6 +324,7 @@ export default {
created() {
this.queryParams.muId = this.$route.query.muId || undefined
this.queryParams.ywType = this.$route.query.ywType || 'option1'
this.queryParams.recognize = this.$route.query.recognize || '0'
this.getList();
},
methods: {

Loading…
Cancel
Save