修改功能
This commit is contained in:
parent
b52e6415e1
commit
ecdd77e29b
|
@ -1,7 +1,6 @@
|
|||
|
||||
#siteMain {
|
||||
// font-size: ;
|
||||
height: 100%;
|
||||
background: #f3f3f4;
|
||||
#maxSite {
|
||||
//最大宽度
|
||||
|
|
|
@ -127,6 +127,7 @@
|
|||
* 刷新预约课程列表数据
|
||||
*/
|
||||
function jrkclbLoad(){
|
||||
console.log(`🚀 ~ file: index.vue:1301111111:`)
|
||||
yykcModeal.value.newFunction()
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -36,10 +36,15 @@
|
|||
{{ item.skdd }}
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
|
||||
<a-button type="primary" class="yyyClass" disabled v-if="item.sfyy==1">已预约</a-button>
|
||||
<a-button type="primary" class="yyClass" @click="funYuyue(item)" v-if="item.sfyy==0">预约</a-button>
|
||||
<a-col :span="24" v-if="listData == 1">
|
||||
<a-button type="primary" class="yyyClass" disabled >听课</a-button>
|
||||
<a-button type="primary" class="yyClass" >评价</a-button>
|
||||
<a-button type="primary" class="bcClass" @click="handleBaocuo(item)">报错</a-button>
|
||||
</a-col>
|
||||
<a-col :span="24" v-else>
|
||||
<!-- <a-col :span="24"> -->
|
||||
<a-button type="primary" class="yyyClass" disabled v-if="item.sfyy==1 && item.isdeleted==0">已预约</a-button>
|
||||
<a-button type="primary" class="yyClass" @click="funYuyue(item)" v-if="item.sfyy==0 || (item.sfyy==1 && item.isdeleted==1)">预约</a-button>
|
||||
<a-button type="primary" class="bcClass" @click="handleBaocuo(item)">报错</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -59,26 +64,28 @@ import { useMessage } from '/@/hooks/web/useMessage';
|
|||
import KcErrorreportIndexModal from '/@/views/kc/kcErrorreport/components/KcErrorreportIndexModal.vue'
|
||||
import { getUserId } from '/@/views/site/utils/index';
|
||||
|
||||
//用户相关
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
const userStore = useUserStore();
|
||||
const kcErrorreportIndexModal = ref();
|
||||
//用户相关
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
const userStore = useUserStore();
|
||||
const kcErrorreportIndexModal = ref();
|
||||
|
||||
|
||||
const emit = defineEmits(['setTotal']);
|
||||
|
||||
const { createMessage } = useMessage();
|
||||
const confirmLoading = ref<boolean>(false);
|
||||
let listData = ref<any>([]);
|
||||
let listData = ref<any>([]);let listType = ref<any>(String);
|
||||
const list = (params) => defHttp.get({ url: '/ktgl/kcKetangbiao/getKclblist', params });
|
||||
const props = defineProps({
|
||||
queryParam:{type:Object}
|
||||
});
|
||||
|
||||
//监听条件变化
|
||||
// watch(() => props.queryParam, async (newRow, oldRow) => {
|
||||
// rkbLoadData()
|
||||
// },{ deep: true });
|
||||
watch(() => props.queryParam, async (newRow, oldRow) => {
|
||||
// var newRowa = ref<any>({});
|
||||
// newRowa = newRow
|
||||
// listType = newRowa.type
|
||||
},{ deep: true });
|
||||
//查询数据
|
||||
function rkbLoadData() {
|
||||
var newRow = ref<any>({});
|
||||
|
@ -86,6 +93,7 @@ function rkbLoadData() {
|
|||
newRow = props.queryParam;
|
||||
newRow.userid = getUserId();
|
||||
newRow.pageSize = -1
|
||||
listType = newRow.type
|
||||
list(newRow).then(res => {
|
||||
listData.value = res.records;
|
||||
emit('setTotal', res.records.length);
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
{{xxkcTotal}}</div>
|
||||
</div>
|
||||
</template>
|
||||
<kclbList ref="wqxxkcModeal" :queryParam="xxkcqueryParam" @setTotal="xxkcTotal = $event"></kclbList>
|
||||
<kclbList ref="wqxxkcModeal" :queryParam="xxkcqueryParam" @setTotal="xxkcTotal = $event;jzzyload()"></kclbList>
|
||||
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2">
|
||||
|
@ -55,7 +55,7 @@
|
|||
{{txhyTotal}}</div>
|
||||
</div>
|
||||
</template>
|
||||
<kclbList ref="txhyModeal" :queryParam="txhyqueryParam" @setTotal="txhyTotal = $event"></kclbList>
|
||||
<kclbList ref="txhyModeal" :queryParam="txhyqueryParam" @setTotal="txhyTotal = $event;jzzyload()"></kclbList>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</div>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
{{xxkcTotal}}</div>
|
||||
</div>
|
||||
</template>
|
||||
<kclbList ref="wqxxkcModeal" :queryParam="xxkcqueryParam" @setTotal="xxkcTotal = $event"></kclbList>
|
||||
<kclbList ref="wqxxkcModeal" :queryParam="xxkcqueryParam" @setTotal="xxkcTotal = $event;jzzyload()"></kclbList>
|
||||
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2">
|
||||
|
@ -41,7 +41,7 @@
|
|||
{{txhyTotal}}</div>
|
||||
</div>
|
||||
</template>
|
||||
<kclbList ref="txhyModeal" :queryParam="txhyqueryParam" @setTotal="txhyTotal = $event"></kclbList>
|
||||
<kclbList ref="txhyModeal" :queryParam="txhyqueryParam" @setTotal="txhyTotal = $event;jzzyload()"></kclbList>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</div>
|
||||
|
@ -70,6 +70,7 @@ function zbLoadData() {
|
|||
xxkcqueryParam.value.kkdw = queryParam.value.kkdw
|
||||
xxkcqueryParam.value.ywmc = queryParam.value.ywmc
|
||||
xxkcqueryParam.value.skxs = '1'
|
||||
xxkcqueryParam.value.type = 0
|
||||
|
||||
//----------------------腾讯会议-------------------
|
||||
txhyqueryParam.value.skrq = queryParam.value.ywTime
|
||||
|
@ -78,6 +79,7 @@ function zbLoadData() {
|
|||
txhyqueryParam.value.ywmc = queryParam.value.ywmc
|
||||
txhyqueryParam.value.zbpx ='1'
|
||||
txhyqueryParam.value.ywskxs = '1'
|
||||
xxkcqueryParam.value.type = 0
|
||||
zibiaoCard(1);
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -70,6 +70,7 @@ function zbLoadData() {
|
|||
xxkcqueryParam.value.kkdw = queryParam.value.kkdw
|
||||
xxkcqueryParam.value.ywmc = queryParam.value.ywmc
|
||||
xxkcqueryParam.value.skxs = 1
|
||||
xxkcqueryParam.value.type = 1
|
||||
|
||||
//----------------------腾讯会议-------------------
|
||||
txhyqueryParam.value.skrq = queryParam.value.ywTime
|
||||
|
@ -78,6 +79,7 @@ function zbLoadData() {
|
|||
txhyqueryParam.value.ywmc = queryParam.value.ywmc
|
||||
txhyqueryParam.value.zbpx = 1
|
||||
txhyqueryParam.value.ywskxs = '1'
|
||||
xxkcqueryParam.value.type = 1
|
||||
zibiaoCard(1);
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue