|
@@ -53,7 +53,7 @@
|
|
<div v-else class="task-item-list-title">
|
|
<div v-else class="task-item-list-title">
|
|
{{ $t('Key268') }}
|
|
{{ $t('Key268') }}
|
|
</div>
|
|
</div>
|
|
- <el-button class="create-item selected" type="primary" @click="dialogVisible = true">
|
|
|
|
|
|
+ <el-button class="create-item selected" type="primary" @click="handleCSItem({ id: '', type: 'add' })">
|
|
<svg-icon icon-class="create-white" /> {{ $t('Key269') }}
|
|
<svg-icon icon-class="create-white" /> {{ $t('Key269') }}
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -466,11 +466,17 @@ export default {
|
|
this.itemId = id;
|
|
this.itemId = id;
|
|
this.type = 'edit';
|
|
this.type = 'edit';
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (type === 'add') {
|
|
|
|
+ this.dialogVisible = true;
|
|
|
|
+ this.itemId = id;
|
|
|
|
+ this.type = 'add';
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
dialogConfirm(type) {
|
|
dialogConfirm(type) {
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
- this.type = 'add';
|
|
|
|
|
|
+ this.type = '';
|
|
if (type === 'add') {
|
|
if (type === 'add') {
|
|
this.getCourseInfo();
|
|
this.getCourseInfo();
|
|
}
|
|
}
|
|
@@ -481,7 +487,7 @@ export default {
|
|
|
|
|
|
dialogClose() {
|
|
dialogClose() {
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
- this.type = 'add';
|
|
|
|
|
|
+ this.type = '';
|
|
},
|
|
},
|
|
|
|
|
|
getCSItemInfoBox() {
|
|
getCSItemInfoBox() {
|