zxl
2026-03-25 73e0b3791990bd60c06c2c0388aae9f9faf538a6
src/views/dataAnalysis/CarInfoList.vue
@@ -44,12 +44,17 @@
          />
        </a-form-item>
        <a-form-item label="客户类型">
          <j-dict-select-tag
          <a-select
            style="width: 180px"
            v-model="queryParam.clientType"
            placeholder="请选择"
            dictCode="client_type"
          />
            allowClear
          >
            <a-select-option v-for="item in clientTypeOptions" :key="item.id" :value="item.id">
              {{ item.clientName }}
            </a-select-option>
          </a-select>
        </a-form-item>
          <!-- <a-select style="width: 180px" allowClear v-model="queryParam.clientType" placeholder="请选择客户类型">
            <a-select-option :value="1"> 普通客户 </a-select-option>
            <a-select-option :value="2"> 潜在客户 </a-select-option>
@@ -158,6 +163,7 @@
      description: 'CarInfo列表',
      queryParam: {},
      tagList: [], //所有标签集合
      clientTypeOptions: [], //客户类型列表
      // 表头
      columns: [
        {
@@ -244,6 +250,14 @@
  },
  methods: {
    // 获取客户类型列表
    getClientTypeOptions() {
      getAction('/jyz/client/listClientType').then((res) => {
        if (res.code === 200) {
          this.clientTypeOptions = res.result
        }
      })
    },
    delSlectTag(item) {
      console.log(item)
      let index = this.selectTagList.findIndex((el) => el == item)
@@ -321,10 +335,19 @@
      this.queryParam.orgCode = node.node.dataRef.orgCode
      this.loadData()
    },
    // 获取客户类型列表
    getClientTypeOptions() {
      getAction('/jyz/client/listClientType').then((res) => {
        if (res.code === 200) {
          this.clientTypeOptions = res.result
        }
      })
    },
  },
  created() {
    this.getTagInfo(true)
    this.getClientTypeOptions()
  },
}
</script>