Переглянути джерело

装置审计记录 - 问卷详情页面新增“查看开项列表”功能,点击跳转开项管理页面,显示选中CODE关联的开项信息

wangggziwen 8 місяців тому
батько
коміт
e11d7bd86a

+ 1 - 1
ruoyi-ui/src/router/index.js

@@ -148,7 +148,7 @@ export const constantRoutes = [
       {
         path: 'openitem',
         component: (resolve) => require(['@/views/rc/openitem/index'], resolve),
-        name: 'Progress',
+        name: 'OpenItem',
         meta: { title: '开项管理' }
       }
     ]

+ 1 - 2
ruoyi-ui/src/views/rc/meeting/index.vue

@@ -144,9 +144,8 @@
             <el-button
               size="mini"
               type="text"
-              icon="el-icon-s-help"
               @click="handleOpenitem(scope.row)"
-            >开项</el-button>
+            >添加开项</el-button>
           </span>
           <span v-if="scope.row.openItemStatus == '2'">
             <el-button

+ 12 - 3
ruoyi-ui/src/views/rc/openitem/index.vue

@@ -445,7 +445,7 @@ export default {
       // 非多个禁用
       multiple: true,
       // 显示搜索条件
-      showSearch: true,
+      showSearch: false,
       // 总条数
       total: 0,
       // 开项表格数据
@@ -495,7 +495,17 @@ export default {
     };
   },
   created() {
-    this.getRecentAudit();
+    if (this.$route.query.questionnaireId) {
+
+      this.queryParams.questionnaireId = this.$route.query.questionnaireId;
+      console.log(this.queryParams)
+
+      this.getList();
+    } else {
+
+      this.getRecentAudit();
+    }
+    // this.getRecentAudit();
     this.getAuditList();
     // this.getList();
     this.getDeptList();
@@ -567,7 +577,6 @@ export default {
       if (this.$route.query.status != null) {
         this.queryParams.status = this.$route.query.status;
       }
-      console.log(this.queryParams)
       listOpenitem(this.queryParams).then(response => {
         this.openitemList = response.rows;
         this.total = response.total;

+ 17 - 2
ruoyi-ui/src/views/rc/questionnaire/index.vue

@@ -183,9 +183,8 @@
             <el-button
               size="mini"
               type="text"
-              icon="el-icon-s-help"
               @click="handleOpenitem(scope.row)"
-            >开项</el-button>
+            >添加开项</el-button>
           </span>
           <span v-if="scope.row.openItemStatus == '2'">
             <el-button
@@ -194,6 +193,13 @@
               style="color: red; cursor: default;"
             >开项中</el-button>
           </span>
+          <span>
+            <el-button
+              size="mini"
+              type="text"
+              @click="handleOpenItemList(scope.row)"
+            >查看开项列表</el-button>
+          </span>
         </template>
       </el-table-column>
     </el-table>
@@ -561,6 +567,15 @@ export default {
     this.auditResult = this.$route.query.auditResult;
   },
   methods: {
+    /** 查看开项列表 */
+    handleOpenItemList(row) {
+      this.$router.push({
+        path: '/rc/openitem',
+        query: {
+          questionnaireId: row.id,
+        }
+      })
+    },
     /** 开项按钮操作 */
     handleOpenitem(row) {
       this.resetOpenitem();