From 3aedad63dd01f1fc5154cb520af32edab967d6e0 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周一, 12 5月 2025 09:15:26 +0800
Subject: [PATCH] Merge branch 'master' of http://222.71.245.114:9086/r/HIA24016N_PipeLineDemo

---
 PipeLineLems/pipelinelems_web/src/widgets/Http/components/OptionConfigDialog.vue |  123 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 123 insertions(+), 0 deletions(-)

diff --git a/PipeLineLems/pipelinelems_web/src/widgets/Http/components/OptionConfigDialog.vue b/PipeLineLems/pipelinelems_web/src/widgets/Http/components/OptionConfigDialog.vue
new file mode 100644
index 0000000..dfdf741
--- /dev/null
+++ b/PipeLineLems/pipelinelems_web/src/widgets/Http/components/OptionConfigDialog.vue
@@ -0,0 +1,123 @@
+<template>
+  <el-dialog
+    :append-to-body="true"
+    :close-on-click-modal="false"
+    :destroy-on-close="true"
+    :modal="false"
+    :title="title"
+    custom-class="cms-el-dialog"
+    width="661px"
+    @close="close"
+  >
+    <div class="dialog-body">
+      <div class="row">
+        <div class="col">
+          <InputCode ref="inputCode" v-model="code"></InputCode>
+        </div>
+      </div>
+    </div>
+
+    <template #footer>
+      <el-button class="btn" @click="close">鍙栨秷</el-button>
+      <el-button class="btn btn-submit" type="primary" @click="change"
+        >纭畾</el-button
+      >
+    </template>
+  </el-dialog>
+</template>
+<script setup lang="ts">
+import { defineEmits, ref, watch } from 'vue'
+import InputCode from './InputCode.vue'
+
+const props = defineProps({
+  code: {
+    type: String,
+    default: '',
+  },
+  title: {
+    type: String,
+    default: '',
+  },
+})
+
+const emit = defineEmits(['update:modelValue', 'update:code', 'change'])
+
+// code ------------------------------
+
+let code = ref('')
+const reset = () => {
+  code.value = props.code || ''
+}
+watch(
+  () => props.code,
+  () => {
+    code.value = props.code || ''
+  },
+  { immediate: true }
+)
+
+async function change() {
+  emit('update:code', code.value)
+  emit('change', code.value)
+}
+
+function close() {
+  emit('update:modelValue', false)
+  reset()
+}
+</script>
+
+<!-- .row>.col -->
+<style lang="scss" scoped>
+.row {
+  display: flex;
+  gap: 1px;
+  .col {
+    flex: 1;
+    min-width: 0;
+  }
+}
+</style>
+
+<!-- panel -->
+<style lang="scss" scoped>
+.dialog-body {
+  margin-top: -8px;
+  .header {
+    font-size: 14px;
+    font-family: PingFang SC-Regular, PingFang SC;
+    font-weight: 400;
+    color: #ffffff;
+    padding: 0 10px 12px;
+    span {
+      font-size: 12px;
+      font-family: PingFang SC-Regular, PingFang SC;
+      font-weight: 700;
+      color: #606162;
+    }
+  }
+}
+</style>
+<!-- global -->
+<style lang="scss">
+dl.global_usage_0002 {
+  margin: -6px;
+  padding: 12px 16px;
+  display: flex;
+  flex-direction: column;
+  gap: 2px;
+  max-width: 480px;
+  // pointer-events: none;
+  > div {
+    display: flex;
+    // gap: 10px;
+    dt {
+      flex: none;
+    }
+    dd {
+      margin: 0;
+      white-space: pre-line;
+    }
+  }
+}
+</style>

--
Gitblit v1.9.3