|
@@ -66,7 +66,7 @@
|
|
|
<!-- </div>-->
|
|
|
</label>
|
|
|
<el-input v-if="isEditTitle" ref="nodeTitle" v-model="form.nodeName" clearable @blur="saveTitle" @keyup.enter="saveTitle"></el-input>
|
|
|
- </div>
|
|
|
+ </div><el-input v-model="form.nodeKey" clearable class="w-40" placeholder="请填写nodeKey"></el-input>
|
|
|
</template>
|
|
|
<el-container>
|
|
|
<el-main style="padding: 0 0 20px 0">
|
|
@@ -154,6 +154,7 @@ import useFlowStore from '@/store/modules/flow'
|
|
|
import { Delete, Plus, ArrowLeft, Close, ArrowRight, Edit } from '@element-plus/icons-vue'
|
|
|
import { mapState } from 'pinia'
|
|
|
import { getNodeKey } from '@/utils/workflow'
|
|
|
+import {ElMessage} from "element-plus";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
@@ -218,6 +219,9 @@ export default {
|
|
|
this.isEditTitle = false
|
|
|
},
|
|
|
save() {
|
|
|
+ if (!this.form.nodeKey) {
|
|
|
+ return ElMessage.error('请填写nodeKey')
|
|
|
+ }
|
|
|
this.nodeConfig.conditionNodes[this.index] = this.form
|
|
|
this.$emit('update:modelValue', this.nodeConfig)
|
|
|
this.drawer = false
|