Browse Source

权限分配

gks 1 year ago
parent
commit
b397467e19
3 changed files with 9 additions and 8 deletions
  1. 1 1
      src/api/portal/ARTICLE/ARTICLE.js
  2. 3 2
      src/views/ARTICLE/index.vue
  3. 5 5
      src/views/norm/quotafee.vue

+ 1 - 1
src/api/portal/ARTICLE/ARTICLE.js

@@ -92,7 +92,7 @@ export function articleDate(data) {
     data:data
   })
 }
-//设置重点项目录入开放时间
+
 
 export function getqueryArticleDate() {
   return request({

+ 3 - 2
src/views/ARTICLE/index.vue

@@ -492,7 +492,6 @@ export default {
   created() {
     listDept({ type: 2 }).then((res) => {
       this.bsqList = res.data;
-      console.log(res);
     });
     this.getList();
     this.getDeptId();
@@ -514,7 +513,8 @@ export default {
         const beginTime = new Date(res.data.beginTime);
         const endTime = new Date(res.data.endTime);
         const currentTime = new Date();
-
+        this.form.beginTime = beginTime;
+        this.form.endTime = endTime;
         // 检查当前时间是否在 beginTime 和 endTime 范围内
         if (currentTime < beginTime || currentTime > endTime) {
           this.isButtonDisabled = true;
@@ -627,6 +627,7 @@ export default {
     },
     //设置重点项目录入开放时间
     handleInsert() {
+      this.getqueryArticleDate();
       this.open = true;
       this.title = "设置重点项目录入开放时间";
     },

+ 5 - 5
src/views/norm/quotafee.vue

@@ -22,7 +22,7 @@
             type="primary"
             icon="el-icon-plus"
             @click="handleAdd"
-            v-hasPermi="['business:QUOTAFEE:add']"
+            v-hasPermi="['business:QUOTA:add']"
           >新增</el-button>
         </el-col>
         <el-col :span="1.5">
@@ -31,7 +31,7 @@
             icon="el-icon-edit"
             :disabled="single"
             @click="handleUpdate"
-            v-hasPermi="['business:QUOTAFEE:edit']"
+            v-hasPermi="['business:QUOTA:edit']"
           >修改</el-button>
         </el-col>
         <el-col :span="1.5">
@@ -40,7 +40,7 @@
             icon="el-icon-delete"
             :disabled="multiple"
             @click="handleDelete"
-            v-hasPermi="['business:QUOTAFEE:remove']"
+            v-hasPermi="['business:QUOTA:remove']"
           >删除</el-button>
         </el-col>
         <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -68,14 +68,14 @@
               type="text"
               icon="el-icon-edit"
               @click="handleUpdate(scope.row)"
-              v-hasPermi="['business:QUOTAFEE:edit']"
+              v-hasPermi="['business:QUOTA:edit']"
             >修改</el-button>
             <el-button
               size="mini"
               type="text"
               icon="el-icon-delete"
               @click="handleDelete(scope.row)"
-              v-hasPermi="['business:QUOTAFEE:remove']"
+              v-hasPermi="['business:QUOTA:remove']"
             >删除</el-button>
           </template>
         </el-table-column>