| | |
| | | <el-dialog :visible.sync="appDialogVisible" |
| | | :modal-append-to-body="false" :close-on-click-modal="false" |
| | | width="320px" |
| | | title="监管APP安卓版浏览器扫码下载"> |
| | | title="APP安卓版浏览器扫码下载"> |
| | | <div id="appcode" style="height: 200px;width: 200px"/> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | prefixUrl:process.env.IMG_API, |
| | | warnBJList: [], |
| | | warnBJVisible: false, |
| | | pageSize: 10, |
| | |
| | | methods: { |
| | | getAppCode(){ |
| | | const roles = this.roles |
| | | for (let role in roles){ |
| | | if(roles[role].name == '生产企业' || |
| | | roles[role].name == '销售企业'){ |
| | | this.appShow = false; |
| | | } |
| | | } |
| | | // for (let role in roles){ |
| | | // if(roles[role].name == '生产企业' || |
| | | // roles[role].name == '销售企业'){ |
| | | // this.appShow = false; |
| | | // } |
| | | // } |
| | | const _this = this |
| | | const params = {} |
| | | params['filetype'] = "监管" |
| | | params['filetype'] = "众泰APP" |
| | | newAppFile(params).then(response => { |
| | | const res = response.data; |
| | | if (res.code == 200) { |
| | | const result = res.result; |
| | | _this.appCode = result.fileurl |
| | | _this.appCode = this.prefixUrl + result.fileurl |
| | | } |
| | | }).catch(error => { |
| | | }) |