From 0b3aa6abc1089f2d70aeb7cbdd3025da369188f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 21 Jul 2022 12:30:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DictSelect/index.vue | 101 ++++++++++++++++++ src/components/DictTag/index.vue | 60 +++++++++++ src/main.js | 6 +- .../xmTestPlanCase/XmTestPlanCaseEdit.vue | 40 +++---- 4 files changed, 181 insertions(+), 26 deletions(-) create mode 100644 src/components/DictSelect/index.vue create mode 100644 src/components/DictTag/index.vue diff --git a/src/components/DictSelect/index.vue b/src/components/DictSelect/index.vue new file mode 100644 index 00000000..f12f12b0 --- /dev/null +++ b/src/components/DictSelect/index.vue @@ -0,0 +1,101 @@ + + + + + + \ No newline at end of file diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue new file mode 100644 index 00000000..b21bf9ad --- /dev/null +++ b/src/components/DictTag/index.vue @@ -0,0 +1,60 @@ + + + + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index a2c62b7b..dff3464e 100644 --- a/src/main.js +++ b/src/main.js @@ -24,10 +24,14 @@ Vue.use(VueQriously) import DateRange from '@/components/dateRange/index' +import DictSelect from '@/components/DictSelect/index' +import DictTag from '@/components/DictTag/index' Vue.prototype.$echarts = echarts Vue.use(Print); //注册 -Vue.component('date-range',DateRange) +Vue.component('date-range',DateRange) +Vue.component('dict-select',DictSelect) +Vue.component('dict-tag',DictTag) Vue.use(Element, { size: 'small', // set element-ui default size i18n: (key, value) => i18n.t(key, value) diff --git a/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue b/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue index 8fe06ad1..7c7bb9b7 100644 --- a/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue +++ b/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue @@ -15,15 +15,15 @@ {{editForm.execUsername}}
- {{editForm.execUsername}} - 执行人 + {{editForm.execUsername}} + 执行人
- {{formatDicts(dicts,'priority',editForm.priority)}} - 优先级 + {{formatDicts(dicts,'priority',editForm.priority)}} + 优先级
@@ -40,8 +40,8 @@
- {{formatDicts(dicts,'testStepTcode',editForm.execStatus)}} - 执行结果 + {{formatDicts(dicts,'testStepTcode',editForm.execStatus)}} + 执行结果
@@ -55,8 +55,7 @@ 用例状态 - {{item.name}} - + @@ -73,7 +72,7 @@ 用例类型 - {{item.name}} + @@ -156,19 +155,10 @@
- {{formatDicts(dicts,'testStepTcode',editForm.execStatus)}} + {{formatDicts(dicts,'testStepTcode',editForm.execStatus)}}
- - - - - - {{item.name}} - - -    - - + + 下一条 @@ -185,7 +175,7 @@ - + @@ -237,10 +227,10 @@ import XmQuestionMng from '@/views/xm/core/xmQuestion/XmQuestionMng';//修改 ] }, editForm: { - bugs:'',execUserid:'',caseId:'',ltime:'',ctime:'',execStatus:'',execUsername:'',planId:'',caseName:'',priority:'',remark:'',testStep:'' + bugs:'',execUserid:'',caseId:'',ltime:'',ctime:'',execStatus:'',execUsername:'',planId:'',caseName:'',priority:'',remark:'',testStep:'',caseType:'' }, editFormBak: { - bugs:'',execUserid:'',caseId:'',ltime:'',ctime:'',execStatus:'',execUsername:'',planId:'',caseName:'',priority:'',remark:'',testStep:'' + bugs:'',execUserid:'',caseId:'',ltime:'',ctime:'',execStatus:'',execUsername:'',planId:'',caseName:'',priority:'',remark:'',testStep:'',caseType:'' }, maxTableHeight:300, menuVisible:false, @@ -367,7 +357,7 @@ import XmQuestionMng from '@/views/xm/core/xmQuestion/XmQuestionMng';//修改 margin-top: 5px; font-size: 16px; } - .sub-title{ + .field-label{ margin-top: -10px; font-size: 14px; color: #C0C4CC;