管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-02-11 d5efa1b1cdbab10b034357ae3e7b65c21754a123
src/views/userManage/templateManage.vue
@@ -196,10 +196,24 @@
            </el-select>
          </el-form-item>
          <el-form-item :label="$t('common.domCode')">
            <el-input
            <!-- <el-input
              style="width:100%"
              v-model=" editForm.code"
            ></el-input>
            ></el-input> -->
            <el-select
              :popper-append-to-body="false"
              style="width:100%"
              v-model="editForm.code"
              placeholder="请选择"
            >
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item :label="$t('common.filePath')">
            <div class="BoxFlex">
@@ -369,6 +383,16 @@
  components: { MyBread, },
  data() {
    return {
      options: [{
        value: 'countSizes',
        label: '数据量统计'
      }, {
        value: 'countServices',
        label: '服务调用量统计'
      }, {
        value: 'countOperates ',
        label: '用户流量统计'
      }],
      itemdetail: {},
      showinfoBox: false,
      behavior: '新增',
@@ -437,6 +461,13 @@
      } else if (parseInt(row.type) == 2) {
        this.itemdetail.fileType = "Excel模板"
      }
      if (row.code == 'countSizes') {
        this.itemdetail.code = "数据量统计"
      } else if (row.code == 'countServices') {
        this.itemdetail.code = "服务调用量统计"
      }else if (row.code == 'countOperates') {
        this.itemdetail.code = "用户流量统计"
      }
      this.itemdetail.uTime = this.format(row.updateTime);
      this.showinfoBox = true
@@ -466,9 +497,9 @@
    //文件类型切换
    selFileTypeChange(val) {
      if (parseInt(val) == 1) {
        this.selectFileType = ".doc,.docx"
        this.selectFileType = ".docx"
      } else if (parseInt(val) == 2) {
        this.selectFileType = ".xls,.xlsx"
        this.selectFileType = ".xlsx"
      }
    },
    //修改
@@ -476,9 +507,9 @@
      this.behavior = "修改"
      this.editForm = row;
      if (parseInt(row.type) == 1) {
        this.selectFileType = ".doc,.docx"
        this.selectFileType = ".docx"
      } else if (parseInt(row.type) == 2) {
        this.selectFileType = ".xls,.xlsx"
        this.selectFileType = ".xlsx"
      }
      this.dialogVisible = true;
    },