{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\log\\LogConfiguration.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\log\\LogConfiguration.vue","mtime":1675071992975},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport req from '@/request.js';\nexport default {\n components: {},\n data: function data() {\n return {\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n data: [],\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n curRow: {},\n dialogVisible: false,\n dialogAdd: false,\n statusArray: [{\n text: '关闭',\n value: '0',\n type: 'danger'\n }, {\n text: '开启',\n value: '1',\n type: 'info'\n }],\n typeArray: [{\n text: '三天',\n value: '3'\n }, {\n text: '一周',\n value: '7'\n }, {\n text: '一个月',\n value: '30'\n }, {\n text: '三个月',\n value: '90'\n }, {\n text: '半年',\n value: '180'\n }, {\n text: '一年',\n value: '365'\n }],\n form: {\n log: 3,\n moduleType: '',\n saveDays: 365,\n status: 0,\n remark: ''\n },\n //根据id批量删除\n ids: [],\n rules: {\n moduleType: [{\n required: true,\n message: '请输入模块名',\n trigger: 'blur'\n }, {\n min: 1,\n max: 50,\n message: '长度在 1 到 50 个字符',\n trigger: 'blur'\n }]\n }\n };\n },\n computed: {\n saveUrl: function saveUrl() {\n return window.context.portal + '/logs/sysLogsSettings/v1/save';\n }\n },\n methods: {\n handleClose: function handleClose() {\n this.dialogVisible = false;\n this.dialogAdd = false;\n },\n openDetail: function openDetail(row) {\n this.curRow = JSON.parse(JSON.stringify(row));\n this.dialogVisible = true;\n },\n //添加日志类型\n addSave: function addSave() {\n //console.log(this.form, 'from');\n //判断用户选择是否是异常日志或者是登录日志,如果是就把模块名置空\n if (this.form.log === 1 || this.form.log === 2) {\n this.form.moduleType = '';\n }\n\n var param = {\n enableDel: 0,\n id: '',\n logType: this.form.log,\n moduleType: this.form.moduleType,\n pkVal: '',\n remark: this.form.remark,\n saveDays: this.form.saveDays,\n status: this.form.status\n }; // console.log(param, 'params')\n //判断用户是否输入模块名,进行验证\n\n if (this.form.log === 3) {\n if (this.form.moduleType === '') {\n this.$message.warning('请填写模块名!');\n } else {\n this.addData(param);\n this.dialogAdd = false;\n this.$refs.htTable.load();\n }\n } else {\n this.addData(param);\n this.$refs.htTable.load();\n this.dialogAdd = false;\n } //清空表单\n\n\n this.$refs.form.resetFields();\n },\n addData: function addData(param) {\n return new Promise(function (resolve, reject) {\n req.post(window.context.portal + \"/logs/sysLogsSettings/v1/\", param).then(function (response) {\n resolve(response.data);\n }, function (error) {\n reject(error);\n });\n });\n },\n handleCloseAdd: function handleCloseAdd(done) {\n // this.$confirm('确认关闭?')\n // .then(_ => {\n // done()\n // })\n // .catch(_ => {})\n done(); //清空表单\n\n this.$refs.form.resetFields();\n },\n //添加弹窗的取消按钮事件\n cancelAdd: function cancelAdd() {\n this.dialogAdd = false; //清空表单\n\n this.$refs.form.resetFields();\n },\n loadData: function loadData(param, cb) {\n var _this = this;\n\n // console.log(param, 'params')\n req.post(window.context.portal + '/logs/sysLogsSettings/v1/query', param).then(function (data) {\n var response = data.data;\n _this.data = response.rows;\n _this.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n return cb();\n });\n },\n //处理用户在选择异常日志和登录日志时清空模块名\n beforeSaveData: function beforeSaveData() {\n if (this.curRow.logType === 1 || this.curRow.logType === 2) {\n this.curRow.moduleType = '';\n }\n }\n }\n};",null]}