浏览代码

问题修改

1178232204@qq.com 3 年之前
父节点
当前提交
8e6cbef8c8
共有 3 个文件被更改,包括 5 次插入2 次删除
  1. 1 0
      src/html/qcScore.html
  2. 2 1
      src/js/appealExamine.js
  3. 2 1
      src/js/qcScore.js

+ 1 - 0
src/html/qcScore.html

@@ -195,6 +195,7 @@
                 {{/if}}
                 {{if isDeleted==="N"}}
                 <div class="oper fr">
+                    ${hasAu3}
                     {{if exampleStatus=="0"&&hasAu3}}
                     {{else}}
                     <a class="edit-flaw blue" code="${id}" href="javascript:void(0);" style="margin-right: 18px;">修改</a>

+ 2 - 1
src/js/appealExamine.js

@@ -352,7 +352,8 @@ function rejected() {
 
 //获取待审核数量
 function getAuditNumber() {
-    return post(api.getAuditNumber, {}).then(res => {
+    let isPlacefile = getCookie('isPlacefile') || 1
+    return post(api.getAuditNumber, { analyzeType: isPlacefile }).then(res => {
         if (res.data.code == '0') {
             auditNumber = res.data.data > 99 ? '99+' : res.data.data
             if (auditNumber == 0) {

+ 2 - 1
src/js/qcScore.js

@@ -179,7 +179,7 @@ $(function () {
         global_check = checkStatus
         global_check_home = mrStatus
         global_check_show = checkShow;//0隐藏操作按钮1显示
-        check_Operation_WithAppeal = checkOperationWithAppeal
+        check_Operation_WithAppeal =JSON.parse(checkOperationWithAppeal) 
         const info = Object.assign(beHospital, result);
         initMenu(JSON.parse(result.menuData));
         // $(".sub-menu>ul>li:first-child.page,.menu-mini>ul>li:first-child.page").addClass("active");
@@ -370,6 +370,7 @@ $(function () {
     let hasAu = showCheckBtns && global_check_show &&  hasData('FUNC000013');    //修改缺陷权限
     let hasAu2 = showCheckBtns && global_check_show && hasData('FUNC000012');   //删除缺陷权限
     let hasAu3 = check_Operation_WithAppeal
+    console.log(hasAu3);
     for (let k in data) {
       for (let i = 0; i < data[k].length; i++) {
         let item = data[k][i];