diff --git a/nezha-fronted/src/assets/css/components/common/rightBox/issueBox.scss b/nezha-fronted/src/assets/css/components/common/rightBox/issueBox.scss new file mode 100644 index 000000000..7c79a5aea --- /dev/null +++ b/nezha-fronted/src/assets/css/components/common/rightBox/issueBox.scss @@ -0,0 +1,15 @@ +.right-box-issue{ + .type-select{ + width: 100%; + height: 32px; + .el-input__inner{ + width: 100%; + height: 32px; + } + } + // .sp-input-container{ + // .sp-base.sp-input{ + // height: 32px; + // } + // } +} \ No newline at end of file diff --git a/nezha-fronted/src/assets/css/components/index.scss b/nezha-fronted/src/assets/css/components/index.scss index a59876e03..009fc11f5 100644 --- a/nezha-fronted/src/assets/css/components/index.scss +++ b/nezha-fronted/src/assets/css/components/index.scss @@ -42,6 +42,7 @@ @import './common/rightBox/alertRuleBox.scss'; @import './common/rightBox/alertSilenceBox.scss'; @import './common/rightBox/recordRuleBox.scss'; +@import './common/rightBox/issueBox.scss'; @import './common/rightBox/assetStateBox.scss'; @import './common/rightBox/batchAddEndpoint.scss'; @import './common/rightBox/batchModifyEndpoint.scss'; diff --git a/nezha-fronted/src/components/common/rightBox/issueBox.vue b/nezha-fronted/src/components/common/rightBox/issueBox.vue index c6600e13b..46026cecb 100644 --- a/nezha-fronted/src/components/common/rightBox/issueBox.vue +++ b/nezha-fronted/src/components/common/rightBox/issueBox.vue @@ -20,6 +20,7 @@ v-model="editIssue.name" :placeholder="''" maxlength="64" show-word-limit + ref="issueName" size="small"> @@ -27,7 +28,8 @@ - - - + + + + {{item.value}} + + + - - + + {{item.value}} @@ -68,6 +74,7 @@ :language="language" :placeholder="$t('dashboard.panel.chartForm.selectAsset')" id="box-input-asset-id" + multiple :result-format="resultFormat"> @@ -77,7 +84,6 @@ v-model.trim="editIssue.rid" class="right-box__select" filterable - multiple placeholder="" popper-class="prevent-clickoutside right-box-select-top" size="small" @@ -100,7 +106,6 @@ v-model.trim="editIssue.aid" class="right-box__select" filterable - multiple placeholder="" popper-class="prevent-clickoutside right-box-select-top" size="small" @@ -141,6 +146,7 @@ diff --git a/nezha-fronted/src/components/page/config/issue.vue b/nezha-fronted/src/components/page/config/issue.vue index d66544d43..61a8b8c09 100644 --- a/nezha-fronted/src/components/page/config/issue.vue +++ b/nezha-fronted/src/components/page/config/issue.vue @@ -49,13 +49,13 @@ > - + @@ -64,14 +64,14 @@ import nzDataList from '@/components/common/table/nzDataList' import dataListMixin from '@/components/common/mixin/dataList' import routerPathParams from '@/components/common/mixin/routerPathParams' import issueTable from '@/components/common/table/settings/issueTable' -// import issueBox from '@/components/common/rightBox/issueBox' +import issueBox from '@/components/common/rightBox/issueBox' export default { name: 'issue', components: { issueTable, nzDataList, - // issueBox + issueBox }, mixins: [dataListMixin, routerPathParams], data () { @@ -159,12 +159,12 @@ export default { blankObject: { id: '', name: '', - type: '', + type: 'default', content: '', state: '', - priority: '', + priority: 2, rid: '', - aid: -1, + aid: '', assetIds: '' } }