Commit 536bd2e6 authored by danfuman's avatar danfuman

修改

parent 2a6c4dec
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<el-button type="primary" @click="handleConfirm">确定取消</el-button> <el-button type="primary" @click="handleConfirm">确定取消</el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :visible.sync="qyVisible" custom-class='dialog-claim dialogAdd' title="添加监控企业" width="480px" :close-on-click-modal="false"> <el-dialog :visible.sync="qyVisible" custom-class='dialog-claim dialogAdd' title="添加监控企业" width="480px" :close-on-click-modal="false" @close="handleCancel1">
<div class="add-content"> <div class="add-content">
<div class="enterprise"> <div class="enterprise">
<div class="label">企业名称</div> <div class="label">企业名称</div>
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
<el-button type="primary" @click="handleAdd">确定</el-button> <el-button type="primary" @click="handleAdd">确定</el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :visible.sync="pldrVisible" custom-class='dialog-claim' title="批量导入监控企业" width="480px" :close-on-click-modal="false"> <el-dialog :visible.sync="pldrVisible" custom-class='dialog-claim' title="批量导入监控企业" width="480px" :close-on-click-modal="false" @close="handleUploadCancel1">
<div class="upload-content"> <div class="upload-content">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
...@@ -219,7 +219,6 @@ ...@@ -219,7 +219,6 @@
}, },
methods: { methods: {
async querySubmit() { async querySubmit() {
console.log(this.queryParams)
companyPage(this.queryParams).then(res => { companyPage(this.queryParams).then(res => {
console.log(res) console.log(res)
this.isSkeleton = false; this.isSkeleton = false;
...@@ -247,6 +246,7 @@ ...@@ -247,6 +246,7 @@
let data={ let data={
cid:this.cid cid:this.cid
} }
if(this.cid.length > 0){
companyAdd(data).then(res => { companyAdd(data).then(res => {
this.qyVisible=false; this.qyVisible=false;
this.companyName='' this.companyName=''
...@@ -254,6 +254,10 @@ ...@@ -254,6 +254,10 @@
this.$message.success("新增成功"); this.$message.success("新增成功");
this.querySubmit() this.querySubmit()
}) })
}else {
this.$message.warning("请选择要添加的企业");
}
}, },
radioBtn(val){ radioBtn(val){
...@@ -385,7 +389,12 @@ ...@@ -385,7 +389,12 @@
a.remove(); a.remove();
}, },
submitUpload() { submitUpload() {
if(this.fileList.length > 0){
this.$refs.upload.submit(); this.$refs.upload.submit();
}else {
this.$message.warning("请选择要上传的内容");
}
}, },
} }
} }
......
...@@ -447,26 +447,16 @@ ...@@ -447,26 +447,16 @@
this.querySubmit() this.querySubmit()
break; break;
case 2: case 2:
this.queryParams.condition.beginTime = this.formatDate(new Date(endTime.getTime() - 3600 * 1000 * 24 * 3))
this.queryParams.condition.endTime = this.formatDate(endTime)
this.querySubmit()
break;
case 3:
this.queryParams.condition.beginTime = this.formatDate(new Date(endTime.getTime() - 3600 * 1000 * 24 * 7)) this.queryParams.condition.beginTime = this.formatDate(new Date(endTime.getTime() - 3600 * 1000 * 24 * 7))
this.queryParams.condition.endTime = this.formatDate(endTime) this.queryParams.condition.endTime = this.formatDate(endTime)
this.querySubmit() this.querySubmit()
break; break;
case 4: case 3:
this.queryParams.condition.beginTime = this.formatDate(new Date(endTime.getTime() - 3600 * 1000 * 24 * 15))
this.queryParams.condition.endTime = this.formatDate(endTime)
this.querySubmit()
break;
case 5:
this.queryParams.condition.beginTime = this.formatDate(new Date(endTime.getTime() - 3600 * 1000 * 24 * 30)) this.queryParams.condition.beginTime = this.formatDate(new Date(endTime.getTime() - 3600 * 1000 * 24 * 30))
this.queryParams.condition.endTime = this.formatDate(endTime) this.queryParams.condition.endTime = this.formatDate(endTime)
this.querySubmit() this.querySubmit()
break; break;
case 6: case 4:
this.date=[] this.date=[]
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment