Commit 0d4372ad by 李伟康

feat(verbal): 添加话术违规管理中的车辆品牌筛选功能

- 在 verbal.js 中新增 getCarBrandsList 接口函数用于查询话术违规车辆品牌列表
- 在话术违规管理页面中引入新的品牌筛选下拉框组件
- 新增品牌字段到搜索表单中并配置相应的选项列表
- 更新表格列配置添加品牌显示列
- 集成 reportTrackPageMixin 混入以支持数据埋点追踪
- 在导出功能中添加埋点数据上报逻辑
- 初始化时加载车辆品牌列表并设置为筛选器选项
1 parent e1236345
...@@ -91,3 +91,11 @@ export function conditionExport(data) { ...@@ -91,3 +91,11 @@ export function conditionExport(data) {
data.method = 'dj.api.script.extract.condition.export' data.method = 'dj.api.script.extract.condition.export'
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST)
} }
/**
* 查询话术违规车辆品牌列表
*/
export function getCarBrandsList(data = {}) {
data.method = 'dj.api.mindworkplate.violation.carbrands'
return request(data, RequestMethods.POST)
}
...@@ -102,9 +102,13 @@ import { Util, deepClone } from "@/common/util" ...@@ -102,9 +102,13 @@ import { Util, deepClone } from "@/common/util"
import detailDialog from "./components/detailDialog" import detailDialog from "./components/detailDialog"
import { import {
findViolationReceptionByConditionPage, findViolationReceptionByConditionPage,
findViolationReceptionByConditionExport findViolationReceptionByConditionExport,
getCarBrandsList
} from "@/api/verbal.js" } from "@/api/verbal.js"
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin"
export default { export default {
mixins: [reportTrackPageMixin],
components: { detailDialog }, components: { detailDialog },
data() { data() {
return { return {
...@@ -138,7 +142,8 @@ export default { ...@@ -138,7 +142,8 @@ export default {
staffName: "", staffName: "",
areaOperations: "", areaOperations: "",
merchantNo: "", merchantNo: "",
violationStatus: "" violationStatus: "",
carBrandId:''
}, },
tableParams: { tableParams: {
listName: "list", listName: "list",
...@@ -147,6 +152,10 @@ export default { ...@@ -147,6 +152,10 @@ export default {
}, },
tableColumns: [ tableColumns: [
{ {
label: "品牌",
prop: "carBrandName"
},
{
label: "员工", label: "员工",
prop: "employeeName", prop: "employeeName",
formatter: (cellValue) => { formatter: (cellValue) => {
...@@ -295,17 +304,34 @@ export default { ...@@ -295,17 +304,34 @@ export default {
type: "datePicker", type: "datePicker",
isClear: true, isClear: true,
pickerOptions: "rangePickerOptions" pickerOptions: "rangePickerOptions"
} },
{
label: "品牌",
name: "carBrandId",
type: "select",
isClear: true,
optionList: [],
optionId: "id",
optionLabel: "label"
},
], ],
baseData: { baseData: {
merchantList: [] merchantList: []
} },
track_event_code: "outverbal_trick"
} }
}, },
mounted() { mounted() {
this.getCarBrandsList()
this.initSelect() this.initSelect()
this.onPageShow()
}, },
methods: { methods: {
async getCarBrandsList() {
const res = await getCarBrandsList()
this.showFormData.find(item => item.name === 'carBrandId').optionList = res
console.log(res)
},
handleDetail(data) { handleDetail(data) {
this.id = data.batchId this.id = data.batchId
console.log(this.id) console.log(this.id)
...@@ -399,6 +425,7 @@ export default { ...@@ -399,6 +425,7 @@ export default {
const res = await findViolationReceptionByConditionExport({ const res = await findViolationReceptionByConditionExport({
...this.searchFormSearch ...this.searchFormSearch
}) })
this.setReportTrackData(0, 'outverbal_trick_export', this.searchFormSearch)
if (res) window.open(res) if (res) window.open(res)
} catch (error) { } catch (error) {
if (error) this.$message.error(error) if (error) this.$message.error(error)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!