mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
致灰
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
:data-source="tableData1"
|
||||
:loading="tableLoading"
|
||||
:pagination="false"
|
||||
:row-selection="rowSelection"
|
||||
|
||||
:scroll="{ x: 'max-content' }"
|
||||
row-key="id"
|
||||
>
|
||||
@@ -72,7 +72,7 @@
|
||||
|
||||
<a-button @click="() => handleOper(record,'withdraw',record.recommendStatus)"
|
||||
type="link"
|
||||
:class="aa()>=3? `${record.recommendStatus!==1?'grey':''}`:''"
|
||||
:class="aa()>=3? `${record.recommendStatus!==1 && record.currentPage1 === 1?'grey':''}`:''"
|
||||
>
|
||||
{{ status[record.recommendStatus] }}
|
||||
</a-button>
|
||||
@@ -156,10 +156,10 @@ export default defineComponent({
|
||||
//点击按钮
|
||||
function handleOper(record, type, status = '') {
|
||||
const aa = computed(()=>{
|
||||
return state.recommendStatu
|
||||
return state.recommendStatu
|
||||
})
|
||||
if(aa.value>=3){
|
||||
if(record.recommendStatus!==1){
|
||||
if(record.recommendStatus!==1 && record.currentPage1 === 1){
|
||||
alert('最多三个')
|
||||
return
|
||||
}
|
||||
@@ -384,7 +384,19 @@ export default defineComponent({
|
||||
// console.log(value,'新值');
|
||||
// })
|
||||
};
|
||||
watch(() => state.recommendStatu,(value) => {
|
||||
const aa = computed(()=>{
|
||||
return()=>{
|
||||
return state.recommendStatu
|
||||
}
|
||||
})
|
||||
watch(() => [state.recommendStatu,state.currentPage1,state.tableDataTotal1],(value) => {
|
||||
const removeData = state.tableData1
|
||||
const removeClick = removeData.filter(function(value,index){
|
||||
return value.recommendStatus==1
|
||||
})
|
||||
console.log('removeClick的长度111111111111',removeClick.length)
|
||||
state.recommendStatu = removeClick.length
|
||||
getTableDate()
|
||||
console.log(value,'新值');
|
||||
})
|
||||
getTableDate();
|
||||
|
||||
Reference in New Issue
Block a user