更新
This commit is contained in:
@ -10,7 +10,7 @@
|
|||||||
<el-button type="info" @click="reset"> 重置 </el-button>
|
<el-button type="info" @click="reset"> 重置 </el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="tabBox" :class="props.Single ? 'tabBoxRadio' : ''" style="margin-top: 0px">
|
<div class="tabBox" :class="props.Single ? 'tabBoxRadio' : ''" :key="keyVal" style="margin-top: 0px">
|
||||||
<el-table ref="multipleUserRef" @selection-change="handleSelectionChange" :data="tableData" v-loading="loading" border :row-key="keyid" style="width: 100%" height="450">
|
<el-table ref="multipleUserRef" @selection-change="handleSelectionChange" :data="tableData" v-loading="loading" border :row-key="keyid" style="width: 100%" height="450">
|
||||||
<el-table-column type="selection" width="55" :reserve-selection="true"/>
|
<el-table-column type="selection" width="55" :reserve-selection="true"/>
|
||||||
<el-table-column prop="bqMc" align="center" label="标签名称"/>
|
<el-table-column prop="bqMc" align="center" label="标签名称"/>
|
||||||
@ -31,8 +31,8 @@
|
|||||||
<el-pagination
|
<el-pagination
|
||||||
class="pagination"
|
class="pagination"
|
||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
@pageCurrent-change="handleCurrentChange"
|
@current-change="handleCurrentChange"
|
||||||
:pageCurrent-page="listQuery.pageCurrent"
|
:current-page="listQuery.pages"
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
:page-size="listQuery.size"
|
:page-size="listQuery.size"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
@ -80,10 +80,11 @@ const props = defineProps({
|
|||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const total = ref(0);
|
const total = ref(0);
|
||||||
const listQuery = ref({
|
const listQuery = ref({
|
||||||
pageCurrent: 1,
|
pages: 1,
|
||||||
pageSize: 20
|
size: 20
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const keyVal = ref()
|
||||||
const multipleUserRef = ref(null);
|
const multipleUserRef = ref(null);
|
||||||
const multipleSelectionUser = ref([]);
|
const multipleSelectionUser = ref([]);
|
||||||
const tableData = ref([]);
|
const tableData = ref([]);
|
||||||
@ -96,7 +97,7 @@ const closed = () => {
|
|||||||
emits("update:modelValue", false);
|
emits("update:modelValue", false);
|
||||||
};
|
};
|
||||||
const reset = () => {
|
const reset = () => {
|
||||||
listQuery.value = { pageCurrent: 1, pageSize: 20, };
|
listQuery.value = { pages: 1, size: 20, };
|
||||||
getListData();
|
getListData();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -116,20 +117,21 @@ const onComfirm = () => {
|
|||||||
closed();
|
closed();
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* pageSize 改变触发
|
* size 改变触发
|
||||||
*/
|
*/
|
||||||
const handleSizeChange = (currentSize) => {
|
const handleSizeChange = (currentSize) => {
|
||||||
listQuery.value.pageSize = currentSize;
|
listQuery.value.size = currentSize;
|
||||||
getListData();
|
getListData();
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* 页码改变触发
|
* 页码改变触发
|
||||||
*/
|
*/
|
||||||
const handleCurrentChange = (currentPage) => {
|
const handleCurrentChange = (currentPage) => {
|
||||||
listQuery.value.pageCurrent = currentPage;
|
listQuery.value.pages = currentPage;
|
||||||
getListData();
|
getListData();
|
||||||
};
|
};
|
||||||
const getListData = () => {
|
const getListData = () => {
|
||||||
|
keyVal.value++;
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const params = { ...listQuery.value, bqLb:'02',}
|
const params = { ...listQuery.value, bqLb:'02',}
|
||||||
qcckGet(params,'/mosty-gsxt/tbGsxtBqgl/selectPage').then(res=>{
|
qcckGet(params,'/mosty-gsxt/tbGsxtBqgl/selectPage').then(res=>{
|
||||||
@ -153,7 +155,7 @@ function multipleUser() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleFilter = () => {
|
const handleFilter = () => {
|
||||||
listQuery.value.pageCurrent = 1;
|
listQuery.value.pages = 1;
|
||||||
getListData();
|
getListData();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -54,14 +54,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="fenye flex just-end " :style="{ top: tableHeight + 'px' }">
|
<div class="fenye flex just-end " :style="{ top: tableHeight + 'px' }">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
class="pagination"
|
class="pagination"
|
||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
@pageCurrent-change="handleCurrentChange"
|
@current-change="handleCurrentChange"
|
||||||
:pageCurrent-page="listQuery.pageCurrent"
|
:current-page="listQuery.pageCurrent"
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
:page-size="listQuery.size"
|
:page-size="listQuery.pageSize"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
:total="total"
|
:total="total"
|
||||||
></el-pagination>
|
></el-pagination>
|
||||||
</div>
|
</div>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
@ -32,10 +32,10 @@
|
|||||||
<el-pagination
|
<el-pagination
|
||||||
class="pagination"
|
class="pagination"
|
||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
@pageCurrent-change="handleCurrentChange"
|
@current-change="handleCurrentChange"
|
||||||
:pageCurrent-page="listQuery.pageCurrent"
|
:current-page="listQuery.pageCurrent"
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
:page-size="listQuery.size"
|
:page-size="listQuery.pageSize"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
:total="total"
|
:total="total"
|
||||||
></el-pagination>
|
></el-pagination>
|
||||||
|
@ -52,14 +52,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="fenye flex just-end " :style="{ top: tableHeight + 'px' }">
|
<div class="fenye flex just-end " :style="{ top: tableHeight + 'px' }">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
class="pagination"
|
class="pagination"
|
||||||
@size-change="handleSizeChange"
|
@size-change="handleSizeChange"
|
||||||
@pageCurrent-change="handleCurrentChange"
|
@current-change="handleCurrentChange"
|
||||||
:pageCurrent-page="listQuery.pageCurrent"
|
:current-page="listQuery.pageCurrent"
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
:page-size="listQuery.size"
|
:page-size="listQuery.pageSize"
|
||||||
layout="total, sizes, prev, pager, next, jumper"
|
layout="total, sizes, prev, pager, next, jumper"
|
||||||
:total="total"
|
:total="total"
|
||||||
></el-pagination>
|
></el-pagination>
|
||||||
</div>
|
</div>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
|
@ -107,7 +107,7 @@
|
|||||||
<IntelligentParsing :tableData="pageData.tableData" ref="IntelligentParsingRef" @upadate="getModelList" />
|
<IntelligentParsing :tableData="pageData.tableData" ref="IntelligentParsingRef" @upadate="getModelList" />
|
||||||
<addForm ref="addFormDiloag" @onSearch="onSearch" />
|
<addForm ref="addFormDiloag" @onSearch="onSearch" />
|
||||||
<Model v-model="isShow" :type="chooselx" :ids="ids" @change="getModelList" :dic="{D_GS_RQFJ_FXDJ}"></Model>
|
<Model v-model="isShow" :type="chooselx" :ids="ids" @change="getModelList" :dic="{D_GS_RQFJ_FXDJ}"></Model>
|
||||||
<Export :show="isImport" lx="fjnr" @closeImport="isImport = false" @handleImport="handleImport" />
|
<Export :show="isImport" lx="fjnr" @closeImport="isImport = false" @handleImport="getList" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -282,9 +282,6 @@ const chooseType = (val)=>{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleImport = (val) =>{
|
|
||||||
getList()
|
|
||||||
}
|
|
||||||
|
|
||||||
const tabHeightFn = () => {
|
const tabHeightFn = () => {
|
||||||
pageData.tableHeight2 = window.innerHeight - searchBox.value.offsetHeight - 650;
|
pageData.tableHeight2 = window.innerHeight - searchBox.value.offsetHeight - 650;
|
||||||
|
@ -249,7 +249,7 @@ const get_bkqy_list = (row) =>{
|
|||||||
const getDataById = (id) =>{
|
const getDataById = (id) =>{
|
||||||
qcckGet({},'/mosty-gsxt/tbGsxtBk/selectVoById/'+id).then(res=>{
|
qcckGet({},'/mosty-gsxt/tbGsxtBk/selectVoById/'+id).then(res=>{
|
||||||
res.bkfj = res.bkfj ? res.bkfj.split(',') : [];
|
res.bkfj = res.bkfj ? res.bkfj.split(',') : [];
|
||||||
res.bkqyList = res.qyList || [];
|
res.bkqyList = res.qyList ? res.qyList.map(v=>v.id) : [];
|
||||||
listQuery.value = res || {}
|
listQuery.value = res || {}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -310,6 +310,7 @@ const handleAddPeo = () =>{
|
|||||||
listQuery.value.bkDx == '01' ? chooseVisible_RY.value = true : chooseVisible_QT.value = true;
|
listQuery.value.bkDx == '01' ? chooseVisible_RY.value = true : chooseVisible_QT.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 提交
|
// 提交
|
||||||
const submit = () => {
|
const submit = () => {
|
||||||
elform.value.validate((validate) => {
|
elform.value.validate((validate) => {
|
||||||
|
Reference in New Issue
Block a user