zhangxc пре 5 година
родитељ
комит
364240fc42
2 измењених фајлова са 8 додато и 6 уклоњено
  1. 5 6
      src/api/config.js
  2. 3 0
      src/components/safeControl/AddToken.vue

+ 5 - 6
src/api/config.js

@@ -263,12 +263,11 @@ export default {
       /*********数据统计  *********/
       /*********数据统计  *********/
       'statisticsCount': '/api/bi/statistics/count', //诊断依据--校验数据
       'statisticsCount': '/api/bi/statistics/count', //诊断依据--校验数据
       /*********安全管理  *********/
       /*********安全管理  *********/
-      'tokenList': '/api/mrqcman/list',  // 令牌列表
-      'tokenSaveOrUpdate': '/api/mrqcman/saveOrUpdate', // 令牌新增或修改
-      'tokenDetails': '/api/mrqcman/index', // 令牌明细
-      'tokenDelete': '/api/mrqcman/delete', // 令牌删除
-      'tokenAnalysis': '/api/mrqcman/analysis' //解析
-
+      'tokenList': '/api/mrqcman/mrqcToken/list',  // 令牌列表
+      'tokenSaveOrUpdate': '/api/mrqcman/mrqcToken/saveOrUpdate', // 令牌新增或修改
+      'tokenDetails': '/api/mrqcman/mrqcToken/getById', // 令牌明细
+      'tokenDelete': '/api/mrqcman/mrqcToken/delete', // 令牌删除
+      'tokenAnalysis': '/api/mrqcman/mrqcToken/analysis' //解析
   },
   },
 	menuIconList: { //菜单对应图标
 	menuIconList: { //菜单对应图标
 		'YH-KZT': 'el-icon-menu',
 		'YH-KZT': 'el-icon-menu',

+ 3 - 0
src/components/safeControl/AddToken.vue

@@ -166,6 +166,9 @@
                     content: this.equipNum,
                     content: this.equipNum,
                     validTime: this.validTime
                     validTime: this.validTime
                 }
                 }
+                if(this.id) {
+                    param.loginKey = this.loginKey
+                }
                 this.saveDisable = true  //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
                 this.saveDisable = true  //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
                 api.tokenSaveOrUpdate(param).then((res) => {
                 api.tokenSaveOrUpdate(param).then((res) => {
                 if (res.data.code  === '0') {
                 if (res.data.code  === '0') {