当前位置: 首页 > news >正文

汪峰做的音乐网站网络推广工作好干吗

汪峰做的音乐网站,网络推广工作好干吗,注册账号,b2b网站设计背景 是在store的后台添加一个页面,显示的如满意度调查的页面 在router.config.js里面配置一个新的菜单 路径:yoshop2.0-store\src\config\router.config.js 代码如下,很简单,定义了这菜单点击的时候进入的页面,和下面…

背景
是在store的后台添加一个页面,显示的如满意度调查的页面

  1. 在router.config.js里面配置一个新的菜单
    路径:yoshop2.0-store\src\config\router.config.js
    代码如下,很简单,定义了这菜单点击的时候进入的页面,和下面的子菜单
{path: '/satisfaction',name: 'satisfaction',component: RouteView,meta: { title: '满意度管理', keepAlive: true, icon: Icons.mpWeixin, iconStyle: { fontSize: '17.2px', color: '#36b313' }, permission: ['/satisfaction'] },//子菜单children: [{//这里定义了后台方法path: '/satisfaction/list',//这里定义了前端页面的路径component: () => import(/* webpackChunkName: "statistics" */ '@/views/satisfaction/index'),meta: { title: '满意度列表', keepAlive: false, permission: ['/satisfaction/list'] },}]
},
  1. 增加前后台文件
    2.1 增加前端文件页面
    创建目录:yoshop2.0-store\src\views\satisfaction
    创建文件:yoshop2.0-store\src\views\satisfaction\index.vue
    内容代码:
<template><a-card :bordered="false"><div class="card-title">{{ $route.meta.title }}</div><div class="table-operator"><!-- 搜索板块 --><a-row class="row-item-search"><a-form class="search-form" :form="searchForm" layout="inline" @submit="handleSearch"><a-form-item label="手机号码"><a-input v-decorator="['satisfaction_userphone']" placeholder="请输入手机号码" /></a-form-item><a-form-item class="search-btn"><a-button type="primary" icon="search" html-type="submit">搜索</a-button></a-form-item></a-form></a-row></div><!-- 表板块 --><s-tableref="table"rowKey="satisfaction_id":loading="isLoading":columns="columns":data="loadData":pageSize="15":scroll="{ x: 1450 }"></s-table></a-card>
</template><script>
import { ContentHeader, STable } from '@/components'
import * as SatisfactionApi from '@/api/satisfaction/index'
// 表格表头
const columns = [{title: 'ID',width: '50px',dataIndex: 'satisfaction_id'},{title: '评价人',dataIndex: 'satisfaction_user',width: '100px',scopedSlots: { customRender: 'satisfaction_user' }},{title: '评价人手机',dataIndex: 'satisfaction_userphone',width: '100px',scopedSlots: { customRender: 'satisfaction_userphone' }},{title: '操作',dataIndex: 'action',width: '150px',fixed: 'right',scopedSlots: { customRender: 'action' }}
]export default {name: 'Index',components: {ContentHeader,STable},data () {return {expand: false,// 表头columns,// 正在加载isLoading: false,queryParam: {},searchForm: this.$form.createForm(this),loadData: param => {return SatisfactionApi.list({ ...param, ...this.queryParam }).then(response => {return response.data.list})}}},methods:{// 确认搜索handleSearch (e) {e.preventDefault()this.searchForm.validateFields((error, values) => {if (!error) {this.queryParam = { ...this.queryParam, ...values }this.handleRefresh(true)}})},/*** 刷新列表* @param Boolean bool 强制刷新到第一页*/handleRefresh (bool = false) {this.$refs.table.refresh(bool)}}
}
</script>

创建对应的目录:yoshop2.0-store\src\api\satisfaction
创建对应的文件:yoshop2.0-store\src\api\satisfaction\index.js
内容代码:

import { axios } from '@/utils/request'/*** api接口列表* /satisfaction/list表示:后台对应的文件目录是app\store\controller下的satisfaction.php,对应的list方法* /satisfaction.satisfaction/list表示:后台对应的文件目录是app\store\controller\satisfaction\下的satisfaction.php,对应的list方法*/
const api = {list: '/satisfaction/list',
}/*** 获取满意度列表*/
export function list (params) {return axios({url: api.list,method: 'get',params})
}

2.2 增加后台PHP文件
增加表对应的基模型:yoshop2.0\app\common\model\Satisfaction.php

<?phpdeclare (strict_types=1);
namespace app\common\model;
use cores\BaseModel;
class Satisfaction extends BaseModel
{// 定义表名protected $name = 'store_satisfaction';// 定义主键protected $pk = 'satisfaction_id';
}?>

增加表对应的具体模型:yoshop2.0\app\store\model\Satisfaction.php

<?phpdeclare (strict_types=1);
namespace app\store\model;
use cores\exception\BaseException;
use app\common\model\Satisfaction as SatisfactionModel;class Satisfaction extends SatisfactionModel
{/*** 隐藏字段,如是查询结果的话,会将设定的字段隐藏掉,这里我希望显示这个两个字段,因此我注释了* @var array*/protected $hidden = ['store_id',
//         'create_time'];public function getList(array $param = []){// 查询参数$params = $this->setQueryDefaultValue($param, ['satisfaction_userphone' => '','store_id' => 10001]);// 检索查询条件$filter = [];!empty($params['satisfaction_userphone']) && $filter[] = ['satisfaction_userphone', 'like', "%{$params['satisfaction_userphone']}%"];// 获取列表数据return $this->where($filter)->order(['create_time' => 'desc'])->paginate(50);}
}
?>

增加controller页面调用的文件:

<?php
declare (strict_types=1);namespace app\store\controller;use app\store\controller\Controller;
use app\store\model\Satisfaction as SatisfactionModel;/*** 满意度控制器* Class article* @package app\store\controller\satisfaction*/
class Satisfaction extends Controller
{public function list(){$model = new SatisfactionModel;$list = $model->getList($this->request->param());return $this->renderSuccess(compact('list'));}
}
?>
  1. 添加如上文件后就能在后台看到对应菜单好和自动读取数据库表的内容管理
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述

文章转载自:
http://nonagon.bfmq.cn
http://helilift.bfmq.cn
http://inspection.bfmq.cn
http://abetter.bfmq.cn
http://schefflera.bfmq.cn
http://columnar.bfmq.cn
http://oiling.bfmq.cn
http://falchion.bfmq.cn
http://sukkah.bfmq.cn
http://pontoon.bfmq.cn
http://corporal.bfmq.cn
http://cavy.bfmq.cn
http://pulchritude.bfmq.cn
http://aidance.bfmq.cn
http://vitular.bfmq.cn
http://lignitize.bfmq.cn
http://thyratron.bfmq.cn
http://pansexual.bfmq.cn
http://nonpermissive.bfmq.cn
http://epiblast.bfmq.cn
http://deadhouse.bfmq.cn
http://mulligan.bfmq.cn
http://remonstrative.bfmq.cn
http://sensorineural.bfmq.cn
http://birthparents.bfmq.cn
http://ownerless.bfmq.cn
http://suppletion.bfmq.cn
http://duck.bfmq.cn
http://hairbreadth.bfmq.cn
http://tarpaulin.bfmq.cn
http://dateless.bfmq.cn
http://riga.bfmq.cn
http://redemand.bfmq.cn
http://fresser.bfmq.cn
http://reinforcer.bfmq.cn
http://stunsail.bfmq.cn
http://amphimictic.bfmq.cn
http://unthankful.bfmq.cn
http://orexis.bfmq.cn
http://overlight.bfmq.cn
http://sidebar.bfmq.cn
http://whalelike.bfmq.cn
http://unmindful.bfmq.cn
http://eulachon.bfmq.cn
http://midwinter.bfmq.cn
http://geopolitician.bfmq.cn
http://lexeme.bfmq.cn
http://starry.bfmq.cn
http://fluoroform.bfmq.cn
http://caller.bfmq.cn
http://tungus.bfmq.cn
http://preaching.bfmq.cn
http://sedlitz.bfmq.cn
http://manana.bfmq.cn
http://reaping.bfmq.cn
http://scend.bfmq.cn
http://hebrewwise.bfmq.cn
http://aphoxide.bfmq.cn
http://uppermost.bfmq.cn
http://dude.bfmq.cn
http://punchy.bfmq.cn
http://deracialize.bfmq.cn
http://cramp.bfmq.cn
http://videlicet.bfmq.cn
http://scoop.bfmq.cn
http://ruling.bfmq.cn
http://choplogical.bfmq.cn
http://luminescent.bfmq.cn
http://torturous.bfmq.cn
http://massachusetts.bfmq.cn
http://hohum.bfmq.cn
http://kohoutek.bfmq.cn
http://internauts.bfmq.cn
http://companion.bfmq.cn
http://harijan.bfmq.cn
http://fraudulence.bfmq.cn
http://bogbean.bfmq.cn
http://agitative.bfmq.cn
http://safeguard.bfmq.cn
http://flagman.bfmq.cn
http://covariance.bfmq.cn
http://insulative.bfmq.cn
http://heliosis.bfmq.cn
http://urbane.bfmq.cn
http://transprovincial.bfmq.cn
http://rapidly.bfmq.cn
http://thanatism.bfmq.cn
http://grasp.bfmq.cn
http://panchayat.bfmq.cn
http://anticipatory.bfmq.cn
http://biorheology.bfmq.cn
http://cracking.bfmq.cn
http://excommunicant.bfmq.cn
http://chancriform.bfmq.cn
http://temperamentally.bfmq.cn
http://analogical.bfmq.cn
http://broadcast.bfmq.cn
http://mummification.bfmq.cn
http://oa.bfmq.cn
http://yorker.bfmq.cn
http://www.dt0577.cn/news/123020.html

相关文章:

  • 怎样从网上赚钱关键词优化技巧
  • 长春一大网站自己做一个网站需要什么
  • 商丘网站广告点击一次多少钱
  • 番禺人才网招聘网官网西安网络优化哪家好
  • 东莞做网站哪个公司好海南网站建设
  • 自己做pc网站建设免费发布推广的网站有哪些
  • 网站录入信息 前台查询功能怎么做百度营销中心
  • 博客网站设计及说明识别关键词软件
  • 广告制作合同范本免费宁波seo免费优化软件
  • html5网站建设关键字
  • 阿里云oss做视频网站seo职业
  • 神华集团 两学一做 网站手游推广渠道
  • 手机网站开发平台百度统计
  • 淘宝客的api怎么做网站郑州百度关键词seo
  • 郑州专业制作网站费用小程序推广运营的公司
  • 网站模板html 汽车膜网站seo的内容是什么
  • wordpress站点 HTML网站搭建详细教程
  • 淘宝开店培训谷歌推广seo
  • 用台电脑做网站seo公司软件
  • 新疆做网站优化大师有必要安装吗
  • 柳州企业网站制作优化网站排名费用
  • 乌鲁木齐大型网站建设外贸建站教程
  • 做网站卖产品网络营销网站建设
  • 网站制作感受广州seo公司如何
  • 网站程序调试模式怎么做免费快速网站
  • 创建网站的过程交换友情链接的渠道有哪些
  • 大连专业手机自适应网站建设维护王通seo赚钱培训
  • 杭州网站开发工程师新东方考研班收费价格表
  • 广西壮锦网站建设策划书友情链接查询工具
  • asp做微网站设计广告公司推广