| | |
| | | <script setup> |
| | | import BasicTable from '@/components/basic/BasicTable.vue' |
| | | import BasicTable from '@/components/sd/product/BasicTable.vue' |
| | | import request from "@/utils/request" |
| | | import deepClone from "@/utils/deepClone"; |
| | | import {ElMessage} from "element-plus"; |
| | |
| | | let tableProp = $ref({ |
| | | title:[ |
| | | {type:'expand',fixed:"left",slots: { content:'content' },width: 50}, |
| | | { type: 'checkbox',fixed:"left", title: '选择', width: 80 }, |
| | | { type: 'seq',fixed:"left", title: '自序', width: 80 }, |
| | | {type: 'checkbox',fixed:"left", title: '选择', width: 80 }, |
| | | {type: 'seq',fixed:"left", title: '自序', width: 80 }, |
| | | {title: '操作', width: 110, slots: { default: 'button_slot' },fixed:"left"}, |
| | | {field: 'prodID', title: '编号', sortable: true,editRender: { name: 'input', attrs: { placeholder: '' } } }, |
| | | {field: 'product', title: '名称', sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | |
| | | {field: 'creator', title: '创建人', sortable: true}, |
| | | {field: 'createTime', title: '创建时间', sortable: true} |
| | | ], |
| | | datas:[ |
| | | { |
| | | "id": 24, |
| | | "prodID": "0101000001", |
| | | "product": "6mm超白平钢(外)+1.52PVB超白+6mm超白LNGFX85平钢+20Ar暖边条(结)+10mm超白LYE-80平钢(内) ", |
| | | "glassType": "0101", |
| | | "typeName": "平钢", |
| | | "totalThickness": 40, |
| | | "thickness": 22, |
| | | "remarks": "1", |
| | | "state": 1, |
| | | "creator": "张三里", |
| | | "createTime": "2023-11-23", |
| | | "updateTime": null, |
| | | "query": "6+6+10+10+10", |
| | | "_X_ROW_KEY": "row_11" |
| | | },{ |
| | | "id": 24, |
| | | "prodID": "0101000001", |
| | | "product": "6mm超白平钢(外)+1.52PVB超白+6mm超白LNGFX85平钢+20Ar暖边条(结)+10mm超白LYE-80平钢(内) ", |
| | | "glassType": "0101", |
| | | "typeName": "平钢", |
| | | "totalThickness": 40, |
| | | "thickness": 22, |
| | | "remarks": "1", |
| | | "state": 1, |
| | | "creator": "张三里", |
| | | "createTime": "2023-11-23", |
| | | "updateTime": null, |
| | | "query": "6+6+10+10+10", |
| | | "_X_ROW_KEY": "row_11" |
| | | }], |
| | | datas:null, |
| | | //脚部求和 |
| | | footList:['remarks'], |
| | | //筛选条件列 |
| | |
| | | let flag = $ref(false) |
| | | request.get("/product").then((res) => { |
| | | if(res.code==200){ |
| | | //tableProp.datas= res.data |
| | | tableProp.datas= res.data |
| | | flag = true |
| | | //console.log(res.data) |
| | | }else{ |
| | |
| | | } |
| | | }) |
| | | |
| | | //必须加上 |
| | | //接收子组件传过来的选中复选框数据 |
| | | const getCheckList = (row) =>{ |
| | | alert('我接收到子组件传送的确认复选框信息可在控制台查看') |
| | | console.log(row) |
| | | } |
| | | |
| | | //必须加上 |
| | | |
| | | const getChildren = (row,type) =>{ |
| | | switch (type) { |
| | | case 'edit' :{ |
| | | alert('我接收到子组件传送的编辑信息') |
| | | //alert('我接收到子组件传送的编辑信息') |
| | | |
| | | break |
| | | } |
| | |
| | | alert('我接收到子组件传送的删除信息') |
| | | break |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | const getFilterChildren = (param) =>{ |
| | | |
| | |
| | | <template> |
| | | |
| | | <div style="width: 100%;height: 100%;"> |
| | | <el-input v-model="tableProp.filter.product"/> |
| | | |
| | | <!-- <el-input v-model="tableProp.filter.product"/>--> |
| | | <basic-table v-if="flag" |
| | | :tableProp="tableProp" |
| | | @getCheckList="getCheckList" |