dev-report
qsh 2 months ago
parent 5f63709c2f
commit 8de29b754a
  1. 4
      src/api/clue/index.js
  2. 4
      src/api/clue/sign.js
  3. 18
      src/views/Clue/Order/Comp/OrderList.vue
  4. 12
      src/views/Clue/Pool/index.vue

@ -6,8 +6,8 @@ export const getSimpleClueList = async () => {
}
// 查询列表
export const getCluePage = async (params) => {
return await request.get({ url: '/admin-api/crm/sch-clue/page', params })
export const getCluePage = async (data) => {
return await request.post({ url: '/admin-api/crm/sch-clue/page', data })
}
// 查询详情

@ -1,8 +1,8 @@
import request from '@/config/axios'
// 查询列表
export const getSignPage = async (params) => {
return await request.get({ url: '/admin-api/crm/sign/page', params })
export const getSignPage = async (data) => {
return await request.post({ url: '/admin-api/crm/sign/page', data })
}
// 查询详情

@ -100,6 +100,16 @@
<span v-else-if="item.form?.component == 'DatePicker'">
{{ formatDate(row[item.field]) }}
</span>
<div v-else-if="item.form?.component == 'UploadImg'">
<el-image
v-if="row[item.field]"
:src="row[item.field]"
preview-teleported
:lazy="true"
:preview-src-list="[row[item.field]]"
/>
<!-- <img v-if="row[item.field]" :src="row[item.field]" style="width: 100%; height: 100%" /> -->
</div>
<span v-else>{{ row[item.field] }}</span>
</template>
</el-table-column>
@ -150,6 +160,7 @@
type="primary"
class="mr-10px"
link
:disabled="scope.row.isCommissioned != '未发放'"
style="padding: 0; margin-left: 0"
v-hasPermi="['clue:pool:enroll']"
@click="cancelDeal(scope.row)"
@ -240,6 +251,11 @@ async function getTableList() {
pageNo: tableObject.value.pageNo,
pageSize: tableObject.value.pageSize
}
searchFieldList.value.map((it) => {
if (params[it.field]) {
params.diyParams[it.field] = params[it.field]
}
})
const data = await SignApi.getSignPage(removeNullField(params))
tableObject.value.tableList = data.list.map((it) => ({ ...it, ...it.diyParams }))
tableObject.value.total = data.total
@ -249,10 +265,12 @@ async function getTableList() {
}
const loading = ref(true)
const searchFieldList = ref([])
async function getCurdSchemas() {
loading.value = true
try {
const data = await getSimpleFieldList()
searchFieldList.value = data.filter((it) => it.isCustom)
data.forEach((elem) => {
if (['createUser'].includes(elem.field)) {
elem.search.options = userOptions.value

@ -228,11 +228,13 @@ const followRef = ref()
const loading = ref(true)
const allSchemas = ref({})
const searchFieldList = ref([])
async function getCurdSchemas() {
loading.value = true
try {
const data = await getSimpleFieldList()
searchFieldList.value = data.filter((it) => it.isCustom)
data.forEach((elem) => {
if (['followUser', 'convertPeople'].includes(elem.field)) {
elem.search.options = userOptions.value
@ -290,12 +292,18 @@ async function getTableList() {
getSearchCount()
try {
const queryParams = await searchRef.value.getFormModel()
const params = {
let params = {
...queryParams,
pageNo: tableObject.value.pageNo,
pageSize: tableObject.value.pageSize,
queryType: queryType.value
queryType: queryType.value,
diyParams: {}
}
searchFieldList.value.map((it) => {
if (params[it.field]) {
params.diyParams[it.field] = params[it.field]
}
})
const data = await ClueApi.getCluePage(removeNullField(params))
tableObject.value.tableList = data.list.map((it) => ({ ...it, ...it.diyParams }))
tableObject.value.total = data.total

Loading…
Cancel
Save