| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <template>
- <div>
- <tableLayout ref="list" :layout="tablecols" :data="list" :custom="true" height="300">
- <template v-slot:customcol="scope">
- <p >{{scope.column.data[scope.column.columnname]}}</p>
- </template>
- </tableLayout>
- </div>
- </template>
- <script>
- export default {
- name: "index",
- props:["data"],
- data() {
- return {
- tablecols:'',
- list:[],
- }
- },
- mounted() {
- console.log(this.data,"项目商机")
- if (this.data.quotedpricetype === '项目报价') {
- this.list[0] = this.data
- console.log(this.list)
- }else {
- this.list = []
- }
- },
- created() {
- this.tablecols = this.tool.tabelCol(this.$route.name).projectTable.tablecols
- }
- }
- </script>
- <style scoped>
- </style>
|