|
@@ -38,7 +38,15 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="bug-name-control">
|
|
|
- <div class="name">{{ formData.name }}</div>
|
|
|
+ <el-input
|
|
|
+ v-model="formData.name"
|
|
|
+ type="textarea"
|
|
|
+ autosize
|
|
|
+ placeholder="请输入内容"
|
|
|
+ maxlength="150"
|
|
|
+ show-word-limit
|
|
|
+ @change="changeArea('name')"
|
|
|
+ />
|
|
|
</div>
|
|
|
</section>
|
|
|
<section class="main-section">
|
|
@@ -264,6 +272,11 @@ export default {
|
|
|
taskId: this.formData.taskId,
|
|
|
bizId: this.formData.bizId
|
|
|
}
|
|
|
+ if (e === 'name') {
|
|
|
+ this.formData.name.replace(/\s/g, '') === ''
|
|
|
+ this.getById()
|
|
|
+ return
|
|
|
+ }
|
|
|
if (e === 'participants') {
|
|
|
params[e] = this.formData[e].join(',')
|
|
|
} else {
|
|
@@ -380,14 +393,29 @@ export default {
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
width: 100%;
|
|
|
- .name {
|
|
|
- font-size: 18px;
|
|
|
- color: #333333;
|
|
|
- width: 80%;
|
|
|
- text-overflow: ellipsis;
|
|
|
- overflow: hidden;
|
|
|
- white-space: nowrap;
|
|
|
- }
|
|
|
+ /deep/.el-textarea{
|
|
|
+ .el-textarea__inner{
|
|
|
+ border: 1px solid rgba(220,223,230,0);
|
|
|
+ padding-left: 10px;
|
|
|
+ color:#333333;
|
|
|
+ font-size: 18px;
|
|
|
+ padding: 5px 0;
|
|
|
+ font-weight: bold;
|
|
|
+ resize:none;
|
|
|
+ }
|
|
|
+ .el-input__count {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /deep/.el-textarea:hover{
|
|
|
+ .el-textarea__inner{
|
|
|
+ border: 1px solid rgba(220,223,230,1);
|
|
|
+ resize: vertical;
|
|
|
+ }
|
|
|
+ .el-input__count {
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
/deep/.el-button--small{
|
|
|
padding: 9px 10px;
|