qymljy 2 年之前
父节点
当前提交
a96e08bb86
共有 2 个文件被更改,包括 44 次插入1 次删除
  1. 1 0
      src/HDrpManagement/projectChange/index.vue
  2. 43 1
      src/components/mindmap/custom.vue

+ 1 - 0
src/HDrpManagement/projectChange/index.vue

@@ -320,6 +320,7 @@ export default {
       console.log("执行")
       this.$refs['basicLayout'].param.content.type = id
       this.$refs['basicLayout'].param.content.isExport = false
+      this.$refs['basicLayout'].param.content.nocache = true
       this.$refs.basicLayout.param.content.deleted = 0
       this.$refs['basicLayout'].listData()
     },

+ 43 - 1
src/components/mindmap/custom.vue

@@ -10,8 +10,27 @@
         size="600px"
         :with-header="false">
       <p style="padding: 10px 0px 0px 10px">合同列表</p>
+<!--      <el-divider></el-divider>-->
       <div style="padding: 10px 0px 0px 10px">
-
+        <el-table
+            :data="tableData"
+            border
+            style="width: 100%">
+          <el-table-column
+              prop="title"
+              label="合同名称"
+              width="0">
+          </el-table-column>
+          <el-table-column
+              prop="operation"
+              width="100"
+              label="操作">
+            <template slot-scope="scope">
+<!--              <el-input v-model="scope.row.remarks" placeholder="输入订单备注" size="mini" @change="rowChange(scope.row,scope.$index)"></el-input>-->
+              <el-button size="mini" type="text" @click="rowChange(scope.row)">详 情</el-button>
+            </template>
+          </el-table-column>
+        </el-table>
       </div>
     </el-drawer>
   </div>
@@ -375,6 +394,7 @@ export default {
     return {
       fullscreen:false,
       drawer:false,
+      tableData: []
     }
   },
   mounted () {
@@ -467,6 +487,7 @@ export default {
         const item = evt.item;
         this.drawer = true
         console.log(item._cfg.model,'点击列表')
+        this.tableData = item._cfg.model.data
       })
       if (typeof window !== 'undefined')
         window.onresize = () => {
@@ -515,8 +536,29 @@ export default {
         document.msExitFullscreen();
       }
     },
+    rowChange(data){
+        this.$store.dispatch('changeDetailDrawer',false)
+        setTimeout(()=>{
+          let route = this.$route
+          console.log(route,'route')
+          if (route.path !== '/contractDetail') {
+            this.oldRoute = {path:route.path,query:route.query}
+            this.$store.dispatch('setHistoryRouter',this.oldRoute)
+          }
+          this.$router.replace({
+            path:'/contractDetail',
+            query:{
+              id:data.sa_contractid,
+              rowindex:data.rowindex,
+              portrait:'1'
+            }
+          })
+          this.$store.dispatch('changeDetailDrawer',true)
+        },500)
+    }
   },
 
+
 }
 
 </script>