Explorar o código

前台搜索页面申请接口传参修改

chaihaorui hai 1 ano
pai
achega
dbbed1b52b
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      src/pages/homepage/components/searchPage.vue

+ 7 - 1
src/pages/homepage/components/searchPage.vue

@@ -251,7 +251,13 @@ export default {
251 251
     },
252 252
     handleApply(row) {
253 253
       const {id, name} = row
254
-      applyApi.applyResource({resourceId: id, resourceName: name, resourceType: resourceTypeMap[this.activeName]}).then(res => {
254
+      const resourceTypeMapB = {
255
+        first: 'theme',
256
+        second: 'specialSubject',
257
+        third: 'index',
258
+        fourth: this.serviceType === 'API' ? 'api' : 'mqs'
259
+      }
260
+      applyApi.applyResource({resourceId: id, resourceName: name, resourceType: resourceTypeMapB[this.activeName]}).then(res => {
255 261
         if (res.success) {
256 262
           this.$message({
257 263
             message: '申请成功!',