add
This commit is contained in:
parent
8f6f89cad0
commit
90babc47b6
@ -42,7 +42,7 @@
|
|||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column label="序号" type="index" width="55" />
|
<el-table-column label="序号" type="index" width="55" />
|
||||||
<el-table-column label="所属客户" prop="custom_name" show-overflow-tooltip />
|
<el-table-column label="所属客户" prop="custom_name" show-overflow-tooltip />
|
||||||
<el-table-column label="跟进主题" prop="name" show-overflow-tooltip />
|
<el-table-column label="跟进主题" prop="name" show-overflow-tooltip width="200" />
|
||||||
<el-table-column label="联系人" prop="custom_master_name" show-overflow-tooltip />
|
<el-table-column label="联系人" prop="custom_master_name" show-overflow-tooltip />
|
||||||
<el-table-column label="日期" prop="date" show-overflow-tooltip />
|
<el-table-column label="日期" prop="date" show-overflow-tooltip />
|
||||||
<el-table-column label="类型" prop="types">
|
<el-table-column label="类型" prop="types">
|
||||||
|
@ -55,40 +55,40 @@
|
|||||||
删除
|
删除
|
||||||
</el-button> -->
|
</el-button> -->
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
<el-table :data="pager.lists" @selection-change="handleSelectionChange" fit>
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column label="序号" type="index" width="55" />
|
<el-table-column label="序号" type="index" width="55" />
|
||||||
<el-table-column label="客户名称" prop="custom_name" />
|
<el-table-column label="客户名称" prop="custom_name" />
|
||||||
<el-table-column label="项目名称" prop="project_name" />
|
<el-table-column label="项目名称" prop="project_name" align="center" />
|
||||||
<el-table-column label="项目编码" prop="project_code" show-overflow-tooltip />
|
<el-table-column label="项目编码" prop="project_code" style="width:100%" />
|
||||||
<el-table-column label="合同编号" prop="contract_code" show-overflow-tooltip />
|
<el-table-column label="合同编号" prop="contract_code" />
|
||||||
<el-table-column label="投诉主题" prop="name" show-overflow-tooltip />
|
<el-table-column label="投诉主题" prop="name" />
|
||||||
<el-table-column label="日期" prop="date" show-overflow-tooltip />
|
<el-table-column label="日期" prop="date" />
|
||||||
<el-table-column label="接待人" prop="receiver" show-overflow-tooltip />
|
<el-table-column label="接待人" prop="receiver" />
|
||||||
<el-table-column label="分类" prop="classification" show-overflow-tooltip />
|
<el-table-column label="分类" prop="classification" />
|
||||||
<el-table-column label="投诉人" prop="custom_master_name" show-overflow-tooltip />
|
<el-table-column label="投诉人" prop="custom_master_name" />
|
||||||
<el-table-column label="联系电话" prop="custom_master_phone" show-overflow-tooltip />
|
<el-table-column label="联系电话" prop="custom_master_phone" />
|
||||||
<el-table-column label="处理结果" prop="processing_result" show-overflow-tooltip />
|
<el-table-column label="处理结果" prop="processing_result" />
|
||||||
<el-table-column label="紧急程度" prop="urgency" show-overflow-tooltip />
|
<el-table-column label="紧急程度" prop="urgency" />
|
||||||
<el-table-column label="指定处理人" prop="processed_user" width="105" show-overflow-tooltip />
|
<el-table-column label="指定处理人" prop="processed_user" width="105" />
|
||||||
<el-table-column label="问题是否解决" prop="is_solve_text" width="110" show-overflow-tooltip />
|
<el-table-column label="问题是否解决" prop="is_solve_text" width="110" />
|
||||||
<el-table-column label="完成日期" prop="done_date" show-overflow-tooltip />
|
<el-table-column label="完成日期" prop="done_date" />
|
||||||
<el-table-column label="评分" prop="score" show-overflow-tooltip />
|
<el-table-column label="评分" prop="score" />
|
||||||
<el-table-column label="操作" width="110" fixed="right">
|
<el-table-column label="操作" width="110" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button v-perms="['custom_service.custom_service/solve']" type="primary" link
|
<el-button v-perms="['custom_service.custom_service/solve']" type="primary" link
|
||||||
@click="handleResolve(row)" v-if="row.is_solve != 1">
|
@click="handleResolve(row)" v-if="row.is_solve != 1">
|
||||||
处理
|
处理
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-perms="['custom_service.custom_service/edit']" type="primary" link
|
<el-button v-perms="['custom_service.custom_service/edit']" type="primary" link
|
||||||
@click="handleEdit(row)" >
|
@click="handleEdit(row)">
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-perms="['custom_service.custom_service/delete']" type="danger" link @click="handleDelete(row.id)">
|
<el-button v-perms="['custom_service.custom_service/delete']" type="danger" link
|
||||||
|
@click="handleDelete(row.id)">
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-perms="['custom_service.custom_service/detail']" link
|
<el-button v-perms="['custom_service.custom_service/detail']" link @click="handledetail(row)">
|
||||||
@click="handledetail(row)">
|
|
||||||
详情
|
详情
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
@ -109,13 +109,14 @@
|
|||||||
<script lang="ts" setup name="customServiceLists">
|
<script lang="ts" setup name="customServiceLists">
|
||||||
import { usePaging } from '@/hooks/usePaging'
|
import { usePaging } from '@/hooks/usePaging'
|
||||||
import { useDictData } from '@/hooks/useDictOptions'
|
import { useDictData } from '@/hooks/useDictOptions'
|
||||||
import { apiCustomServiceLists, apiCustomServiceDetail ,apiCustomServiceDelete} from '@/api/custom_service'
|
import { apiCustomServiceLists, apiCustomServiceDetail, apiCustomServiceDelete } from '@/api/custom_service'
|
||||||
import { apiProjectSearch } from '@/api/project'
|
import { apiProjectSearch } from '@/api/project'
|
||||||
import { apiContractSearch } from '@/api/contract'
|
import { apiContractSearch } from '@/api/contract'
|
||||||
import feedback from '@/utils/feedback'
|
import feedback from '@/utils/feedback'
|
||||||
import EditPopup from './edit.vue'
|
import EditPopup from './edit.vue'
|
||||||
import HandlePopup from './handle.vue'
|
import HandlePopup from './handle.vue'
|
||||||
import DetailPopup from './detail.vue'
|
import DetailPopup from './detail.vue'
|
||||||
|
import { h } from "vue";
|
||||||
|
|
||||||
|
|
||||||
const detailRef = shallowRef<InstanceType<typeof DetailPopup>>()
|
const detailRef = shallowRef<InstanceType<typeof DetailPopup>>()
|
||||||
@ -165,7 +166,7 @@ const handleAdd = async () => {
|
|||||||
|
|
||||||
// 编辑
|
// 编辑
|
||||||
const handleEdit = async (data: any) => {
|
const handleEdit = async (data: any) => {
|
||||||
let res=await apiCustomServiceDetail({id:data.id})
|
let res = await apiCustomServiceDetail({ id: data.id })
|
||||||
showEdit.value = true
|
showEdit.value = true
|
||||||
await nextTick()
|
await nextTick()
|
||||||
editRef.value?.open('edit')
|
editRef.value?.open('edit')
|
||||||
@ -196,5 +197,31 @@ const handledetail = async (data: any) => {
|
|||||||
detailRef.value?.setFormData(res)
|
detailRef.value?.setFormData(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const labelHead = (h, column, index) => {
|
||||||
|
|
||||||
|
|
||||||
|
console.log(column, index)
|
||||||
|
// let l = column.label.length
|
||||||
|
// let f = 16 //每个字大小,其实是每个字的比例值,大概会比字体大小差不多大一点,
|
||||||
|
// column.minWidth = f * l //字大小乘个数即长度 ,注意不要加px像素,这里minWidth只是一个比例值,不是真正的长度
|
||||||
|
// //然后将列标题放在一个div块中,注意块的宽度一定要100%,否则表格显示不完全
|
||||||
|
// return h('div', { class: 'table-head', style: { width: '100%' } }, [column.label])
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const renderHeader = ({ column }) => {
|
||||||
|
console.log(column)
|
||||||
|
column.label = 'dgffjghdfgjhdfjgkh'
|
||||||
|
|
||||||
|
return h("div", [
|
||||||
|
h("div", column.label,),
|
||||||
|
]);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
getLists()
|
getLists()
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user