案例专业分类复原

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

@@ -103,9 +103,6 @@ const majorTypes = function () {
return ajax.get('/xboe/m/boe/cases/majorTypes'); return ajax.get('/xboe/m/boe/cases/majorTypes');
} }
const newMajorTypes = function(data){
return ajax.post('/xboe/m/dictionary/queryPage',data);
}
/** /**
* 详情新*/ * 详情新*/
const details = function (id, addView) { const details = function (id, addView) {
@@ -200,7 +197,6 @@ export default {
queryPraises, queryPraises,
queryComments, queryComments,
majorTypes, majorTypes,
newMajorTypes,
details, details,
ids, ids,
excellent, excellent,

View File

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

View File

@@ -1437,6 +1437,9 @@ export default {
] ]
} }
this.count = res?.result?.count this.count = res?.result?.count
if(this.newData) {
this.count = 1
}
this.moreState = 3 this.moreState = 3
} else { } else {
this.moreState = 2; this.moreState = 2;