Forráskód Böngészése

医健宝-页面展示修改,强壮性修改

chenguo 4 napja
szülő
commit
04f4cb18b5

+ 0 - 25
src/views/company/companyTraffic/index.vue

@@ -26,19 +26,6 @@
         </el-select>
       </el-form-item>
 
-
-      <el-form-item label="操作时间">
-        <el-date-picker
-          v-model="dateRange"
-          size="small"          style="width: 240px"
-          value-format="yyyy-MM-dd"
-          type="daterange"
-          range-separator="-"
-          start-placeholder="开始日期"
-          end-placeholder="结束日期"
-        ></el-date-picker>
-      </el-form-item>
-
       <el-form-item>
         <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
         <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -190,8 +177,6 @@ export default {
       rechargeTitle: "",
       // 是否显示充值弹出层
       rechargeOpen: false,
-      // 日期范围
-      dateRange: [],
       // 公司搜索相关
       companySearchLoading: false,
       companyOptions: [],
@@ -239,14 +224,6 @@ export default {
     /** 查询流量记录列表 */
     getList() {
       this.loading = true;
-      // 处理日期范围
-      if (this.dateRange && this.dateRange.length === 2) {
-        this.queryParams.createTimeStart = this.dateRange[0];
-        this.queryParams.createTimeEnd = this.dateRange[1];
-      } else {
-        this.queryParams.createTimeStart = null;
-        this.queryParams.createTimeEnd = null;
-      }
 
       listTrafficRecords(this.queryParams).then(response => {
         this.trafficRecordList = response.rows;
@@ -258,7 +235,6 @@ export default {
     /** 搜索公司 */
     searchCompanies( query) {
       allList().then(response => {
-        console.log("response.rows", response.rows)
         this.companyOptions = response.rows.filter(item => item.dictLabel.includes(query));
         this.companySearchLoading = false;
       }).catch(()=>{
@@ -279,7 +255,6 @@ export default {
 
     /** 重置按钮操作 */
     resetQuery() {
-      this.dateRange = [];
       this.resetForm("queryForm");
       this.handleQuery();
     },

+ 2 - 1
src/views/course/coursePlaySourceConfig/index.vue

@@ -361,7 +361,8 @@ export default {
       });
     },
     companyNameFormatter(row){
-      return this.formatterCompanyOptions.filter(item => item.dictValue === row.companyId)[0].dictLabel
+      let company = this.formatterCompanyOptions.filter(item => item.dictValue === row.companyId)[0];
+      return company ? company.dictLabel : '';
     },
 
     // 获取开关配置