推送随手拍样式
This commit is contained in:
		| @@ -9,7 +9,7 @@ | |||||||
|           </template> |           </template> | ||||||
|           <template #right> |           <template #right> | ||||||
|             <el-input size="small" placeholder="搜索名称" v-model="search.name" clearable |             <el-input size="small" placeholder="搜索名称" v-model="search.name" clearable | ||||||
|             @clear="page.current = 1,search.name = '', getTableData()" |                       @clear="page.current = 1,search.name = '', getTableData()" | ||||||
|                       v-throttle="() => {page.current = 1, getTableData()}"/> |                       v-throttle="() => {page.current = 1, getTableData()}"/> | ||||||
|           </template> |           </template> | ||||||
|         </ai-search-bar> |         </ai-search-bar> | ||||||
| @@ -21,9 +21,10 @@ | |||||||
|                          active-color="#5088FF" inactive-color="#D0D4DC"></el-switch> |                          active-color="#5088FF" inactive-color="#D0D4DC"></el-switch> | ||||||
|             </template> |             </template> | ||||||
|           </el-table-column> |           </el-table-column> | ||||||
|           <el-table-column slot="miniappStatus" align="center" label="状态" width="150"> |           <el-table-column slot="miniappStatus" align="center" label="小程序状态" width="150"> | ||||||
|             <template v-slot="{ row }"> |             <template v-slot="{ row }"> | ||||||
|               <el-switch v-model="row.miniappStatus" @change="onMiniappStatusChange(row)" active-value="1" inactive-value="0" |               <el-switch v-model="row.miniappStatus" @change="onMiniappStatusChange(row)" active-value="1" | ||||||
|  |                          inactive-value="0" | ||||||
|                          active-color="#5088FF" inactive-color="#D0D4DC"></el-switch> |                          active-color="#5088FF" inactive-color="#D0D4DC"></el-switch> | ||||||
|             </template> |             </template> | ||||||
|           </el-table-column> |           </el-table-column> | ||||||
| @@ -32,6 +33,7 @@ | |||||||
|               <el-button type="text" @click="detail(row)">详情</el-button> |               <el-button type="text" @click="detail(row)">详情</el-button> | ||||||
|               <el-button type="text" @click="del(row)">删除</el-button> |               <el-button type="text" @click="del(row)">删除</el-button> | ||||||
|               <el-button type="text" @click="handleSystemInfo(row.id)">系统信息</el-button> |               <el-button type="text" @click="handleSystemInfo(row.id)">系统信息</el-button> | ||||||
|  |               <el-button type="text" @click="handlePush(row.id)">推送随手拍样式</el-button> | ||||||
|             </el-row> |             </el-row> | ||||||
|           </el-table-column> |           </el-table-column> | ||||||
|         </ai-table> |         </ai-table> | ||||||
| @@ -109,7 +111,8 @@ | |||||||
|           </el-radio-group> |           </el-radio-group> | ||||||
|         </el-form-item> |         </el-form-item> | ||||||
|         <el-form-item label="系统配置信息" prop="systemInfo"> |         <el-form-item label="系统配置信息" prop="systemInfo"> | ||||||
|           <el-input type="textarea" :rows="2" placeholder="请输入系统配置信息"  v-model="dialogForm.systemInfo" maxlength="200"></el-input> |           <el-input type="textarea" :rows="2" placeholder="请输入系统配置信息" v-model="dialogForm.systemInfo" | ||||||
|  |                     maxlength="200"></el-input> | ||||||
|         </el-form-item> |         </el-form-item> | ||||||
|       </el-form> |       </el-form> | ||||||
|     </ai-dialog> |     </ai-dialog> | ||||||
| @@ -124,7 +127,8 @@ | |||||||
|       </el-input> |       </el-input> | ||||||
|       <div id="searchPlaceOutput"/> |       <div id="searchPlaceOutput"/> | ||||||
|     </ai-dialog> |     </ai-dialog> | ||||||
|     <ai-dialog title="系统信息设置" :visible.sync="sysInfoDialog" width="600px" @onConfirm="submitSystemInfo" @closed="sysInfo={}"> |     <ai-dialog title="系统信息设置" :visible.sync="sysInfoDialog" width="600px" @onConfirm="submitSystemInfo" | ||||||
|  |                @closed="sysInfo={}"> | ||||||
|       <el-form size="small" label-width="140px"> |       <el-form size="small" label-width="140px"> | ||||||
|         <el-form-item label="页签标题"> |         <el-form-item label="页签标题"> | ||||||
|           <el-input v-model="sysInfo.title" placeholder="请输入..." clearable/> |           <el-input v-model="sysInfo.title" placeholder="请输入..." clearable/> | ||||||
| @@ -309,7 +313,7 @@ export default { | |||||||
|         } |         } | ||||||
|       }) |       }) | ||||||
|     }, |     }, | ||||||
|      |  | ||||||
|     add() { |     add() { | ||||||
|       this.dialogForm = {}; |       this.dialogForm = {}; | ||||||
|       this.dialog = true; |       this.dialog = true; | ||||||
| @@ -388,6 +392,13 @@ export default { | |||||||
|           this.sysInfoDialog = false |           this.sysInfoDialog = false | ||||||
|         } |         } | ||||||
|       }) |       }) | ||||||
|  |     }, | ||||||
|  |     handlePush(id) { | ||||||
|  |       this.instance.post("/app/appclapeventinfo/setAppWorkbench", null, {params: {id}}).then(res => { | ||||||
|  |         if (res?.code == 0) { | ||||||
|  |           this.$message.success("推送成功!") | ||||||
|  |         } | ||||||
|  |       }) | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   created() { |   created() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user