瀏覽代碼

修改模板规则推送购买数据内容

wjj 1 月之前
父節點
當前提交
a0d0118064
共有 1 個文件被更改,包括 7 次插入6 次删除
  1. 7 6
      src/views/qw/sopTemp/updateSopTemp.vue

+ 7 - 6
src/views/qw/sopTemp/updateSopTemp.vue

@@ -149,10 +149,7 @@
                                   <el-select  v-model="content.isBuy"
                                              placeholder="请选择" size="mini"
                                              style=" margin-right: 10px;" >
-                                    <el-option label="未购" :value="1"></el-option>
-                                    <el-option label="已购" :value="2"></el-option>
-                                    <el-option label="升单未购" :value="3"></el-option>
-                                    <el-option label="升单已购" :value="4"></el-option>
+                                    <el-option v-for="dict in orderBuyOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
                                   </el-select>
                                 </el-form-item>
                                 <el-form-item label="推送类别"  v-if="content.type == 6 ">
@@ -818,13 +815,17 @@ export default {
         gap: [
           {required: true, message: '间隔天数不能为空', trigger: 'blur'}
         ],
-      }
+      },
+      orderBuyOptions:[],
     };
   },
   created() {
     getRoles().then(res => {
       this.roles = res.data;
-    })
+    });
+    this.getDicts("upgrade_order_type").then(response => {
+      this.orderBuyOptions = response.data;
+    });
     this.getDicts("sys_qwSopAi_contentType").then(response => {
       this.sysQwSopAiContentType = response.data;
     });