| | |
| | | window.addEventListener('beforeunload', e => { |
| | | sessionStorage.setItem('beforeunload', 1); |
| | | }); |
| | | |
| | | // 监听页面刷新 |
| | | if (sessionStorage.getItem('beforeunload') == 1) { |
| | | let name = sessionStorage.getItem("routerName"); |
| | | |
| | | if (name) { |
| | | this.$nextTick(function () { |
| | | this.$router.push({ path: name }); //如果sessionStorage存在路由,去缓存的路由 |
| | |
| | | export function report_update(params) { |
| | | return request.post('/report/update', params); |
| | | } |
| | | |
| | | //签名管理=>插入操作日志 |
| | | export function sign_insertOpLog(params) { |
| | | return request.get('/sign/insertOpLog',{ params: params }); |
| | | } |
| | | |
| | | //请求站场点内容 |
| | | export function querySitePoint(size, index, name) { |
| | |
| | | } |
| | | .Black_theme .contentBox{ |
| | | color: #FFF; |
| | | } |
| | | .Black_theme .scopeRowColor{ |
| | | color: #FFF; |
| | | } |
| | |
| | | |
| | | .el-dialog__wrapper { |
| | | z-index: 999; |
| | | } |
| | | .scopeRowColor{ |
| | | color: #606266; |
| | | } |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { logout, selectMenuRecursive } from '@/api/api'; |
| | | import { logout, selectMenuRecursive, sign_insertOpLog } from '@/api/api'; |
| | | import { removeToken, getToken } from '@/utils/auth'; |
| | | import customElMenu from '../components/customElMenu.vue'; |
| | | import { queryMenuTree, getPerms } from '../api/api'; |
| | |
| | | return true; |
| | | } |
| | | }, |
| | | //主题切换 |
| | | |
| | | //主题切换 |
| | | setThemeColors() { }, |
| | | |
| | | async signInsertOpLog(m1, m2) { |
| | | var obj = { |
| | | m1: m1, |
| | | m2: m2, |
| | | } |
| | | const data = await sign_insertOpLog(obj); |
| | | }, |
| | | //鼠标移入菜单事件 |
| | | setMenuMove(index, item) { |
| | | if (item.perms != null) { |
| | |
| | | |
| | | this.changeliSelect = '%%'; |
| | | this.showFlag = null; |
| | | } |
| | | if (item.url == "Thematic") { |
| | | this.signInsertOpLog("综合展示", item.cnName) |
| | | } |
| | | } else { |
| | | if (this.showFlag != index) { |
| | |
| | | } |
| | | }, |
| | | setLiClick(res, index) { |
| | | this.signInsertOpLog(this.listMenu[index].cnName, res.cnName) |
| | | setTimeout(() => { |
| | | |
| | | this.changeliSelect = res.cnName; |
| | |
| | | |
| | | }, |
| | | showChangeIfream(res) { |
| | | // debugger |
| | | // |
| | | console.log(res) |
| | | if (this.$store.state.themeflag == true) { |
| | | if (res.indexOf('theme=white') != -1) { |
| | |
| | | }, |
| | | mounted() { |
| | | // console.log(sessionStorage.getItem('iframehttpurl')) |
| | | // debugger |
| | | // |
| | | if (sessionStorage.getItem('routerName') === '/WareInspection') { |
| | | |
| | | this.showChangeIfream(sessionStorage.getItem('iframehttpurl')) |
| | |
| | | <template> |
| | | <div class="contentBox"> |
| | | |
| | | |
| | | <div |
| | | class="box" |
| | | ref="box" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { selectMenuRecursive, queryMenuTree } from '../../api/api'; |
| | | import { selectMenuRecursive, queryMenuTree, sign_insertOpLog } from '../../api/api'; |
| | | import customElMenu from '../../components/customElMenu.vue'; |
| | | import dataUpdata from '@/views/datamanage/dataUpdata.vue'; //数据管理-数据上传 |
| | | import catalogueManage from '@/views/datamanage/catalogueManage.vue'; //数据管理-目录管理 |
| | |
| | | return value.type == 1; |
| | | }); |
| | | this.menuList = this.treeData(menuList); |
| | | |
| | | this.m1 = this.menuList[0].cnName; |
| | | this.setViewController(this.menuList[0]); |
| | | |
| | | |
| | | const hanleselectindex = sessionStorage.getItem('hanleselectindex') |
| | | if (hanleselectindex) { |
| | | this.$nextTick(function (){ |
| | | this.$nextTick(function () { |
| | | this.handleselecttwo(JSON.parse(hanleselectindex).url, JSON.parse(hanleselectindex)) |
| | | this.setViewController(JSON.parse(hanleselectindex)) |
| | | this.setViewController(JSON.parse(hanleselectindex)) |
| | | }) |
| | | } |
| | | } else { |
| | |
| | | if (res.children != null) { |
| | | this.setViewController(res.children[0]); |
| | | } else { |
| | | this.signInsertOpLog(this.m1, res.cnName) |
| | | this.$store.state.currentPerms = res.perms; |
| | | this.setMenuFlag = res.url; |
| | | this.activeIndex = res.url; |
| | | } |
| | | }, |
| | | async signInsertOpLog(m1, m2) { |
| | | var obj = { |
| | | m1: m1, |
| | | m2: m2, |
| | | } |
| | | const data = await sign_insertOpLog(obj); |
| | | }, |
| | | treeData(source) { |
| | | let cloneData = JSON.parse(JSON.stringify(source)); // 对源数据深度克隆 |
| | |
| | | |
| | | handleselect(index, indexPath, e) { |
| | | const a = JSON.stringify(e.$attrs.perms) |
| | | this.signInsertOpLog(this.m1, e.$attrs.perms.cnName) |
| | | sessionStorage.setItem('hanleselectindex', a) |
| | | var data = e.$attrs.perms; |
| | | this.$store.state.currentPerms = data.perms; |
| | |
| | | <el-form-item :label="$t('dataManage.dataUpObj.dataSpecialty')"> |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | |
| | | :disabled="tableData.length == 0 ? false : true" |
| | | v-model="formInline.specialtyId" |
| | | :placeholder="$t('common.choose')" |
| | |
| | | size="small" |
| | | >{{ $t('common.delete') }}</el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | v-if="menuStatus.upload" |
| | | :disabled="multipleDelete.length == 0 ? true : false" |
| | | @click="setEnclosure" |
| | | icon="el-icon-folder-opened" |
| | | type="warning" |
| | | size="small" |
| | | >{{ $t('common.enclosure') }}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div |
| | |
| | | :label="$t('dataManage.dataUpObj.tableName')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <a @click="detail(scope.row)">{{ scope.row.tab }}</a> |
| | | <a |
| | | class="scopeRowColor" |
| | | @click="detail(scope.row)" |
| | | >{{ scope.row.tab }}</a> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </div> |
| | | |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="$t('common.details')" |
| | | :visible.sync="enclosureVisible" |
| | | :show-close="false" |
| | | > |
| | | <span |
| | | style="font-size:20px" |
| | | class="scopeRowColor" |
| | | >{{enclosureTitle}}不能上传附件是否继续</span> |
| | | <span |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button @click="enclosureVisible = false">取 消</el-button> |
| | | <el-button |
| | | type="primary" |
| | | @click="uploadAnFiles" |
| | | >继续</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <input |
| | | name="file1" |
| | | :accept="'.zip'" |
| | | type="file" |
| | | id="editimageFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="uploadAnFilesChange" |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | |
| | | coordinateOption: [], |
| | | disOptions: [{ |
| | | name: '崩塌治理', |
| | |
| | | }, |
| | | jindutiao: 0, |
| | | jindudialogVisible: false, |
| | | jindutiaoname: [] |
| | | jindutiaoname: [], |
| | | enclosureData: [], |
| | | enclosureVisible: false, |
| | | enclosureTitle: '', |
| | | } |
| | | }, |
| | | |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | //附件变化 |
| | | uploadAnFilesChange() { |
| | | var formData = new FormData(); |
| | | var fs = document.getElementById("editimageFile"); |
| | | if (fs.files.length == 0) { |
| | | this.$message.error('请选择要上传的文件'); |
| | | return; |
| | | } |
| | | for (var i = 0, c = fs.files.length; i < c; i++) { |
| | | formData.append("file", fs.files[i]); // fs.files[i].name,file |
| | | } |
| | | for (var i in this.enclosureData) { |
| | | formData.append('ids', this.enclosureData[i]) |
| | | } |
| | | const that = this |
| | | that.jindudialogVisible = true |
| | | that.$set(this, 'jindutiaoname', "附件上传") |
| | | that.$set(this, 'jindutiao', 0) |
| | | this.loading = true; |
| | | $.ajax(BASE_URL + "/dataUpload/uploadXlsAnnex?token=" + getToken() + "&path=" + this.formInline.path, { |
| | | type: "post", |
| | | data: formData, |
| | | async: true, |
| | | cache: false, |
| | | processData: false, |
| | | contentType: false, |
| | | success: (rs) => { |
| | | this.loading = false; |
| | | if (rs.code != 200) { |
| | | return this.$message.error('附件上传失败'); |
| | | } |
| | | |
| | | this.$set(this, 'jindutiao', 100) |
| | | this.$message({ |
| | | message: '附件上传成功', |
| | | type: 'success' |
| | | }); |
| | | |
| | | }, |
| | | error: (rs) => { |
| | | this.loading = false; |
| | | this.$message.error('附件上传失败'); |
| | | }, |
| | | xhr: function () { |
| | | var myXhr = $.ajaxSettings.xhr(); |
| | | if (myXhr.upload) { //检查upload属性是否存在 |
| | | myXhr.upload.addEventListener('progress', that.progressHandlingFunction, false); //绑定progress事件的回调函数 |
| | | } |
| | | return myXhr; //xhr对象返回给jQuery使用 |
| | | } |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | }, |
| | | //选择上传附件的文件 |
| | | uploadAnFiles() { |
| | | $('#editimageFile').click(); |
| | | }, |
| | | //上传附件 |
| | | uploadAnnex() { |
| | | |
| | | }, |
| | | //附件上传 |
| | | setEnclosure() { |
| | | var enclosureData = [ |
| | | 'bd.b_pac_hydrogeology', |
| | | 'bd.b_pac_frozensoil', |
| | | 'bd.b_pac_geologic_hazard', |
| | | 'bd.b_pac_marine_meteorological', |
| | | 'bd.b_pac_meteorological', |
| | | 'bs.m_equipment_nameplate', |
| | | 'bs.m_hydraulic_protection', |
| | | 'bs.m_marker', |
| | | 'bs.s_borehole' |
| | | ]; |
| | | var std = []; |
| | | this.enclosureData = []; |
| | | this.enclosureTitle = ""; |
| | | for (var i in this.multipleDelete) { |
| | | var row = this.multipleDelete[i]; |
| | | |
| | | if (row.tab && row.rows && enclosureData.indexOf(row.tab) > -1) { |
| | | |
| | | this.enclosureData.push(row.id) |
| | | } else { |
| | | std.push(row.name) |
| | | } |
| | | } |
| | | if (std.length != 0) { |
| | | this.enclosureTitle = std.toString() |
| | | this.enclosureVisible = true; |
| | | } else { |
| | | this.uploadAnFiles(); |
| | | } |
| | | }, |
| | | //权限配置 |
| | | showPermsMenu(res) { |
| | | |
| | | switch (res.tag) { |
| | |
| | | }, |
| | | xhr: function () { |
| | | var myXhr = $.ajaxSettings.xhr(); |
| | | debugger |
| | | if (myXhr.upload) { //检查upload属性是否存在 |
| | | myXhr.upload.addEventListener('progress', that.progressHandlingFunction, false); //绑定progress事件的回调函数 |
| | | } |
| | |
| | | this.entryOption = data.result; |
| | | this.formInline.entryId = this.entryOption[0].name; |
| | | this.formInline.dirid = this.entryOption[0].id; |
| | | |
| | | this.getselectVerByDirid(); |
| | | }, |
| | | //获取所有坐标系 |
| | |
| | | return; |
| | | } |
| | | this.catalogOption = this.treeData(res.result); |
| | | this.formInline.dirName = this.catalogOption[0].name |
| | | this.getStartDirChecked(this.catalogOption); |
| | | this.getselectVerByDirid() |
| | | }, |
| | |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.fileguid') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.fileGuid }}</label> |
| | | <label class="boxlabel">{{ itemdetail.fname }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | |
| | | <div class="BoxFlex"> |
| | | <div class="BoxFlexinput"> |
| | | <el-input |
| | | v-model="insertform.fileGuid" |
| | | v-model="insertFileGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:100%" |
| | |
| | | id="insertFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="insertFile(0)" |
| | | @change="insertFileData(0)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 6px;" |
| | |
| | | <div class="BoxFlex"> |
| | | <div class="BoxFlexinput"> |
| | | <el-input |
| | | v-model="insertform.viewGuid" |
| | | v-model="insertViewGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:100%" |
| | |
| | | id="insertimageFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="insertFile(1)" |
| | | @change="insertFileData(1)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 6px;" |
| | |
| | | components: { MyBread, styleDirTree, styleDepTree }, |
| | | data() { |
| | | return { |
| | | insertFileGuid: "", |
| | | insertViewGuid: "", |
| | | insertFileName: "", |
| | | insertViewName: "", |
| | | |
| | | insertform: { |
| | | |
| | | }, |
| | | dialogFormVisible: false, |
| | | InsertFormdialog: false, |
| | | showCata: false, |
| | |
| | | showDirCata: false, |
| | | showDepCata: false, |
| | | tableData: [], |
| | | insertform: { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | }, |
| | | |
| | | dirFlag: null, |
| | | depFlag: null, |
| | | guidFile: null, |
| | |
| | | $("#insertimageFile").click(); |
| | | } |
| | | }, |
| | | insertFile(res) { |
| | | insertFileData: function (res) { |
| | | |
| | | |
| | | if (res == 0) { |
| | | var val = document.getElementById("insertFile").files; |
| | | if (!val || !val.length) return; |
| | | this.insertform.fileGuid = val[0].name; |
| | | let val = document.getElementById("insertFile").files; |
| | | |
| | | this.insertFileGuid = val[0].name; |
| | | this.insertFileName = val[0].name; |
| | | } else if (res == 1) { |
| | | var val = document.getElementById("insertimageFile").files; |
| | | if (!val || !val.length) return; |
| | | this.insertform.viewGuid = val[0].name; |
| | | let val = document.getElementById("insertimageFile").files; |
| | | |
| | | this.insertViewGuid = val[0].name; |
| | | this.insertViewName = val[0].name; |
| | | } |
| | | }, |
| | | async setinsertFile(res) { |
| | |
| | | insertFromDataClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | |
| | | } |
| | | this.insertFileGuid = ""; |
| | | this.insertViewGuid = "" |
| | | this.filesReset(); |
| | | }, |
| | | handleClose() { |
| | |
| | | } |
| | | if (this.guidFile != null) { |
| | | this.insertform.fileGuid = this.guidFile; |
| | | this.insertform.fname = this.insertFileName; |
| | | } |
| | | if (this.viewFile != null) { |
| | | this.insertform.viewGuid = this.viewFile; |
| | | this.insertform.vname = this.insertViewName; |
| | | } |
| | | |
| | | const data = await insertStyle(this.insertform); |
| | | if (data.code == 200) { |
| | | this.InsertFormdialog = false; |
| | |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | } |
| | | this.insertFileGuid = ""; |
| | | this.insertViewGuid = "" |
| | | this.filesReset(); |
| | | this.$message({ |
| | | message: "添加成功!", |
| | |
| | | } |
| | | this.listData.name = this.ruleForm.name; |
| | | const data = await select_Style_ByPageAndCount(this.listData); |
| | | debugger |
| | | if (data.code != 200) { |
| | | this.$message.error("列表调用失败"); |
| | | } |
| | |
| | | showDetail(index, row) { |
| | | var token = getToken(); |
| | | this.showinfoBox = true; |
| | | |
| | | this.itemdetail = row; |
| | | this.itemdetail.createTime = this.formomentTime( |
| | | this.itemdetail.createTime |
| | |
| | | <system-monitoring v-if="setMenuFlag == 'systemMonitoring'"></system-monitoring> |
| | | <parameter-configuration v-if="setMenuFlag == 'parameterConfiguration'"></parameter-configuration> |
| | | <downlog v-if="setMenuFlag == 'downlog'"></downlog> |
| | | <template-manage v-if="setMenuFlag == 'templateManage'"></template-manage> |
| | | <template-manage v-if="setMenuFlag == 'templateManage'"></template-manage> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | import parameterConfiguration from '@/views/maintenance/parameterConfiguration.vue'; //系统配置 |
| | | import downlog from '@/views/maintenance/downlog.vue'; //下载日志 |
| | | import templateManage from '@/views/userManage/templateManage.vue'//模板管理 |
| | | import { selectMenuRecursive, queryMenuTree, getPerms } from '../../api/api'; |
| | | import { selectMenuRecursive, queryMenuTree, getPerms, sign_insertOpLog } from '../../api/api'; |
| | | import customElMenu from '../../components/customElMenu.vue'; |
| | | |
| | | export default { |
| | |
| | | parameterConfiguration, |
| | | customElMenu, |
| | | downlog, |
| | | templateManage |
| | | templateManage, |
| | | |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | editUnit: false, |
| | | itemdetail: {}, |
| | | formLabelWidth: '70px', |
| | | m1: null, |
| | | }; |
| | | }, |
| | | created() { }, |
| | |
| | | this.$store.state.permsEntity = data.result; |
| | | } |
| | | var store = this.menuList[0]; |
| | | this.m1 = store.cnName; |
| | | this.setViewController(store); |
| | | }, |
| | | getTimeCookies() { |
| | |
| | | this.getCookies(); |
| | | const hanleselectmochaitmo = sessionStorage.getItem('hanleselectmochaitmo') |
| | | if (hanleselectmochaitmo) { |
| | | this.$nextTick(function (){ |
| | | this.$nextTick(function () { |
| | | this.handleselecttwo(JSON.parse(hanleselectmochaitmo).url, JSON.parse(hanleselectmochaitmo)) |
| | | this.setViewController(JSON.parse(hanleselectmochaitmo)) |
| | | this.setViewController(JSON.parse(hanleselectmochaitmo)) |
| | | }) |
| | | } |
| | | // |
| | |
| | | |
| | | // this.treeList = this.treeData(data.result); |
| | | }, |
| | | async signInsertOpLog(m1, m2) { |
| | | var obj = { |
| | | m1: m1, |
| | | m2: m2, |
| | | } |
| | | const data = await sign_insertOpLog(obj); |
| | | |
| | | |
| | | }, |
| | | setViewController(res) { |
| | | if (res == null) { |
| | | return; |
| | | } |
| | | |
| | | if (res.children != null) { |
| | | |
| | | |
| | | this.setViewController(res.children[0]); |
| | | } else { |
| | | |
| | | this.$store.state.currentPerms = res.perms; |
| | | |
| | | this.signInsertOpLog(this.m1, res.cnName) |
| | | this.setMenuFlag = res.url; |
| | | this.activeIndex = res.url; |
| | | } |
| | |
| | | handleselect(index, indexPath, e) { |
| | | this.getTimeCookies(); |
| | | |
| | | this.signInsertOpLog(this.m1, e.$attrs.perms.cnName) |
| | | const a = JSON.stringify(e.$attrs.perms) |
| | | sessionStorage.setItem('hanleselectmochaitmo', a) |
| | | |
| | |
| | | index = 'dataIfream'; |
| | | } |
| | | } |
| | | |
| | | |
| | | this.setMenuFlag = index; |
| | | |
| | | }, |
| | |
| | | :label="$t('userManage.RM.ownedSystem')" |
| | | prop="ownedSystem" |
| | | > |
| | | <el-select |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="roleForm.depValue" |
| | | placeholder="请选择" |
| | |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | style="width:95%" |
| | | v-model="insertform.name" |
| | | autocomplete="off" |
| | | ></el-input> |
| | |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | style="width:95%" |
| | | v-model="insertform.descr" |
| | | autocomplete="off" |
| | | ></el-input> |
| | |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | style="width:95%" |
| | | v-model="insertform.bak" |
| | | autocomplete="off" |
| | | ></el-input> |
| | |
| | | :label-width="formLabelWidth" |
| | | :prop="updateform.depValue" |
| | | > |
| | | <el-select |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="updateform.depValue" |
| | | placeholder="请选择" |
| | |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | |
| | | |
| | | <!-- <el-input |
| | | v-model="updateform.depValue" |
| | | :disabled="true" |
| | |
| | | InsertFormdialog: false, |
| | | UpdateFormdialog: false, |
| | | roleForm: { |
| | | depid:'', |
| | | depValue:'', |
| | | depid: '', |
| | | depValue: '', |
| | | }, |
| | | cataName: '', |
| | | depValue: '', |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | handleRouleDepList(data, node, nodeData){ |
| | | this.roleForm.depid = data.id |
| | | handleRouleDepList(data, node, nodeData) { |
| | | this.roleForm.depid = data.id |
| | | this.roleForm.depValue = data.name; |
| | | }, |
| | | handleDepList(data, node, nodeData) { |
| | |
| | | std.push(this.multipleSelection[i].id); |
| | | } |
| | | this.$confirm('此操作将永久删除该角色, 是否继续?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(async () => { |
| | | const data = await deleteRoles({ ids: std.toString() }); |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(async () => { |
| | | const data = await deleteRoles({ ids: std.toString() }); |
| | | |
| | | if (data.code == 200) { |
| | | this.InsertFormdialog = false; |
| | | this.$message({ |
| | | message: '删除成功!', |
| | | type: 'success', |
| | | }); |
| | | this.getRoleTabelData(); |
| | | } else { |
| | | this.$message({ |
| | | message: '删除失败!', |
| | | type: 'warning', |
| | | }); |
| | | } |
| | | }).catch(() => { |
| | | if (data.code == 200) { |
| | | this.InsertFormdialog = false; |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已取消删除' |
| | | }); |
| | | message: '删除成功!', |
| | | type: 'success', |
| | | }); |
| | | this.getRoleTabelData(); |
| | | } else { |
| | | this.$message({ |
| | | message: '删除失败!', |
| | | type: 'warning', |
| | | }); |
| | | } |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已取消删除' |
| | | }); |
| | | }); |
| | | }, |
| | | handleSizeChange(val) { |
| | | this.listData.pageSize = val; |
| | |
| | | } |
| | | .inquire { |
| | | height: auto; |
| | | |
| | | |
| | | padding: 10px; |
| | | margin-top: 10px; |
| | | margin-top: 10px; |
| | |
| | | </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; |
| | | }, |