diff --git a/src/components/DateField/index.vue b/src/components/DateField/index.vue new file mode 100644 index 00000000..086e7742 --- /dev/null +++ b/src/components/DateField/index.vue @@ -0,0 +1,198 @@ + + + + {{getMyAvaterInfo(myVal)}} + + + + {{myVal?formatDate( new Date(myVal),format):'' }} + + {{label}} + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/UserField/index.vue b/src/components/UserField/index.vue new file mode 100644 index 00000000..d55cbb61 --- /dev/null +++ b/src/components/UserField/index.vue @@ -0,0 +1,309 @@ + + + + {{getMyAvaterInfo(myVal)}} + + + + {{showMyValue( myVal )}} + + {{label}} + + + + + + + 常用用户 部门用户项目组 + + + + + {{item.username}} + {{item.username}} + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 62d976b0..81391818 100644 --- a/src/main.js +++ b/src/main.js @@ -28,6 +28,8 @@ import DictSelect from '@/components/DictSelect/index' import DictTag from '@/components/DictTag/index' import DictField from '@/components/DictField/index' import MyInput from '@/components/MDinput/index' +import DateField from '@/components/DateField/index' +import UserField from '@/components/UserField/index' Vue.prototype.$echarts = echarts Vue.use(Print); //注册 @@ -36,6 +38,8 @@ Vue.component('dict-select',DictSelect) Vue.component('dict-tag',DictTag) Vue.component('dict-field',DictField) Vue.component('my-input',MyInput) +Vue.component('date-field',DateField) +Vue.component('user-field',UserField) Vue.use(Element, { size: 'small', // set element-ui default size i18n: (key, value) => i18n.t(key, value) diff --git a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue index 51a55fc0..e87addd8 100644 --- a/src/views/xm/core/xmQuestion/XmQuestionEdit.vue +++ b/src/views/xm/core/xmQuestion/XmQuestionEdit.vue @@ -1,9 +1,9 @@ - - + + - + 用例编号: {{editForm.caseId}} 模块:{{editForm.funcName}} 选择模块 @@ -17,9 +17,8 @@ 拷贝链接(快速分享) - - - {{editForm.handlerUsername}} + + 其它人 指派给 - - + - - - - {{i.name}} - - + + - - - - {{i.name}} - - + + + - - - - - + + + @@ -68,10 +57,8 @@ - - - {{i.name}} - + + @@ -86,31 +73,27 @@ - - {{i.name}} - + + - - {{i.name}} - + + - - {{i.name}} - + + - - {{i.name}} - + + @@ -248,7 +231,7 @@ } }, - props:['xmQuestion','visible',"selProject"], + props:['xmQuestion','visible',"selProject",'opType'], watch: { 'xmQuestion':function( xmQuestion ) { this.editForm = {...xmQuestion};