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

Loading…
Cancel
Save