上传
This commit is contained in:
@@ -110,7 +110,14 @@
|
||||
>
|
||||
登记
|
||||
</el-button>
|
||||
<el-button type="primary" link v-hasPermi="['clue:pool:release']"> 释放 </el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
link
|
||||
v-hasPermi="['clue:pool:release']"
|
||||
@click="handleRelease(scope.row.clueId)"
|
||||
>
|
||||
释放
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</SSTable>
|
||||
@@ -122,9 +129,15 @@
|
||||
:schema="allSchemas.formSchema"
|
||||
@sucess="getTableList"
|
||||
/>
|
||||
<DrawerClue v-if="!loading" ref="drawerRef" :schema="allSchemas.formSchema" />
|
||||
<DrawerClue
|
||||
v-if="!loading"
|
||||
ref="drawerRef"
|
||||
:schema="allSchemas.formSchema"
|
||||
@get-list="getTableList"
|
||||
@update="handleEdit"
|
||||
/>
|
||||
<DialogSuccess ref="successRef" />
|
||||
<DialogFollow ref="followRef" />
|
||||
<DialogFollow ref="followRef" @success="getTableList" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -141,6 +154,8 @@ import { formatDate } from '@/utils/formatTime'
|
||||
|
||||
import * as ClueApi from '@/api/clue'
|
||||
|
||||
const message = useMessage() // 消息弹窗
|
||||
|
||||
const searchRef = ref()
|
||||
const queryType = ref('2')
|
||||
|
||||
@@ -190,6 +205,7 @@ function resetQuery() {
|
||||
async function getTableList() {
|
||||
// 查询
|
||||
tableObject.value.loading = true
|
||||
getSearchCount()
|
||||
try {
|
||||
const queryParams = await searchRef.value.getFormModel()
|
||||
const params = {
|
||||
@@ -231,7 +247,7 @@ function handleDetail(row) {
|
||||
}
|
||||
|
||||
function handleFollow(row) {
|
||||
followRef.value.open('create', row)
|
||||
followRef.value.open(row.clueId)
|
||||
}
|
||||
|
||||
async function makeCall(phone) {
|
||||
@@ -242,12 +258,33 @@ async function makeCall(phone) {
|
||||
function handleSuccess(row) {
|
||||
successRef.value.open(row)
|
||||
}
|
||||
|
||||
// 释放
|
||||
function handleRelease(id) {
|
||||
message.prompt('请先输入释放原因', '是否确认释放线索?').then((res) => {
|
||||
if (res.value) {
|
||||
try {
|
||||
ClueApi.releaseClue({
|
||||
clueId: id,
|
||||
publicClue: true,
|
||||
discardReason: res.value
|
||||
}).then(() => {
|
||||
message.success('释放成功')
|
||||
})
|
||||
} finally {
|
||||
getTableList()
|
||||
}
|
||||
} else {
|
||||
message.info('请将释放原因填写完整!')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const userOptions = ref([])
|
||||
onMounted(() => {
|
||||
getUserOption().then((data) => {
|
||||
userOptions.value = data
|
||||
})
|
||||
getSearchCount()
|
||||
getCurdSchemas()
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user