|
|
@@ -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>
|