三七 1 месяц назад
Родитель
Сommit
b5dd7634a1
2 измененных файлов с 25 добавлено и 3 удалено
  1. 22 1
      src/views/his/company/index.vue
  2. 3 2
      src/views/system/config/config.vue

+ 22 - 1
src/views/his/company/index.vue

@@ -282,7 +282,22 @@
 <!--                              end: '24:00'-->
 <!--                            }"></el-time-select>-->
 <!--      </el-form-item>-->
-        <el-form-item label="服务号点播配置" prop="courseMaAppId">
+      <el-form-item label="自定义小程序" prop="customMiniAppId">
+        <el-select
+          v-model="form.customMiniAppId"
+          placeholder="请选择自定义小程序"
+          clearable
+          size="small"
+        >
+          <el-option
+            v-for="item in customAppList"
+            :key="item.appId"
+            :label="item.appName"
+            :value="item.appId"
+          />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="服务号点播配置" prop="courseMaAppId">
           <el-select
             v-model="form.courseMaAppId"
             placeholder="请选择服务号"
@@ -469,6 +484,7 @@ export default {
       // 表单参数
       form: {
         restartTime: '13:10',
+        customMiniAppId:null,
         courseMaAppId: null,
         courseMiniAppId: null,
         miniAppMaster: [],
@@ -542,6 +558,7 @@ export default {
      },
       maAppList: [],
       miniAppList: [],
+      customAppList: [],
     };
   },
   created() {
@@ -733,6 +750,7 @@ export default {
     getAppList() {
       this.maAppList = []
       this.miniAppList = []
+      this.customAppList = []
       const key = "courseMa.config"
       getConfigByKey(key).then(response => {
         const {code,data} = response
@@ -746,6 +764,9 @@ export default {
             this.miniAppList = appList.filter(v => v.type === '1').map(v => {
               return { appId: v.appid, appName: v.name }
             })
+            this.customAppList = appList.filter(v => v.type === '3').map(v => {
+              return { appId: v.appid, appName: v.name }
+            })
           }
         }
       })

+ 3 - 2
src/views/system/config/config.vue

@@ -1304,16 +1304,17 @@
                  :disabled="!scope.row.editing">
                  <el-option label="小程序" value="1"></el-option>
                  <el-option label="服务号" value="2"></el-option>
+                 <el-option label="自定义" value="3"></el-option>
                </el-select>
              </template>
            </el-table-column>
            <el-table-column label="小程序原始ID" align="center" prop="username">
-             <template slot-scope="scope" v-if="scope.row.type == 1">
+             <template slot-scope="scope" v-if="scope.row.type == 1 || scope.row.type == 3 ">
                <el-input v-model="scope.row.username" placeholder="请输入原始ID" :disabled="!scope.row.editing" />
              </template>
            </el-table-column>
            <el-table-column label="小程序图标" align="center" prop="log">
-             <template slot-scope="scope" v-if="scope.row.type == 1">
+             <template slot-scope="scope" v-if="scope.row.type == 1 || scope.row.type == 3 ">
                <el-image v-if="!scope.row.editing && scope.row.log" :src="scope.row.log" :preview-src-list="[scope.row.log]" />
                <image-upload v-if="scope.row.editing" v-model="scope.row.log" :file-type='["png", "jpg", "jpeg"]' :limit="1"/>
              </template>