mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
问题修改
This commit is contained in:
@@ -54,7 +54,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 搜索框及按钮 -->
|
<!-- 搜索框及按钮 -->
|
||||||
</div>
|
</div>
|
||||||
<a-alert style="width: 200px;position: fixed;top: 5%;left: 50%;margin-left: -100px;" message="最多推荐三个" type="success" closable v-show="toDisplay" :after-close="handleClose"/>
|
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
<div style="padding: 10px 35px">
|
<div style="padding: 10px 35px">
|
||||||
<a-table
|
<a-table
|
||||||
@@ -153,7 +152,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
if(state.count>=3){
|
if(state.count>=3){
|
||||||
if(record.recommendStatus!==1){
|
if(record.recommendStatus!==1){
|
||||||
alert('多了')
|
message.info('最多推荐三个')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -173,7 +172,6 @@ export default defineComponent({
|
|||||||
const sysTypeOptions = computed(() => {return store.state.content_type;});
|
const sysTypeOptions = computed(() => {return store.state.content_type;});
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
//测试
|
//测试
|
||||||
toDisplay:false,
|
|
||||||
count:0,
|
count:0,
|
||||||
total:0,
|
total:0,
|
||||||
tableLoading: false,
|
tableLoading: false,
|
||||||
@@ -196,7 +194,7 @@ export default defineComponent({
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
align: "left",
|
align: "left",
|
||||||
customRender: ({ text }) => {
|
customRender: ({ text }) => {
|
||||||
return `${text?text.length>12?text.slice(0,12)+'...':text:text}`
|
return text?text.length>12?text.slice(0,12)+'...':text:''
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -214,12 +212,13 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "关键字",
|
title: "关键字",
|
||||||
|
width: 100,
|
||||||
dataIndex: "keywords",
|
dataIndex: "keywords",
|
||||||
key: "keywords",
|
key: "keywords",
|
||||||
align: "left",
|
align: "left",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
customRender: ({ text }) => {
|
customRender: ({ text }) => {
|
||||||
return text? text.length>12? text.slice(0,12)+'...' : text : ''
|
return text? text.length>8? text.slice(0,8)+'...' : text : ''
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -256,7 +255,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "是否推荐",
|
title: "推荐人",
|
||||||
width: 100,
|
width: 100,
|
||||||
dataIndex: "recommendStatus",
|
dataIndex: "recommendStatus",
|
||||||
key: "recommendStatus",
|
key: "recommendStatus",
|
||||||
@@ -344,9 +343,9 @@ export default defineComponent({
|
|||||||
// })
|
// })
|
||||||
watch(() => state.count,(value) => {
|
watch(() => state.count,(value) => {
|
||||||
if(value>=3){
|
if(value>=3){
|
||||||
state.toDisplay = true
|
message.info('最多推荐三个')
|
||||||
}
|
}
|
||||||
getTableDate()
|
// getTableDate()
|
||||||
console.log(value,'新值');
|
console.log(value,'新值');
|
||||||
})
|
})
|
||||||
getTableDate();
|
getTableDate();
|
||||||
|
|||||||
Reference in New Issue
Block a user