| | |
| | | function getWebUrl() { |
| | | let url = ''; |
| | | if (process.env.NODE_ENV == 'dev') { |
| | | url = "http://localhost:8090/cad/" |
| | | url = "http://localhost:8092/cad/" |
| | | } else { |
| | | url = location.protocol + "//" + location.host + "/cad/"; |
| | | } |
| | |
| | | </a-row> |
| | | </a-card> |
| | | <a-table |
| | | size="small" :scroll="{ x: 1800, y: 500}" bordered |
| | | size="small" :scroll="{ x: 1920, y: 500}" bordered |
| | | :columns="columns" :data-source="dataSource" |
| | | :pagination="false" rowKey="subCode"></a-table> |
| | | :pagination="false" rowKey="subCode"> |
| | | <template slot="pictureUrl" slot-scope="text"> |
| | | <img v-if="text" class="picture-url" :src="webUrl+text"> |
| | | </template> |
| | | </a-table> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | { |
| | | title: '子件编码', |
| | | dataIndex: 'subCode', |
| | | width: 80, |
| | | width: 120, |
| | | fixed: 'left', |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '子件名称', |
| | | dataIndex: 'subName', |
| | | width: 80, |
| | | align: 'center', |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: '子件型号', |
| | | dataIndex: 'subModel', |
| | | width: 100, |
| | | align: 'center', |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: '类别', |
| | | dataIndex: 'category', |
| | | width: 60, |
| | | align: 'center', |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: '基本单位', |
| | | dataIndex: 'unit', |
| | | width: 70, |
| | | align: 'center', |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: '子件数量', |
| | | dataIndex: 'quantity', |
| | | width: 70, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '生产商', |
| | | dataIndex: 'producer', |
| | | width: 60, |
| | | align: 'center', |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: '封装类型/材质', |
| | | dataIndex: 'material', |
| | | width: 80, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '元件编号/料厚', |
| | | dataIndex: 'thickness', |
| | | width: 80, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: '表面处理/物料详情', |
| | | dataIndex: 'surfaceDetail', |
| | | width: 90, |
| | | align: 'center', |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: '备注', |
| | | dataIndex: 'notes', |
| | | width: 100, |
| | | align: 'center', |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: '图片', |
| | | dataIndex: 'pictureUrl', |
| | | width: 100, |
| | | width: 120, |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'pictureUrl' }, |
| | | }, |
| | | ]; |
| | | return { |
| | |
| | | .content-value { |
| | | font-weight: bold; |
| | | } |
| | | .picture-url { |
| | | width: 100%; |
| | | height: auto; |
| | | } |
| | | </style> |