|
@@ -803,11 +803,12 @@ const tableindex = ref('')
|
|
const setTableCheck = async (row, index) => {
|
|
const setTableCheck = async (row, index) => {
|
|
if (row.ids) {
|
|
if (row.ids) {
|
|
const keys = row.ids.split(','), list = row.list
|
|
const keys = row.ids.split(','), list = row.list
|
|
- for (let i = 0; i < list.list; i++) {
|
|
|
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
const item = list[i]
|
|
const item = list[i]
|
|
if (keys.indexOf(item.id) > -1) {
|
|
if (keys.indexOf(item.id) > -1) {
|
|
item.checked = true
|
|
item.checked = true
|
|
await nextTick()
|
|
await nextTick()
|
|
|
|
+ console.log(sorTableRef.value[index], 'sorTableRef.value[index]')
|
|
sorTableRef.value[index].toggleRowSelection(item, true)
|
|
sorTableRef.value[index].toggleRowSelection(item, true)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1599,11 +1600,25 @@ const CertClick = async () => {
|
|
|
|
|
|
//名称被点击
|
|
//名称被点击
|
|
const tableRowName = (row) => {
|
|
const tableRowName = (row) => {
|
|
- if (row['pdfFileUrl']) {
|
|
|
|
- window.open(row['pdfFileUrl'], '_blank')
|
|
|
|
|
|
+ console.log(row, 'row')
|
|
|
|
+ if (row?.isCertificationValue === '已认证' || row?.isApprovalValue === '已审批') {
|
|
|
|
+ if (row['eVisaFile']) {
|
|
|
|
+ window.open(row['eVisaFile'], '_blank')
|
|
|
|
+ } else if (row['pdfFileUrl']) {
|
|
|
|
+ window.open(row['pdfFileUrl'], '_blank')
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ window.$message?.warning('文件不存在')
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
- window.$message?.warning('文件不存在')
|
|
|
|
|
|
+ if (row['pdfFileUrl']) {
|
|
|
|
+ window.open(row['pdfFileUrl'], '_blank')
|
|
|
|
+ } else {
|
|
|
|
+ window.$message?.warning('文件不存在')
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
//上报
|
|
//上报
|