|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="set-background">
|
|
|
+ <div id="window-judge" class="set-background">
|
|
|
<el-form ref="form" :model="form" :rules="serviceDataRules">
|
|
|
<div class="block">
|
|
|
<el-form-item prop="bugName" label="标题" :label-width="formLabelWidth"><el-input v-model="form.bugName" autocomplete="off" placeholder="普惠质量产品工具平台..." style="width:77.2%;" /></el-form-item>
|
|
@@ -67,7 +67,7 @@
|
|
|
</div>
|
|
|
<div class="block">
|
|
|
<div style="display:flex;">
|
|
|
- <el-form-item style="flex-grow:1" label="创建人" label-width="21%"><el-input v-model="form.creator" autocomplete="off" class="cancel-border" style="width:54.5%;" /></el-form-item>
|
|
|
+ <el-form-item style="flex-grow:1" label="创建人" label-width="21%"><el-input v-model="form.creator" autocomplete="off" style="width:53.5%;" /></el-form-item>
|
|
|
<el-form-item style="flex-grow:1" label="bug责任人" prop="assigner" :label-width="formLabelWidth1"><el-input v-model="form.assigner" autocomplete="off" style="width:54.5%;" /></el-form-item>
|
|
|
</div>
|
|
|
<div style="display:flex;">
|
|
@@ -109,26 +109,24 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="block-end">
|
|
|
- <div class="head">
|
|
|
- <div class="font">备注</div>
|
|
|
- <div>
|
|
|
- <el-upload
|
|
|
- class="upload-demo"
|
|
|
- multiple
|
|
|
- capture
|
|
|
- accept="image/jpeg, image/png, image/gif, audio/mp4, video/mp4, audio/mpeg, application/vnd.ms-excel"
|
|
|
- :on-change="handleChange"
|
|
|
- :file-list="fileList"
|
|
|
- action="http://page-daily.kuaidadi.com/upload/img.node"
|
|
|
- >
|
|
|
- <!-- action="http://page-daily.kuaidadi.com/upload/img.node" 线下 -->
|
|
|
- <!-- action="http://star.xiaojukeji.com/upload/img.node" 线上 -->
|
|
|
- <!-- action="https://jsonplaceholder.typicode.com/posts/" 原始地址-->
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
- </el-upload>
|
|
|
- </div>
|
|
|
+ <div class="font">备注</div>
|
|
|
+ <el-input v-model="form.remark" type="textarea" autocomplete="off" rows="5" style="margin: 20px 0;" />
|
|
|
+ <div>
|
|
|
+ <el-upload
|
|
|
+ class="upload-demo"
|
|
|
+ multiple
|
|
|
+ capture
|
|
|
+ accept="image/jpeg, image/png, image/gif, audio/mp4, video/mp4, audio/mpeg, application/vnd.ms-excel"
|
|
|
+ :on-change="handleChange"
|
|
|
+ :file-list="fileList"
|
|
|
+ action="http://page-daily.kuaidadi.com/upload/img.node"
|
|
|
+ >
|
|
|
+ <!-- action="http://page-daily.kuaidadi.com/upload/img.node" 线下 -->
|
|
|
+ <!-- action="http://star.xiaojukeji.com/upload/img.node" 线上 -->
|
|
|
+ <!-- action="https://jsonplaceholder.typicode.com/posts/" 原始地址-->
|
|
|
+ <el-button size="small">上传附件</el-button>
|
|
|
+ </el-upload>
|
|
|
</div>
|
|
|
- <el-input v-model="form.remark" type="textarea" autocomplete="off" rows="5" />
|
|
|
<el-form-item class="submit">
|
|
|
<el-button size="mini" type="primary" @click="createFormData(form)">提 交</el-button>
|
|
|
<el-button class="move-button" size="mini" @click="$router.go(-1)">取 消</el-button>
|
|
@@ -180,7 +178,8 @@ export default {
|
|
|
bizId: '',
|
|
|
taskId: '',
|
|
|
platformType: '',
|
|
|
- businessType: ''
|
|
|
+ businessType: '',
|
|
|
+ creator: ''
|
|
|
},
|
|
|
businessTypeStr: [],
|
|
|
taskIdStr: '',
|
|
@@ -247,10 +246,12 @@ export default {
|
|
|
})
|
|
|
if (this.$route.query.id) {
|
|
|
getTaskData(this.$route.query.id).then(res => {
|
|
|
+ console.log(res.data)
|
|
|
this.taskStatus = res.data.status
|
|
|
this.$set(this.form, 'taskId', res.data.name)
|
|
|
this.$set(this.form, 'bizId', res.data.bizIdString)
|
|
|
this.$set(this.form, 'platformType', res.data.typeString)
|
|
|
+ this.$set(this.form, 'creator', res.data.creater)
|
|
|
if (res.data.clientType) {
|
|
|
this.businessTypeShow = true
|
|
|
this.$set(this.form, 'businessType', res.data.clientType)
|
|
@@ -303,6 +304,7 @@ export default {
|
|
|
createFormData(form) {
|
|
|
this.$refs.form.validate((valid) => {
|
|
|
if (valid) {
|
|
|
+ console.log(form)
|
|
|
if (this.$route.query.id && typeof this.form.bizId === 'string') {
|
|
|
form.bizId = this.bizOptions.filter(value => value.name === form.bizId)[0].code
|
|
|
}
|
|
@@ -343,8 +345,6 @@ export default {
|
|
|
width 1000px
|
|
|
margin-top 25px
|
|
|
padding 29px 50px
|
|
|
- .cancel-border >>> .el-input__inner
|
|
|
- border 1px solid #fff
|
|
|
.block-end
|
|
|
background-color rgba(255,255,255,1)
|
|
|
box-shadow 0px 0px 11px 0px rgba(238,240,245,1)
|
|
@@ -353,16 +353,12 @@ export default {
|
|
|
margin-top 25px
|
|
|
padding 29px 50px
|
|
|
margin-bottom 22px
|
|
|
- .head
|
|
|
- display flex
|
|
|
- justify-content space-between
|
|
|
- margin-bottom 16px
|
|
|
- .font
|
|
|
- font-size 18px
|
|
|
- font-family PingFangSC
|
|
|
- font-weight 500
|
|
|
- color rgba(51,59,74,1)
|
|
|
- line-height 35px
|
|
|
+ .font
|
|
|
+ font-size 18px
|
|
|
+ font-family PingFangSC
|
|
|
+ font-weight 500
|
|
|
+ color rgba(51,59,74,1)
|
|
|
+ line-height 35px
|
|
|
.submit
|
|
|
margin-top 40px
|
|
|
display flex
|