|
@@ -39,7 +39,15 @@ const addstepdata = () => {
|
|
|
// 计算属性
|
|
// 计算属性
|
|
|
const testquestiontEmpty = computed(() => {
|
|
const testquestiontEmpty = computed(() => {
|
|
|
// 去除首尾空格后检查长度
|
|
// 去除首尾空格后检查长度
|
|
|
- if(rolename.value.trim().length == 0 || professionalfield.value.trim().length == 0 || maintasks.value.trim().length == 0 || tablename.value.trim().length == 0 || tableDataList.value.length == 0 || stepData.value.length == 0 || formatList.value.length == 0) {
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ rolename.value.trim().length == 0 ||
|
|
|
|
|
+ professionalfield.value.trim().length == 0 ||
|
|
|
|
|
+ maintasks.value.trim().length == 0 ||
|
|
|
|
|
+ tablename.value.trim().length == 0 ||
|
|
|
|
|
+ tableDataList.value.length == 0 ||
|
|
|
|
|
+ stepData.value.length == 0 ||
|
|
|
|
|
+ formatList.value.length == 0
|
|
|
|
|
+ ) {
|
|
|
return true
|
|
return true
|
|
|
} else {
|
|
} else {
|
|
|
return false
|
|
return false
|
|
@@ -69,38 +77,50 @@ const getPromptConfiguration = () => {
|
|
|
const missingmessage = ref()
|
|
const missingmessage = ref()
|
|
|
const SavePromptConfiguration = () => {
|
|
const SavePromptConfiguration = () => {
|
|
|
missingmessage.value = ''
|
|
missingmessage.value = ''
|
|
|
- if(rolename.value != '' && professionalfield.value != '' && maintasks.value != '' && professionalfield.value != '' && tableDataList.value.length != 0 && stepData.value.length != 0 && formatList.value.length != 0 && outputvalue.value != '' && prompttextvalue.value != '') {
|
|
|
|
|
- $api.SavePromptConfiguration({
|
|
|
|
|
- role_name: rolename.value,
|
|
|
|
|
- professional_field: professionalfield.value,
|
|
|
|
|
- main_tasks: maintasks.value,
|
|
|
|
|
- table_name: tablename.value,
|
|
|
|
|
- table_description: tabledescription.value,
|
|
|
|
|
- tableDataList: tableDataList.value,
|
|
|
|
|
- stepData: stepData.value,
|
|
|
|
|
- formatList: formatList.value,
|
|
|
|
|
- outputvalue: outputvalue.value,
|
|
|
|
|
- prompttextvalue: prompttextvalue.value,
|
|
|
|
|
- id: editid.value
|
|
|
|
|
- }).then((res) => {
|
|
|
|
|
- if (res.code === 200) {
|
|
|
|
|
- SaveedVisible.value = true
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- window.location.reload()
|
|
|
|
|
- }, 3000)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ rolename.value != '' &&
|
|
|
|
|
+ professionalfield.value != '' &&
|
|
|
|
|
+ maintasks.value != '' &&
|
|
|
|
|
+ professionalfield.value != '' &&
|
|
|
|
|
+ tableDataList.value.length != 0 &&
|
|
|
|
|
+ stepData.value.length != 0 &&
|
|
|
|
|
+ formatList.value.length != 0 &&
|
|
|
|
|
+ outputvalue.value != '' &&
|
|
|
|
|
+ prompttextvalue.value != ''
|
|
|
|
|
+ ) {
|
|
|
|
|
+ $api
|
|
|
|
|
+ .SavePromptConfiguration({
|
|
|
|
|
+ role_name: rolename.value,
|
|
|
|
|
+ professional_field: professionalfield.value,
|
|
|
|
|
+ main_tasks: maintasks.value,
|
|
|
|
|
+ table_name: tablename.value,
|
|
|
|
|
+ table_description: tabledescription.value,
|
|
|
|
|
+ tableDataList: tableDataList.value,
|
|
|
|
|
+ stepData: stepData.value,
|
|
|
|
|
+ formatList: formatList.value,
|
|
|
|
|
+ outputvalue: outputvalue.value,
|
|
|
|
|
+ prompttextvalue: prompttextvalue.value,
|
|
|
|
|
+ id: editid.value
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ SaveedVisible.value = true
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ window.location.reload()
|
|
|
|
|
+ }, 3000)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
} else {
|
|
} else {
|
|
|
- if(rolename.value == '' || professionalfield.value == '' || maintasks.value == '') {
|
|
|
|
|
|
|
+ if (rolename.value == '' || professionalfield.value == '' || maintasks.value == '') {
|
|
|
missingmessage.value += '系统角色配置, '
|
|
missingmessage.value += '系统角色配置, '
|
|
|
}
|
|
}
|
|
|
- if(tablename.value == '' || tableDataList.value.length == 0) {
|
|
|
|
|
|
|
+ if (tablename.value == '' || tableDataList.value.length == 0) {
|
|
|
missingmessage.value += '表结构配置, '
|
|
missingmessage.value += '表结构配置, '
|
|
|
}
|
|
}
|
|
|
- if(stepData.value.length == 0) {
|
|
|
|
|
|
|
+ if (stepData.value.length == 0) {
|
|
|
missingmessage.value += '响应规则配置, '
|
|
missingmessage.value += '响应规则配置, '
|
|
|
}
|
|
}
|
|
|
- if(formatList.value.length == 0 || outputvalue.value == '') {
|
|
|
|
|
|
|
+ if (formatList.value.length == 0 || outputvalue.value == '') {
|
|
|
missingmessage.value += '输出格式配置, '
|
|
missingmessage.value += '输出格式配置, '
|
|
|
}
|
|
}
|
|
|
missingmessage.value = missingmessage.value.substring(0, missingmessage.value.length - 2)
|
|
missingmessage.value = missingmessage.value.substring(0, missingmessage.value.length - 2)
|
|
@@ -109,7 +129,8 @@ const SavePromptConfiguration = () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const EditPrompt = () => {
|
|
const EditPrompt = () => {
|
|
|
- $api.EditPrompt({
|
|
|
|
|
|
|
+ $api
|
|
|
|
|
+ .EditPrompt({
|
|
|
role_name: rolename.value,
|
|
role_name: rolename.value,
|
|
|
professional_field: professionalfield.value,
|
|
professional_field: professionalfield.value,
|
|
|
main_tasks: maintasks.value,
|
|
main_tasks: maintasks.value,
|
|
@@ -121,7 +142,8 @@ const EditPrompt = () => {
|
|
|
outputvalue: outputvalue.value,
|
|
outputvalue: outputvalue.value,
|
|
|
prompttextvalue: prompttextvalue.value,
|
|
prompttextvalue: prompttextvalue.value,
|
|
|
id: editid.value
|
|
id: editid.value
|
|
|
- }).then((res) => {
|
|
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res) => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
prompttextvalue.value = res.data.complete_prompt
|
|
prompttextvalue.value = res.data.complete_prompt
|
|
|
promptValue.value = res.data.prompt_summary
|
|
promptValue.value = res.data.prompt_summary
|
|
@@ -133,16 +155,16 @@ const EditPrompt = () => {
|
|
|
const exporttxt = () => {
|
|
const exporttxt = () => {
|
|
|
// 创建 Blob 对象
|
|
// 创建 Blob 对象
|
|
|
const blob = new Blob([prompttext.value], { type: 'text/plain' })
|
|
const blob = new Blob([prompttext.value], { type: 'text/plain' })
|
|
|
- // 创建下载链接
|
|
|
|
|
|
|
+ // 创建下载链接
|
|
|
const link = document.createElement('a')
|
|
const link = document.createElement('a')
|
|
|
link.href = URL.createObjectURL(blob)
|
|
link.href = URL.createObjectURL(blob)
|
|
|
- const currentDate = moment();
|
|
|
|
|
- const formattedDate = currentDate.format('YYYY-MM-DD HH:mm');
|
|
|
|
|
|
|
+ const currentDate = moment()
|
|
|
|
|
+ const formattedDate = currentDate.format('YYYY-MM-DD HH:mm')
|
|
|
link.download = `${formattedDate} Prompt.txt` // 自定义文件名
|
|
link.download = `${formattedDate} Prompt.txt` // 自定义文件名
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 触发下载
|
|
// 触发下载
|
|
|
link.click()
|
|
link.click()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 清理内存
|
|
// 清理内存
|
|
|
URL.revokeObjectURL(link.href)
|
|
URL.revokeObjectURL(link.href)
|
|
|
}
|
|
}
|
|
@@ -167,8 +189,17 @@ onMounted(() => {
|
|
|
<div class="Title">
|
|
<div class="Title">
|
|
|
<div>Prompt Configuration</div>
|
|
<div>Prompt Configuration</div>
|
|
|
<div>
|
|
<div>
|
|
|
- <el-button class="el-button--default title-button" style="margin-right: 8px;" @click="PromptdialogVisible = true"><span class="font_family icon-icon_dashboard_b icon_dark" style="margin-right: 5px;"></span>变更日志查看</el-button>
|
|
|
|
|
- <el-button class="el-button--main title-button" @click="SavePromptConfiguration"><span class="font_family icon-icon_save_b icon_dark" style="margin-right: 5px;"></span>保存生效</el-button>
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ class="el-button--default title-button"
|
|
|
|
|
+ style="margin-right: 8px"
|
|
|
|
|
+ @click="PromptdialogVisible = true"
|
|
|
|
|
+ ><span class="font_family icon-icon_dashboard_b icon_dark" style="margin-right: 5px"></span
|
|
|
|
|
+ >变更日志查看</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button class="el-button--main title-button" @click="SavePromptConfiguration"
|
|
|
|
|
+ ><span class="font_family icon-icon_save_b icon_dark" style="margin-right: 5px"></span
|
|
|
|
|
+ >保存生效</el-button
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<el-dialog
|
|
<el-dialog
|
|
@@ -179,7 +210,7 @@ onMounted(() => {
|
|
|
align-center
|
|
align-center
|
|
|
class="prompt-dialog"
|
|
class="prompt-dialog"
|
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
|
- >
|
|
|
|
|
|
|
+ >
|
|
|
<div class="diaolog-body">
|
|
<div class="diaolog-body">
|
|
|
<div class="diaolog-content" v-for="(item, index) in ChangeLogList" :key="index">
|
|
<div class="diaolog-content" v-for="(item, index) in ChangeLogList" :key="index">
|
|
|
<div class="diaolog-flex">
|
|
<div class="diaolog-flex">
|
|
@@ -188,7 +219,10 @@ onMounted(() => {
|
|
|
<div class="dialog-person">{{ item.person }}</div>
|
|
<div class="dialog-person">{{ item.person }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
- <el-button class="el-button--default" @click="ViewPrompt(item.text)"><span class="font_family icon-icon_view_b icon_dark" style="margin-right: 5px;" ></span>查看完整Prompt</el-button>
|
|
|
|
|
|
|
+ <el-button class="el-button--default" @click="ViewPrompt(item.text)"
|
|
|
|
|
+ ><span class="font_family icon-icon_view_b icon_dark" style="margin-right: 5px"></span
|
|
|
|
|
+ >查看完整Prompt</el-button
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="diaolog-text">
|
|
<div class="diaolog-text">
|
|
@@ -204,14 +238,19 @@ onMounted(() => {
|
|
|
align-center
|
|
align-center
|
|
|
class="prompt-dialog prompt-dialog-inner"
|
|
class="prompt-dialog prompt-dialog-inner"
|
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
|
- >
|
|
|
|
|
|
|
+ >
|
|
|
<template #header>
|
|
<template #header>
|
|
|
<div class="dialog-header">
|
|
<div class="dialog-header">
|
|
|
- <div style="width: 55%;display: flex;justify-content: space-between;">
|
|
|
|
|
- <div class="Back" @click="Backprompt"><span class="font_family icon-icon_previous_b icon_dark"></span>Back</div>
|
|
|
|
|
- <div style="display: flex;align-items: center;">查看完整Prmopt</div>
|
|
|
|
|
|
|
+ <div style="width: 55%; display: flex; justify-content: space-between">
|
|
|
|
|
+ <div class="Back" @click="Backprompt">
|
|
|
|
|
+ <span class="font_family icon-icon_previous_b icon_dark"></span>Back
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div style="display: flex; align-items: center">查看完整Prmopt</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <el-button class="el-button--default" @click="exporttxt"><span class="font_family icon-icon_import_b icon_dark" style="margin-right: 5px;" ></span>导出完整日志</el-button>
|
|
|
|
|
|
|
+ <el-button class="el-button--default" @click="exporttxt"
|
|
|
|
|
+ ><span class="font_family icon-icon_import_b icon_dark" style="margin-right: 5px"></span
|
|
|
|
|
+ >导出完整日志</el-button
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<pre class="diaolog-content">
|
|
<pre class="diaolog-content">
|
|
@@ -223,62 +262,115 @@ onMounted(() => {
|
|
|
<div class="prompt-border">
|
|
<div class="prompt-border">
|
|
|
<div class="prompt-title">系统角色设置</div>
|
|
<div class="prompt-title">系统角色设置</div>
|
|
|
<div class="flex">
|
|
<div class="flex">
|
|
|
- <div style="width: 50%; margin-right: 8px;">
|
|
|
|
|
|
|
+ <div style="width: 50%; margin-right: 8px">
|
|
|
<div class="little-title">角色名称</div>
|
|
<div class="little-title">角色名称</div>
|
|
|
- <el-input v-model="rolename" placeholder="为AI Robot创建一个角色名称" class="input-name" @change="EditPrompt"></el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="rolename"
|
|
|
|
|
+ placeholder="为AI Robot创建一个角色名称"
|
|
|
|
|
+ class="input-name"
|
|
|
|
|
+ @change="EditPrompt"
|
|
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
</div>
|
|
|
- <div style="width: 50%;">
|
|
|
|
|
|
|
+ <div style="width: 50%">
|
|
|
<div class="little-title">专业领域</div>
|
|
<div class="little-title">专业领域</div>
|
|
|
- <el-input v-model="professionalfield" placeholder="为AI Robot设定专业领域" class="input-name"></el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="professionalfield"
|
|
|
|
|
+ placeholder="为AI Robot设定专业领域"
|
|
|
|
|
+ class="input-name"
|
|
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div style="margin-top: 16px;">
|
|
|
|
|
|
|
+ <div style="margin-top: 16px">
|
|
|
<div class="little-title">主要任务</div>
|
|
<div class="little-title">主要任务</div>
|
|
|
- <el-input v-model="maintasks" type="textarea" placeholder="简要描述AI Robot的主要任务" class="input-name-textarea" :rows="3"></el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="maintasks"
|
|
|
|
|
+ type="textarea"
|
|
|
|
|
+ placeholder="简要描述AI Robot的主要任务"
|
|
|
|
|
+ class="input-name-textarea"
|
|
|
|
|
+ :rows="3"
|
|
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 表结构配置 -->
|
|
<!-- 表结构配置 -->
|
|
|
<div class="prompt-border">
|
|
<div class="prompt-border">
|
|
|
<div class="prompt-title">表结构配置</div>
|
|
<div class="prompt-title">表结构配置</div>
|
|
|
<div class="flex">
|
|
<div class="flex">
|
|
|
- <div style="width: 50%; margin-right: 8px;">
|
|
|
|
|
|
|
+ <div style="width: 50%; margin-right: 8px">
|
|
|
<div class="little-title"><span class="stars_red">*</span>表名</div>
|
|
<div class="little-title"><span class="stars_red">*</span>表名</div>
|
|
|
- <el-input v-model="tablename" placeholder="创建一个表名" class="input-name" @change="EditPrompt"></el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="tablename"
|
|
|
|
|
+ placeholder="创建一个表名"
|
|
|
|
|
+ class="input-name"
|
|
|
|
|
+ @change="EditPrompt"
|
|
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
</div>
|
|
|
- <div style="width: 50%;">
|
|
|
|
|
|
|
+ <div style="width: 50%">
|
|
|
<div class="little-title">表描述</div>
|
|
<div class="little-title">表描述</div>
|
|
|
- <el-input v-model="tabledescription" placeholder="简要描述表的用途" class="input-name"></el-input>
|
|
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="tabledescription"
|
|
|
|
|
+ placeholder="简要描述表的用途"
|
|
|
|
|
+ class="input-name"
|
|
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div style="margin-top: 16px;">
|
|
|
|
|
- <el-button class="el-button--noborder--configuration prompt-button" @click="AddTableConfiguration">+ 添加字段</el-button>
|
|
|
|
|
- <TableConfiguration ref="TableConfigurationref" :tableDataList="tableDataList"></TableConfiguration>
|
|
|
|
|
|
|
+ <div style="margin-top: 16px">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ class="el-button--noborder--configuration prompt-button"
|
|
|
|
|
+ @click="AddTableConfiguration"
|
|
|
|
|
+ >+ 添加字段</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <TableConfiguration
|
|
|
|
|
+ ref="TableConfigurationref"
|
|
|
|
|
+ :tableDataList="tableDataList"
|
|
|
|
|
+ ></TableConfiguration>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 响应规则配置 -->
|
|
<!-- 响应规则配置 -->
|
|
|
<div class="prompt-border">
|
|
<div class="prompt-border">
|
|
|
<div class="prompt-title">响应规则配置</div>
|
|
<div class="prompt-title">响应规则配置</div>
|
|
|
- <div style="margin-top: 16px;">
|
|
|
|
|
- <el-button class="el-button--noborder--configuration prompt-button" @click="addstepdata" v-if="stepData.length != 0">+ 添加步骤</el-button>
|
|
|
|
|
- <RespnseConfiguration ref="RespnseConfigurationref" :stepDataprops="stepData"></RespnseConfiguration>
|
|
|
|
|
|
|
+ <div style="margin-top: 16px">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ class="el-button--noborder--configuration prompt-button"
|
|
|
|
|
+ @click="addstepdata"
|
|
|
|
|
+ v-if="stepData.length != 0"
|
|
|
|
|
+ >+ 添加步骤</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <RespnseConfiguration
|
|
|
|
|
+ ref="RespnseConfigurationref"
|
|
|
|
|
+ :stepDataprops="stepData"
|
|
|
|
|
+ ></RespnseConfiguration>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 输出格式配置 -->
|
|
<!-- 输出格式配置 -->
|
|
|
<div class="prompt-border">
|
|
<div class="prompt-border">
|
|
|
<div class="prompt-title">输出格式配置</div>
|
|
<div class="prompt-title">输出格式配置</div>
|
|
|
- <div style="margin-top: 16px;">
|
|
|
|
|
- <OutputConfiguration ref="OutputConfigurationref" :formatList="formatList" :outputvalue="outputvalue"></OutputConfiguration>
|
|
|
|
|
|
|
+ <div style="margin-top: 16px">
|
|
|
|
|
+ <OutputConfiguration
|
|
|
|
|
+ ref="OutputConfigurationref"
|
|
|
|
|
+ :formatList="formatList"
|
|
|
|
|
+ :outputvalue="outputvalue"
|
|
|
|
|
+ ></OutputConfiguration>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 预览与测试 -->
|
|
<!-- 预览与测试 -->
|
|
|
- <div class="propmt-border-colorful">
|
|
|
|
|
- <div class="prompt-title" style="padding: 0 14px;">预览与测试</div>
|
|
|
|
|
- <div style="margin-top: 16px;">
|
|
|
|
|
- <PreviewTesting ref="PreviewTestingref" :prompttext="prompttextvalue" :testquestion="testquestiontEmpty" :promptValue="promptValue"></PreviewTesting>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="propmt-save"><el-button class="el-button--main" @click="SavePromptConfiguration"><span class="font_family icon-icon_save_b icon_dark" style="margin-right: 5px;"></span>保存生效</el-button></div>
|
|
|
|
|
- <!-- 保存失败 -->
|
|
|
|
|
|
|
+ <div class="propmt-border-colorful">
|
|
|
|
|
+ <div class="prompt-title" style="padding: 0 14px">预览与测试</div>
|
|
|
|
|
+ <div style="margin-top: 16px">
|
|
|
|
|
+ <PreviewTesting
|
|
|
|
|
+ ref="PreviewTestingref"
|
|
|
|
|
+ :prompttext="prompttextvalue"
|
|
|
|
|
+ :testquestion="testquestiontEmpty"
|
|
|
|
|
+ :promptValue="promptValue"
|
|
|
|
|
+ ></PreviewTesting>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="propmt-save">
|
|
|
|
|
+ <el-button class="el-button--main" @click="SavePromptConfiguration"
|
|
|
|
|
+ ><span class="font_family icon-icon_save_b icon_dark" style="margin-right: 5px"></span
|
|
|
|
|
+ >保存生效</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- 保存失败 -->
|
|
|
<el-dialog v-model="UnableSaveVisible" width="480">
|
|
<el-dialog v-model="UnableSaveVisible" width="480">
|
|
|
<div>{{ missingmessage }} missing.</div>
|
|
<div>{{ missingmessage }} missing.</div>
|
|
|
<div>Please complete all required fields.</div>
|
|
<div>Please complete all required fields.</div>
|
|
@@ -294,19 +386,15 @@ onMounted(() => {
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template #header>
|
|
<template #header>
|
|
|
- <div class="cancel_header">
|
|
|
|
|
- <span class="iconfont_icon iconfont_warning">
|
|
|
|
|
- <svg class="iconfont icon_danger" aria-hidden="true">
|
|
|
|
|
- <use xlink:href="#icon-icon_fail_fill_b"></use>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </span>
|
|
|
|
|
|
|
+ <div class="unable-save-dialog-header">
|
|
|
|
|
+ <span class="font_family icon-icon_fail_fill_b"></span>
|
|
|
Unable to Save
|
|
Unable to Save
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<!-- 保存成功 -->
|
|
<!-- 保存成功 -->
|
|
|
<el-dialog v-model="SaveedVisible" width="320" style="height: 212px">
|
|
<el-dialog v-model="SaveedVisible" width="320" style="height: 212px">
|
|
|
- <div style="text-align: center"><el-image :src="submitsucessful" style="width: 64px;" /></div>
|
|
|
|
|
|
|
+ <div style="text-align: center"><el-image :src="submitsucessful" style="width: 64px" /></div>
|
|
|
<div style="text-align: center; margin-top: 20px">Saved successfully</div>
|
|
<div style="text-align: center; margin-top: 20px">Saved successfully</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</div>
|
|
</div>
|
|
@@ -339,7 +427,9 @@ onMounted(() => {
|
|
|
border-radius: 12px;
|
|
border-radius: 12px;
|
|
|
background-clip: padding-box, border-box;
|
|
background-clip: padding-box, border-box;
|
|
|
background-origin: padding-box, border-box;
|
|
background-origin: padding-box, border-box;
|
|
|
- background-image: linear-gradient(to bottom, var(--color-mode), var(--color-mode)), linear-gradient(to bottom, #FF7500, #8112FF);
|
|
|
|
|
|
|
+ background-image:
|
|
|
|
|
+ linear-gradient(to bottom, var(--color-mode), var(--color-mode)),
|
|
|
|
|
+ linear-gradient(to bottom, #ff7500, #8112ff);
|
|
|
margin-bottom: 8px;
|
|
margin-bottom: 8px;
|
|
|
padding: 13px 0;
|
|
padding: 13px 0;
|
|
|
}
|
|
}
|
|
@@ -405,7 +495,7 @@ onMounted(() => {
|
|
|
padding: 16px;
|
|
padding: 16px;
|
|
|
margin-bottom: 8px;
|
|
margin-bottom: 8px;
|
|
|
border-radius: 6px;
|
|
border-radius: 6px;
|
|
|
- line-height: 21px;
|
|
|
|
|
|
|
+ line-height: 21px;
|
|
|
white-space: break-spaces;
|
|
white-space: break-spaces;
|
|
|
}
|
|
}
|
|
|
.diaolog-flex {
|
|
.diaolog-flex {
|
|
@@ -457,9 +547,9 @@ onMounted(() => {
|
|
|
border-color: var(--color-btn-default-bg-hover);
|
|
border-color: var(--color-btn-default-bg-hover);
|
|
|
background-color: var(--color-btn-default-bg-hover);
|
|
background-color: var(--color-btn-default-bg-hover);
|
|
|
color: var(--color-theme);
|
|
color: var(--color-theme);
|
|
|
- span {
|
|
|
|
|
- color: var(--color-theme);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ span {
|
|
|
|
|
+ color: var(--color-theme);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.cancel_header {
|
|
.cancel_header {
|
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
@@ -475,4 +565,16 @@ onMounted(() => {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+.unable-save-dialog-header {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ .font_family {
|
|
|
|
|
+ width: 16px;
|
|
|
|
|
+ height: 16px;
|
|
|
|
|
+ border-radius: 24px;
|
|
|
|
|
+ margin-right: 4px;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ color: #b53039;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|