{"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\\system\\SysSetting.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\system\\SysSetting.vue","mtime":1675071993225},{"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//\nvar FileUpload = function FileUpload() {\n return import(\"@/components/common/FileUpload.vue\");\n};\n\nimport portal from \"@/api/portal.js\";\nimport req from \"@/request.js\";\nexport default {\n name: \"sysSetting\",\n components: {\n FileUpload: FileUpload\n },\n data: function data() {\n return {\n isSubmit: false,\n saveUrl: \"\".concat(window.context.portal, \"/sys/sysProperties/v1/save\"),\n sysSettingData: {\n manageLogo: [],\n frontLogo: [],\n ico: [],\n manageName: \"\",\n frontName: \"\"\n },\n currentProperty: {\n encrypt: 1,\n name: \"系统Logo/名称\",\n alias: \"sysSetting\",\n description: \"当前系统的管理端Logo、应用端Logo、登录页Logo和名称。\",\n value: \"\"\n }\n };\n },\n watch: {\n \"currentProperty.value\": {\n handler: function handler(newVal, oldVal) {\n var this_ = this;\n\n if (newVal) {\n setTimeout(function () {\n this_.init();\n }, 1000);\n }\n },\n immediate: true,\n deep: true\n }\n },\n mounted: function mounted() {\n this.init();\n },\n methods: {\n //查看系统设置\n init: function init() {\n var this_ = this;\n this_.sysSettingData = {\n manageLogo: [],\n frontLogo: [],\n ico: [],\n manageName: \"\",\n frontName: \"\"\n }, portal.getDecryptBySysSetting().then(function (response) {\n if (response && response.value) {\n this_.sysSettingData = JSON.parse(response.value);\n setTimeout(function () {\n if (this_.sysSettingData.manageLogo.length > 0) {\n this_.$refs.manageLogo.setFiles(this_.sysSettingData.manageLogo);\n }\n\n if (this_.sysSettingData.frontLogo.length > 0) {\n this_.$refs.frontLogo.setFiles(this_.sysSettingData.frontLogo);\n }\n\n if (this_.sysSettingData.ico.length > 0) {\n this_.$refs.ico.setFiles(this_.sysSettingData.ico);\n }\n }, 1000);\n this_.currentProperty.id = response.id;\n }\n });\n },\n //保存前\n beforeSaveData: function beforeSaveData() {\n var this_ = this;\n this_.isSubmit = true;\n\n if (this_.$refs.manageLogo.getFiles().length > 0) {\n this.sysSettingData.manageLogo = this_.$refs.manageLogo.getFiles();\n }\n\n if (this_.$refs.frontLogo.getFiles().length > 0) {\n this_.sysSettingData.frontLogo = this_.$refs.frontLogo.getFiles();\n }\n\n if (this_.$refs.ico.getFiles().length > 0) {\n this_.sysSettingData.ico = this_.$refs.ico.getFiles();\n }\n\n if (this_.sysSettingData.manageLogo.length == 0 && this_.sysSettingData.frontLogo.length == 0 && this_.sysSettingData.ico.length == 0 && this_.sysSettingData.manageName == \"\" && this_.sysSettingData.frontName == \"\") {\n this_.isSubmit = false;\n this_.$message.warning(\"请填写其中一项再保存\");\n return;\n }\n\n this_.currentProperty.value = JSON.stringify(this_.sysSettingData);\n },\n //清空系统设置\n handleClear: function handleClear() {\n var this_ = this;\n\n if (!this_.currentProperty.id) {\n this_.$message.warning(\"请先保存数据再清空\");\n return;\n }\n\n req.remove(\"\".concat(window.context.portal, \"/sys/sysProperties/v1/remove?ids=\").concat(this_.currentProperty.id)).then(function (response) {\n if (response.data) {\n if (response.data.state) {\n this_.sysSettingData = {\n manageLogo: [],\n frontLogo: [],\n ico: [],\n manageName: \"\",\n frontName: \"\"\n };\n this_.currentProperty = {\n encrypt: 1,\n name: \"系统Logo/名称\",\n alias: \"sysSetting\",\n description: \"当前系统的管理端Logo、应用端Logo、登录页Logo和名称。\",\n value: \"\"\n };\n this_.$refs.manageLogo.setFiles([]);\n this_.$refs.frontLogo.setFiles([]);\n this_.$refs.ico.setFiles([]);\n this_.$forceUpdate();\n this_.$message.success(\"清空成功,请重新登录后查看\");\n }\n }\n });\n }\n }\n};",null]}