|
@@ -89,23 +89,26 @@ const handleConfirm = async () => {
|
|
|
await handleBlockEnterprise({ enterpriseId })
|
|
|
uni.showToast({ title: '屏蔽企业成功!', icon: 'none' })
|
|
|
}
|
|
|
+ popup.value.close()
|
|
|
+ dialogContent.value = ''
|
|
|
+ enterpriseId = ''
|
|
|
getData()
|
|
|
}
|
|
|
const handleClose = () => {
|
|
|
- confirm.value.close()
|
|
|
- dialogContent = ''
|
|
|
+ dialogContent.value = ''
|
|
|
enterpriseId = ''
|
|
|
+ confirm.value.close()
|
|
|
}
|
|
|
|
|
|
let enterpriseId = ''
|
|
|
-let dialogContent = ''
|
|
|
let isDel = false
|
|
|
+const dialogContent = ref('')
|
|
|
|
|
|
// 屏蔽
|
|
|
const joinBlock = (item) => {
|
|
|
isDel = false
|
|
|
enterpriseId = item.key
|
|
|
- dialogContent = `是否屏蔽【${item.value}】?`
|
|
|
+ dialogContent.value = item?.value ? `是否确定屏蔽《${item.value}》?` : '是否确定屏蔽'
|
|
|
confirm.value.open()
|
|
|
|
|
|
}
|
|
@@ -113,7 +116,7 @@ const joinBlock = (item) => {
|
|
|
const handleDel = (item) => {
|
|
|
isDel = true
|
|
|
enterpriseId = item.id
|
|
|
- dialogContent = `是否取消屏蔽【${item.name}】?`
|
|
|
+ dialogContent.value = (item?.name || item?.anotherName) ? `是否取消屏蔽《${item.name || item.anotherName}》?` : '是否取消屏蔽'
|
|
|
confirm.value.open()
|
|
|
}
|
|
|
|
|
@@ -124,7 +127,7 @@ const name = ref('')
|
|
|
const entList = ref([])
|
|
|
// 获取企业列表
|
|
|
const getEntList = async () => {
|
|
|
- if (!name.value || name.value === '公司' || name.value === '有限公司') {
|
|
|
+ if (!name.value || name.value === '公司' || name.value === '有限公司' || name.value === '酒店') {
|
|
|
uni.showToast({ title: '请输入公司名称关键字查询', icon: 'none' })
|
|
|
return
|
|
|
}
|