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