|
@@ -111,18 +111,19 @@
|
|
|
<template v-if="activeName == 0">
|
|
<template v-if="activeName == 0">
|
|
|
<el-form ref="ruleFormRef" :model="ruleForm" :rules="rules" label-width="auto">
|
|
<el-form ref="ruleFormRef" :model="ruleForm" :rules="rules" label-width="auto">
|
|
|
<el-form-item :label="`${$t('personalCenter.gongdanleixing')}`" prop="issueCategory">
|
|
<el-form-item :label="`${$t('personalCenter.gongdanleixing')}`" prop="issueCategory">
|
|
|
- <el-select v-model="ruleForm.issueCategory" :placeholder="`${$t('personalCenter.gongdanleixing_placeholder')}`"
|
|
|
|
|
- style="width: 100%">
|
|
|
|
|
|
|
+ <el-select v-model="ruleForm.issueCategory"
|
|
|
|
|
+ :placeholder="`${$t('personalCenter.gongdanleixing_placeholder')}`" style="width: 100%">
|
|
|
<el-option v-for="item in workTypeList" :key="item.value" :label="`${$t(item.label)}`"
|
|
<el-option v-for="item in workTypeList" :key="item.value" :label="`${$t(item.label)}`"
|
|
|
:value="item.value" />
|
|
:value="item.value" />
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item :label="`${$t('personalCenter.gongdanbiaoti')}`" prop="issueTitle">
|
|
<el-form-item :label="`${$t('personalCenter.gongdanbiaoti')}`" prop="issueTitle">
|
|
|
- <el-input v-model="ruleForm.issueTitle" :placeholder="`${$t('personalCenter.gongdanbiaoti_placeholder')}`" />
|
|
|
|
|
|
|
+ <el-input v-model="ruleForm.issueTitle"
|
|
|
|
|
+ :placeholder="`${$t('personalCenter.gongdanbiaoti_placeholder')}`" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item :label="`${$t('personalCenter.gongdanneirong')}`" prop="issueContent">
|
|
<el-form-item :label="`${$t('personalCenter.gongdanneirong')}`" prop="issueContent">
|
|
|
- <el-input v-model="ruleForm.issueContent" :placeholder="`${$t('personalCenter.gongdanneirong_placeholder')}`" :rows="10"
|
|
|
|
|
- type="textarea" />
|
|
|
|
|
|
|
+ <el-input v-model="ruleForm.issueContent"
|
|
|
|
|
+ :placeholder="`${$t('personalCenter.gongdanneirong_placeholder')}`" :rows="10" type="textarea" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</template>
|
|
</template>
|
|
@@ -138,8 +139,50 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<div class="work-content">
|
|
<div class="work-content">
|
|
|
- <img v-if="activeName == 2" src="/src/assets/imgs/my/A@2x.png" alt="">
|
|
|
|
|
- <div class="">{{ item.issueContent || item.answer }}</div>
|
|
|
|
|
|
|
+ <template v-if="activeName == 2">
|
|
|
|
|
+ <img src="/src/assets/imgs/my/A@2x.png" alt="">
|
|
|
|
|
+ <div class="">{{ item.issueContent || item.answer }}</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <el-descriptions style="width: 100%;" class="margin-top" :column="2" border v-else label-width="auto">
|
|
|
|
|
+ <el-descriptions-item>
|
|
|
|
|
+ <template #label>
|
|
|
|
|
+ <div class="cell-item">{{ $t('personalCenter.gongdanbianhao') }}</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ {{ item.issueNo }}
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item>
|
|
|
|
|
+ <template #label>
|
|
|
|
|
+ <div class="cell-item">{{ $t('personalCenter.gongdanzhuangtai') }}</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <el-tag :type="item.issueStatus == 2 ? 'success' : 'primary'">{{ item.issueStatus == 0 ? $t('personalCenter.daijiejue') : item.issueStatus == 2 ? $t('personalCenter.yijiejue') : '' }}</el-tag>
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item>
|
|
|
|
|
+ <template #label>
|
|
|
|
|
+ <div class="cell-item">{{ $t('personalCenter.gongdanleixing') }}</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ {{ $t(getName(item.issueCategory)) }}
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item>
|
|
|
|
|
+ <template #label>
|
|
|
|
|
+ <div class="cell-item">{{ $t('personalCenter.gongdanbiaoti') }}</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ {{ item.issueTitle }}
|
|
|
|
|
+
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item :span="2">
|
|
|
|
|
+ <template #label>
|
|
|
|
|
+ <div class="cell-item">{{ $t('personalCenter.gongdanneirong') }}</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ {{ item.issueContent }}
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ <el-descriptions-item :span="2" v-if="item.issueStatus == 2">
|
|
|
|
|
+ <template #label>
|
|
|
|
|
+ <div class="cell-item">{{ $t('personalCenter.gongdanhuifu') }}</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ {{ item.remark }}
|
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
|
+ </el-descriptions>
|
|
|
</div>
|
|
</div>
|
|
|
</el-collapse-item>
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
</el-collapse>
|
|
@@ -213,8 +256,8 @@
|
|
|
<el-row :gutter="16">
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t('personalCenter.loginEmail')">
|
|
<el-form-item :label="$t('personalCenter.loginEmail')">
|
|
|
- <el-input v-model="userInfo.email" :placeholder="$t('workflowTradeAdd.placeholderEmail')" class="inputStyle"
|
|
|
|
|
- :input-style="{
|
|
|
|
|
|
|
+ <el-input v-model="userInfo.email" :placeholder="$t('workflowTradeAdd.placeholderEmail')"
|
|
|
|
|
+ class="inputStyle" :input-style="{
|
|
|
backgroundColor: 'transparent',
|
|
backgroundColor: 'transparent',
|
|
|
}" :disabled="appStore?.userInfo?.email ? true : false" />
|
|
}" :disabled="appStore?.userInfo?.email ? true : false" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -239,11 +282,11 @@
|
|
|
<el-row :gutter="16">
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t('personalCenter.n8nAccout')">
|
|
<el-form-item :label="$t('personalCenter.n8nAccout')">
|
|
|
- <el-input readonly v-model="userInfo.name" :placeholder="$t('personalCenter.createN8n')" class="inputStyle"
|
|
|
|
|
- :input-style="{
|
|
|
|
|
|
|
+ <el-input readonly v-model="userInfo.n8nAccount" :placeholder="$t('personalCenter.createN8n')"
|
|
|
|
|
+ class="inputStyle" :input-style="{
|
|
|
backgroundColor: 'transparent',
|
|
backgroundColor: 'transparent',
|
|
|
}">
|
|
}">
|
|
|
- <template #append v-if="appStore?.userInfo?.email && !appStore?.userInfo?.name">
|
|
|
|
|
|
|
+ <template #append v-if="appStore?.userInfo?.email && !appStore?.userInfo?.n8nAccount">
|
|
|
<el-tooltip class="box-item" effect="dark" :content="$t('personalCenter.ceraten8n')" placement="top">
|
|
<el-tooltip class="box-item" effect="dark" :content="$t('personalCenter.ceraten8n')" placement="top">
|
|
|
<el-button @click="createAi('0')" :icon="Refresh" />
|
|
<el-button @click="createAi('0')" :icon="Refresh" />
|
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
@@ -253,7 +296,7 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t('personalCenter.n8nPassword')">
|
|
<el-form-item :label="$t('personalCenter.n8nPassword')">
|
|
|
- <el-input v-model="userInfo.userPhone" :placeholder="$t('common.placeholderInput')" class="inputStyle"
|
|
|
|
|
|
|
+ <el-input v-model="userInfo.n8nPassword" :placeholder="$t('personalCenter.createN8n')" class="inputStyle"
|
|
|
:input-style="{
|
|
:input-style="{
|
|
|
backgroundColor: 'transparent',
|
|
backgroundColor: 'transparent',
|
|
|
}" readonly type="password" show-password />
|
|
}" readonly type="password" show-password />
|
|
@@ -264,11 +307,11 @@
|
|
|
<el-row :gutter="16">
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t('personalCenter.cozeAccout')">
|
|
<el-form-item :label="$t('personalCenter.cozeAccout')">
|
|
|
- <el-input v-model="userInfo.name" :placeholder="$t('personalCenter.createCoze')" class="inputStyle"
|
|
|
|
|
- :input-style="{
|
|
|
|
|
|
|
+ <el-input readonly v-model="userInfo.cozeAccount" :placeholder="$t('personalCenter.createCoze')"
|
|
|
|
|
+ class="inputStyle" :input-style="{
|
|
|
backgroundColor: 'transparent',
|
|
backgroundColor: 'transparent',
|
|
|
}">
|
|
}">
|
|
|
- <template #append>
|
|
|
|
|
|
|
+ <template #append v-if="appStore?.userInfo?.email && !appStore?.userInfo?.cozeAccount">
|
|
|
<el-tooltip class="box-item" effect="dark" :content="$t('personalCenter.ceratenCoze')"
|
|
<el-tooltip class="box-item" effect="dark" :content="$t('personalCenter.ceratenCoze')"
|
|
|
placement="top">
|
|
placement="top">
|
|
|
<el-button @click="createAi('1')" :icon="Refresh" />
|
|
<el-button @click="createAi('1')" :icon="Refresh" />
|
|
@@ -280,8 +323,8 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t('personalCenter.cozePassword')">
|
|
<el-form-item :label="$t('personalCenter.cozePassword')">
|
|
|
- <el-input v-model="userInfo.name" :placeholder="$t('common.placeholderInput')" class="inputStyle"
|
|
|
|
|
- :input-style="{
|
|
|
|
|
|
|
+ <el-input v-model="userInfo.cozePassword" :placeholder="$t('personalCenter.createCoze')"
|
|
|
|
|
+ class="inputStyle" :input-style="{
|
|
|
backgroundColor: 'transparent',
|
|
backgroundColor: 'transparent',
|
|
|
}" readonly type="password" show-password />
|
|
}" readonly type="password" show-password />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -290,11 +333,11 @@
|
|
|
<el-row :gutter="16">
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t('personalCenter.difyAccout')">
|
|
<el-form-item :label="$t('personalCenter.difyAccout')">
|
|
|
- <el-input v-model="userInfo.name" :placeholder="$t('personalCenter.createDify')" class="inputStyle"
|
|
|
|
|
- :input-style="{
|
|
|
|
|
|
|
+ <el-input readonly v-model="userInfo.difyAccount" :placeholder="$t('personalCenter.createDify')"
|
|
|
|
|
+ class="inputStyle" :input-style="{
|
|
|
backgroundColor: 'transparent',
|
|
backgroundColor: 'transparent',
|
|
|
}">
|
|
}">
|
|
|
- <template #append>
|
|
|
|
|
|
|
+ <template #append v-if="appStore?.userInfo?.email && !appStore?.userInfo?.difyAccount">
|
|
|
<el-tooltip class="box-item" effect="dark" :content="$t('personalCenter.ceratenDify')"
|
|
<el-tooltip class="box-item" effect="dark" :content="$t('personalCenter.ceratenDify')"
|
|
|
placement="top">
|
|
placement="top">
|
|
|
<el-button @click="createAi('2')" :icon="Refresh" />
|
|
<el-button @click="createAi('2')" :icon="Refresh" />
|
|
@@ -305,8 +348,8 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t('personalCenter.difyPassword')">
|
|
<el-form-item :label="$t('personalCenter.difyPassword')">
|
|
|
- <el-input v-model="userInfo.name" :placeholder="$t('common.placeholderInput')" class="inputStyle"
|
|
|
|
|
- :input-style="{
|
|
|
|
|
|
|
+ <el-input v-model="userInfo.difyPassword" :placeholder="$t('personalCenter.createDify')"
|
|
|
|
|
+ class="inputStyle" :input-style="{
|
|
|
backgroundColor: 'transparent',
|
|
backgroundColor: 'transparent',
|
|
|
}" readonly type="password" show-password />
|
|
}" readonly type="password" show-password />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -316,11 +359,11 @@
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t('personalCenter.fastGptAccout')">
|
|
<el-form-item :label="$t('personalCenter.fastGptAccout')">
|
|
|
- <el-input v-model="userInfo.name" :placeholder="$t('personalCenter.createFastGpt')" class="inputStyle"
|
|
|
|
|
- :input-style="{
|
|
|
|
|
|
|
+ <el-input readonly v-model="userInfo.fastGptAccount" :placeholder="$t('personalCenter.createFastGpt')"
|
|
|
|
|
+ class="inputStyle" :input-style="{
|
|
|
backgroundColor: 'transparent',
|
|
backgroundColor: 'transparent',
|
|
|
}">
|
|
}">
|
|
|
- <template #append>
|
|
|
|
|
|
|
+ <template #append v-if="appStore?.userInfo?.email && !appStore?.userInfo?.fastGptAccount">
|
|
|
<el-tooltip class="box-item" effect="dark" :content="$t('personalCenter.ceratenFastGpt')"
|
|
<el-tooltip class="box-item" effect="dark" :content="$t('personalCenter.ceratenFastGpt')"
|
|
|
placement="top">
|
|
placement="top">
|
|
|
<el-button @click="createAi('3')" :icon="Refresh" />
|
|
<el-button @click="createAi('3')" :icon="Refresh" />
|
|
@@ -332,8 +375,8 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item :label="$t('personalCenter.fastGptPassword')">
|
|
<el-form-item :label="$t('personalCenter.fastGptPassword')">
|
|
|
- <el-input v-model="userInfo.name" :placeholder="$t('common.placeholderInput')" class="inputStyle"
|
|
|
|
|
- :input-style="{
|
|
|
|
|
|
|
+ <el-input v-model="userInfo.fastGptPassword" :placeholder="$t('personalCenter.createFastGpt')"
|
|
|
|
|
+ class="inputStyle" :input-style="{
|
|
|
backgroundColor: 'transparent',
|
|
backgroundColor: 'transparent',
|
|
|
}" readonly type="password" show-password />
|
|
}" readonly type="password" show-password />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -527,6 +570,16 @@ const workTypeList = ref([
|
|
|
label: 'personalCenter.qitawenti'
|
|
label: 'personalCenter.qitawenti'
|
|
|
}
|
|
}
|
|
|
])
|
|
])
|
|
|
|
|
+// 获取工单分类
|
|
|
|
|
+const getName = (value) =>{
|
|
|
|
|
+ let txt = ''
|
|
|
|
|
+ workTypeList.value.forEach(item=>{
|
|
|
|
|
+ if (item.value == value) {
|
|
|
|
|
+ txt = item.label
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ return txt
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
const ruleForm = ref<RuleForm>({
|
|
const ruleForm = ref<RuleForm>({
|
|
|
issueCategory: '',
|
|
issueCategory: '',
|
|
@@ -543,10 +596,10 @@ const rules = ref<FormRules<RuleForm>>({
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
issueTitle: [
|
|
issueTitle: [
|
|
|
- { required: true, message: t('personalCenter.gongdanbiaoti_placeholder'), trigger: 'blur' },
|
|
|
|
|
|
|
+ { required: true, message: t('personalCenter.gongdanbiaoti_placeholder'), trigger: 'blur' },
|
|
|
],
|
|
],
|
|
|
issueContent: [
|
|
issueContent: [
|
|
|
- { required: true, message: t('personalCenter.gongdanneirong_placeholder'), trigger: 'blur' },
|
|
|
|
|
|
|
+ { required: true, message: t('personalCenter.gongdanneirong_placeholder'), trigger: 'blur' },
|
|
|
],
|
|
],
|
|
|
nickName: [
|
|
nickName: [
|
|
|
{
|
|
{
|
|
@@ -622,13 +675,13 @@ const createAi = async (creatFlag) => {
|
|
|
const sendSmsCode = async () => {
|
|
const sendSmsCode = async () => {
|
|
|
let account = appStore?.userInfo?.userPhone ? userInfo.value.email : userInfo.value.userPhone
|
|
let account = appStore?.userInfo?.userPhone ? userInfo.value.email : userInfo.value.userPhone
|
|
|
if (!account) {
|
|
if (!account) {
|
|
|
- DGTMessage.warning( appStore?.userInfo?.userPhone ? t('workflowTradeAdd.placeholderEmail') : t('workflowTradeAdd.placeholderPhoneNumber'))
|
|
|
|
|
|
|
+ DGTMessage.warning(appStore?.userInfo?.userPhone ? t('workflowTradeAdd.placeholderEmail') : t('workflowTradeAdd.placeholderPhoneNumber'))
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 验证手机号格式
|
|
// 验证手机号格式
|
|
|
if (!PHONE_REGEX.test(account) && !EMAIL_REGEX.test(account)) {
|
|
if (!PHONE_REGEX.test(account) && !EMAIL_REGEX.test(account)) {
|
|
|
- DGTMessage.warning( appStore?.userInfo?.userPhone ? t('common.pleaseInputRightEmail') : t('common.pleaseInputRightPhoneNumber'))
|
|
|
|
|
|
|
+ DGTMessage.warning(appStore?.userInfo?.userPhone ? t('common.pleaseInputRightEmail') : t('common.pleaseInputRightPhoneNumber'))
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -648,7 +701,7 @@ const sendSmsCode = async () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 模拟发送验证码
|
|
// 模拟发送验证码
|
|
|
- ElMessage.success(t('login.captchaSendSuccess'))
|
|
|
|
|
|
|
+ DGTMessage.success(t('login.captchaSendSuccess'))
|
|
|
|
|
|
|
|
// 开始倒计时
|
|
// 开始倒计时
|
|
|
smsCountdown.value = 60
|
|
smsCountdown.value = 60
|