You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
homestay/minsu/admin/node_modules/.cache/vue-loader/664635f895871b0bf0eceb19c1e...

1 line
44 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"remainingRequest":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\src\\views\\modules\\news\\add-or-update.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\src\\views\\modules\\news\\add-or-update.vue","mtime":1649818275931},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1720078528573},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":1720078529261},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1720078528573},{"path":"D:\\mywork\\buycode\\code1\\springboot301400\\306\\分离\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":1720078529317}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KCmltcG9ydCBzdHlsZUpzIGZyb20gIi4uLy4uLy4uL3V0aWxzL3N0eWxlLmpzIjsKLy8g5pWw5a2X77yM6YKu5Lu277yM5omL5py677yMdXJs77yM6Lqr5Lu96K+B5qCh6aqMCmltcG9ydCB7IGlzTnVtYmVyLGlzSW50TnVtZXIsaXNFbWFpbCxpc1Bob25lLCBpc01vYmlsZSxpc1VSTCxjaGVja0lkQ2FyZCB9IGZyb20gIkAvdXRpbHMvdmFsaWRhdGUiOwpleHBvcnQgZGVmYXVsdCB7CiAgICBkYXRhKCkgewogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIGFkZEVkaXRGb3JtOm51bGwsCiAgICAgICAgICAgIGlkOiAnJywKICAgICAgICAgICAgdHlwZTogJycsCiAgICAgICAgICAgIHNlc3Npb25UYWJsZSA6ICIiLC8v55m75b2V6LSm5oi35omA5Zyo6KGo5ZCNCiAgICAgICAgICAgIHJvbGUgOiAiIiwvL+adg+mZkAogICAgICAgICAgICB1c2VySWQ6IiIsLy/lvZPliY3nmbvlvZXkurrnmoRpZAogICAgICAgICAgICBybzp7CiAgICAgICAgICAgICAgICBuZXdzTmFtZTogZmFsc2UsCiAgICAgICAgICAgICAgICBuZXdzVHlwZXM6IGZhbHNlLAogICAgICAgICAgICAgICAgbmV3c1Bob3RvOiBmYWxzZSwKICAgICAgICAgICAgICAgIGluc2VydFRpbWU6IGZhbHNlLAogICAgICAgICAgICAgICAgbmV3c0NvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgICB9LAogICAgICAgICAgICBydWxlRm9ybTogewogICAgICAgICAgICAgICAgbmV3c05hbWU6ICcnLAogICAgICAgICAgICAgICAgbmV3c1R5cGVzOiAnJywKICAgICAgICAgICAgICAgIG5ld3NQaG90bzogJycsCiAgICAgICAgICAgICAgICBpbnNlcnRUaW1lOiAnJywKICAgICAgICAgICAgICAgIG5ld3NDb250ZW50OiAnJywKICAgICAgICAgICAgfSwKICAgICAgICAgICAgbmV3c1R5cGVzT3B0aW9ucyA6IFtdLAogICAgICAgICAgICBydWxlczogewogICAgICAgICAgICAgICBuZXdzTmFtZTogWwogICAgICAgICAgICAgICAgICAgICAgICAgIHsgcmVxdWlyZWQ6IHRydWUsIG1lc3NhZ2U6ICflhazlkYrmoIfpopjkuI3og73kuLrnqbonLCB0cmlnZ2VyOiAnYmx1cicgfSwKICAgICAgICAgICAgICAgICAgICAgIF0sCiAgICAgICAgICAgICAgIG5ld3NUeXBlczogWwogICAgICAgICAgICAgICAgICAgICAgICAgIHsgcmVxdWlyZWQ6IHRydWUsIG1lc3NhZ2U6ICflhazlkYrnsbvlnovkuI3og73kuLrnqbonLCB0cmlnZ2VyOiAnYmx1cicgfSwKICAgICAgICAgICAgICAgICAgICAgICAgICB7ICBwYXR0ZXJuOiAvXlsxLTldWzAtOV0qJC8sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2U6ICflj6rlhYHorrjovpPlhaXmlbTmlbAnLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0cmlnZ2VyOiAnYmx1cicKICAgICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICBdLAogICAgICAgICAgICAgICBuZXdzUGhvdG86IFsKICAgICAgICAgICAgICAgICAgICAgICAgICB7IHJlcXVpcmVkOiB0cnVlLCBtZXNzYWdlOiAn5YWs5ZGK5Zu+54mH5LiN6IO95Li656m6JywgdHJpZ2dlcjogJ2JsdXInIH0sCiAgICAgICAgICAgICAgICAgICAgICBdLAogICAgICAgICAgICAgICBpbnNlcnRUaW1lOiBbCiAgICAgICAgICAgICAgICAgICAgICAgICAgeyByZXF1aXJlZDogdHJ1ZSwgbWVzc2FnZTogJ+a3u+WKoOaXtumXtOS4jeiDveS4uuepuicsIHRyaWdnZXI6ICdibHVyJyB9LAogICAgICAgICAgICAgICAgICAgICAgXSwKICAgICAgICAgICAgICAgbmV3c0NvbnRlbnQ6IFsKICAgICAgICAgICAgICAgICAgICAgICAgICB7IHJlcXVpcmVkOiB0cnVlLCBtZXNzYWdlOiAn5YWs5ZGK6K+m5oOF5LiN6IO95Li656m6JywgdHJpZ2dlcjogJ2JsdXInIH0sCiAgICAgICAgICAgICAgICAgICAgICBdLAogICAgICAgICAgICB9CiAgICAgICAgfTsKICAgIH0sCiAgICBwcm9wczogWyJwYXJlbnQiXSwKICAgIGNvbXB1dGVkOiB7CiAgICB9LAogICAgY3JlYXRlZCgpIHsKICAgICAgICAvL+iOt+WPluW9k+WJjeeZu+W9leeUqOaIt+eahOS/oeaBrwogICAgICAgIHRoaXMuc2Vzc2lvblRhYmxlID0gdGhpcy4kc3RvcmFnZS5nZXQoInNlc3Npb25UYWJsZSIpOwogICAgICAgIHRoaXMucm9sZSA9IHRoaXMuJHN0b3JhZ2UuZ2V0KCJyb2xlIik7CiAgICAgICAgdGhpcy51c2VySWQgPSB0aGlzLiRzdG9yYWdlLmdldCgidXNlcklkIik7CgoKICAgICAgICBpZiAodGhpcy5yb2xlICE9ICLnrqHnkIblkZgiKXsKICAgICAgICB9CiAgICAgICAgdGhpcy5hZGRFZGl0Rm9ybSA9IHN0eWxlSnMuYWRkU3R5bGUoKTsKICAgICAgICB0aGlzLmFkZEVkaXRTdHlsZUNoYW5nZSgpCiAgICAgICAgdGhpcy5hZGRFZGl0VXBsb2FkU3R5bGVDaGFuZ2UoKQogICAgICAgIC8v6I635Y+W5LiL5ouJ5qGG5L+h5oGvCiAgICAgICAgICAgIHRoaXMuJGh0dHAoewogICAgICAgICAgICAgICAgdXJsOmBkaWN0aW9uYXJ5L3BhZ2U/cGFnZT0xJmxpbWl0PTEwMCZzb3J0PSZvcmRlcj0mZGljQ29kZT1uZXdzX3R5cGVzYCwKICAgICAgICAgICAgICAgIG1ldGhvZDogImdldCIKICAgICAgICAgICAgfSkudGhlbigoeyBkYXRhIH0pID0+IHsKICAgICAgICAgICAgICAgIGlmIChkYXRhICYmIGRhdGEuY29kZSA9PT0gMCkgewogICAgICAgICAgICAgICAgICAgIHRoaXMubmV3c1R5cGVzT3B0aW9ucyA9IGRhdGEuZGF0YS5saXN0OwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKCgogICAgfSwKICAgIG1vdW50ZWQoKSB7CiAgICB9LAogICAgbWV0aG9kczogewogICAgICAgIC8vIOS4i+i9vQogICAgICAgIGRvd25sb2FkKGZpbGUpewogICAgICAgICAgICB3aW5kb3cub3BlbihgJHtmaWxlfWApCiAgICAgICAgfSwKICAgICAgICAvLyDliJ3lp4vljJYKICAgICAgICBpbml0KGlkLHR5cGUpIHsKICAgICAgICAgICAgaWYgKGlkKSB7CiAgICAgICAgICAgICAgICB0aGlzLmlkID0gaWQ7CiAgICAgICAgICAgICAgICB0aGlzLnR5cGUgPSB0eXBlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGlmKHRoaXMudHlwZT09J2luZm8nfHx0aGlzLnR5cGU9PSdlbHNlJyl7CiAgICAgICAgICAgICAgICB0aGlzLmluZm8oaWQpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIC8vIOiOt+WPlueUqOaIt+S/oeaBrwogICAgICAgICAgICB0aGlzLiRodHRwKHsKICAgICAgICAgICAgICAgIHVybDpgJHt0aGlzLiRzdG9yYWdlLmdldCgic2Vzc2lvblRhYmxlIil9L3Nlc3Npb25gLAogICAgICAgICAgICAgICAgbWV0aG9kOiAiZ2V0IgogICAgICAgICAgICB9KS50aGVuKCh7IGRhdGEgfSkgPT4gewogICAgICAgICAgICAgICAgaWYgKGRhdGEgJiYgZGF0YS5jb2RlID09PSAwKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGpzb24gPSBkYXRhLmRhdGE7CiAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgIHRoaXMuJG1lc3NhZ2UuZXJyb3IoZGF0YS5tc2cpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICB9LAogICAgICAgIC8vIOWkmue6p+iBlOWKqOWPguaVsAogICAgICAgIGluZm8oaWQpIHsKICAgICAgICAgICAgbGV0IF90aGlzID10aGlzOwogICAgICAgICAgICBfdGhpcy4kaHR0cCh7CiAgICAgICAgICAgICAgICB1cmw6IGBuZXdzL2luZm8vJHtpZH1gLAogICAgICAgICAgICAgICAgbWV0aG9kOiAnZ2V0JwogICAgICAgICAgICB9KS50aGVuKCh7IGRhdGEgfSkgPT4gewogICAgICAgICAgICAgICAgaWYgKGRhdGEgJiYgZGF0YS5jb2RlID09PSAwKSB7CiAgICAgICAgICAgICAgICAgICAgX3RoaXMucnVsZUZvcm0gPSBkYXRhLmRhdGE7CiAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgIF90aGlzLiRtZXNzYWdlLmVycm9yKGRhdGEubXNnKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgfSwKICAgICAgICAvLyDmj5DkuqQKICAgICAgICBvblN1Ym1pdCgpIHsKICAgICAgICAgICAgdGhpcy4kcmVmc1sicnVsZUZvcm0iXS52YWxpZGF0ZSh2YWxpZCA9PiB7CiAgICAgICAgICAgICAgICBpZiAodmFsaWQpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLiRodHRwKHsKICAgICAgICAgICAgICAgICAgICAgICAgdXJsOmBuZXdzLyR7IXRoaXMucnVsZUZvcm0uaWQgPyAic2F2ZSIgOiAidXBkYXRlIn1gLAogICAgICAgICAgICAgICAgICAgICAgICBtZXRob2Q6ICJwb3N0IiwKICAgICAgICAgICAgICAgICAgICAgICAgZGF0YTogdGhpcy5ydWxlRm9ybQogICAgICAgICAgICAgICAgICAgIH0pLnRoZW4oKHsgZGF0YSB9KSA9PiB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChkYXRhICYmIGRhdGEuY29kZSA9PT0gMCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kbWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTogIuaTjeS9nOaIkOWKnyIsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogInN1Y2Nlc3MiLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGR1cmF0aW9uOiAxNTAwLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2xvc2U6ICgpID0+IHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5wYXJlbnQuc2hvd0ZsYWcgPSB0cnVlOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnBhcmVudC5hZGRPclVwZGF0ZUZsYWcgPSBmYWxzZTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5wYXJlbnQubmV3c0Nyb3NzQWRkT3JVcGRhdGVGbGFnID0gZmFsc2U7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucGFyZW50LnNlYXJjaCgpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnBhcmVudC5jb250ZW50U3R5bGVDaGFuZ2UoKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuJG1lc3NhZ2UuZXJyb3IoZGF0YS5tc2cpOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgIH0sCiAgICAgICAgLy8g6I635Y+WdXVpZAogICAgICAgIGdldFVVSUQgKCkgewogICAgICAgICAgICByZXR1cm4gbmV3IERhdGUoKS5nZXRUaW1lKCk7CiAgICAgICAgfSwKICAgICAgICAvLyDov5Tlm54KICA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ybS51cGxvYWRCZ0NvbG9yCiAgICAgICAgICAgICAgICB9KQogICAgICAgICAgICAgICAgZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnLmFkZEVkaXQtYmxvY2sgLnVwbG9hZCAuZWwtZm9ybS1pdGVtX19sYWJlbCcpLmZvckVhY2goZWw9PnsKICAgICAgICAgICAgICAgICAgICBlbC5zdHlsZS5saW5lSGVpZ2h0ID0gdGhpcy5hZGRFZGl0Rm9ybS51cGxvYWRIZWlnaHQKICAgICAgICAgICAgICAgICAgICBlbC5zdHlsZS5jb2xvciA9IHRoaXMuYWRkRWRpdEZvcm0udXBsb2FkTGFibGVDb2xvcgogICAgICAgICAgICAgICAgICAgIGVsLnN0eWxlLmZvbnRTaXplID0gdGhpcy5hZGRFZGl0Rm9ybS51cGxvYWRMYWJsZUZvbnRTaXplCiAgICAgICAgICAgICAgICB9KQogICAgICAgICAgICAgICAgZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnLmFkZEVkaXQtYmxvY2sgLnVwbG9hZCAuZWwtaWNvbi1wbHVzJykuZm9yRWFjaChlbD0+ewogICAgICAgICAgICAgICAgICAgIGVsLnN0eWxlLmNvbG9yID0gdGhpcy5hZGRFZGl0Rm9ybS51cGxvYWRJY29uRm9udENvbG9yCiAgICAgICAgICAgICAgICAgICAgZWwuc3R5bGUuZm9udFNpemUgPSB0aGlzLmFkZEVkaXRGb3JtLnVwbG9hZEljb25Gb250U2l6ZQogICAgICAgICAgICAgICAgICAgIGVsLnN0eWxlLmxpbmVIZWlnaHQgPSBpY29uTGluZUhlaWdodAogICAgICAgICAgICAgICAgICAgIGVsLnN0eWxlLmRpc3BsYXkgPSAnYmxvY2snCiAgICAgICAgICAgICAgICB9KQogICAgICAgICAgICAgICAgLy8g5aSa5paH5pys6L6T5YWl5qGGCiAgICAgICAgICAgICAgICBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcuYWRkRWRpdC1ibG9jayAudGV4dGFyZWEgLmVsL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yZWFIZWlnaHQKICAgICAgICAgICAgICAgICAgICBlbC5zdHlsZS5jb2xvciA9IHRoaXMuYWRkRWRpdEZvcm0udGV4dGFyZWFMYWJsZUNvbG9yCiAgICAgICAgICAgICAgICAgICAgZWwuc3R5bGUuZm9udFNpemUgPSB0aGlzLmFkZEVkaXRGb3JtLnRleHRhcmVhTGFibGVGb250U2l6ZQogICAgICAgICAgICAgICAgfSkKICAgICAgICAgICAgICAgIC8vIOS/neWtmAogICAgICAgICAgICAgICAgZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnLmFkZEVkaXQtYmxvY2sgLmJ0biAuYnRuLXN1Y2Nlc3MnKS5mb3JFYWNoKGVsPT57CiAgICAgICAgICAgICAgICAgICAgZWwuc3R5bGUud2lkdGggPSB0aGlzLmFkZEVkaXRGb3JtLmJ0blNhdmVXaWR0aAogICAgICAgICAgICAgICAgICAgIGVsLnN0eWxlLmhlaWdodCA9IHRoaXMuYWRkRWRpdEZvcm0uYnRuU2F2ZUhlaWdodAogICAgICAgICAgICAgICAgICAgIGVsLnN0eWxlLmNvbG9yID0gdGhpcy5hZGRFZGl0Rm9ybS5idG5TYXZlRm9udENvbG9yCiAgICAgICAgICAgICAgICAgICAgZWwuc3R5bGUuZm9udFNpemUgPSB0aGlzLmFkZEVkaXRGb3JtLmJ0blNhdmVGb250U2l6ZQogICAgICAgICAgICAgICAgICAgIGVsLnN0eWxlLmJvcmRlcldpZHRoID0gdGhpcy5hZGRFZGl0Rm9ybS5idG5TYXZlQm9yZGVyV2lkdGgKICAgICAgICAgICAgICAgICAgICBlbC5zdHlsZS5ib3JkZXJTdHlsZSA9IHRoaXMuYWRkRWRpdEZvcm0uYnRuU2F2ZUJvcmRlclN0eWxlCiAgICAgICAgICAgICAgICAgICAgZWwuc3R5bGUuYm9yZGVyQ29sb3IgPSB0aGlzLmFkZEVkaXRGb3JtLmJ0blNhdmVCb3JkZXJDb2xvcgogICAgICAgICAgICAgICAgICAgIGVsLnN0eWxlLm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ICAgZWwuc3R5bGUuYmFja2dyb3VuZENvbG9yID0gdGhpcy5hZGRFZGl0Rm9ybS51cGxvYWRCZ0NvbG9yCiAgICAgICAgICAgICAgICB9KQogICAgICAgICAgICB9KQogICAgICAgIH0sCiAgICB9Cn07Cg=="},{"version":3,"sources":["add-or-update.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFA;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;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;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;;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;AACA;AACA","file":"add-or-update.vue","sourceRoot":"src/views/modules/news","sourcesContent":["<template>\r\n <div class=\"addEdit-block\">\r\n <el-form\r\n class=\"detail-form-content\"\r\n ref=\"ruleForm\"\r\n :model=\"ruleForm\"\r\n :rules=\"rules\"\r\n label-width=\"80px\"\r\n :style=\"{backgroundColor:addEditForm.addEditBoxColor}\">\r\n <el-row>\r\n <input id=\"updateId\" name=\"id\" type=\"hidden\">\r\n <el-col :span=\"12\">\r\n <el-form-item class=\"input\" v-if=\"type!='info'\" label=\"公告标题\" prop=\"newsName\">\r\n <el-input v-model=\"ruleForm.newsName\"\r\n placeholder=\"公告标题\" clearable :readonly=\"ro.newsName\"></el-input>\r\n </el-form-item>\r\n <div v-else-if=\"type=='info'\">\r\n <el-form-item class=\"input\" label=\"公告标题\" prop=\"newsName\">\r\n <el-input v-model=\"ruleForm.newsName\"\r\n placeholder=\"公告标题\" readonly></el-input>\r\n </el-form-item>\r\n </div>\r\n </el-col>\r\n <el-col :span=\"12\">\r\n <el-form-item class=\"select\" v-if=\"type!='info'\" label=\"公告类型\" prop=\"newsTypes\">\r\n <el-select v-model=\"ruleForm.newsTypes\" :disabled=\"ro.newsTypes\" placeholder=\"请选择公告类型\">\r\n <el-option\r\n v-for=\"(item,index) in newsTypesOptions\"\r\n v-bind:key=\"item.codeIndex\"\r\n :label=\"item.indexName\"\r\n :value=\"item.codeIndex\">\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n <div v-else-if=\"type=='info'\">\r\n <el-form-item class=\"input\" label=\"公告类型\" prop=\"newsValue\">\r\n <el-input v-model=\"ruleForm.newsValue\"\r\n placeholder=\"公告类型\" readonly></el-input>\r\n </el-form-item>\r\n </div>\r\n </el-col>\r\n <el-col :span=\"12\">\r\n <el-form-item class=\"upload\" v-if=\"type!='info' && !ro.newsPhoto\" label=\"公告图片\" prop=\"newsPhoto\">\r\n <file-upload\r\n tip=\"点击上传公告图片\"\r\n action=\"file/upload\"\r\n :limit=\"3\"\r\n :multiple=\"true\"\r\n :fileUrls=\"ruleForm.newsPhoto?ruleForm.newsPhoto:''\"\r\n @change=\"newsPhotoUploadChange\"\r\n ></file-upload>\r\n </el-form-item>\r\n <div v-else>\r\n <el-form-item v-if=\"ruleForm.newsPhoto\" label=\"公告图片\" prop=\"newsPhoto\">\r\n <img style=\"margin-right:20px;\" v-bind:key=\"index\" v-for=\"(item,index) in (ruleForm.newsPhoto || '').split(',')\" :src=\"item\" width=\"100\" height=\"100\">\r\n </el-form-item>\r\n </div>\r\n </el-col>\r\n <el-col :span=\"24\">\r\n <el-form-item v-if=\"type!='info'\" label=\"公告详情\" prop=\"newsContent\">\r\n <editor style=\"min-width: 200px; max-width: 600px;\"\r\n v-model=\"ruleForm.newsContent\"\r\n class=\"editor\"\r\n action=\"file/upload\">\r\n </editor>\r\n </el-form-item>\r\n <div v-else-if=\"type=='info'\">\r\n <el-form-item v-if=\"ruleForm.newsContent\" label=\"公告详情\" prop=\"newsContent\">\r\n <span v-html=\"ruleForm.newsContent\"></span>\r\n </el-form-item>\r\n </div>\r\n </el-col>\r\n </el-row>\r\n <el-form-item class=\"btn\">\r\n <el-button v-if=\"type!='info'\" type=\"primary\" class=\"btn-success\" @click=\"onSubmit\">提交</el-button>\r\n <el-button v-if=\"type!='info'\" class=\"btn-close\" @click=\"back()\">取消</el-button>\r\n <el-button v-if=\"type=='info'\" class=\"btn-close\" @click=\"back()\">返回</el-button>\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n</template>\r\n<script>\r\n import styleJs from \"../../../utils/style.js\";\r\n // 数字邮件手机url身份证校验\r\n import { isNumber,isIntNumer,isEmail,isPhone, isMobile,isURL,checkIdCard } from \"@/utils/validate\";\r\n export default {\r\n data() {\r\n return {\r\n addEditForm:null,\r\n id: '',\r\n type: '',\r\n sessionTable : \"\",//登录账户所在表名\r\n role : \"\",//权限\r\n userId:\"\",//当前登录人的id\r\n ro:{\r\n newsName: false,\r\n newsTypes: false,\r\n newsPhoto: false,\r\n insertTime: false,\r\n newsContent: false,\r\n },\r\n ruleForm: {\r\n newsName: '',\r\n newsTypes: '',\r\n newsPhoto: '',\r\n insertTime: '',\r\n newsContent: '',\r\n },\r\n newsTypesOptions : [],\r\n rules: {\r\n newsName: [\r\n { required: true, message: '公告标题不能为空', trigger: 'blur' },\r\n ],\r\n newsTypes: [\r\n { required: true, message: '公告类型不能为空', trigger: 'blur' },\r\n { pattern: /^[1-9][0-9]*$/,\r\n message: '只允许输入整数',\r\n trigger: 'blur'\r\n }\r\n ],\r\n newsPhoto: [\r\n { required: true, message: '公告图片不能为空', trigger: 'blur' },\r\n ],\r\n insertTime: [\r\n { required: true, message: '添加时间不能为空', trigger: 'blur' },\r\n ],\r\n newsContent: [\r\n { required: true, message: '公告详情不能为空', trigger: 'blur' },\r\n ],\r\n }\r\n };\r\n },\r\n props: [\"parent\"],\r\n computed: {\r\n },\r\n created() {\r\n //获取当前登录用户的信息\r\n this.sessionTable = this.$storage.get(\"sessionTable\");\r\n this.role = this.$storage.get(\"role\");\r\n this.userId = this.$storage.get(\"userId\");\r\n\r\n\r\n if (this.role != \"管理员\"){\r\n }\r\n this.addEditForm = styleJs.addStyle();\r\n this.addEditStyleChange()\r\n this.addEditUploadStyleChange()\r\n //获取下拉框信息\r\n this.$http({\r\n url:`dictionary/page?page=1&limit=100&sort=&order=&dicCode=news_types`,\r\n method: \"get\"\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n this.newsTypesOptions = data.data.list;\r\n }\r\n });\r\n\r\n\r\n },\r\n mounted() {\r\n },\r\n methods: {\r\n // 下载\r\n download(file){\r\n window.open(`${file}`)\r\n },\r\n // 初始化\r\n init(id,type) {\r\n if (id) {\r\n this.id = id;\r\n this.type = type;\r\n }\r\n if(this.type=='info'||this.type=='else'){\r\n this.info(id);\r\n }\r\n // 获取用户信息\r\n this.$http({\r\n url:`${this.$storage.get(\"sessionTable\")}/session`,\r\n method: \"get\"\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n var json = data.data;\r\n } else {\r\n this.$message.error(data.msg);\r\n }\r\n });\r\n },\r\n // 多级联动参数\r\n info(id) {\r\n let _this =this;\r\n _this.$http({\r\n url: `news/info/${id}`,\r\n method: 'get'\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n _this.ruleForm = data.data;\r\n } else {\r\n _this.$message.error(data.msg);\r\n }\r\n });\r\n },\r\n // 提交\r\n onSubmit() {\r\n this.$refs[\"ruleForm\"].validate(valid => {\r\n if (valid) {\r\n this.$http({\r\n url:`news/${!this.ruleForm.id ? \"save\" : \"update\"}`,\r\n method: \"post\",\r\n data: this.ruleForm\r\n }).then(({ data }) => {\r\n if (data && data.code === 0) {\r\n this.$message({\r\n message: \"操作成功\",\r\n type: \"success\",\r\n duration: 1500,\r\n onClose: () => {\r\n this.parent.showFlag = true;\r\n this.parent.addOrUpdateFlag = false;\r\n this.parent.newsCrossAddOrUpdateFlag = false;\r\n this.parent.search();\r\n this.parent.contentStyleChange();\r\n }\r\n });\r\n } else {\r\n this.$message.error(data.msg);\r\n }\r\n });\r\n }\r\n });\r\n },\r\n // 获取uuid\r\n getUUID () {\r\n return new Date().getTime();\r\n },\r\n // 返回\r\n back() {\r\n this.parent.showFlag = true;\r\n this.parent.addOrUpdateFlag = false;\r\n this.parent.newsCrossAddOrUpdateFlag = false;\r\n this.parent.contentStyleChange();\r\n },\r\n //图片\r\n newsPhotoUploadChange(fileUrls){\r\n this.ruleForm.newsPhoto = fileUrls;\r\n this.addEditUploadStyleChange()\r\n },\r\n\r\n addEditStyleChange() {\r\n this.$nextTick(()=>{\r\n // input\r\n document.querySelectorAll('.addEdit-block .input .el-input__inner').forEach(el=>{\r\n el.style.height = this.addEditForm.inputHeight\r\n el.style.color = this.addEditForm.inputFontColor\r\n el.style.fontSize = this.addEditForm.inputFontSize\r\n el.style.borderWidth = this.addEditForm.inputBorderWidth\r\n el.style.borderStyle = this.addEditForm.inputBorderStyle\r\n el.style.borderColor = this.addEditForm.inputBorderColor\r\n el.style.borderRadius = this.addEditForm.inputBorderRadius\r\n el.style.backgroundColor = this.addEditForm.inputBgColor\r\n })\r\n document.querySelectorAll('.addEdit-block .input .el-form-item__label').forEach(el=>{\r\n el.style.lineHeight = this.addEditForm.inputHeight\r\n el.style.color = this.addEditForm.inputLableColor\r\n el.style.fontSize = this.addEditForm.inputLableFontSize\r\n })\r\n // select\r\n document.querySelectorAll('.addEdit-block .select .el-input__inner').forEach(el=>{\r\n el.style.height = this.addEditForm.selectHeight\r\n el.style.color = this.addEditForm.selectFontColor\r\n el.style.fontSize = this.addEditForm.selectFontSize\r\n el.style.borderWidth = this.addEditForm.selectBorderWidth\r\n el.style.borderStyle = this.addEditForm.selectBorderStyle\r\n el.style.borderColor = this.addEditForm.selectBorderColor\r\n el.style.borderRadius = this.addEditForm.selectBorderRadius\r\n el.style.backgroundColor = this.addEditForm.selectBgColor\r\n })\r\n document.querySelectorAll('.addEdit-block .select .el-form-item__label').forEach(el=>{\r\n el.style.lineHeight = this.addEditForm.selectHeight\r\n el.style.color = this.addEditForm.selectLableColor\r\n el.style.fontSize = this.addEditForm.selectLableFontSize\r\n })\r\n document.querySelectorAll('.addEdit-block .select .el-select__caret').forEach(el=>{\r\n el.style.color = this.addEditForm.selectIconFontColor\r\n el.style.fontSize = this.addEditForm.selectIconFontSize\r\n })\r\n // date\r\n document.querySelectorAll('.addEdit-block .date .el-input__inner').forEach(el=>{\r\n el.style.height = this.addEditForm.dateHeight\r\n el.style.color = this.addEditForm.dateFontColor\r\n el.style.fontSize = this.addEditForm.dateFontSize\r\n el.style.borderWidth = this.addEditForm.dateBorderWidth\r\n el.style.borderStyle = this.addEditForm.dateBorderStyle\r\n el.style.borderColor = this.addEditForm.dateBorderColor\r\n el.style.borderRadius = this.addEditForm.dateBorderRadius\r\n el.style.backgroundColor = this.addEditForm.dateBgColor\r\n })\r\n document.querySelectorAll('.addEdit-block .date .el-form-item__label').forEach(el=>{\r\n el.style.lineHeight = this.addEditForm.dateHeight\r\n el.style.color = this.addEditForm.dateLableColor\r\n el.style.fontSize = this.addEditForm.dateLableFontSize\r\n })\r\n document.querySelectorAll('.addEdit-block .date .el-input__icon').forEach(el=>{\r\n el.style.color = this.addEditForm.dateIconFontColor\r\n el.style.fontSize = this.addEditForm.dateIconFontSize\r\n el.style.lineHeight = this.addEditForm.dateHeight\r\n })\r\n // upload\r\n let iconLineHeight = parseInt(this.addEditForm.uploadHeight) - parseInt(this.addEditForm.uploadBorderWidth) * 2 + 'px'\r\n document.querySelectorAll('.addEdit-block .upload .el-upload--picture-card').forEach(el=>{\r\n el.style.width = this.addEditForm.uploadHeight\r\n el.style.height = this.addEditForm.uploadHeight\r\n el.style.borderWidth = this.addEditForm.uploadBorderWidth\r\n el.style.borderStyle = this.addEditForm.uploadBorderStyle\r\n el.style.borderColor = this.addEditForm.uploadBorderColor\r\n el.style.borderRadius = this.addEditForm.uploadBorderRadius\r\n el.style.backgroundColor = this.addEditForm.uploadBgColor\r\n })\r\n document.querySelectorAll('.addEdit-block .upload .el-form-item__label').forEach(el=>{\r\n el.style.lineHeight = this.addEditForm.uploadHeight\r\n el.style.color = this.addEditForm.uploadLableColor\r\n el.style.fontSize = this.addEditForm.uploadLableFontSize\r\n })\r\n document.querySelectorAll('.addEdit-block .upload .el-icon-plus').forEach(el=>{\r\n el.style.color = this.addEditForm.uploadIconFontColor\r\n el.style.fontSize = this.addEditForm.uploadIconFontSize\r\n el.style.lineHeight = iconLineHeight\r\n el.style.display = 'block'\r\n })\r\n // 多文本输入框\r\n document.querySelectorAll('.addEdit-block .textarea .el-textarea__inner').forEach(el=>{\r\n el.style.height = this.addEditForm.textareaHeight\r\n el.style.color = this.addEditForm.textareaFontColor\r\n el.style.fontSize = this.addEditForm.textareaFontSize\r\n el.style.borderWidth = this.addEditForm.textareaBorderWidth\r\n el.style.borderStyle = this.addEditForm.textareaBorderStyle\r\n el.style.borderColor = this.addEditForm.textareaBorderColor\r\n el.style.borderRadius = this.addEditForm.textareaBorderRadius\r\n el.style.backgroundColor = this.addEditForm.textareaBgColor\r\n })\r\n document.querySelectorAll('.addEdit-block .textarea .el-form-item__label').forEach(el=>{\r\n // el.style.lineHeight = this.addEditForm.textareaHeight\r\n el.style.color = this.addEditForm.textareaLableColor\r\n el.style.fontSize = this.addEditForm.textareaLableFontSize\r\n })\r\n // 保存\r\n document.querySelectorAll('.addEdit-block .btn .btn-success').forEach(el=>{\r\n el.style.width = this.addEditForm.btnSaveWidth\r\n el.style.height = this.addEditForm.btnSaveHeight\r\n el.style.color = this.addEditForm.btnSaveFontColor\r\n el.style.fontSize = this.addEditForm.btnSaveFontSize\r\n el.style.borderWidth = this.addEditForm.btnSaveBorderWidth\r\n el.style.borderStyle = this.addEditForm.btnSaveBorderStyle\r\n el.style.borderColor = this.addEditForm.btnSaveBorderColor\r\n el.style.borderRadius = this.addEditForm.btnSaveBorderRadius\r\n el.style.backgroundColor = this.addEditForm.btnSaveBgColor\r\n })\r\n // 返回\r\n document.querySelectorAll('.addEdit-block .btn .btn-close').forEach(el=>{\r\n el.style.width = this.addEditForm.btnCancelWidth\r\n el.style.height = this.addEditForm.btnCancelHeight\r\n el.style.color = this.addEditForm.btnCancelFontColor\r\n el.style.fontSize = this.addEditForm.btnCancelFontSize\r\n el.style.borderWidth = this.addEditForm.btnCancelBorderWidth\r\n el.style.borderStyle = this.addEditForm.btnCancelBorderStyle\r\n el.style.borderColor = this.addEditForm.btnCancelBorderColor\r\n el.style.borderRadius = this.addEditForm.btnCancelBorderRadius\r\n el.style.backgroundColor = this.addEditForm.btnCancelBgColor\r\n })\r\n })\r\n },\r\n addEditUploadStyleChange() {\r\n this.$nextTick(()=>{\r\n document.querySelectorAll('.addEdit-block .upload .el-upload-list--picture-card .el-upload-list__item').forEach(el=>{\r\n el.style.width = this.addEditForm.uploadHeight\r\n el.style.height = this.addEditForm.uploadHeight\r\n el.style.borderWidth = this.addEditForm.uploadBorderWidth\r\n el.style.borderStyle = this.addEditForm.uploadBorderStyle\r\n el.style.borderColor = this.addEditForm.uploadBorderColor\r\n el.style.borderRadius = this.addEditForm.uploadBorderRadius\r\n el.style.backgroundColor = this.addEditForm.uploadBgColor\r\n })\r\n })\r\n },\r\n }\r\n };\r\n</script>\r\n<style lang=\"scss\">\r\n.editor{\r\n height: 500px;\r\n\r\n & /deep/ .ql-container {\r\n\t height: 310px;\r\n }\r\n}\r\n.amap-wrapper {\r\n width: 100%;\r\n height: 500px;\r\n}\r\n.search-box {\r\n position: absolute;\r\n}\r\n.addEdit-block {\r\n\tmargin: -10px;\r\n}\r\n.detail-form-content {\r\n\tpadding: 12px;\r\n}\r\n.btn .el-button {\r\n padding: 0;\r\n}</style>\r\n\r\n"]}]}