Bläddra i källkod

fix: 修复BugDrawer样式与行为,将常量修改为正确值

Jinyao 5 år sedan
förälder
incheckning
5906563067
2 ändrade filer med 8 tillägg och 2 borttagningar
  1. 7 1
      src/components/BugEditDrawer.vue
  2. 1 1
      src/utils/constants.ts

+ 7 - 1
src/components/BugEditDrawer.vue

@@ -11,7 +11,12 @@
         <el-col :span="2">
           <div class="node-type">Bug</div>
         </el-col>
-        <el-col :span="12" :offset="2">
+        <el-col :span="4">
+          <template class="entry-row">
+            <span>#{{id}}</span>
+          </template>
+        </el-col>
+        <el-col :span="8">
           <template class="entry-row" v-if="isEditing">
             <el-input placeholder="请输入标题" size="mini" style="width: 200px;display: inline;" v-model="editedBugRecord.title"/>
           </template>
@@ -226,6 +231,7 @@ export default {
       BugListAPI.updateBugRecord(param).then((res) => {
         this.isEditing = false;
         this.$emit('bug-record-update');
+        this.showDrawer = false;
       });
       this.confirmLoading = false;
     },

+ 1 - 1
src/utils/constants.ts

@@ -1,2 +1,2 @@
 export const stateOptions = [{ value: '进行中' }, { value: '已创建' }, { value: '已结束' }];
-export const priorityOptions = [{ value: 0, label: '紧急' }, { value: 1, label: '宽松' }, { value: 2, label: '一般' }];
+export const priorityOptions = [{ value: '紧急', label: '紧急' }, { value: '宽松', label: '宽松' }, { value: '一般', label: '一般' }];