From 6e91eb03317c5d2832ecb98c6bcd3b635029b971 Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期三, 25 十月 2023 13:41:50 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/basic/part/index.vue | 32 +++++++++++++++++++++++--------- 1 files changed, 23 insertions(+), 9 deletions(-) diff --git a/src/views/basic/part/index.vue b/src/views/basic/part/index.vue index d91a4be..5ef67ee 100644 --- a/src/views/basic/part/index.vue +++ b/src/views/basic/part/index.vue @@ -11,11 +11,11 @@ </basic-container> <el-dialog title="鍚屾IFS" :visible.sync="dialogVisible" width="30%" :before-close="handleClose"> <el-row> - <el-col :span="6""> + <el-col :span="6" style="height: 40px;line-height: 30px;"> 鍚屾鏃ユ湡锛� </el-col> <el-col :span="18"> - <el-date-picker style="width: 100%;" v-model="selectDate" type="date" placeholder="閫夋嫨鏃ユ湡"> + <el-date-picker style="width: 100%;height: 100%;" v-model="selectDate" type="date" placeholder="閫夋嫨鏃ユ湡"> </el-date-picker> </el-col> </el-row> @@ -364,7 +364,7 @@ fun: this.addOrUpdateHandle }, { - text: '鍚屾IFS', + text: '鑾峰彇IFS闆朵欢', type: 'primary', fun: this.syncISDate, loading: false @@ -634,20 +634,34 @@ // }, syncISDate() { this.dialogVisible = true + this.selectDate=null }, syncIfs() { this.table.toolbar.find((e) => e.text === '鍚屾IFS').loading = true - this.handleClose() - let data=new FormData() - data.append("date",this.selectDatethis.selectDate) - console.log(data); - syncPart(data) + this.dialogVisible = false + let datas=new FormData() + datas.set("date",this.selectDate) + // console.log(datas.get("date")); + + // console.log(this.selectDate); + // return + syncPart(datas) .then((res) => { const data = res.data + console.log(data); if (data.code === 0) { - this.$message.success('寮�濮嬪悓姝�') + if(data.data>0){ + this.$message.success('鍚屾鎴愬姛'+data.data+"鏉℃暟鎹�") + } + if(data.data<1){ + this.$message.warning("璇ユ棩鏈熸病鏈夋柊鐨勯浂浠舵暟鎹�"); + } + this.table.toolbar.find((e) => e.text === '鍚屾IFS').loading = false + this.getData() } else { this.$message.error('鍚屾IFS澶辫触') + this.table.toolbar.find((e) => e.text === '鍚屾IFS').loading = false + this.getData() } }) .catch((e) => { -- Gitblit v1.9.3