ssm41471/src/main/webapp/front/pages/kechengxinxi/list.vue
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<template>
<mescroll-uni @init="mescrollInit" :up="upOption" :down="downOption" @down="downCallback" @up="upCallback">
<view class="cu-bar bg-white search" :style="[{top:CustomBar + 'px'}]">
<picker v-if="queryList.length>1" mode="selector" :range="queryList" range-key="queryName" :value="queryIndex" @change="queryChange" style="padding-left: 20upx;">
<view><image style="width: 20upx;height: 33upx;" src="../../static/center/to.png"></image></view>
</picker>
<view v-if="queryIndex==0" class="search-form round">
<text class="cuIcon-search"></text>
<input v-model="searchForm.jiaoshixingming" type="text" placeholder="教师姓名" ></input>
</view>
<view v-if="queryIndex==1" class="search-form round">
<text class="cuIcon-search"></text>
<input v-model="searchForm.kechengbianhao" type="text" placeholder="课程编号" ></input>
</view>
<view v-if="queryIndex==2" class="search-form round">
<text class="cuIcon-search"></text>
<input v-model="searchForm.kechengmingcheng" type="text" placeholder="课程名称" ></input>
</view>
<view class="action">
<button @tap="search" :style="{width:'180rpx',borderRadius:'20rpx',height:'88rpx',fontSize:'32rpx',color:'rgba(255, 255, 255, 1)',backgroundColor:btnColor[0],borderColor:btnColor[0]}" class="cu-btn shadow-blur round">搜索</button>
</view>
</view>
<view class="uni-product-list" :style='{"borderRadius":"0","backgroundColor":"rgba(255, 107, 19, 0)"}'>
<view @tap="onDetailTap(product)" class="uni-product" :style='{"borderRadius":"20rpx","backgroundColor":"rgba(255, 255, 255, 0.6)"}' v-for="(product,index) in list" :key="index">
<view class="uni-product-title" :style='{"fontSize":"32rpx","lineHeight":"100rpx","color":"rgba(255, 107, 19, 1)","textAlign":"center"}'>{{product.kechengmingcheng}}</view>
<view class="image-view">
<image :style='{"borderRadius":"20rpx","width":"100%","height":"100%"}' mode="aspectFill" class="uni-product-image" :src="product.tupian?product.tupian.split(',')[0]:''"></image>
</view>
<view style="display: flex;justify-content: space-between;">
<text v-if="isAuth('kechengxinxi','修改')" class="cuIcon-edit" @click.stop="onUpdateTap(product.id)">修改</text>
<text v-if="isAuth('kechengxinxi','删除')" class="cuIcon-delete" @click.stop="onDeleteTap(product.id)">删除</text>
</view>
</view>
</view>
<button :style='{"boxShadow":"0 0 0px rgba(0,0,0,0) inset","backgroundColor":"rgba(255, 107, 19, 1)","borderColor":"rgba(255, 107, 19, 1)","borderRadius":"20rpx","color":"#fff","borderWidth":"0","width":"100%","fontSize":"32rpx","borderStyle":"solid","height":"80rpx"}' v-if="isAuth('kechengxinxi','新增')" class="add-btn" @click="onAddTap()">新增</button>
</mescroll-uni>
</template>
<script>
export default {
data() {
return {
btnColor: ['#409eff','#67c23a','#909399','#e6a23c','#f56c6c','#356c6c','#351c6c','#f093a9','#a7c23a','#104eff','#10441f','#a21233','#503319'],
queryList:[
{
queryName:"教师姓名",
},
{
queryName:"课程编号",
},
{
queryName:"课程名称",
},
],
后面还有 251 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
