Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/vue-loader/ab765114f5f7a68777bba880057ea139.json
2024-12-05 09:33:18 +08:00

1 line
2.2 KiB
JSON

{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\build\\components\\ResourceDialog.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\system\\build\\components\\ResourceDialog.vue","mtime":1732871026715},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"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\r\nimport { deepClone } from '../utils/index'\r\nexport default {\r\n name: 'ResourceDialog',\r\n components: {},\r\n inheritAttrs: false,\r\n // eslint-disable-next-line vue/require-prop-types\r\n props: ['originResource'],\r\n data() {\r\n return {\r\n resources: null\r\n }\r\n },\r\n computed: {},\r\n watch: {},\r\n created() {},\r\n mounted() {},\r\n methods: {\r\n onOpen() {\r\n this.resources = this.originResource.length ? deepClone(this.originResource) : ['']\r\n },\r\n onClose() {\r\n },\r\n close() {\r\n this.$emit('update:visible', false)\r\n },\r\n handelConfirm() {\r\n const results = this.resources.filter(item => !!item) || []\r\n this.$emit('save', results)\r\n this.close()\r\n if (results.length) {\r\n this.resources = results\r\n }\r\n },\r\n deleteOne(index) {\r\n this.resources.splice(index, 1)\r\n },\r\n addOne(url) {\r\n if (this.resources.indexOf(url) > -1) {\r\n this.$message('资源已存在')\r\n } else {\r\n this.resources.push(url)\r\n }\r\n }\r\n }\r\n}\r\n",null]}