|
@ -15,14 +15,17 @@ |
|
|
total: tableObject.total |
|
|
total: tableObject.total |
|
|
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage" |
|
|
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage" |
|
|
v-model:sort="tableObject.sort"> |
|
|
v-model:sort="tableObject.sort"> |
|
|
<template #number="{row}"> |
|
|
<!-- <template #number="{row}">--> |
|
|
<el-button type="primary" link @click="openDetail(row, '代码', row.number)"> |
|
|
<!-- <el-button type="primary" link @click="openDetail(row, '代码', row.number)">--> |
|
|
<span>{{ row.number }}</span> |
|
|
<!-- <span>{{ row.number }}</span>--> |
|
|
</el-button> |
|
|
<!-- </el-button>--> |
|
|
</template> |
|
|
<!-- </template>--> |
|
|
<template #action="{ row }"> |
|
|
<template #action="{ row }"> |
|
|
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" /> |
|
|
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" /> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
<template #filePathList="{row}"> |
|
|
|
|
|
<el-link type="primary" v-for="(item,index) in row.filePathList" :key="index" @click="openDown(item)">{{ item.name }}</el-link> |
|
|
|
|
|
</template> |
|
|
</Table> |
|
|
</Table> |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<!-- 表单弹窗:添加/修改 --> |
|
@ -58,9 +61,19 @@ |
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
|
|
const setV = {} |
|
|
|
|
|
console.log('formField',formField) |
|
|
|
|
|
console.log('searchField',searchField) |
|
|
|
|
|
console.log('val',val) |
|
|
|
|
|
switch (formField){ |
|
|
|
|
|
case 'number': |
|
|
|
|
|
setV['number'] = val[0]['number'] |
|
|
|
|
|
setV['name'] = val[0]['name'] |
|
|
|
|
|
setV['specifications'] = val[0]['specifications'] |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
const setV = {} |
|
|
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -237,6 +250,9 @@ const formsSuccess = async (formType, data) => { |
|
|
getList() // 刷新当前列表 |
|
|
getList() // 刷新当前列表 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const openDown=(item) => { |
|
|
|
|
|
window.open(item.url) |
|
|
|
|
|
} |
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
getList() |
|
|
getList() |
|
|