瀏覽代碼

基础信息列表loading

mfmf 3 年之前
父節點
當前提交
5a2edbf615
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      src/components/DocTemplate/index.js
  2. 2 0
      src/components/DutyRecord/index.js

+ 2 - 0
src/components/DocTemplate/index.js

@@ -33,7 +33,9 @@ function DocTemplate() {
   }
   //表格数据
   function getDocTemplate(param) {
+	const hide = message.loading('加载中...',0);
 	post(api.getRecordTemplatePage, param || params).then((res) => {
+	  hide()
 	  if (res.data.code === 200) {
 		const data = res.data.data;
 		setLogList(data.records);

+ 2 - 0
src/components/DutyRecord/index.js

@@ -56,7 +56,9 @@ function DutyRecord() {
 	    }
 	//表格数据
 	function getDutyRecord(param) {
+		const hide = message.loading('加载中...',0);
 		post(api.getOfficialCapacityPage, param || params).then((res) => {
+			hide()
 			if (res.data.code === 200) {
 				const data = res.data.data;
 				setLogList(data.records);