Browse Source

mastid

master
zhang_li 9 months ago
parent
commit
019c5d998d
  1. 16
      src/components/Detail/src/Detail.vue

16
src/components/Detail/src/Detail.vue

@ -33,7 +33,7 @@
<TableHead <TableHead
v-if="!isBasic" v-if="!isBasic"
:HeadButttondata="HeadButttondata" :HeadButttondata="HeadButttondata"
:number="masterParmas.maintenanceNumber" :masterId="masterParmas.masterId"
@button-base-click="buttonBaseClick" @button-base-click="buttonBaseClick"
:routeName="routeName" :routeName="routeName"
@searchFormClick="searchFormClick" @searchFormClick="searchFormClick"
@ -312,8 +312,8 @@ const change = (item, index) => {
// //
const masterParmas = ref({ const masterParmas = ref({
maintenanceNumber: '' //id masterId: '', //id
// number: '', // number: '', //
// status: '' // // status: '' //
}) })
@ -332,11 +332,11 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
// //
if (!props.isBasic) { if (!props.isBasic) {
// id // id
masterParmas.value.maintenanceNumber = row.number masterParmas.value.masterId = row.id
// masterParmas.value.number = row.number masterParmas.value.number = row.number
// masterParmas.value.status = row.status // masterParmas.value.status = row.status
tableObjectRef.value.params = { tableObjectRef.value.params = {
number: row.number masterId: row.id
} }
await getList() await getList()
} }
@ -529,7 +529,7 @@ const searchFormClick = async (searchData) => {
isSearch: true, isSearch: true,
filters: searchData.filters filters: searchData.filters
? searchData.filters ? searchData.filters
: [{ column: 'number', action: '==', value: masterParmas.value.maintenanceNumber }] : [{ column: 'masterId', action: '==', value:masterParmas.value.masterId }]
} }
detailAllSchemasRef.value = props.detailAllSchemas detailAllSchemasRef.value = props.detailAllSchemas
tableObjectRef.value = tableObject tableObjectRef.value = tableObject
@ -563,7 +563,7 @@ watch(
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: props.apiPage // getListApi: props.apiPage //
}) })
tableObject.params.maintenanceNumber = masterParmas.value.maintenanceNumber tableObject.params.masterId = masterParmas.value.masterId
detailAllSchemasRef.value = props.detailAllSchemas detailAllSchemasRef.value = props.detailAllSchemas
if (props.tableObjectExtend) { if (props.tableObjectExtend) {
props.tableObjectExtend.forEach((item) => { props.tableObjectExtend.forEach((item) => {

Loading…
Cancel
Save