This commit is contained in:
qsh
2024-06-14 15:55:48 +08:00
parent d22a380612
commit 4c692c48e3
18 changed files with 507 additions and 180 deletions

View File

@@ -94,30 +94,42 @@
>
详情
</el-button>
<el-button
type="primary"
link
@click="handleEdit(scope.row)"
v-hasPermi="['clue:pool:update']"
>
修改
</el-button>
<el-button
type="primary"
link
@click="handleSuccess(scope.row)"
v-hasPermi="['clue:pool:enroll']"
>
登记
</el-button>
<el-button
type="primary"
link
v-hasPermi="['clue:pool:release']"
@click="handleRelease(scope.row.clueId)"
>
释放
</el-button>
<template v-if="queryType != 4">
<el-button
type="primary"
link
@click="handleEdit(scope.row)"
v-hasPermi="['clue:pool:update']"
>
修改
</el-button>
<el-button
type="primary"
link
@click="handleSuccess(scope.row)"
v-hasPermi="['clue:pool:enroll']"
>
登记
</el-button>
<el-button
type="primary"
link
v-hasPermi="['clue:pool:release']"
@click="handleRelease(scope.row.clueId)"
>
释放
</el-button>
</template>
<template v-else>
<el-button
type="primary"
link
v-hasPermi="['clue:pool:gain']"
@click="handleGain(scope.row.clueId)"
>
获取
</el-button>
</template>
</template>
</el-table-column>
</SSTable>
@@ -136,7 +148,7 @@
@get-list="getTableList"
@update="handleEdit"
/>
<DialogSuccess ref="successRef" />
<DialogSuccess ref="successRef" :schema="allSchemas.formSchema" />
<DialogFollow ref="followRef" @success="getTableList" />
</div>
</template>
@@ -256,7 +268,7 @@ async function makeCall(phone) {
// 登记
function handleSuccess(row) {
successRef.value.open(row)
successRef.value.open(row.clueId)
}
// 释放
@@ -280,6 +292,21 @@ function handleRelease(id) {
})
}
function handleGain(id) {
message.confirm('是否确认获取公海线索?').then(() => {
try {
ClueApi.getPublicClue({
clueId: id,
publicClue: false
}).then(() => {
message.success('获取成功')
})
} finally {
getTableList()
}
})
}
const userOptions = ref([])
onMounted(() => {
getUserOption().then((data) => {