|
@@ -129,17 +129,17 @@ export default defineComponent({
|
|
|
const getSubjectList = async () => {
|
|
|
try {
|
|
|
const res = await request.get('/api-tenant/open/subject/queryPage', {
|
|
|
- data: { page: 1, rows: 9999 }
|
|
|
+ params: { page: 1, rows: 9999, queryType: 'list' }
|
|
|
})
|
|
|
const rows = res.data.rows || []
|
|
|
const tempList: any = []
|
|
|
rows.forEach((item: any) => {
|
|
|
- if (item.parentSubjectId > 0) {
|
|
|
- tempList.push({
|
|
|
- text: item.name,
|
|
|
- value: item.id
|
|
|
- })
|
|
|
- }
|
|
|
+ // if (item.parentSubjectId > 0) {
|
|
|
+ tempList.push({
|
|
|
+ text: item.name,
|
|
|
+ value: item.id
|
|
|
+ })
|
|
|
+ // }
|
|
|
})
|
|
|
|
|
|
data.subjectList = tempList
|