|
@@ -0,0 +1,27 @@
|
|
|
+import conditionObjectBase from '../condition-object-base.js'
|
|
|
+import {papersAreas,} from '@/api/webApi/webQue.js'
|
|
|
+
|
|
|
+export default {
|
|
|
+ ...conditionObjectBase,
|
|
|
+ key: 'paperAreaHistory',
|
|
|
+ alias: 'area',
|
|
|
+ title: '地区',
|
|
|
+ isDependencyReady(params) {
|
|
|
+ return params.paperYear
|
|
|
+ },
|
|
|
+ dependentKeys: ['paperYear'],
|
|
|
+ getList: async function (param, $ref) {
|
|
|
+ const res = await papersAreas({
|
|
|
+ subjectName: $ref.model.paperSubject,
|
|
|
+ year: $ref.model.paperYear,
|
|
|
+ paperType: '历年真题',
|
|
|
+ })
|
|
|
+ return res.data
|
|
|
+ },
|
|
|
+ getCode: function (item) {
|
|
|
+ return item
|
|
|
+ },
|
|
|
+ getLabel: function (item) {
|
|
|
+ return item
|
|
|
+ }
|
|
|
+}
|