lyq 5 ماه پیش
والد
کامیت
165cab738a
1فایلهای تغییر یافته به همراه14 افزوده شده و 3 حذف شده
  1. 14 3
      lawenforcement-ui/src/views/lawenforcement/record/index.vue

+ 14 - 3
lawenforcement-ui/src/views/lawenforcement/record/index.vue

@@ -28,6 +28,17 @@
         >新增
         </el-button>
       </el-col>
+      <el-col :span="1.5" v-if="isRegister === '1'">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="registerLiAn"
+          v-hasPermi="['lawenforcement:case:register']"
+        >立案
+        </el-button>
+      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -485,7 +496,6 @@ export default {
   },
   mounted() {
     const hasPermission = checkPermi(['lawenforcement:record:revoke']);
-    console.log('用户是否有审批权限:', hasPermission);
     this.hasApprovalPermission = hasPermission;
   },
   created() {
@@ -742,6 +752,9 @@ export default {
     },
     /** 立案函数 */
     registerLiAn(row) {
+      if (undefined == row.id) {
+        row.id = "ZJ-" + Date.now()
+      }
       this.$refs.register.registerLiAn(row.id, true)
     },
     /** 填报按钮事件 */
@@ -758,8 +771,6 @@ export default {
         recordStatus: 'lawenforcement_type_3'
       }
       setRecordStatus(o).then(res=>{
-        console.log(res)
-
         this.getList();
         this.$modal.msgSuccess("设置成功");
       })