From 8a262eb3bb8890364def38e2812a2f8155983052 Mon Sep 17 00:00:00 2001 From: gerson <1405270578@qq.com> Date: 星期日, 07 七月 2024 17:00:48 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/WI/Web.V1.0 --- src/views/project/ch/home/component/waterRight/center.vue | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/src/views/project/ch/home/component/waterRight/center.vue b/src/views/project/ch/home/component/waterRight/center.vue index cf8dadc..6f9f6bb 100644 --- a/src/views/project/ch/home/component/waterRight/center.vue +++ b/src/views/project/ch/home/component/waterRight/center.vue @@ -145,6 +145,15 @@ </div> </el-drawer> </div> + <el-dialog v-model="state.useInstructDialog" :title="state.instructInfo?.template_title" width="500" :before-close="handleClose"> + <el-input v-model="state.inputInstruct" :rows="10" type="textarea"></el-input> + <template #footer> + <div class="dialog-footer"> + <el-button @click="handleClose">鍙栨秷</el-button> + <el-button type="primary" @click="submitInstruct"> 纭 </el-button> + </div> + </template> + </el-dialog> </div> </template> @@ -237,6 +246,9 @@ activeLabelName: 0, activeInstructName: 0, isShowExpand: false, + useInstructDialog: false, + instructInfo: {}, + inputInstruct: '', //鍙慨鏀规寚浠� }); const exampleList = ref([]); //妯$増鍒楄〃 const instructContentList = ref([]); //鎸囦护鍒楄〃 @@ -321,8 +333,17 @@ }; //#region ====================== templateUseClick ====================== const templateUseClick = (row) => { + state.useInstructDialog = true; + state.instructInfo = row; + state.inputInstruct = row.template_value; +}; +const handleClose = () => { + state.useInstructDialog = false; +}; +const submitInstruct = () => { setRoomConfig(activeRoomId.value,'isAnswerByLLM',true); - emitter.emit('updateChatInput', row.template_value); + emitter.emit('updateChatInput', state.inputInstruct); + handleClose(); }; //#endregion //#region ====================== 鎼滅储妯℃澘/鎸囦护 ====================== -- Gitblit v1.9.3