案例专业分类复原

This commit is contained in:
joshen@zcwytd.com
2023-08-03 17:16:40 +08:00
parent 883c613823
commit 570e424910
3 changed files with 12 additions and 22 deletions

View File

@@ -416,15 +416,7 @@ export default {
type3: 0,
isFind: false,
fielclassjor: true,
localSessionKey: this.$xpage.constants.localCaseFiltersKey,
major:{
key:'major_type',
pageIndex:1,
pageSize:10,
name:'',
filter:'',
code:''
}
localSessionKey: this.$xpage.constants.localCaseFiltersKey
};
},
watch: {
@@ -517,7 +509,7 @@ export default {
}
console.log(isBack, 'isBack');
// Promise.all([apiType.items("org_domain"), apiCase.majorTypes()]).then(rs => {
Promise.all([apiType.treeList(1,90,1), apiCase.newMajorTypes(this.major)]).then(rs => {
Promise.all([apiType.treeList(1,90,1), apiCase.majorTypes()]).then(rs => {
if (rs[0].code == 200) {
const {records} = rs[0].data
records.forEach(item => {
@@ -540,12 +532,11 @@ export default {
this.domain = records;
}
if (rs[1].status == 200) {
const { list } = rs[1].result
list.forEach(item => {
rs[1].result.forEach(item => {
item.fielclass = false;
item.type = 'major_type';
})
this.speciData = list;
this.speciData = rs[1].result;
}
this.loadLocalFilters();
this.$nextTick(function () {
@@ -1051,7 +1042,7 @@ export default {
this.moreState = 2;
await apiCase.queryListV2(this.queryCondition).then((res) => {
if (res.status == 200) {
if (res.result?.list?.length > 0) {
if (res.result.list.length > 0) {
this.isSeach = false;
res.result.list.forEach(item => {
item.majorType = item.majorType ? item.majorType.split(",") : [];
@@ -1073,11 +1064,11 @@ export default {
this.moreState = 3;
}
console.log(res?.result?.list ,'有没有数据');
this.caseList.list = res?.result?.list ?? []
this.getCaseUserData(this.caseList.list);
this.caseList.list = res.result.list
this.getCaseUserData(res.result.list);
// 给所有的赋值
this.caseList.count = res?.result?.count ?? 0;
this.caseList.showPagCount = res?.result?.count ?? 0;
this.caseList.count = res.result.count;
this.caseList.showPagCount = res.result.count;
} else {
this.$message.error(res.message);
}