Browse Source

提交代码

林倩 2 years ago
parent
commit
85a865d36e

+ 3 - 3
src/api/environment-manage.js

@@ -21,7 +21,7 @@ export const tableUrl = `${baseUrl}/search`
  // 更新
  export function updateEnvElement(data) {
     return request({
-      url: `${baseUrl}/save`,
+      url: `${baseUrl}/update`,
       method: 'POST',
       data
     });
@@ -29,8 +29,8 @@ export const tableUrl = `${baseUrl}/search`
   // 删除
   export function deleteEnvElement(id) {
     return request({
-      url: `${baseUrl}/getById/${id}`,
-      method: 'GET',
+      url: `${baseUrl}/deleteById/${id}`,
+      method: 'DELETE',
     });
   }
 

+ 2 - 1
src/pages/auth-subject-manage/environment-element/index.vue

@@ -16,6 +16,7 @@
       :tableHeader="tableHeader"
       :condition="condition"
       :tableOptList="tableOptList"
+      @submitTableOpt="receviceOpt"
     >
     </new-table>
   </div>
@@ -69,7 +70,7 @@ export default {
         {
           label: '环境要素名称',
           name: 'envElementName',
-          op: '=',
+          op: 'like',
           component: 'ElInput'
         }
       ],

+ 1 - 1
src/router/modules/auth-subject-manage.js

@@ -40,7 +40,7 @@ const componentsRouter =
           path: 'environment-element',
           component: () => import('@/pages/auth-subject-manage/environment-element'),
           name: 'environment-element',
-          meta: { title: '主体环境要素管理', noCache: true, permission: ['QXGL_SQGL_ZTGL_ZTSXLGL','QXGL_SQGL_ZTGL_ZTHJYSGL'] }
+          meta: { title: '主体环境要素管理', noCache: true, permission: ['QXGL_SQGL_ZTGL_ZTHJYSGL', 'QXGL_SQGL_ZTGL_ZTSXLGL'] }
         }
       ]
     }

+ 1 - 1
src/router/modules/log-manage.js

@@ -104,7 +104,7 @@ const componentsRouter = [
         meta: {
           title: '授权风险日志',
           noCache: true,
-          permission: ['QXGL_RZGL_QXRZGL_JQFXRZ','QXGL_RZGL_QXRZGL_SQFXRZ']
+          permission: ['QXGL_RZGL_QXRZGL_SQFXRZ', 'QXGL_RZGL_QXRZGL_JQFXRZ']
         }
       },
       {