Commit 49e8d3e9 authored by 刘帅阳's avatar 刘帅阳

修改bug

parent a59b5fa5
......@@ -892,6 +892,7 @@ export default {
this.form.deptId = this.queryParams.deptId.toString().split(',').map(item => Number(item))
}
this.open = true
this.submitLoading = false
this.title = '添加代言人'
},
/** 修改按钮操作 */
......@@ -899,6 +900,7 @@ export default {
this.reset()
this.isUnitAdmin = flag
this.open = true
this.submitLoading = false
this.form = JSON.parse(JSON.stringify(row))
const depIds = row.deptIdPrepares.split(',')
this.form.deptId = depIds.map(item => Number(item))
......@@ -939,12 +941,12 @@ export default {
if (this.form.businessId !== undefined) {
const addParams = JSON.parse(JSON.stringify(this.form))
updateSysuser(addParams).then(response => {
this.submitLoading = false
this.$message({
message: '修改成功',
type: 'success'
})
this.open = false
this.getList()
}).catch(() => {
this.submitLoading = false
......@@ -952,12 +954,12 @@ export default {
} else {
const params = JSON.parse(JSON.stringify(this.form))
addSysuser(params).then(response => {
this.submitLoading = false
this.newId = response.data.businessId
this.$message({
message: '新增成功', type: 'success'
})
this.open = false
this.getList()
}).catch(() => {
this.submitLoading = false
......@@ -1015,6 +1017,7 @@ export default {
handleImport() {
this.upload.title = '代言人导入'
this.upload.open = true
this.importLoading = false
},
/** 下载模板操作 */
importTemplate() {
......@@ -1065,7 +1068,7 @@ export default {
this.$message.success('导入成功')
this.fileList = []
// 导入成功后关闭弹出框
this.importLoading = false
this.upload.open = false
// 导入成功后刷新页面
this.getList()
......
......@@ -1133,7 +1133,6 @@ export default {
formData.append('unitId', this.formModel.unitId)
formData.append('newsVideoId', this.formModel.newsVideoId)
handleAddForm(formData).then(res => {
this.submitLoading = false
this.$message({
message: '新增成功',
type: 'success'
......@@ -1227,6 +1226,7 @@ export default {
handleImport() {
this.upload.title = '推广次数导入'
this.upload.open = true
this.importLoading = false
this.filelist = []
},
// 获取所有部门信息
......@@ -1824,6 +1824,7 @@ export default {
handleAdd() {
this.reset()
this.formOpen = true
this.submitLoading = false
this.formTitle = '新增'
},
// 文件上传中处理
......@@ -1876,7 +1877,7 @@ export default {
this.$message.success('导入成功')
this.fileList = []
// 导入成功后关闭弹出框
this.importLoading = false
this.upload.open = false
// 导入成功后刷新页面
this.loadData()
......
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