|
@@ -53,24 +53,25 @@
|
|
|
<div class="flex-1 p-5 overflow-auto">
|
|
|
<div class="bg-white w-full h-full p-3 shadow-md rounded-md flex flex-col">
|
|
|
<div class="flex justify-end pb-3">
|
|
|
- <el-button type="primary" @click="editCustomer(false)">新建客户</el-button>
|
|
|
+ <el-button type="primary" v-permission="['customerAdd']" @click="editCustomer(false)">新建客户</el-button>
|
|
|
<el-button type="primary" @click="showVisible('batchTransferVisible')"
|
|
|
:disabled="batchTableData.length <= 0">批量转移</el-button>
|
|
|
<el-button type="primary" @click="batchDeteleItem()" :disabled="batchTableData.length <= 0">批量删除</el-button>
|
|
|
<el-button type="primary" @click="showVisible('deteleCustomerVisible')">回收站</el-button>
|
|
|
- <el-button type="primary" @click="showVisible('importVisible')">导入</el-button>
|
|
|
- <el-button type="primary" @click="exportCustomerTableList()"
|
|
|
+ <el-button type="primary" v-permission="['customerImport']" @click="showVisible('importVisible')">导入</el-button>
|
|
|
+ <el-button type="primary" v-permission="['customerExport']" @click="exportCustomerTableList()"
|
|
|
:loading="allLoading.exoprtLoading">导出</el-button>
|
|
|
</div>
|
|
|
<div class="flex-1 w-full overflow-hidden">
|
|
|
- <el-table ref="customerTableRef" :data="customerTable" border v-loading="allLoading.customerTableLading"
|
|
|
+ <el-table ref="customerTableRef" :show-overflow-tooltip="tableShowOverflowTooltip" :data="customerTable" border v-loading="allLoading.customerTableLading"
|
|
|
style="width: 100%;height: 100%;" @selection-change="changeBatch" @sort-change="sortChange">
|
|
|
<el-table-column type="selection" width="55" />
|
|
|
<el-table-column prop="customName" label="客户名称" width="180">
|
|
|
<template #default="scope">
|
|
|
- <el-button link type="primary" size="large" @click.prevent="toCustomerTableDetail(scope.row)">{{
|
|
|
+ <!-- <el-button link type="primary" size="large" @click.prevent="toCustomerTableDetail(scope.row)">{{
|
|
|
scope.row.customName
|
|
|
- }}</el-button>
|
|
|
+ }}</el-button> -->
|
|
|
+ <div class="table-text-textnowrap" @click.prevent="toCustomerTableDetail(scope.row)">{{ scope.row.customName }}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="customSourceValue" label="客户来源" width="180"></el-table-column>
|
|
@@ -81,11 +82,11 @@
|
|
|
<el-table-column prop="inchargerName" label="负责人" width="190"></el-table-column>
|
|
|
<el-table-column prop="creatorName" label="创建人" width="180"></el-table-column>
|
|
|
<el-table-column prop="newCreateTime" label="创建时间" width="180"></el-table-column>
|
|
|
- <el-table-column label="操作" fixed="right" width="200">
|
|
|
+ <el-table-column label="操作" fixed="right" width="200" v-permission="['customerEdit', 'tasksAdd', 'customerEdit']">
|
|
|
<template #default="scope">
|
|
|
- <el-button link type="primary" size="large" @click="editCustomer(scope.row)">编辑</el-button>
|
|
|
- <el-button link type="primary" size="large" @click="newTask(scope.row)">新建任务</el-button>
|
|
|
- <el-button link type="danger" size="large"
|
|
|
+ <el-button link type="primary" size="large" v-permission="['customerEdit']" @click="editCustomer(scope.row)">编辑</el-button>
|
|
|
+ <el-button link type="primary" size="large" v-permission="['tasksAdd']" @click="newTask(scope.row)">新建任务</el-button>
|
|
|
+ <el-button link type="danger" size="large" v-permission="['customerEdit']"
|
|
|
@click="customerDeteleItem(scope.row.id, scope.row.customName)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -183,6 +184,7 @@ import { useRouter, useRoute } from "vue-router";
|
|
|
import { GenerateForm } from '@zmjs/form-design';
|
|
|
import { createTask } from "@/components/TaskModal/taskFunction";
|
|
|
import { ElTable, UploadRequestOptions } from "element-plus";
|
|
|
+import { tableShowOverflowTooltip } from '@/utils/globalVariables'
|
|
|
|
|
|
import TaskModal from '@/components/TaskModal/index.vue'
|
|
|
import DeteleBusiness from './component/deteleTables.vue'
|