Jelajahi Sumber

1.提交ai客服夜间不回复设置

jzp 1 hari lalu
induk
melakukan
3d3c1191fe
1 mengubah file dengan 30 tambahan dan 9 penghapusan
  1. 30 9
      src/views/fastGpt/fastGptRole/fastGptRoleUpdate.vue

+ 30 - 9
src/views/fastGpt/fastGptRole/fastGptRoleUpdate.vue

@@ -41,20 +41,37 @@
       </el-form-item>
 
       <el-form-item label="物流提醒" prop="logistics">
-        <el-select v-model="form.logistics" placeholder="请选择类型" clearable size="small" style="width: 150px" >
-          <el-option
-            v-for="item in logisticsOptions"
-            :key="item.value"
-            :label="item.label"
-            :value="item.value"
-          />
-        </el-select>
+        <el-switch
+          v-model="form.logistics"
+          :active-value="1"
+          :inactive-value="0"
+          active-text="是"
+          inactive-text="否"
+          active-color="#13ce66"
+          inactive-color="#ff4949"
+        />
         <div style="color: #999;font-size: 14px;display: flex;align-items: center;">
           <i class="el-icon-info"></i>
           AI是否主动发送物流信息,发货和到货的时候会提醒用户
         </div>
       </el-form-item>
 
+      <el-form-item label="禁止夜间回复" prop="forbidStatus">
+        <el-switch
+          v-model="form.forbidStatus"
+          :active-value="1"
+          :inactive-value="0"
+          active-text="是"
+          inactive-text="否"
+          active-color="#13ce66"
+          inactive-color="#ff4949"
+        />
+        <div style="color: #999;font-size: 14px;display: flex;align-items: center;">
+          <i class="el-icon-info"></i>
+          AI是否规定时间内不回复消息,默认为开启,在结束时间后再进行最后一条消息回复,关闭后一天24小时都进行回复
+        </div>
+      </el-form-item>
+
       <el-form-item label="客服头像" prop="avatar">
         <ImageUpload v-model="form.avatar" type="image" :num="1" :width="150" :height="150" style="margin-top: 1%;" />
       </el-form-item>
@@ -318,7 +335,8 @@ export default {
         avatar: null,
         kfMediaId: null,
         channelType: null,
-        logistics: null
+        logistics: null,
+        forbidStatus: null,
       },
       // 表单参数
       form: {
@@ -340,6 +358,9 @@ export default {
         logistics: [
           { required: true, message: "物流提醒不能为空", trigger: "change" }
         ],
+        forbidStatus: [
+          { required: true, message: "禁止夜间回复不能为空", trigger: "change" }
+        ],
       },
       tagsFormRules:{
         tagIds:[