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

修改bug

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