1 |
- {"remainingRequest":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/src/views/log/login/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/src/views/log/login/index.vue","mtime":1708395041887},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/cache-loader/dist/cjs.js","mtime":1708395146433},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/babel-loader/lib/index.js","mtime":1708395147257},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/cache-loader/dist/cjs.js","mtime":1708395146433},{"path":"/Users/caoge/Desktop/地质现场/VehicleMonitor-WEB/node_modules/vue-loader/lib/index.js","mtime":1708395147382}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KDQppbXBvcnQgeyBnZXRMb2dMaXN0LCBnZXREZWxldGVMaXN0LCBnZXRsb2FmT3V0IH0gZnJvbSAnQC9hcGkvbG9naW5Mb2cnDQppbXBvcnQgeyBtYXBHZXR0ZXJzIH0gZnJvbSAndnVleCcNCg0KZXhwb3J0IGRlZmF1bHQgew0KICBuYW1lOiAnaG9tZScsDQogIGNvbXB1dGVkOiB7DQogICAgLi4ubWFwR2V0dGVycyhbDQogICAgICAnbmFtZScNCiAgICBdKQ0KICB9LA0KICBkYXRhKCkgew0KICAgIHJldHVybiB7DQogICAgICBzZWFyY2hTaG93OiB0cnVlLA0KICAgICAgdmFsdWUxOiAnJywNCiAgICAgIHF1ZXJ5UGFyYW1zOiB7DQogICAgICAgIHBhZ2VTaXplOiAxMCwNCiAgICAgICAgcGFnZU51bTogMSwNCiAgICAgICAgaXBhZGRyOiAnJywNCiAgICAgICAgdXNlck5hbWU6ICcnLA0KICAgICAgICBzdGF0dXM6ICcnDQogICAgICB9LA0KICAgICAgZm9ybTogew0KICAgICAgICBkaWNyTmFtZTogJycsDQogICAgICAgIGRpY3RUeXBlOiAnJywNCiAgICAgICAgc3RhdHVzOiAnJywNCiAgICAgICAgcmVtYXJrOiAnJw0KICAgICAgfSwNCiAgICAgIHN0YXR1c09wdGlvbnM6IFsNCiAgICAgICAgew0KICAgICAgICAgIGxhYmVsOiAn5oiQ5YqfJywNCiAgICAgICAgICB2YWx1ZTogJzEnDQogICAgICAgIH0sDQogICAgICAgIHsNCiAgICAgICAgICBsYWJlbDogJ+Wksei0pScsDQogICAgICAgICAgdmFsdWU6ICcyJw0KICAgICAgICB9DQogICAgICBdLA0KICAgICAgc2VhcmNoRGF0YToge30sDQogICAgICB0YWJsZURhdGE6IFtdLA0KICAgICAgZGF0ZVJhbmdlOiBbXSwNCiAgICAgIGlkczogW10sDQogICAgICB0b3RhbDogMCwNCiAg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IwMCkgew0KICAgICAgICAgICAgICB0aGlzLmdldExpc3QoKQ0KICAgICAgICAgICAgICB0aGlzLiRtZXNzYWdlKHsNCiAgICAgICAgICAgICAgICB0eXBlOiAnc3VjY2VzcycsDQogICAgICAgICAgICAgICAgbWVzc2FnZTogJ+WIoOmZpOaIkOWKnyEnDQogICAgICAgICAgICAgIH0pDQogICAgICAgICAgICB9IGVsc2Ugew0KICAgICAgICAgICAgICB0aGlzLiRtZXNzYWdlKHsNCiAgICAgICAgICAgICAgICB0eXBlOiAnZXJyb3InLA0KICAgICAgICAgICAgICAgIG1lc3NhZ2U6IHJlcy5tc2cNCiAgICAgICAgICAgICAgfSkNCiAgICAgICAgICAgIH0NCiAgICAgICAgICB9KQ0KICAgICAgICB9KQ0KICAgICAgICAuY2F0Y2goKCkgPT4gew0KICAgICAgICAgIHRoaXMuJG1lc3NhZ2Uoew0KICAgICAgICAgICAgdHlwZTogJ2luZm8nLA0KICAgICAgICAgICAgbWVzc2FnZTogJ+W3suWPlua2iOWIoOmZpCcNCiAgICAgICAgICB9KQ0KICAgICAgICB9KQ0KICAgIH0sDQogICAgaGFuZGxlU2VsZWN0aW9uQ2hhbmdlKHZhbCkgew0KICAgICAgdGhpcy5pZHMgPSB2YWwubWFwKChpdGVtKSA9PiBpdGVtLmluZm9JZCkNCiAgICB9LA0KICAgIHVwbG9hZE91dCgpIHsNCiAgICAgIGdldGxvYWZPdXQoe30pLnRoZW4ocmVzID0+IHsNCiAgICAgICAgdGhpcy5leHBvcnRGaWxlKHJlcywgJ+eZu+W9leaXpeW/l+S/oeaBrycpDQogICAgICB9KQ0KICAgIH0sDQogICAgZXhwb3J0RmlsZTogZnVuY3Rpb24gKG9iaiwgbmFtZSA9IERhdGUubm93KCksIHN1ZmZpeCA9ICd4bHN4Jykgew0KICAgICAgY29uc3QgdXJsID0gd2luZG93LlVSTC5jcmVhdGVPYmplY3RVUkwoDQogICAgICAgIG5ldyBCbG9iKFtvYmpdLCB7IHR5cGU6ICd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XMuZ2V0TGlzdCgpDQogICAgfSwNCiAgICBoYW5kbGVDdXJyZW50Q2hhbmdlKHZhbCkgew0KICAgICAgdGhpcy5xdWVyeVBhcmFtcy5wYWdlTnVtID0gdmFsDQogICAgICB0aGlzLmdldExpc3QoKQ0KICAgIH0NCiAgfQ0KfQ0K"},{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsJA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.vue","sourceRoot":"src/views/log/login","sourcesContent":["<template>\r\n <div class=\"dashboard-container\">\r\n <!-- <div class=\"dashboard-text\">\r\n <div style=\"padding: 15px; background: #fff; margin-top: -15px\">\r\n <el-row gutter=\"24\" :gutter=\"24\" type=\"flex\" style=\"flex-wrap: wrap;margin-left: -5px;\">\r\n <el-input style=\"width: 220px;margin-left: 10px;\" placeholder=\"请输入登陆地址\" v-model=\"queryParams.ipaddr\"></el-input>\r\n <el-input style=\"width: 220px;\" placeholder=\"请输入用户名称\" v-model=\"queryParams.userName\"></el-input>\r\n <el-select clearable placeholder=\"请选择状态\" v-model=\"queryParams.status\" style=\"width: 220px;\">\r\n <el-option v-for=\"item in statusOptions\" :key=\"item.value\" :label=\"item.label\" :value=\"item.value\">\r\n </el-option>\r\n </el-select>\r\n <el-row gutter=\"24\" justify=\"end\" type=\"flex\" style=\"margin-top: 5px;margin-right:20px\">\r\n <div class=\"search-btn\" v-if=\"searchShow\" :span=\"6\" justify=\"end\" style=\"display: flex; margin-top: 2px\"\r\n type=\"flex\">\r\n <div class=\"search_btn\" style=\"margin-left: 10px;position: relative;top: -5px;\" @click=\"handleQuery\">\r\n 查询\r\n </div>\r\n <div class=\"reset_btn\" style=\"margin-left: 10px;position: relative;top: -5px;\" @click=\"reset\">\r\n 重置\r\n </div>\r\n <el-button v-if=\"searchShow == false\" type=\"text\" icon=\"el-icon-arrow-up\"\r\n style=\"color: #2766dd !important; margin-left: 10px\" @click=\"searchShow = true\">收起</el-button>\r\n <el-button v-if=\"searchShow == true\" type=\"text\"\r\n style=\"color: #2766dd; margin-left: 10px;position: relative;top: -5px;\" icon=\"el-icon-arrow-down\"\r\n @click=\"searchShow = false\">展开</el-button>\r\n </div>\r\n </el-row>\r\n </el-row>\r\n <el-row :gutter=\"24\" type=\"flex\" style=\"flex-wrap: wrap;margin-left: -5px;\">\r\n <el-col :span=\"6\" v-if=\"searchShow == false\">\r\n <el-date-picker style=\"width: 458px;position: relative;top: 8px;left: -2px; \" v-model=\"dateRange\"\r\n end-placeholder=\"结束日期\" range-separator=\"至\" start-placeholder=\"开始日期\" clearable\r\n value-format=\"yyyy-MM-dd HH:mm:ss\" type=\"daterange\" :clearable=\"true\">\r\n </el-date-picker>\r\n </el-col>\r\n <el-col :span=\"7\" />\r\n <el-col v-if=\"searchShow == false\" :span=\"6\" justify=\"end\" type=\"flex\" style=\"display: flex\">\r\n <div class=\"search_btn\" style=\"margin-left: 20px;position: relative;top: 8px;\" @click=\"handleQuery\">\r\n 查询\r\n </div>\r\n <div class=\"reset_btn\" style=\"margin-left: 10px;position: relative;top: 8px;\" @click=\"reset\">\r\n 重置\r\n </div>\r\n <el-button v-if=\"searchShow == false\" type=\"text\" icon=\"el-icon-arrow-up\"\r\n style=\"color: #2766dd !important; margin-left: 10px;\" @click=\"searchShow = true\">收起</el-button>\r\n <el-button v-if=\"searchShow == true\" type=\"text\" style=\"color: #2766dd; margin-left: 10px\"\r\n icon=\"el-icon-arrow-down\" @click=\"searchShow = false\">展开</el-button>\r\n </el-col>\r\n </el-row> \r\n </div>\r\n </div> -->\r\n\r\n\r\n <div class=\"dashboard-text\">\r\n <div style=\"margin-top:-15px;background:#fff;padding:15px\">\r\n <el-row :gutter=\"24\" style=\"display:flex\">\r\n <el-input style=\"width: 220px;margin-left: 10px;\" placeholder=\"请输入登陆地址\" v-model=\"queryParams.ipaddr\"></el-input>\r\n <el-input style=\"width: 220px;\" placeholder=\"请输入用户名称\" v-model=\"queryParams.userName\"></el-input>\r\n <el-select clearable placeholder=\"请选择状态\" v-model=\"queryParams.status\" style=\"width: 220px;\">\r\n <el-option v-for=\"item in statusOptions\" :key=\"item.value\" :label=\"item.label\" :value=\"item.value\">\r\n </el-option>\r\n </el-select>\r\n <div v-if=\"searchShow == true\" :span=\"6\" style=\"display:flex;margin-top:2px\">\r\n <!-- <div class=\"search-btn\"> -->\r\n <div class=\"searchBtn\" style=\"margin-left:0px\" @click=\"handleQuery\">搜索</div>\r\n <div class=\"resetBtn\" style=\"margin-left:10px\" @click=\"reset\">重置</div>\r\n <el-button v-if=\"searchShow == false\" type=\"text\" style=\"color: #2766dd !important;margin-left:10px\"\r\n icon=\"el-icon-arrow-up\" @click=\"searchShow = true\">收起</el-button>\r\n <el-button v-if=\"searchShow == true\" type=\"text\" style=\"color:#2766DD;margin-left:10px\"\r\n icon=\"el-icon-arrow-down\" @click=\"searchShow = false\">展开</el-button>\r\n <!-- </div> -->\r\n </div>\r\n </el-row>\r\n <el-row :gutter=\"24\" style=\"display:flex\">\r\n <div v-if=\"searchShow == false\" :span=\"6\">\r\n <el-date-picker style=\"width: 458px;position: relative;top: 8px;left: 10px; \" v-model=\"dateRange\"\r\n end-placeholder=\"结束日期\" range-separator=\"至\" start-placeholder=\"开始日期\" clearable\r\n value-format=\"yyyy-MM-dd HH:mm:ss\" type=\"daterange\" :clearable=\"true\">\r\n </el-date-picker>\r\n </div>\r\n <el-col style=\"width:260px\"></el-col>\r\n <div v-if=\"searchShow == false\" :span=\"6\">\r\n <div class=\"search-btn\" style=\"display: flex;\"> \r\n <div class=\"searchBtn\" style=\"margin-top: 10px;margin-left: 15px;\" @click=\"handleQuery\">搜索</div>\r\n <div class=\"resetBtn\" style=\"margin-left:10px;margin-top: 10px;\" @click=\"reset\">重置</div>\r\n <el-button v-if=\"searchShow == false\" type=\"text\" icon=\"el-icon-arrow-up\"\r\n style=\"color: #2766dd !important;margin-left:10px;margin-top: 10px;\"\r\n @click=\"searchShow = true\">收起</el-button>\r\n <el-button v-if=\"searchShow == true\" type=\"text\" icon=\"el-icon-arrow-down\"\r\n @click=\"searchShow = false\">展开</el-button>\r\n </div>\r\n </div>\r\n </el-row>\r\n </div>\r\n </div>\r\n\r\n <div style=\"padding: 20px; background: #fff; margin-top: 15px\">\r\n <div class=\"cardHeadr\">\r\n <div style=\"font-size: 18px; float: left;\">\r\n <div style=\"float: left;margin-right: 20px;\" class=\"addBtn\" @click=\"addDepartMenDict\">\r\n <span class=\"icon font_family\"></span>\r\n 批量删除\r\n </div>\r\n <!-- <div style=\"float: left;\" class=\"addBtn\" @click=\"uploadOut\">\r\n <span class=\"icon font_family\"></span>\r\n 导出\r\n </div> -->\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n <el-table ref=\"multipleTable\" :data=\"tableData\" tooltip-effect=\"dark\" style=\"width: 100%\"\r\n @selection-change=\"handleSelectionChange\">\r\n <el-table-column type=\"selection\" width=\"55\" align=\"center\">\r\n </el-table-column>\r\n <el-table-column prop=\"infoId\" label=\"访问编号\" align=\"center\" width=\"150\" />\r\n <el-table-column prop=\"userName\" label=\"用户名称\" align=\"center\" width=\"210\" />\r\n <el-table-column prop=\"ipaddr\" label=\"登录地址\" align=\"center\" width=\"210\" />\r\n <el-table-column prop=\"loginLocation\" label=\"登陆地点\" align=\"center\" width=\"150\" />\r\n <el-table-column prop=\"msg\" label=\"操作信息\" align=\"center\" />\r\n <el-table-column prop=\"status\" label=\"登录状态\" align=\"center\" width=\"150\">\r\n <template slot-scope=\"scope\">\r\n {{ scope.row.status == 1 ? '成功' : '失败' }}\r\n </template>\r\n </el-table-column>\r\n <el-table-column prop=\"loginTime\" label=\"登录日期\" align=\"center\" width=\"210\" />\r\n <!-- <el-table-column label=\"操作\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <div class=\"operateBtn\">\r\n <div>详细</div>\r\n </div>\r\n </template>\r\n </el-table-column> -->\r\n </el-table>\r\n <el-row type=\"flex\" justify=\"end\" style=\"margin-top: 10px\">\r\n <div class=\"pagination\">\r\n <el-pagination @size-change=\"handleSizeChange\" @current-change=\"handleCurrentChange\" :page-sizes=\"[10, 15, 20]\"\r\n :page-size=\"searchData.pageSize\" layout=\"total, sizes, prev, pager, next, jumper\" :total=\"total\">\r\n </el-pagination>\r\n </div>\r\n </el-row>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { getLogList, getDeleteList, getloafOut } from '@/api/loginLog'\r\nimport { mapGetters } from 'vuex'\r\n\r\nexport default {\r\n name: 'home',\r\n computed: {\r\n ...mapGetters([\r\n 'name'\r\n ])\r\n },\r\n data() {\r\n return {\r\n searchShow: true,\r\n value1: '',\r\n queryParams: {\r\n pageSize: 10,\r\n pageNum: 1,\r\n ipaddr: '',\r\n userName: '',\r\n status: ''\r\n },\r\n form: {\r\n dicrName: '',\r\n dictType: '',\r\n status: '',\r\n remark: ''\r\n },\r\n statusOptions: [\r\n {\r\n label: '成功',\r\n value: '1'\r\n },\r\n {\r\n label: '失败',\r\n value: '2'\r\n }\r\n ],\r\n searchData: {},\r\n tableData: [],\r\n dateRange: [],\r\n ids: [],\r\n total: 0,\r\n title: '新增部门字典',\r\n dialogFormVisible: false\r\n }\r\n },\r\n created() {\r\n this.getList()\r\n },\r\n methods: {\r\n handleQuery() {\r\n this.queryParams.pageNum = 1\r\n this.getList()\r\n },\r\n reset() {\r\n this.queryParams = {}\r\n this.queryParams.pageNum = 1\r\n this.queryParams.pageSize = 10\r\n this.getList()\r\n },\r\n addDepartMenDict() {\r\n if (this.ids.length == 0) {\r\n return this.$message({\r\n type: 'error',\r\n message: '请选择要删除的日志!'\r\n });\r\n }\r\n this.$confirm('确定要删除吗?', '信息提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n })\r\n .then(() => {\r\n getDeleteList(this.ids).then((res) => {\r\n if (res.code == 200) {\r\n this.getList()\r\n this.$message({\r\n type: 'success',\r\n message: '删除成功!'\r\n })\r\n } else {\r\n this.$message({\r\n type: 'error',\r\n message: res.msg\r\n })\r\n }\r\n })\r\n })\r\n .catch(() => {\r\n this.$message({\r\n type: 'info',\r\n message: '已取消删除'\r\n })\r\n })\r\n },\r\n handleSelectionChange(val) {\r\n this.ids = val.map((item) => item.infoId)\r\n },\r\n uploadOut() {\r\n getloafOut({}).then(res => {\r\n this.exportFile(res, '登录日志信息')\r\n })\r\n },\r\n exportFile: function (obj, name = Date.now(), suffix = 'xlsx') {\r\n const url = window.URL.createObjectURL(\r\n new Blob([obj], { type: 'application/vnd.ms-excel' })\r\n )\r\n const aDOM = document.createElement('a')\r\n aDOM.style.display = 'none'\r\n aDOM.href = url\r\n const fileName = name + '.' + suffix\r\n aDOM.setAttribute('download', fileName)\r\n document.body.appendChild(aDOM)\r\n aDOM.click()\r\n document.body.removeChild(aDOM)\r\n },\r\n getList() {\r\n if (this.dateRange) {\r\n this.queryParams.satrtTime = this.dateRange[0]\r\n this.queryParams.endTime = this.dateRange[1]\r\n } else {\r\n this.queryParams.satrtTime = ''\r\n this.queryParams.endTime = ''\r\n }\r\n getLogList(this.queryParams).then((res) => {\r\n this.tableData = res.data.records\r\n this.total = res.data.total\r\n })\r\n },\r\n handleSizeChange(val) {\r\n this.queryParams.pageSize = val\r\n this.getList()\r\n },\r\n handleCurrentChange(val) {\r\n this.queryParams.pageNum = val\r\n this.getList()\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.dashboard {\r\n &-container {\r\n margin: 45px 30px 30px;\r\n }\r\n\r\n &-text {\r\n font-size: 30px;\r\n line-height: 46px;\r\n }\r\n}\r\n\r\n.dashboard-text {\r\n .el-input {\r\n margin-right: 20px;\r\n }\r\n\r\n .el-select {\r\n margin-right: 20px;\r\n }\r\n}\r\n\r\n.cardHeadr {\r\n margin-top: -20px;\r\n // display: flex;\r\n // justify-content: space-between;\r\n}\r\n\r\n.search_btn {\r\n cursor: pointer;\r\n background-color: #2766dd;\r\n color: #f7f8fb;\r\n font-size: 14px;\r\n width: 80px;\r\n height: 40px;\r\n text-align: center;\r\n line-height: 40px;\r\n}\r\n\r\n.search_btna {\r\n cursor: pointer;\r\n background-color: #2766dd !important;\r\n color: #f7f8fb;\r\n font-size: 14px;\r\n width: 80px;\r\n height: 40px;\r\n text-align: center;\r\n}\r\n\r\n.search_btna,\r\n.search_btn:hover {\r\n background-color: #4d85f4;\r\n}\r\n\r\n.reset_btn {\r\n cursor: pointer;\r\n color: #565656;\r\n font-size: 14px;\r\n border: 1px solid #d7d7d7;\r\n width: 80px;\r\n height: 40px;\r\n text-align: center;\r\n line-height: 40px;\r\n}\r\n\r\n.reset_btn:hover {\r\n color: #1f9fff;\r\n border: 1px solid #1f9fff;\r\n background: none;\r\n}\r\n\r\n.addBtn {\r\n margin: 15px 20px 15px 0;\r\n cursor: pointer;\r\n float: left;\r\n text-align: center;\r\n width: 98px;\r\n height: 34px;\r\n border-radius: 2px;\r\n border: 1px solid #ABC7FD;\r\n line-height: 34px;\r\n font-weight: 400;\r\n font-size: 14px;\r\n color: #2250C8;\r\n background-color: #E7EEFF;\r\n}\r\n\r\n.addBtn:hover {\r\n color: #FFFFFF;\r\n background-color: #2250C8;\r\n border: 1px solid #2250C8;\r\n}\r\n\r\n.addBtn:active {\r\n color: #FFFFFF;\r\n background-color: #194DA4;\r\n border: 1px solid #194DA4;\r\n}\r\n\r\n.operateBtn {\r\n display: flex;\r\n justify-content: center;\r\n color: #2866dd;\r\n\r\n div {\r\n font-size: 14px;\r\n margin: 0 5px;\r\n cursor: pointer;\r\n }\r\n}\r\n\r\n.el-tooltip__popper {\r\n max-width: 30%;\r\n padding-bottom: 5px !important;\r\n display: -webkit-box;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n -webkit-line-clamp: 15;\r\n -webkit-box-orient: vertical;\r\n}\r\n\r\n.el-tooltip__popper,\r\n.el-tooltip__popper.is-dark {\r\n background: rgb(48, 65, 86) !important;\r\n color: #fff !important;\r\n line-height: 24px;\r\n}\r\n\r\n.xzmba {\r\n color: #2766dd;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n}\r\n\r\n.hxj {\r\n width: 100%;\r\n text-align: center;\r\n padding: 0 !important;\r\n}\r\n\r\n::v-deep .el-dialog__header {\r\n padding: 0 20px 10px !important;\r\n}\r\n\r\n::v-deep .el-dialog__body {\r\n padding: 20px 20px !important;\r\n}\r\n\r\n::v-deep .el-upload__tip {\r\n margin-top: -17px;\r\n}\r\n\r\n::v-deep .el-upload-dragger .el-upload__text {\r\n margin-top: -10px;\r\n}\r\n\r\n.dialog-footer {\r\n text-align: center;\r\n}\r\n\r\n.detailDia {\r\n div {\r\n padding-left: 100px;\r\n }\r\n}\r\n\r\n::v-deep .el-input__inner,\r\n.el-input--suffix .el-input__inner {\r\n padding-right: 0 !important;\r\n}\r\n\r\n::v-deep .el-input.is-disabled .el-input__inner {\r\n color: #606266;\r\n}\r\n\r\n::v-deep .el-textarea .el-input__count {\r\n bottom: -40px;\r\n}\r\n\r\n::v-deep .el-input__icon {\r\n // line-height: 47px;\r\n}\r\n// ::v-deep .el-icon-date{\r\n// position: relative;\r\n// top: -7px;\r\n// }\r\n.searchBtn {\r\n cursor: pointer;\r\n background-color: #2766dd;\r\n color: #f7f8fb;\r\n font-size: 14px;\r\n width: 80px;\r\n height: 40px;\r\n text-align: center;\r\n line-height: 40px;\r\n}\r\n\r\n.searchBtn:hover {\r\n background-color: #4d85f4;\r\n}\r\n\r\n.resetBtn {\r\n cursor: pointer;\r\n color: #565656;\r\n font-size: 14px;\r\n border: 1px solid #d7d7d7;\r\n width: 80px;\r\n height: 40px;\r\n text-align: center;\r\n line-height: 40px;\r\n}\r\n\r\n.resetBtn:hover {\r\n color: #1f9fff;\r\n border: 1px solid #1f9fff;\r\n background: none;\r\n}\r\n</style>\r\n"]}]}
|