diff --git a/nezha-fronted/package-lock.json b/nezha-fronted/package-lock.json index 95ba1431d..ce063c629 100644 --- a/nezha-fronted/package-lock.json +++ b/nezha-fronted/package-lock.json @@ -1401,7 +1401,7 @@ }, "@mapbox/geojson-rewind": { "version": "0.5.2", - "resolved": "https://registry.npmjs.org/@mapbox/geojson-rewind/-/geojson-rewind-0.5.2.tgz", + "resolved": "https://registry.npmmirror.com/@mapbox/geojson-rewind/-/geojson-rewind-0.5.2.tgz", "integrity": "sha512-tJaT+RbYGJYStt7wI3cq4Nl4SXxG8W7JDG5DMJu97V25RnbNg3QtQtf+KD+VLjNpWKYsRvXDNmNrBgEETr1ifA==", "requires": { "get-stream": "^6.0.1", @@ -1410,44 +1410,44 @@ "dependencies": { "get-stream": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "resolved": "https://registry.npmmirror.com/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==" }, "minimist": { "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "resolved": "https://registry.npmmirror.com/minimist/-/minimist-1.2.6.tgz", "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" } } }, "@mapbox/jsonlint-lines-primitives": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.2.tgz", + "resolved": "https://registry.npmmirror.com/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.2.tgz", "integrity": "sha512-rY0o9A5ECsTQRVhv7tL/OyDpGAoUB4tTvLiW1DSzQGq4bvTPhNw1VpSNjDJc5GFZ2XuyOtSWSVN05qOtcD71qQ==" }, "@mapbox/mapbox-gl-supported": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@mapbox/mapbox-gl-supported/-/mapbox-gl-supported-2.0.1.tgz", + "resolved": "https://registry.npmmirror.com/@mapbox/mapbox-gl-supported/-/mapbox-gl-supported-2.0.1.tgz", "integrity": "sha512-HP6XvfNIzfoMVfyGjBckjiAOQK9WfX0ywdLubuPMPv+Vqf5fj0uCbgBQYpiqcWZT6cbyyRnTSXDheT1ugvF6UQ==" }, "@mapbox/point-geometry": { "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@mapbox/point-geometry/-/point-geometry-0.1.0.tgz", + "resolved": "https://registry.npmmirror.com/@mapbox/point-geometry/-/point-geometry-0.1.0.tgz", "integrity": "sha512-6j56HdLTwWGO0fJPlrZtdU/B13q8Uwmo18Ck2GnGgN9PCFyKTZ3UbXeEdRFh18i9XQ92eH2VdtpJHpBD3aripQ==" }, "@mapbox/tiny-sdf": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@mapbox/tiny-sdf/-/tiny-sdf-2.0.5.tgz", + "resolved": "https://registry.npmmirror.com/@mapbox/tiny-sdf/-/tiny-sdf-2.0.5.tgz", "integrity": "sha512-OhXt2lS//WpLdkqrzo/KwB7SRD8AiNTFFzuo9n14IBupzIMa67yGItcK7I2W9D8Ghpa4T04Sw9FWsKCJG50Bxw==" }, "@mapbox/unitbezier": { "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@mapbox/unitbezier/-/unitbezier-0.0.1.tgz", + "resolved": "https://registry.npmmirror.com/@mapbox/unitbezier/-/unitbezier-0.0.1.tgz", "integrity": "sha512-nMkuDXFv60aBr9soUG5q+GvZYL+2KZHVvsqFCzqnkGEf46U2fvmytHaEVc1/YZbiLn8X+eR3QzX1+dwDO1lxlw==" }, "@mapbox/vector-tile": { "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@mapbox/vector-tile/-/vector-tile-1.3.1.tgz", + "resolved": "https://registry.npmmirror.com/@mapbox/vector-tile/-/vector-tile-1.3.1.tgz", "integrity": "sha512-MCEddb8u44/xfQ3oD+Srl/tNcQoqTw3goGk2oLsrFxOTc3dUp+kAnby3PvAeeBYSMSjSPD1nd1AJA6W49WnoUw==", "requires": { "@mapbox/point-geometry": "~0.1.0" @@ -1455,7 +1455,7 @@ }, "@mapbox/whoots-js": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@mapbox/whoots-js/-/whoots-js-3.1.0.tgz", + "resolved": "https://registry.npmmirror.com/@mapbox/whoots-js/-/whoots-js-3.1.0.tgz", "integrity": "sha512-Es6WcD0nO5l+2BOQS4uLfNPYQaNDfbot3X1XUoloz+x0mPDS3eeORZJl06HXjwBG1fOGwCRnzK88LMdxKRrd6Q==" }, "@riophae/vue-treeselect": { @@ -1573,7 +1573,7 @@ }, "@types/geojson": { "version": "7946.0.10", - "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.10.tgz", + "resolved": "https://registry.npmmirror.com/@types/geojson/-/geojson-7946.0.10.tgz", "integrity": "sha512-Nmh0K3iWQJzniTuPRcJn5hxXkfB1T1pgB89SBig5PlJQU5yocazeu4jATJlaA0GYFKWMqDdvYemoSnF2pXgLVA==" }, "@types/istanbul-lib-coverage": { @@ -1609,12 +1609,12 @@ }, "@types/mapbox__point-geometry": { "version": "0.1.2", - "resolved": "https://registry.npmjs.org/@types/mapbox__point-geometry/-/mapbox__point-geometry-0.1.2.tgz", + "resolved": "https://registry.npmmirror.com/@types/mapbox__point-geometry/-/mapbox__point-geometry-0.1.2.tgz", "integrity": "sha512-D0lgCq+3VWV85ey1MZVkE8ZveyuvW5VAfuahVTQRpXFQTxw03SuIf1/K4UQ87MMIXVKzpFjXFiFMZzLj2kU+iA==" }, "@types/mapbox__vector-tile": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@types/mapbox__vector-tile/-/mapbox__vector-tile-1.3.0.tgz", + "resolved": "https://registry.npmmirror.com/@types/mapbox__vector-tile/-/mapbox__vector-tile-1.3.0.tgz", "integrity": "sha512-kDwVreQO5V4c8yAxzZVQLE5tyWF+IPToAanloQaSnwfXmIcJ7cyOrv8z4Ft4y7PsLYmhWXmON8MBV8RX0Rgr8g==", "requires": { "@types/geojson": "*", @@ -1624,7 +1624,7 @@ }, "@types/pbf": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/pbf/-/pbf-3.0.2.tgz", + "resolved": "https://registry.npmmirror.com/@types/pbf/-/pbf-3.0.2.tgz", "integrity": "sha512-EDrLIPaPXOZqDjrkzxxbX7UlJSeQVgah3i0aA4pOSzmK9zq3BIh7/MZIQxED7slJByvKM4Gc6Hypyu2lJzh3SQ==" }, "@types/q": { @@ -5014,7 +5014,7 @@ }, "csscolorparser": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/csscolorparser/-/csscolorparser-1.0.3.tgz", + "resolved": "https://registry.npmmirror.com/csscolorparser/-/csscolorparser-1.0.3.tgz", "integrity": "sha512-umPSgYwZkdFoUrH5hIq5kf0wPSXiro51nPw0j2K/c83KflkPSTBGMz6NJvMB+07VlL0y7VPo6QJcDjcgKTTm3w==" }, "cssesc": { @@ -6457,7 +6457,7 @@ }, "earcut": { "version": "2.2.4", - "resolved": "https://registry.npmjs.org/earcut/-/earcut-2.2.4.tgz", + "resolved": "https://registry.npmmirror.com/earcut/-/earcut-2.2.4.tgz", "integrity": "sha512-/pjZsA1b4RPHbeWZQn66SWS8nZZWLQQ23oE3Eam7aroEFGEvwKAsJfZ9ytiEMycfzXWpca4FA9QIOehf7PocBQ==" }, "easings-css": { @@ -8351,7 +8351,7 @@ }, "geojson-vt": { "version": "3.2.1", - "resolved": "https://registry.npmjs.org/geojson-vt/-/geojson-vt-3.2.1.tgz", + "resolved": "https://registry.npmmirror.com/geojson-vt/-/geojson-vt-3.2.1.tgz", "integrity": "sha512-EvGQQi/zPrDA6zr6BnJD/YhwAkBP8nnJ9emh3EnHQKVMfg/MRVtPbMYdgVy/IaEmn4UfagD2a6fafPDL5hbtwg==" }, "get-caller-file": { @@ -8403,7 +8403,7 @@ }, "gl-matrix": { "version": "3.4.3", - "resolved": "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.4.3.tgz", + "resolved": "https://registry.npmmirror.com/gl-matrix/-/gl-matrix-3.4.3.tgz", "integrity": "sha512-wcCp8vu8FT22BnvKVPjXa/ICBWRq/zjFfdofZy1WSpQZpphblv12/bOQLBC1rMM7SGOFS9ltVmKOHil5+Ml7gA==" }, "glob": { @@ -11033,7 +11033,7 @@ }, "kdbush": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/kdbush/-/kdbush-3.0.0.tgz", + "resolved": "https://registry.npmmirror.com/kdbush/-/kdbush-3.0.0.tgz", "integrity": "sha512-hRkd6/XW4HTsA9vjVpY9tuXJYLSlelnkTmVFu4M9/7MIYQtFcHpbugAU7UbOfjOiVSVYl2fqgBuJ32JUmRo5Ew==" }, "keyv": { @@ -11391,7 +11391,7 @@ }, "maplibre-gl": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-2.2.0.tgz", + "resolved": "https://registry.npmmirror.com/maplibre-gl/-/maplibre-gl-2.2.0.tgz", "integrity": "sha512-5LB7ROIxvBADPa4PmU2j+mp0jG5IIbEidCOyZEXVbEriluMJn0hz28vszVb4Cr2IA4YQ9cnERqjHaf33MHIRBQ==", "requires": { "@mapbox/geojson-rewind": "^0.5.2", @@ -11911,7 +11911,7 @@ }, "murmurhash-js": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/murmurhash-js/-/murmurhash-js-1.0.0.tgz", + "resolved": "https://registry.npmmirror.com/murmurhash-js/-/murmurhash-js-1.0.0.tgz", "integrity": "sha512-TvmkNhkv8yct0SVBSy+o8wYzXjE4Zz3PCesbfs8HiCXXdcTuocApFv11UWlNFWKYsP2okqrhb7JNlSm9InBhIw==" }, "mv": { @@ -12838,7 +12838,7 @@ }, "pbf": { "version": "3.2.1", - "resolved": "https://registry.npmjs.org/pbf/-/pbf-3.2.1.tgz", + "resolved": "https://registry.npmmirror.com/pbf/-/pbf-3.2.1.tgz", "integrity": "sha512-ClrV7pNOn7rtmoQVF4TS1vyU0WhYRnP92fzbfF75jAIwpnzdJXf8iTd4CMEqO4yUenH6NDqLiwjqlh6QgZzgLQ==", "requires": { "ieee754": "^1.1.12", @@ -15279,7 +15279,7 @@ }, "potpack": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/potpack/-/potpack-1.0.2.tgz", + "resolved": "https://registry.npmmirror.com/potpack/-/potpack-1.0.2.tgz", "integrity": "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ==" }, "preload": { @@ -15428,7 +15428,7 @@ }, "protocol-buffers-schema": { "version": "3.6.0", - "resolved": "https://registry.npmjs.org/protocol-buffers-schema/-/protocol-buffers-schema-3.6.0.tgz", + "resolved": "https://registry.npmmirror.com/protocol-buffers-schema/-/protocol-buffers-schema-3.6.0.tgz", "integrity": "sha512-TdDRD+/QNdrCGCE7v8340QyuXd4kIWIgapsE2+n/SaGiSSbomYl4TjHlvIoCWRpE7wFt02EpB35VVA2ImcBVqw==" }, "proxy-addr": { @@ -15550,7 +15550,7 @@ }, "quickselect": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/quickselect/-/quickselect-2.0.0.tgz", + "resolved": "https://registry.npmmirror.com/quickselect/-/quickselect-2.0.0.tgz", "integrity": "sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw==" }, "quill": { @@ -16045,7 +16045,7 @@ }, "resolve-protobuf-schema": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/resolve-protobuf-schema/-/resolve-protobuf-schema-2.1.0.tgz", + "resolved": "https://registry.npmmirror.com/resolve-protobuf-schema/-/resolve-protobuf-schema-2.1.0.tgz", "integrity": "sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==", "requires": { "protocol-buffers-schema": "^3.3.1" @@ -17548,7 +17548,7 @@ }, "supercluster": { "version": "7.1.5", - "resolved": "https://registry.npmjs.org/supercluster/-/supercluster-7.1.5.tgz", + "resolved": "https://registry.npmmirror.com/supercluster/-/supercluster-7.1.5.tgz", "integrity": "sha512-EulshI3pGUM66o6ZdH3ReiFcvHpM3vAigyK+vcxdjpJyEbIIrtbmBdY23mGgnI24uXiGFvrGq9Gkum/8U7vJWg==", "requires": { "kdbush": "^3.0.0" @@ -18030,7 +18030,7 @@ }, "tinyqueue": { "version": "2.0.3", - "resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-2.0.3.tgz", + "resolved": "https://registry.npmmirror.com/tinyqueue/-/tinyqueue-2.0.3.tgz", "integrity": "sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA==" }, "tmp": { @@ -18704,7 +18704,7 @@ }, "vt-pbf": { "version": "3.1.3", - "resolved": "https://registry.npmjs.org/vt-pbf/-/vt-pbf-3.1.3.tgz", + "resolved": "https://registry.npmmirror.com/vt-pbf/-/vt-pbf-3.1.3.tgz", "integrity": "sha512-2LzDFzt0mZKZ9IpVF2r69G9bXaP2Q2sArJCmcCgvfTdCCZzSyz4aCLoQyUilu37Ll56tCblIZrXFIjNUpGIlmA==", "requires": { "@mapbox/point-geometry": "0.1.0", diff --git a/nezha-fronted/src/components/common/js/constants.js b/nezha-fronted/src/components/common/js/constants.js index 7af43fe57..a522aafd6 100644 --- a/nezha-fronted/src/components/common/js/constants.js +++ b/nezha-fronted/src/components/common/js/constants.js @@ -361,6 +361,7 @@ export const fromRoute = { user: 'user', agent: 'agent', recordRule: 'recordRule', + issue: 'issue', dc: 'dc', role: 'role', project: 'project', diff --git a/nezha-fronted/src/components/common/mixin/dataList.js b/nezha-fronted/src/components/common/mixin/dataList.js index d84e73ec7..99d56d085 100644 --- a/nezha-fronted/src/components/common/mixin/dataList.js +++ b/nezha-fronted/src/components/common/mixin/dataList.js @@ -1111,6 +1111,185 @@ export default { jsonKey: 'val' } } + } else if (path === 'issue') { + searchKeys = { + // key: path 键 + // value: vue set 参数 + pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' }, + pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' }, + orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' }, + ids: { + target: this.searchLabel, + isSearchInput: true, + propertyName: 'ids', + type: 'string', + defaultJson: { + disabled: false, + label: 'ids', + name: 'ID', + type: 'input', + val: '' + }, + jsonKey: 'val' + }, + name: { + target: this.searchLabel, + isSearchInput: true, + propertyName: 'name', + type: 'string', + defaultJson: { + disabled: false, + id: 'name', + label: 'name', + name: 'Name', + type: 'input', + val: '' + }, + jsonKey: 'val' + }, + type: { + target: this.searchLabel, + isSearchInput: true, + propertyName: 'type', + type: 'string', + defaultJson: { + disabled: false, + label: 'issueType', + name: 'Type', + readonly: true, + type: 'issueType', + val: '' + }, + jsonKey: 'val' + }, + state: { + target: this.searchLabel, + isSearchInput: true, + propertyName: 'state', + type: 'Number', + defaultJson: { + disabled: false, + label: 'issueState', + name: 'State', + readonly: true, + type: 'select', + val: '' + }, + jsonKey: 'val' + }, + priority: { + target: this.searchLabel, + isSearchInput: true, + propertyName: 'priority', + type: 'Number', + defaultJson: { + disabled: false, + label: 'priority', + name: 'Priority', + type: 'select', + val: '' + }, + jsonKey: 'val' + }, + assetsId: { + target: this.searchLabel, + isSearchInput: true, + propertyName: 'assetsId', + type: 'Number', + defaultJson: { + disabled: false, + label: 'assetsId', + name: 'Assets id', + type: 'input', + val: '' + }, + jsonKey: 'val' + }, + assetName: { + target: this.searchLabel, + isSearchInput: true, + propertyName: 'assetName', + type: 'string', + defaultJson: { + disabled: false, + label: 'assetName', + name: 'Assets name', + type: 'input', + val: '' + }, + jsonKey: 'val' + }, + cid: { + target: this.searchLabel, + isSearchInput: true, + propertyName: 'cid', + type: 'string', + defaultJson: { + disabled: false, + label: 'cid', + name: 'Create user', + type: 'issue', + val: '' + }, + jsonKey: 'val' + }, + uid: { + target: this.searchLabel, + isSearchInput: true, + propertyName: 'uid', + type: 'string', + defaultJson: { + disabled: false, + label: 'uid', + name: 'Update user', + type: 'issue', + val: '' + }, + jsonKey: 'val' + }, + rid: { + target: this.searchLabel, + isSearchInput: true, + propertyName: 'rid', + type: 'string', + defaultJson: { + disabled: false, + label: 'rid', + name: 'Reporter', + type: 'issue', + val: '' + }, + jsonKey: 'val' + }, + aid: { + target: this.searchLabel, + isSearchInput: true, + propertyName: 'aid', + type: 'string', + defaultJson: { + disabled: false, + label: 'aid', + name: 'Assignee', + type: 'issue', + val: '' + }, + jsonKey: 'val' + }, + starrd: { + target: this.searchLabel, + isSearchInput: true, + propertyName: 'starrd', + type: 'Number', + defaultJson: { + disabled: false, + label: 'starrd', + name: 'Starrd', + type: 'select', + val: '' + }, + jsonKey: 'val' + } + } } this.initQueryFromPath(searchKeys) }, diff --git a/nezha-fronted/src/components/common/rightBox/issueBox.vue b/nezha-fronted/src/components/common/rightBox/issueBox.vue new file mode 100644 index 000000000..c6600e13b --- /dev/null +++ b/nezha-fronted/src/components/common/rightBox/issueBox.vue @@ -0,0 +1,350 @@ + + + diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue index b5eb933eb..fa9625205 100644 --- a/nezha-fronted/src/components/common/searchInput.vue +++ b/nezha-fronted/src/components/common/searchInput.vue @@ -109,6 +109,26 @@ + +
+ + + + +
+
+ + + +
@@ -286,6 +306,8 @@ export default { dcSelect: [], // 数据中心 assetSelect: [], // 资产 assetStateSelect: [], + issueTypeSelect: [], // issue type + issueData: [], // issue brandSelect: [], groupSelect: [], projectSelect: [], @@ -540,6 +562,14 @@ export default { val.val = selectItem.name val.valnum = selectItem.id val.valString = '' + } else if (val.type === 'issue' && selectItem.searchType === 'issue') { + val.val = selectItem.name + val.valnum = selectItem.id + val.valString = '' + } else if (val.type === 'issueType') { + val.val = selectItem.name + val.valnum = selectItem.id + val.valString = '' } } // this.select_list.push({type: 'dc', val: selectItem.name, valnum: selectItem.id}); @@ -638,6 +668,29 @@ export default { } }) }, + getIssueTypeData () { + this.$get('issue/type').then(response => { + if (response.code === 200) { + this.issueTypeSelect = response.data.map((item, index) => { + return { + value: item, + name: item, + id: index + } + }) + } + }) + }, + getUserList () { + this.$get('sys/user', { pageNo: 1, pageSize: -1 }).then(response => { + if (response.code == 200) { + this.issueData = response.data.list + this.issueData.forEach((item, index) => { + this.$set(item, 'searchType', 'issue') + }) + } + }) + }, getBrandData () { this.$get('asset/brand', { pageNo: 1, pageSize: -1 }).then(response => { if (response.code === 200) { @@ -910,6 +963,10 @@ export default { objectInfo.type = val.valnum } else if (val.label === 'buildIn') { objectInfo.buildIn = val.valnum + } else if (val.label === 'issueState') { + objectInfo.state = val.valnum + } else if (val.label === 'priority') { + objectInfo.priority = val.valnum } else if (typeof (val.valnum) === 'undefined' || val.valnum == '') { this.selectInfoList[val.label].forEach(item => { if (item.label === val.val) { @@ -947,6 +1004,18 @@ export default { objectInfo.brandIds = val.valnum } else if (val.type === 'group') { objectInfo.groupIds = val.valnum + } else if (val.type === 'issueType') { + objectInfo.type = val.val + } else if (val.type === 'issue') { + if (val.label === 'cid') { + objectInfo.cid = val.valnum + } else if (val.label === 'uid') { + objectInfo.uid = val.valnum + } else if (val.label === 'rid') { + objectInfo.rid = val.valnum + } else if (val.label === 'aid') { + objectInfo.aid = val.valnum + } } else if (val.type === 'selectString') { if (val.label === 'dcState') { objectInfo.state = val.val @@ -1530,6 +1599,10 @@ export default { if (this.$route.path === '/exprTemp') { this.getGnameList() } + if (this.$route.path === '/issue') { + this.getIssueTypeData() + this.getUserList() + } this.searchLabelList = this.searchLabelList.filter(item => !this.select_list.find(select => select.label === item.label)) setTimeout(() => { this.select_list.forEach(item => { diff --git a/nezha-fronted/src/components/common/searchSelectInfo.vue b/nezha-fronted/src/components/common/searchSelectInfo.vue index 20beb9867..c3291bc0b 100644 --- a/nezha-fronted/src/components/common/searchSelectInfo.vue +++ b/nezha-fronted/src/components/common/searchSelectInfo.vue @@ -320,7 +320,41 @@ const searchSelectInfo = { // value: 传给后台的值;label:显示给用 ipamType: [ { label: 'IPV4', value: 4 }, { label: 'IPV6', value: 6 } - ] + ], + issueState: [ + { + value: 1, + label: i18n.t('issue.open') + }, { + value: 2, + label: i18n.t('issue.hasBeenAssigned') + }, { + value: 3, + label: i18n.t('issue.beingProcessed') + }, { + value: 4, + label: i18n.t('issue.hangUp') + }, { + value: 5, + label: i18n.t('issue.resolved') + }, { + value: 6, + label: i18n.t('overall.close') + }, { + value: 7, + label: i18n.t('overall.cancel') + } + ], + priority: [{ + value: 1, + label: i18n.t('dashboard.panel.chartForm.high') + }, { + value: 2, + label: i18n.t('issue.middle') + }, { + value: 3, + label: i18n.t('issue.low') + }] } export default searchSelectInfo diff --git a/nezha-fronted/src/components/common/table/settings/issueTable.vue b/nezha-fronted/src/components/common/table/settings/issueTable.vue new file mode 100644 index 000000000..0f94c409a --- /dev/null +++ b/nezha-fronted/src/components/common/table/settings/issueTable.vue @@ -0,0 +1,237 @@ + + + diff --git a/nezha-fronted/src/components/page/config/issue.vue b/nezha-fronted/src/components/page/config/issue.vue new file mode 100644 index 000000000..d66544d43 --- /dev/null +++ b/nezha-fronted/src/components/page/config/issue.vue @@ -0,0 +1,179 @@ + + + diff --git a/nezha-fronted/src/router/index.js b/nezha-fronted/src/router/index.js index 80f1a11e6..6273f44b3 100644 --- a/nezha-fronted/src/router/index.js +++ b/nezha-fronted/src/router/index.js @@ -68,6 +68,10 @@ export default new Router({ path: '/recordRule', component: resolve => require(['@/components/page/config/recordRule'], resolve) }, + { + path: '/issue', + component: resolve => require(['@/components/page/config/issue'], resolve) + }, { path: '/assetType', component: resolve => require(['@/components/page/config/assetType'], resolve)