| | |
| | | </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"> |
| | |
| | | components: { MyBread, }, |
| | | data() { |
| | | return { |
| | | options: [{ |
| | | value: 'countSizes', |
| | | label: '数据量统计' |
| | | }, { |
| | | value: 'countServices', |
| | | label: '服务调用量统计' |
| | | }, { |
| | | value: 'countOperates ', |
| | | label: '用户流量统计' |
| | | }], |
| | | itemdetail: {}, |
| | | showinfoBox: false, |
| | | behavior: '新增', |
| | |
| | | } 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 |
| | |
| | | //文件类型切换 |
| | | 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" |
| | | } |
| | | }, |
| | | //修改 |
| | |
| | | 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; |
| | | }, |