EMS2.0-Documents/7.部署文档/Linux安装/项目前端文件/IEMS/js/chunk-79a19055.9bbb45d9.js.map

1 line
61 KiB
Plaintext

{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.string.split.js","webpack:///./src/api/menu.js","webpack:///./src/views/manager/WebMenu.vue?fb09","webpack:///./src/directive/permission/permission.js","webpack:///./src/directive/permission/index.js","webpack:///./src/views/manager/WebMenu.vue?1d11","webpack:///src/views/manager/WebMenu.vue","webpack:///./src/views/manager/WebMenu.vue?ccd0","webpack:///./src/views/manager/WebMenu.vue","webpack:///./node_modules/core-js/modules/es.json.stringify.js"],"names":["apply","call","uncurryThis","fixRegExpWellKnownSymbolLogic","isRegExp","anObject","requireObjectCoercible","speciesConstructor","advanceStringIndex","toLength","toString","getMethod","arraySlice","callRegExpExec","regexpExec","stickyHelpers","fails","UNSUPPORTED_Y","MAX_UINT32","min","Math","$push","push","exec","stringSlice","slice","SPLIT_WORKS_WITH_OVERWRITTEN_EXEC","re","originalExec","this","arguments","result","split","length","SPLIT","nativeSplit","maybeCallNative","internalSplit","separator","limit","string","lim","undefined","match","lastIndex","lastLength","output","flags","ignoreCase","multiline","unicode","sticky","lastLastIndex","separatorCopy","RegExp","source","index","O","splitter","rx","S","res","done","value","C","unicodeMatching","p","q","A","e","z","i","getMenuList","request","url","method","editSubmitApi","formData","data","JSON","stringify","headers","addSubmitApi","delSubmitApi","delData","permissionIds","params","getAppMenuList","editAppSubmitApi","qs","addAppSubmitApi","delAppSubmitApi","inserted","el","binding","roles","store","getters","butPermission","console","log","Array","Error","permissionRoles","hasPermission","some","role","includes","state","user","permissionFlag","newnode","document","createElement","style","cursor","display","pointerEvents","parentNode","insertBefore","removeChild","appendChild","install","Vue","directive","permission","window","use","render","_vm","_h","$createElement","_c","_self","staticClass","_t","on","$event","handleCreate","_v","_s","$t","directives","name","rawName","expression","attrs","children","hasChildren","handleCurrentChange","scopedSlots","_u","key","fn","scope","row","permissionType","_e","class","red","alwaysShow","_f","that","noCache","handleUpdate","handleDelete","textMap","dialogStatus","addDialog","staticStyle","ref","rules","form","model","callback","$$v","$set","_l","item","label","slot","createData","updateData","staticRenderFns","filters","showStatusFilter","status","cacheStatusFilter","createStatus","listLoading","permissionPidBox","alwaysShowBox","noCacheBox","permissionTypeBox","update","create","title","required","message","trigger","permissionName","buttonCode","component","icon","path","sort","titleCh","permissionId","permissionPid","currentRow","allData","created","getList","methods","isShow","$nextTick","$refs","validate","valid","type","duration","resetForm","$notify","then","catch","$confirm","confirmButtonText","cancelButtonText","val","handleShow","arr","parseInt","$","global","getBuiltIn","$stringify","charAt","charCodeAt","replace","numberToString","tester","low","hi","fix","offset","prev","next","FORCED","target","stat","forced","it","replacer","space","l","args"],"mappings":"gHACA,IAAIA,EAAQ,EAAQ,QAChBC,EAAO,EAAQ,QACfC,EAAc,EAAQ,QACtBC,EAAgC,EAAQ,QACxCC,EAAW,EAAQ,QACnBC,EAAW,EAAQ,QACnBC,EAAyB,EAAQ,QACjCC,EAAqB,EAAQ,QAC7BC,EAAqB,EAAQ,QAC7BC,EAAW,EAAQ,QACnBC,EAAW,EAAQ,QACnBC,EAAY,EAAQ,QACpBC,EAAa,EAAQ,QACrBC,EAAiB,EAAQ,QACzBC,EAAa,EAAQ,QACrBC,EAAgB,EAAQ,QACxBC,EAAQ,EAAQ,QAEhBC,EAAgBF,EAAcE,cAC9BC,EAAa,WACbC,EAAMC,KAAKD,IACXE,EAAQ,GAAGC,KACXC,EAAOrB,EAAY,IAAIqB,MACvBD,EAAOpB,EAAYmB,GACnBG,EAActB,EAAY,GAAGuB,OAI7BC,GAAqCV,GAAM,WAE7C,IAAIW,EAAK,OACLC,EAAeD,EAAGJ,KACtBI,EAAGJ,KAAO,WAAc,OAAOK,EAAa5B,MAAM6B,KAAMC,YACxD,IAAIC,EAAS,KAAKC,MAAML,GACxB,OAAyB,IAAlBI,EAAOE,QAA8B,MAAdF,EAAO,IAA4B,MAAdA,EAAO,MAI5D5B,EAA8B,SAAS,SAAU+B,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AAQG,GAAOpN","file":"js/chunk-79a19055.9bbb45d9.js","sourcesContent":["'use strict';\nvar apply = require('../internals/function-apply');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar isRegExp = require('../internals/is-regexp');\nvar anObject = require('../internals/an-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar speciesConstructor = require('../internals/species-constructor');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar arraySlice = require('../internals/array-slice-simple');\nvar callRegExpExec = require('../internals/regexp-exec-abstract');\nvar regexpExec = require('../internals/regexp-exec');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar fails = require('../internals/fails');\n\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;\nvar MAX_UINT32 = 0xFFFFFFFF;\nvar min = Math.min;\nvar $push = [].push;\nvar exec = uncurryThis(/./.exec);\nvar push = uncurryThis($push);\nvar stringSlice = uncurryThis(''.slice);\n\n// Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n// Weex JS has frozen built-in prototypes, so use try / catch wrapper\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {\n // eslint-disable-next-line regexp/no-empty-group -- required for testing\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';\n});\n\n// @@split logic\nfixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {\n var internalSplit;\n if (\n 'abbc'.split(/(b)*/)[1] == 'c' ||\n // eslint-disable-next-line regexp/no-empty-group -- required for testing\n 'test'.split(/(?:)/, -1).length != 4 ||\n 'ab'.split(/(?:ab)*/).length != 2 ||\n '.'.split(/(.?)(.?)/).length != 4 ||\n // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing\n '.'.split(/()()/).length > 1 ||\n ''.split(/.?/).length\n ) {\n // based on es5-shim implementation, need to rework it\n internalSplit = function (separator, limit) {\n var string = toString(requireObjectCoercible(this));\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (separator === undefined) return [string];\n // If `separator` is not a regex, use native split\n if (!isRegExp(separator)) {\n return call(nativeSplit, string, separator, lim);\n }\n var output = [];\n var flags = (separator.ignoreCase ? 'i' : '') +\n (separator.multiline ? 'm' : '') +\n (separator.unicode ? 'u' : '') +\n (separator.sticky ? 'y' : '');\n var lastLastIndex = 0;\n // Make `global` and avoid `lastIndex` issues by working with a copy\n var separatorCopy = new RegExp(separator.source, flags + 'g');\n var match, lastIndex, lastLength;\n while (match = call(regexpExec, separatorCopy, string)) {\n lastIndex = separatorCopy.lastIndex;\n if (lastIndex > lastLastIndex) {\n push(output, stringSlice(string, lastLastIndex, match.index));\n if (match.length > 1 && match.index < string.length) apply($push, output, arraySlice(match, 1));\n lastLength = match[0].length;\n lastLastIndex = lastIndex;\n if (output.length >= lim) break;\n }\n if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop\n }\n if (lastLastIndex === string.length) {\n if (lastLength || !exec(separatorCopy, '')) push(output, '');\n } else push(output, stringSlice(string, lastLastIndex));\n return output.length > lim ? arraySlice(output, 0, lim) : output;\n };\n // Chakra, V8\n } else if ('0'.split(undefined, 0).length) {\n internalSplit = function (separator, limit) {\n return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);\n };\n } else internalSplit = nativeSplit;\n\n return [\n // `String.prototype.split` method\n // https://tc39.es/ecma262/#sec-string.prototype.split\n function split(separator, limit) {\n var O = requireObjectCoercible(this);\n var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT);\n return splitter\n ? call(splitter, separator, O, limit)\n : call(internalSplit, toString(O), separator, limit);\n },\n // `RegExp.prototype[@@split]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@split\n //\n // NOTE: This cannot be properly polyfilled in engines that don't support\n // the 'y' flag.\n function (string, limit) {\n var rx = anObject(this);\n var S = toString(string);\n var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);\n\n if (res.done) return res.value;\n\n var C = speciesConstructor(rx, RegExp);\n\n var unicodeMatching = rx.unicode;\n var flags = (rx.ignoreCase ? 'i' : '') +\n (rx.multiline ? 'm' : '') +\n (rx.unicode ? 'u' : '') +\n (UNSUPPORTED_Y ? 'g' : 'y');\n\n // ^(? + rx + ) is needed, in combination with some S slicing, to\n // simulate the 'y' flag.\n var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];\n var p = 0;\n var q = 0;\n var A = [];\n while (q < S.length) {\n splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;\n var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);\n var e;\n if (\n z === null ||\n (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p\n ) {\n q = advanceStringIndex(S, q, unicodeMatching);\n } else {\n push(A, stringSlice(S, p, q));\n if (A.length === lim) return A;\n for (var i = 1; i <= z.length - 1; i++) {\n push(A, z[i]);\n if (A.length === lim) return A;\n }\n q = p = e;\n }\n }\n push(A, stringSlice(S, p));\n return A;\n }\n ];\n}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);\n","import request from '@/utils/request'\nimport qs from 'qs'\n/*\n 系统管理-菜单管理 权限操作api\n*/\n\n\n// 获得web当前机构的菜单树\nexport function getMenuList() {\n return request({\n url: 'user-service/permission/getDeptPermissionTree',\n method: 'get'\n })\n}\n\n// 修改web菜单\nexport function editSubmitApi(formData) {\n const data = JSON.stringify(formData)\n return request({\n headers: {\n 'Content-Type': 'application/json'\n },\n url: 'user-service/permission/updatePermission',\n method: 'post',\n data\n })\n}\n\n// 新增web菜单\nexport function addSubmitApi(formData) {\n const data = JSON.stringify(formData)\n return request({\n headers: {\n 'Content-Type': 'application/json'\n },\n url: 'user-service/permission/savePermission',\n method: 'post',\n data\n })\n}\n\n// 删除web菜单\nexport function delSubmitApi(delData) {\n const data = {\n permissionIds: delData\n }\n return request({\n url: 'user-service/permission/removePermission',\n method: 'get',\n params: data\n })\n}\n\n// 获得app当前机构的菜单树\nexport function getAppMenuList() {\n return request({\n url: 'user-service/appPermission/getAppDeptPermissionTree',\n method: 'get'\n })\n}\n\n// 修改app菜单\nexport function editAppSubmitApi(formData) {\n const data = qs.stringify(formData)\n return request({\n url: 'user-service/appPermission/updatePermission',\n method: 'post',\n data\n })\n}\n\n// 新增app菜单\nexport function addAppSubmitApi(formData) {\n const data = qs.stringify(formData)\n return request({\n url: 'user-service/appPermission/savePermission',\n method: 'post',\n data\n })\n}\n\n// 删除app菜单\nexport function delAppSubmitApi(delData) {\n const data = {\n permissionIds: delData\n }\n return request({\n headers: {\n 'Content-Type': 'application/json'\n },\n url: 'user-service/appPermission/removePermission',\n method: 'get',\n params: data\n })\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WebMenu.vue?vue&type=style&index=0&id=a961c1e0&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"","import store from \"@/store\";\r\n\r\nexport default {\r\n inserted(el, binding) {\r\n const { value } = binding;\r\n // const roles = store.getters && store.getters.roles\r\n const roles = store.getters && store.getters.butPermission;\r\n console.log(roles, 'roles');\r\n if (value && value instanceof Array && value.length > 0) {\r\n const permissionRoles = value;\r\n const hasPermission = roles.some(role => {\r\n return permissionRoles.includes(role);\r\n });\r\n console.log(hasPermission, 'hasPermission');\r\n if (!hasPermission) {\r\n // el.parentNode && el.parentNode.removeChild(el) \r\n\r\n store.state.user.permissionFlag[permissionRoles] = true;\r\n\r\n\r\n console.log(store.state.user.permissionFlag[permissionRoles], 'permissionRoles');\r\n const newnode = document.createElement(\"div\");\r\n newnode.style.cursor = 'not-allowed'\r\n newnode.style.display = 'inline-block'\r\n el.style.pointerEvents = \"none\"\r\n el.parentNode.insertBefore(newnode, el)\r\n el.parentNode && el.parentNode.removeChild(el)\r\n newnode.appendChild(el);\r\n console.log(el, 'permissionRoles');\r\n } else {\r\n store.state.user.permissionFlag[permissionRoles] = false;\r\n }\r\n } else {\r\n throw new Error(`need roles! Like v-permission=\"['admin','editor']\"`);\r\n }\r\n }\r\n};","import permission from \"./permission\";\n\nconst install = function(Vue) {\n Vue.directive(\"permission\", permission);\n};\n\nif (window.Vue) {\n window[\"permission\"] = permission;\n Vue.use(install); // eslint-disable-line\n}\n\npermission.install = install;\nexport default permission;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('div',{staticClass:\"decorate\"}),_c('div',{staticClass:\"filter-container\"},[_vm._t(\"default\"),_c('div',{staticClass:\"btn-box\"},[_c('span',{staticClass:\"btn-item long\",on:{\"click\":function($event){return _vm.handleCreate(0)}}},[_c('i',{staticClass:\"iconfont icon-a-\"}),_vm._v(_vm._s(_vm.$t(\"menu.addToplevel\")))]),_c('span',{staticClass:\"btn-item long\",on:{\"click\":function($event){return _vm.handleCreate(1)}}},[_c('i',{staticClass:\"iconfont icon-a-\"}),_vm._v(_vm._s(_vm.$t(\"menu.addChild\")))])])],2),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],attrs:{\"default-expand-all\":false,\"data\":_vm.data,\"row-key\":\"permissionId\",\"header-row-class-name\":\"table-header\",\"row-class-name\":\"table-row\",\"highlight-current-row\":\"\",\"max-height\":\"680\",\"tree-props\":{ children: 'children', hasChildren: 'hasChildren' }},on:{\"current-change\":_vm.handleCurrentChange}},[_c('el-table-column',{attrs:{\"prop\":\"permissionName\",\"align\":\"left\",\"label\":_vm.$t('menu.permissionName')}}),_c('el-table-column',{attrs:{\"label\":_vm.$t('menu.permissionType'),\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.permissionType === 0)?_c('span',[_vm._v(_vm._s(_vm.$t(\"permissionType.list\")))]):_vm._e(),(scope.row.permissionType === 1)?_c('span',[_vm._v(_vm._s(_vm.$t(\"permissionType.menu\")))]):_vm._e(),(scope.row.permissionType === 2)?_c('span',[_vm._v(_vm._s(_vm.$t(\"permissionType.button\")))]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"title\",\"align\":\"left\",\"label\":_vm.$t('menu.permissionNameEn')}}),_c('el-table-column',{attrs:{\"prop\":\"path\",\"align\":\"left\",\"label\":_vm.$t('menu.path'),\"show-overflow-tooltip\":\"\"}}),_c('el-table-column',{attrs:{\"prop\":\"component\",\"align\":\"left\",\"label\":_vm.$t('menu.component')}}),_c('el-table-column',{attrs:{\"prop\":\"icon\",\"align\":\"left\",\"label\":_vm.$t('menu.icon'),\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"buttonCode\",\"align\":\"left\",\"label\":_vm.$t('menu.buttonCode')}}),_c('el-table-column',{attrs:{\"prop\":\"\",\"label\":_vm.$t('menu.alwaysShow'),\"align\":\"center\",\"width\":\"100\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{staticClass:\"btn\",class:{ red: scope.row.alwaysShow !== 1 }},[_vm._v(\" \"+_vm._s(_vm._f(\"showStatusFilter\")(scope.row.alwaysShow,_vm.that)))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"\",\"label\":_vm.$t('menu.noCache'),\"align\":\"center\",\"width\":\"100\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{staticClass:\"btn\",class:{ red: scope.row.noCache !== 1 }},[_vm._v(_vm._s(_vm._f(\"cacheStatusFilter\")(scope.row.noCache,_vm.that)))])]}}])}),_c('el-table-column',{attrs:{\"align\":\"left\",\"width\":\"230\",\"label\":_vm.$t('table.operate')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{staticClass:\"btnCancel\",attrs:{\"title\":_vm.$t('table.update')},on:{\"click\":function($event){return _vm.handleUpdate(scope)}}},[_c('i',{staticClass:\"iconfont icon-bianji\"}),_vm._v(_vm._s(_vm.$t(\"table.update\")))]),_c('span',{staticClass:\"btnCancel delete\",attrs:{\"title\":_vm.$t('table.delete')},on:{\"click\":function($event){return _vm.handleDelete(scope)}}},[_c('i',{staticClass:\"iconfont icon-a--\"}),_vm._v(_vm._s(_vm.$t(\"table.delete\")))])]}}])})],1),_c('el-dialog',{attrs:{\"close-on-click-modal\":false,\"title\":_vm.textMap[_vm.dialogStatus],\"top\":\"10vh\",\"visible\":_vm.addDialog},on:{\"update:visible\":function($event){_vm.addDialog=$event}}},[_c('el-scrollbar',{staticStyle:{\"height\":\"100%\"},attrs:{\"vertical\":true}},[_c('el-form',{ref:\"form\",staticStyle:{\"margin-left\":\"30px\"},attrs:{\"rules\":_vm.rules,\"model\":_vm.form,\"inline\":\"\",\"label-width\":\"140px\"}},[(_vm.dialogStatus === 'create')?_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.route')}},[_c('el-select',{attrs:{\"disabled\":\"\",\"placeholder\":_vm.$t('pSelect')},model:{value:(_vm.form.permissionPid),callback:function ($$v) {_vm.$set(_vm.form, \"permissionPid\", $$v)},expression:\"form.permissionPid\"}},_vm._l((_vm.permissionPidBox),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1):_vm._e(),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.alwaysShow')}},[_c('el-select',{attrs:{\"placeholder\":_vm.$t('pSelect')},model:{value:(_vm.form.alwaysShow),callback:function ($$v) {_vm.$set(_vm.form, \"alwaysShow\", $$v)},expression:\"form.alwaysShow\"}},_vm._l((_vm.alwaysShowBox),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),(_vm.form.permissionType == 2)?_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.code')}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('menu.code')},model:{value:(_vm.form.buttonCode),callback:function ($$v) {_vm.$set(_vm.form, \"buttonCode\", $$v)},expression:\"form.buttonCode\"}})],1):_vm._e(),(_vm.form.permissionType !== 2)?_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.component')}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('menu.component')},model:{value:(_vm.form.component),callback:function ($$v) {_vm.$set(_vm.form, \"component\", $$v)},expression:\"form.component\"}})],1):_vm._e(),(_vm.form.permissionType !== 2)?_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.icon')}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('menu.icon')},model:{value:(_vm.form.icon),callback:function ($$v) {_vm.$set(_vm.form, \"icon\", $$v)},expression:\"form.icon\"}})],1):_vm._e(),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.noCache')}},[_c('el-select',{attrs:{\"placeholder\":_vm.$t('pSelect')},model:{value:(_vm.form.noCache),callback:function ($$v) {_vm.$set(_vm.form, \"noCache\", $$v)},expression:\"form.noCache\"}},_vm._l((_vm.noCacheBox),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.path')}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('menu.path')},model:{value:(_vm.form.path),callback:function ($$v) {_vm.$set(_vm.form, \"path\", $$v)},expression:\"form.path\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.permissionType')}},[_c('el-select',{attrs:{\"placeholder\":_vm.$t('pSelect')},model:{value:(_vm.form.permissionType),callback:function ($$v) {_vm.$set(_vm.form, \"permissionType\", $$v)},expression:\"form.permissionType\"}},_vm._l((_vm.permissionTypeBox),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.permissionNameEn'),\"prop\":\"title\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('menu.permissionNameEn')},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.permissionName'),\"prop\":\"permissionName\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('menu.permissionName')},model:{value:(_vm.form.permissionName),callback:function ($$v) {_vm.$set(_vm.form, \"permissionName\", $$v)},expression:\"form.permissionName\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.sort'),\"prop\":\"sort\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('menu.sort')},model:{value:(_vm.form.sort),callback:function ($$v) {_vm.$set(_vm.form, \"sort\", $$v)},expression:\"form.sort\"}})],1)],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('span',{staticClass:\"btn-item long\",on:{\"click\":function($event){_vm.addDialog = false}}},[_vm._v(_vm._s(_vm.$t(\"btn.cancel\")))]),_c('span',{staticClass:\"btn-item long\",on:{\"click\":function($event){_vm.dialogStatus === 'create' ? _vm.createData() : _vm.updateData()}}},[_vm._v(_vm._s(_vm.$t(\"btn.save\")))])])],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"app-container\">\r\n <div class=\"decorate\"></div>\r\n <div class=\"filter-container\">\r\n <slot></slot>\r\n <div class=\"btn-box\">\r\n <!-- v-permission=\"['menu_addTop']\" -->\r\n <span class=\"btn-item long\" @click=\"handleCreate(0)\"\r\n ><i class=\"iconfont icon-a-\"></i>{{ $t(\"menu.addToplevel\") }}</span\r\n >\r\n <!-- v-permission=\"['menu_addSub']\" -->\r\n <span class=\"btn-item long\" @click=\"handleCreate(1)\"\r\n ><i class=\"iconfont icon-a-\"></i>{{ $t(\"menu.addChild\") }}</span\r\n >\r\n </div>\r\n </div>\r\n <div class=\"table-container\">\r\n <el-table\r\n v-loading=\"listLoading\"\r\n :default-expand-all=\"false\"\r\n :data=\"data\"\r\n row-key=\"permissionId\"\r\n header-row-class-name=\"table-header\"\r\n row-class-name=\"table-row\"\r\n highlight-current-row\r\n max-height=\"680\"\r\n @current-change=\"handleCurrentChange\"\r\n :tree-props=\"{ children: 'children', hasChildren: 'hasChildren' }\"\r\n >\r\n <el-table-column\r\n prop=\"permissionName\"\r\n align=\"left\"\r\n :label=\"$t('menu.permissionName')\"\r\n />\r\n <el-table-column :label=\"$t('menu.permissionType')\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <span v-if=\"scope.row.permissionType === 0\">{{\r\n $t(\"permissionType.list\")\r\n }}</span>\r\n <span v-if=\"scope.row.permissionType === 1\">{{\r\n $t(\"permissionType.menu\")\r\n }}</span>\r\n <span v-if=\"scope.row.permissionType === 2\">{{\r\n $t(\"permissionType.button\")\r\n }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n prop=\"title\"\r\n align=\"left\"\r\n :label=\"$t('menu.permissionNameEn')\"\r\n />\r\n <el-table-column\r\n prop=\"path\"\r\n align=\"left\"\r\n :label=\"$t('menu.path')\"\r\n show-overflow-tooltip\r\n />\r\n <el-table-column\r\n prop=\"component\"\r\n align=\"left\"\r\n :label=\"$t('menu.component')\"\r\n />\r\n <el-table-column\r\n prop=\"icon\"\r\n align=\"left\"\r\n :label=\"$t('menu.icon')\"\r\n width=\"120\"\r\n />\r\n <el-table-column\r\n prop=\"buttonCode\"\r\n align=\"left\"\r\n :label=\"$t('menu.buttonCode')\"\r\n />\r\n <el-table-column\r\n prop\r\n :label=\"$t('menu.alwaysShow')\"\r\n align=\"center\"\r\n width=\"100\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span class=\"btn\" :class=\"{ red: scope.row.alwaysShow !== 1 }\">\r\n {{ scope.row.alwaysShow | showStatusFilter(that) }}</span\r\n >\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n prop\r\n :label=\"$t('menu.noCache')\"\r\n align=\"center\"\r\n width=\"100\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span class=\"btn\" :class=\"{ red: scope.row.noCache !== 1 }\">{{\r\n scope.row.noCache | cacheStatusFilter(that)\r\n }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column align=\"left\" width=\"230\" :label=\"$t('table.operate')\">\r\n <template slot-scope=\"scope\">\r\n <!-- <span class=\"btnCancel\" :title=\"$t('table.moreOperate')\">\r\n <i class=\"iconfont icon-gengduo\" />{{\r\n $t('table.moreOperate')\r\n }}</span\r\n > -->\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"handleUpdate(scope)\"\r\n :title=\"$t('table.update')\"\r\n >\r\n <i class=\"iconfont icon-bianji\" />{{ $t(\"table.update\") }}</span\r\n >\r\n <span\r\n class=\"btnCancel delete\"\r\n @click=\"handleDelete(scope)\"\r\n :title=\"$t('table.delete')\"\r\n >\r\n <i class=\"iconfont icon-a--\" />{{ $t(\"table.delete\") }}</span\r\n >\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <el-dialog\r\n :close-on-click-modal=\"false\"\r\n :title=\"textMap[dialogStatus]\"\r\n top=\"10vh\"\r\n :visible.sync=\"addDialog\"\r\n >\r\n <el-scrollbar style=\"height: 100%\" :vertical=\"true\">\r\n <el-form\r\n ref=\"form\"\r\n :rules=\"rules\"\r\n :model=\"form\"\r\n inline\r\n label-width=\"140px\"\r\n style=\"margin-left: 30px\"\r\n >\r\n <el-form-item\r\n v-if=\"dialogStatus === 'create'\"\r\n :label=\"$t('menu.route')\"\r\n >\r\n <el-select\r\n v-model=\"form.permissionPid\"\r\n disabled\r\n :placeholder=\"$t('pSelect')\"\r\n >\r\n <el-option\r\n v-for=\"item in permissionPidBox\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item :label=\"$t('menu.alwaysShow')\">\r\n <el-select v-model=\"form.alwaysShow\" :placeholder=\"$t('pSelect')\">\r\n <el-option\r\n v-for=\"item in alwaysShowBox\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item\r\n :label=\"$t('menu.code')\"\r\n v-if=\"form.permissionType == 2\"\r\n >\r\n <el-input\r\n v-model=\"form.buttonCode\"\r\n :placeholder=\"$t('pEnter') + $t('menu.code')\"\r\n />\r\n </el-form-item>\r\n <el-form-item\r\n :label=\"$t('menu.component')\"\r\n v-if=\"form.permissionType !== 2\"\r\n >\r\n <el-input\r\n v-model=\"form.component\"\r\n :placeholder=\"$t('pEnter') + $t('menu.component')\"\r\n />\r\n </el-form-item>\r\n <el-form-item\r\n :label=\"$t('menu.icon')\"\r\n v-if=\"form.permissionType !== 2\"\r\n >\r\n <el-input\r\n v-model=\"form.icon\"\r\n :placeholder=\"$t('pEnter') + $t('menu.icon')\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('menu.noCache')\">\r\n <el-select v-model=\"form.noCache\" :placeholder=\"$t('pSelect')\">\r\n <el-option\r\n v-for=\"item in noCacheBox\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item :label=\"$t('menu.path')\">\r\n <el-input\r\n v-model=\"form.path\"\r\n :placeholder=\"$t('pEnter') + $t('menu.path')\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('menu.permissionType')\">\r\n <el-select\r\n v-model=\"form.permissionType\"\r\n :placeholder=\"$t('pSelect')\"\r\n >\r\n <el-option\r\n v-for=\"item in permissionTypeBox\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item :label=\"$t('menu.permissionNameEn')\" prop=\"title\">\r\n <el-input\r\n v-model=\"form.title\"\r\n :placeholder=\"$t('pEnter') + $t('menu.permissionNameEn')\"\r\n />\r\n </el-form-item>\r\n <el-form-item\r\n :label=\"$t('menu.permissionName')\"\r\n prop=\"permissionName\"\r\n >\r\n <el-input\r\n v-model=\"form.permissionName\"\r\n :placeholder=\"$t('pEnter') + $t('menu.permissionName')\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('menu.sort')\" prop=\"sort\">\r\n <el-input\r\n v-model=\"form.sort\"\r\n :placeholder=\"$t('pEnter') + $t('menu.sort')\"\r\n />\r\n </el-form-item>\r\n </el-form>\r\n </el-scrollbar>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <span class=\"btn-item long\" @click=\"addDialog = false\">{{\r\n $t(\"btn.cancel\")\r\n }}</span>\r\n <span\r\n class=\"btn-item long\"\r\n @click=\"dialogStatus === 'create' ? createData() : updateData()\"\r\n >{{ $t(\"btn.save\") }}</span\r\n >\r\n </span>\r\n </el-dialog>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport {\r\n getMenuList,\r\n editSubmitApi,\r\n addSubmitApi,\r\n delSubmitApi\r\n} from \"@/api/menu\"\r\nimport permission from \"@/directive/permission/index.js\" // 权限判断指令\r\nexport default {\r\n // name: 'ComplexTable',\r\n directives: { permission },\r\n filters: {\r\n showStatusFilter(status, that) {\r\n if (status === 0) {\r\n return that.$t(\"type.no\")\r\n } else {\r\n return that.$t(\"type.yes\")\r\n }\r\n },\r\n cacheStatusFilter(status, that) {\r\n if (status === 0) {\r\n return that.$t(\"type.noCache\")\r\n } else {\r\n return that.$t(\"type.cache\")\r\n }\r\n }\r\n },\r\n data() {\r\n return {\r\n that: this,\r\n createStatus: false,\r\n listLoading: false,\r\n permissionPidBox: [\r\n { value: 1, label: this.$t(\"type.fu\") },\r\n { value: 0, label: this.$t(\"type.zi\") }\r\n ],\r\n alwaysShowBox: [\r\n { value: 1, label: this.$t(\"type.yes\") },\r\n { value: 0, label: this.$t(\"type.no\") }\r\n ],\r\n noCacheBox: [\r\n { value: 1, label: this.$t(\"type.cache\") },\r\n { value: 0, label: this.$t(\"type.noCache\") }\r\n ],\r\n permissionTypeBox: [\r\n { value: 0, label: this.$t(\"permissionType.list\") },\r\n { value: 1, label: this.$t(\"permissionType.menu\") },\r\n { value: 2, label: this.$t(\"permissionType.button\") }\r\n ],\r\n textMap: {\r\n update: this.$t(\"table.update\"),\r\n create: this.$t(\"table.create\")\r\n },\r\n dialogStatus: \"\",\r\n rules: {\r\n title: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"menu.nameKey\"),\r\n trigger: \"blur\"\r\n }\r\n ],\r\n permissionName: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"menu.permissionName\"),\r\n trigger: \"blur\"\r\n }\r\n ]\r\n },\r\n form: {\r\n alwaysShow: \"\",\r\n buttonCode: \"\",\r\n component: \"\",\r\n icon: \"\",\r\n noCache: \"\",\r\n path: \"\",\r\n sort: \"\",\r\n permissionType: \"\",\r\n title: \"\",\r\n titleCh: \"\",\r\n permissionId: \"\",\r\n permissionName: \"\",\r\n permissionPid: \"\"\r\n },\r\n addDialog: false,\r\n currentRow: null,\r\n data: [],\r\n allData: []\r\n }\r\n },\r\n created() {\r\n this.getList()\r\n },\r\n methods: {\r\n isShow(data) {\r\n if (data.children.length > 0) {\r\n data.isShow = true\r\n data.children && data.children.map(this.isShow)\r\n }\r\n return data\r\n },\r\n getList() {\r\n this.listLoading = true\r\n getMenuList().then((response) => {\r\n this.listLoading = false\r\n console.log(response)\r\n this.total = response.data.totalRow || 1\r\n this.data = response.data.map(this.isShow)\r\n this.allData = JSON.stringify(this.data)\r\n })\r\n },\r\n handleUpdate(scope) {\r\n // this.form = Object.assign({}, scope.row) // 复制对象\r\n this.form = {\r\n alwaysShow: scope.row.alwaysShow,\r\n buttonCode: scope.row.buttonCode,\r\n component: scope.row.component,\r\n icon: scope.row.icon,\r\n noCache: scope.row.noCache,\r\n path: scope.row.path,\r\n sort: scope.row.sort,\r\n permissionType: scope.row.permissionType,\r\n title: scope.row.title,\r\n titleCh: scope.row.titleCh,\r\n permissionId: scope.row.permissionId,\r\n permissionName: scope.row.permissionName,\r\n permissionPid: scope.row.permissionPid\r\n }\r\n this.dialogStatus = \"update\"\r\n this.addDialog = true\r\n this.$nextTick(() => {\r\n this.$refs[\"form\"].clearValidate()\r\n })\r\n },\r\n updateData() {\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n console.log(111, this.form)\r\n editSubmitApi(this.form).then((res) => {\r\n if (res.status == 200) {\r\n this.$notify({\r\n title: this.$t(\"title.success\"),\r\n message: this.$t(\"title.updateSuccess\"),\r\n type: \"success\",\r\n duration: 3000\r\n })\r\n this.getList()\r\n this.addDialog = false\r\n }\r\n })\r\n }\r\n })\r\n },\r\n resetForm() {\r\n // 重置表单\r\n for (var key in this.form) {\r\n this.form[key] = null\r\n }\r\n this.form.alwaysShow = 0\r\n this.form.noCache = 1\r\n this.form.permissionType = 0\r\n this.form.permissionPid = 0\r\n },\r\n handleCreate(type) {\r\n if (type === 0) {\r\n // 新增顶级\r\n this.resetForm()\r\n this.addDialog = true\r\n this.dialogStatus = \"create\"\r\n this.form.permissionPid = 1\r\n this.$nextTick(() => {\r\n this.$refs[\"form\"].clearValidate()\r\n })\r\n } else {\r\n // 新增子级\r\n if (this.currentRow) {\r\n this.resetForm()\r\n this.addDialog = true\r\n this.dialogStatus = \"create\"\r\n this.form.permissionPid = 0\r\n this.$nextTick(() => {\r\n this.$refs[\"form\"].clearValidate()\r\n })\r\n } else {\r\n this.$notify({\r\n title: this.$t(\"title.pointOut\"),\r\n message: this.$t(\"pSelect\") + this.$t(\"menu.oneData\"),\r\n type: \"warning\",\r\n duration: 3000\r\n })\r\n }\r\n }\r\n },\r\n createData() {\r\n if (this.createStatus) {\r\n return\r\n }\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n this.createStatus = true\r\n if (this.form.permissionPid === 1) {\r\n this.form.permissionPid = 0\r\n } else {\r\n this.form.permissionPid = this.currentRow.permissionId\r\n }\r\n addSubmitApi(this.form)\r\n .then((res) => {\r\n if (res.status == 200) {\r\n this.createStatus = false\r\n this.$notify({\r\n title: this.$t(\"title.success\"),\r\n message: this.$t(\"table.create\") + this.$t(\"title.success\"),\r\n type: \"success\",\r\n duration: 3000\r\n })\r\n this.currentRow = null\r\n this.getList()\r\n this.addDialog = false\r\n }\r\n })\r\n .catch(() => {\r\n this.createStatus = false\r\n })\r\n }\r\n })\r\n },\r\n handleDelete(scope) {\r\n this.$confirm(this.$t(\"title.delPointOut\"), this.$t(\"title.pointOut\"), {\r\n confirmButtonText: this.$t(\"title.delete\"),\r\n cancelButtonText: this.$t(\"title.cancel\"),\r\n type: \"warning\"\r\n }).then(() => {\r\n console.log(111, scope.row.permissionId)\r\n delSubmitApi(scope.row.permissionId).then((res) => {\r\n if (res.status == 200) {\r\n this.$notify({\r\n title: this.$t(\"title.success\"),\r\n message: this.$t(\"title.deleteSuccess\"),\r\n type: \"success\",\r\n duration: 3000\r\n })\r\n this.currentRow = null\r\n this.getList()\r\n this.addDialog = false\r\n }\r\n })\r\n })\r\n },\r\n handleCurrentChange(val) {\r\n if (val) {\r\n this.currentRow = val\r\n } else {\r\n this.currentRow = null\r\n }\r\n },\r\n /**\r\n * 树形菜单复选框父子节点不关联实现父子节点联动回显\r\n *\r\n * @see selectedParent - 处理父节点为选中\r\n * @see uniteChildSame - 处理子节点为相同的勾选状态\r\n * @see removeParent - 子节点全没选中取消父级的选中状态\r\n *\r\n * @param {Object} currentObj - 当前勾选节点的对象\r\n * @param {Object} treeStatus - 树目前的选中状态对象\r\n * @param {Object} ref - this.$refs.xxx\r\n **/\r\n handleShow(scope) {\r\n const val = scope.row\r\n const arr = val._id.split(\"-\")\r\n const allData = JSON.parse(this.allData)\r\n console.log(scope, arr)\r\n if (arr.length <= 1) {\r\n const data = allData[parseInt(val._id)].children\r\n if (val.isShow) {\r\n scope.row.children = []\r\n scope.row.isShow = false\r\n } else {\r\n scope.row.children = data\r\n scope.row.isShow = true\r\n }\r\n } else if (arr.length <= 2) {\r\n const data =\r\n allData[parseInt(arr[0])].children[parseInt(arr[1])].children\r\n if (val.isShow) {\r\n scope.row.children = []\r\n scope.row.isShow = false\r\n } else {\r\n scope.row.children = data\r\n scope.row.isShow = true\r\n }\r\n } else if (arr.length <= 3) {\r\n const data =\r\n allData[parseInt(arr[0])].children[parseInt(arr[1])].children[\r\n parseInt(arr[2])\r\n ].children\r\n if (val.isShow) {\r\n scope.row.children = []\r\n scope.row.isShow = false\r\n } else {\r\n scope.row.children = data\r\n scope.row.isShow = true\r\n }\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\r\n.icon-index {\r\n font-family: element-icons;\r\n font-style: normal;\r\n font-weight: 400;\r\n font-variant: normal;\r\n text-transform: none;\r\n line-height: 1;\r\n vertical-align: baseline;\r\n display: inline-block;\r\n -webkit-font-smoothing: antialiased;\r\n cursor: pointer;\r\n color: #2196f3;\r\n font-size: 20px;\r\n}\r\n.selectSvg {\r\n margin-right: 6px;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WebMenu.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WebMenu.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./WebMenu.vue?vue&type=template&id=a961c1e0&scoped=true&\"\nimport script from \"./WebMenu.vue?vue&type=script&lang=js&\"\nexport * from \"./WebMenu.vue?vue&type=script&lang=js&\"\nimport style0 from \"./WebMenu.vue?vue&type=style&index=0&id=a961c1e0&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a961c1e0\",\n null\n \n)\n\nexport default component.exports","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar apply = require('../internals/function-apply');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\n\nvar Array = global.Array;\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar exec = uncurryThis(/./.exec);\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar replace = uncurryThis(''.replace);\nvar numberToString = uncurryThis(1.0.toString);\n\nvar tester = /[\\uD800-\\uDFFF]/g;\nvar low = /^[\\uD800-\\uDBFF]$/;\nvar hi = /^[\\uDC00-\\uDFFF]$/;\n\nvar fix = function (match, offset, string) {\n var prev = charAt(string, offset - 1);\n var next = charAt(string, offset + 1);\n if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {\n return '\\\\u' + numberToString(charCodeAt(match, 0), 16);\n } return match;\n};\n\nvar FORCED = fails(function () {\n return $stringify('\\uDF06\\uD834') !== '\"\\\\udf06\\\\ud834\"'\n || $stringify('\\uDEAD') !== '\"\\\\udead\"';\n});\n\nif ($stringify) {\n // `JSON.stringify` method\n // https://tc39.es/ecma262/#sec-json.stringify\n // https://github.com/tc39/proposal-well-formed-stringify\n $({ target: 'JSON', stat: true, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n stringify: function stringify(it, replacer, space) {\n for (var i = 0, l = arguments.length, args = Array(l); i < l; i++) args[i] = arguments[i];\n var result = apply($stringify, null, args);\n return typeof result == 'string' ? replace(result, tester, fix) : result;\n }\n });\n}\n"],"sourceRoot":""}