Commit 58176547 authored by Mac's avatar Mac

1

parent 0a5975d9
...@@ -6,19 +6,19 @@ ...@@ -6,19 +6,19 @@
</div> </div>
</div> --> </div> -->
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat wrap-cells='true'
class="sticky-column-table" separator="none" title="" :data="dataList" :columns="columns" class="sticky-column-table" separator="none" title="" :data="dataList" :columns="columns"
row-key="name"> row-key="name">
<template v-slot:body-cell-title="props"> <template v-slot:body-cell-title="props">
<q-td :props="props"> <q-td :props="props" style="max-width: 200px;">
<span>{{getType(props.row,'title')}}</span> <span>{{getType(props.row,'title')}}</span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-Content="props"> <template v-slot:body-cell-Content="props">
<q-td :props="props"> <q-td :props="props" style="max-width: 500px;">
<div style="width: 200px;"> <div >
<span v-if="props.row.Type==1">{{getType(props.row,'content')}}</span> <span v-if="props.row.Type==1">{{getType(props.row,'content')}}</span>
<q-img v-if="props.row.Type==2 || props.row.Type==3 || props.row.Type==6" <q-img v-if="props.row.Type==2 || props.row.Type==3 || props.row.Type==6"
:src="getType(props.row,'content')" style="width: 80px;height: 80px;border-radius: 6px;display: flex;"> :src="getType(props.row,'content')" style="width: 80px;height: 80px;border-radius: 6px;display: flex;">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="textmaterial" style="padding: 0;margin: 0;"> <div class="textmaterial" style="padding: 0;margin: 0;">
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table no-bottom-table" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table no-bottom-table" wrap-cells='true'
separator="none" title="" :data="dataList" :columns="columns" row-key="name"> separator="none" title="" :data="dataList" :columns="columns" row-key="name">
<template v-slot:top="props"> <template v-slot:top="props">
<div class="col-2 q-table__title"></div> <div class="col-2 q-table__title"></div>
...@@ -11,12 +11,12 @@ ...@@ -11,12 +11,12 @@
label="添加文本" @click="goadd()"></q-btn> label="添加文本" @click="goadd()"></q-btn>
</template> </template>
<template v-slot:body-cell-title="props"> <template v-slot:body-cell-title="props">
<q-td :props="props"> <q-td :props="props" style="max-width: 200px">
<span>{{props.row.TextModel && props.row.TextModel.Title?props.row.TextModel.Title:''}}</span> <span>{{props.row.TextModel && props.row.TextModel.Title?props.row.TextModel.Title:''}}</span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-Content="props"> <template v-slot:body-cell-Content="props">
<q-td :props="props"> <q-td :props="props" style="max-width: 500px;">
<span>{{props.row.TextModel && props.row.TextModel.Content?props.row.TextModel.Content:''}}</span> <span>{{props.row.TextModel && props.row.TextModel.Content?props.row.TextModel.Content:''}}</span>
</q-td> </q-td>
</template> </template>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
map-options /> map-options />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.Name" <q-input @keyup.enter.native="resetSearch" clearable standout="bg-primary text-white" v-model="msg.Content"
label="输入搜索内容" maxlength="20" /> label="输入搜索内容" maxlength="20" />
</div> </div>
</div> </div>
...@@ -189,6 +189,9 @@ ...@@ -189,6 +189,9 @@
}) })
}) })
.catch(err=>{
this.loading=false
})
}, },
changePage(e) { changePage(e) {
if(this.tabCheck==0 || this.tabCheck==4){ if(this.tabCheck==0 || this.tabCheck==4){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment