lcw
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="success" @click="handleFilter">查询</el-button>
|
||||
<el-button type="success" @click="selectData">查询</el-button>
|
||||
<el-button type="info" @click="reset"> 重置 </el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@ -69,7 +69,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {getDictItem} from '@/api/semanticAnalysis.js'
|
||||
import {getDictzl} from '@/api/semanticAnalysis.js'
|
||||
import { defineProps, ref, getCurrentInstance, watch } from "vue";
|
||||
const props = defineProps({
|
||||
modelValue: {
|
||||
@ -147,18 +147,12 @@ const handleCurrentChange = (currentPage) => {
|
||||
getListData();
|
||||
};
|
||||
const getListData = () => {
|
||||
// keyVal.value++;
|
||||
loading.value = true;
|
||||
const params = { dictCode: "00000000" };
|
||||
console.log(params);
|
||||
|
||||
getDictItem(params)
|
||||
getDictzl()
|
||||
.then((res) => {
|
||||
loading.value = false;
|
||||
// tableData.value = res.records || [];
|
||||
tableData.value = res
|
||||
// .records || [];
|
||||
// total.value = res.total;
|
||||
multipleUser();
|
||||
})
|
||||
.catch(() => {
|
||||
@ -214,7 +208,13 @@ watch(
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
const selectData = (val) => {
|
||||
tableData.value = tableData.value.filter((item) => {
|
||||
if(item.zdmc.includes(listQuery.value.bqMc)){
|
||||
return item;
|
||||
}
|
||||
});
|
||||
};
|
||||
// 监听roleIds变化,确保数据回显正确
|
||||
watch(
|
||||
() => props.roleIds,
|
||||
|
||||
Reference in New Issue
Block a user