工作309:selectaccount方法接收值

<template><div><!--选择账号 选择账号的具体页面 选择添加账号--><el-button icon="el-icon-plus" size="medium" @click="open" :disabled="viewMode">添加账号</el-button><!--title表示标题 close表示取消--><el-dialog@open="open"title="选择账号":visible.sync="visible"@close="cancel"width="70%":append-to-body="true"><!--单选框和多选框选择 控制内容分类--><el-form ref="account" :model="query" label-width="140px"><el-form-item label="平台分类"><!-- <el-checkbox v-model="checked1" label="备选项1" border></el-checkbox><el-checkbox v-model="checked2" label="备选项2" border></el-checkbox> --><!--v-model默认绑定:value="query.content_type"  @change="query.content_type = $event.target.value"--><grid-radio@change="ListQuery"v-model="query.platrorm_channel":border="true":options="platform_category"/></el-form-item><el-form-item label="平台选择"><!--  <el-checkbox v-model="checked1" label="备选项1" border></el-checkbox><el-checkbox v-model="checked2" label="备选项2" border></el-checkbox> --><grid-radco@change="ListRuery"v-model="query.platform":border="true":options="this.description"/></el-form-item><el-form-item label="部门选择"><!-- <el-checkbox v-model="checked1" label="备选项1" border></el-checkbox><el-checkbox v-model="checked2" label="备选项2" border></el-checkbox> --><grid-radeo@change="ListCuery"v-model="query.department":border="true":options="this.departmentList2"/></el-form-item></el-form><div style="float: left;"><!--子代方法有一个·传值传向父级 onselect去接收这个值--><select-account  :checkedData.sync="checkedData1" @seletct="onSelect" /></div><div style="clear: both"></div><template v-slot:footer><el-button @click="cancel">取 消</el-button><el-button type="primary" @click="confirm">确 定</el-button></template></el-dialog></div>
</template><script>
import GridRadco from "@/component/radio/GridRadco";
import GridRadeo from "@/component/radio/GridRadeo";
import GridRadio from "@/component/radio/GridRadio";
import AccountCard from "./AccountCard";
import SelectAccount from "./SelectAccount";
import {getAction} from "@/api";export default {name: "AccountFilterSelect",/*引入三个组件*/components: { SelectAccount, AccountCard, GridRadio,GridRadeo,GridRadco },data() {return {departmentList2:[],description:[],visible: false,width: {label: 4,content: 20,},checkedData1:[],platform_category:[],query: {},/*传值传到当前的界面进行保存*/accountList: []};},props:["viewMode"],methods: {ListCuery(){getAction("/account/list",{query:{platrorm_channel: '',platrorm_category:'',department_id:this.query.department,},}).then(res=>{console.log(res)this.accountList=res.data})},ListRuery(){getAction("/account/list",{query:{platrorm_channel: '',platrorm_category:this.query.platform,department_id:'',},}).then(res=>{console.log(res)this.accountList=res.data})},ListQuery(){console.log(1)getAction("/account/list",{query:{platrorm_channel: this.query.platrorm_channel,platrorm_category:'',department_id:'',}}).then(res=>{console.log(res)this.accountList=res.data})},/*控制弹窗的开启 控制弹框得开启*/open() {this.checkedData1=[],this.query={}console.log(this)/*动态渲染content_type接口*/getAction("/dict/list",{dict_code: "platform_category"}).then(res=>{this.platform_category=res.dataconsole.log(this.platform_category)})/*动态渲染content_type接口*/getAction("/department/publish_permission",).then(res=>{console.log(res)this.departmentList2=res.data})getAction("/account/plugin_list").then(res=>{console.log(res)this.description=res.data})this.visible = true;},/*通过confirm'继续向上传值*/confirm() {this.$emit("select", this.accountList);this.close();},/*取消就调用close 点击close就将识别取消按钮*/cancel() {this.close();},/*定义一个close得 调用取消*/close() {this.$emit("close");this.visible = false;},onSelect(data){/*把子级传入的值*/console.log(data)this.accountList = data;}}
};
</script><style lang="scss" scoped></style>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/414120.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Invalid connection string format, a valid format is: host:port:sid

报错信息&#xff1a; Caused by: java.sql.SQLException: Io 异常: Invalid connection string format, a valid format is: "host:port:sid" at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.Databa…

Java代码优化

为什么要Java代码优化&#xff1f; 代码优化的最重要的作用应该是&#xff1a;避免未知的错误。在代码上线运行的过程中&#xff0c;往往会出现很多我们意想不到的错误&#xff0c;因为线上环境和开发环境是非常不同的&#xff0c;错误定位到最后往往是一个非常小的原因。因此&…

工作306:.sync解决子组件改变自身值 父组件也改变自身数值

Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-

修改MyEclipse/Eclipse左侧文字大小(MacOS/Windows)

一、Windows 首先找到 Eclipse/MyEclipse 的安装目录&#xff0c;然后找到如下目录&#xff1a; \plugins\org.eclipse.ui.themes_1.1.200.v20160815-0536\css\e4_basestyle.css 修改此 css 文件&#xff0c;添加如下内容&#xff1a; CTabFolder Tree{ font-size: 12px;} 二…

Kubernetes tutorial - K8S 官方入门教程

tutorials 教程 kubectl 的命令手册 1 Creating a Cluster 1.1 Using Minikube to Create a Cluster Kubernetes Clusters Kubernetes coordinates a highly available cluster of computers that are connected to work as a single unit. The abstractions in Kubernetes all…

前端js判空处理,js字符串判空,js数组判空

1、字符串 在 js 中&#xff0c;字符串为空会有这么几种形式&#xff0c;""&#xff0c;null&#xff0c;undefined&#xff0c;如果在已知变量为空串的情况下可以直接采用 if (string.length 0) 这种形式&#xff0c;今天总结一下常用的几种方法&#xff0c;方便下…

前端学习(2846):css浮动和定位布局

<< 我们一起来做秒杀 >>一、css浮动 float none left rightclearnone both left right二、css定位#div_test{position:relative;top:20px;left:30px;z-index:10; }#div_test2{position:absolute;top:20px;left:30px;z-index:-10; }

uniapp增加百度统计代码(h5)

做了个微信公众号文章互相阅读的h5界面&#xff0c;http://mptask.wintp.top/&#xff08;只能微信浏览器打开&#xff09;&#xff0c;其中用到了统计代码&#xff0c;记录如下。 1、新建 tj.html 界面 可放置在项目的根目录&#xff0c;文件名称根据自己情况命名。 2、粘贴内…

前端学习(2847):css鼠标样式

<html><head><meta http-equiv"Content-Type" content"text/html; charsetutf-8" /><title>css鼠标样式</title></head><body><a href"####" style"cursor:pointer">hello world1<…

Java2017面试宝典--XML部分、 流行的框架与新技术、软件工程与设计模式、 j2ee部分、EBJ部分、 webservice部分...

1、xml有哪些解析技术?区别是什么? 答:有DOM,SAX,STAX等 DOM:处理大型文件时其性能下降的非常厉害。这个问题是由DOM的树结构所造成的&#xff0c;这种结构占用的内存较多&#xff0c;而且DOM必须在解析文件之前把整个文档装入内存,适合对XML的随机访问SAX:不现于DOM,SAX是事…

SpringBoot如何切换Redis默认库

一些闲扯的话 我们清楚&#xff0c;Redis 尽管提供了 16 个索引库&#xff0c;但是每个数据库之间是隔离互不共享的&#xff0c;客户端默认连接使用的是 0 号数据库 。 注意&#xff1a;上方情况是基于单机 Redis 的&#xff0c;在集群模式下是没有多数据库概念的&#xff0c;只…

前端学习(2848):鼠标点击事件

<< 一起来做秒杀活动 >>一、分类 一般事件 页面相关事件 表单相关事件 滚动字幕事件 编辑事件 外部事件二、常用事件 示例 onclick onmouseover onmouseout onkeydown onerror onloadonsubmit onblur onfocus

我认为最节省时间的CSS命名规范

CSS命名规范一 js中对变量的命名最好使用camel case驼峰式命名法&#xff0c;但CSS中更适用于red-box命名规范。 CSS命名规范二 BEM命名规范 B>block E>element M>modifier 1.组件的子组件 用两条下划线命名 stick-man__head 2.对组件的修饰 用两条短线命名 stick-man…

2019年终总结-2020展望「持续更新至31号」

粗略的统计了一下&#xff0c;2019 在博客园发布了约 140 篇文章&#xff0c;写文章有一段时间了&#xff0c;最开始的初衷就是记录自己平时开发遇到的 Bug&#xff0c;能更快捷的调取笔记&#xff1b; 写着写着&#xff0c;迎来了第 52 个关注者… 2019 或许是自己最艰难的一年…

前端学习(2849):简单秒杀学习之浮动

1浮动和不浮动 2下移和卡住 3环绕 4清除浮动 5浮动实际应用

mac 删除垃圾篓中的文件

1.打开终端输入&#xff1a; sudo rm -rf /Volumes/kaid/.Trashes/ 2.输入本机密码 转载于:https://www.cnblogs.com/kaid/p/9004495.html

前端学习(2850):简单秒杀系统学习之绝对定位

<html><head><meta http-equiv"Content-Type" content"text/html; charsetutf-8" /><title>CSS绝对定位</title><style type"text/css">div{background-color: Red;width: 30px;height: 30px;}#box_relativ…

「声明」本博客自动采集于博客园-niceyoo

开启了 CSDN 的博客搬家功能&#xff0c;自动同步博客园的文章信息。 所以本博客200篇文章有时不予回复、望体谅。 博客园链接&#xff1a;https://www.cnblogs.com/niceyoo

django channels

一直都是用HTTP请求糊里糊涂的实现了一次请求&#xff0c;一次响应。最近尝试用Django这种框架实现websocket&#xff0c;用的是Django channels&#xff0c;结合官网给的例子&#xff0c;实现了日志动态展示到页面。源码地址: 但是对于其原理&#xff0c;却想研究一番。 先看一…