feat: 🚀 物料列表刷新
This commit is contained in:
@@ -57,12 +57,16 @@ const dataStore = reactive<any>({
|
||||
selectionList: [], //选中表格的行
|
||||
loading: false
|
||||
});
|
||||
//设置组织数组
|
||||
dataStore.formData[5].options = userStore.orgIdArr;
|
||||
|
||||
//订阅人
|
||||
dataStore.initParam.subscriber_name = userStore.userInfo.nickname;
|
||||
|
||||
const init = () => {
|
||||
//设置组织数组
|
||||
dataStore.formData[5].options = userStore.orgIdArr;
|
||||
//设置仓库数据
|
||||
dataStore.formData[6].options = userStore.warehouse;
|
||||
//订阅人
|
||||
dataStore.initParam.subscriber_name = userStore.userInfo.nickname;
|
||||
};
|
||||
init();
|
||||
// 表格选择事件
|
||||
const selectionChange = (selection: any) => {
|
||||
dataStore.selectionList = selection;
|
||||
@@ -82,6 +86,7 @@ const handleSearch = async (params: any) => {
|
||||
//重置
|
||||
const handleReset = () => {
|
||||
dataStore.initParam = cloneDeep(RULE_FORM);
|
||||
init();
|
||||
//这里需要等到表格刷新以后才去请求
|
||||
nextTick(() => {
|
||||
proTable.value!.getTableList();
|
||||
|
||||
Reference in New Issue
Block a user