commit
This commit is contained in:
+1
-3
@@ -145,9 +145,7 @@ public class TeacherCongressDelegatePushDwSjAuditController {
|
|||||||
@SaCheckPermission("tc.delegate.push.dwSjAudit")
|
@SaCheckPermission("tc.delegate.push.dwSjAudit")
|
||||||
public Result batchSubmit(String sessionId) {
|
public Result batchSubmit(String sessionId) {
|
||||||
String unionId = SecurityUtil.getUnionId();
|
String unionId = SecurityUtil.getUnionId();
|
||||||
if (SecurityUtil.getUserLoginname().equals("004474")) {
|
|
||||||
unionId = "39de17920d6948f08b8175d4b87b5cec";
|
|
||||||
}
|
|
||||||
|
|
||||||
String str = teacherCongressDelegatePushService.batchSubmitWhere(sessionId, unionId);
|
String str = teacherCongressDelegatePushService.batchSubmitWhere(sessionId, unionId);
|
||||||
if (StrUtil.isNotBlank(str)) {
|
if (StrUtil.isNotBlank(str)) {
|
||||||
|
|||||||
+1
-1
@@ -110,7 +110,7 @@ layout("/layouts/platform.html"){
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script nonce="${cspNonce!}">
|
||||||
<!--#include("addForm.js"){}#-->
|
<!--#include("addForm.js"){}#-->
|
||||||
<!--#include("editForm.js"){}#-->
|
<!--#include("editForm.js"){}#-->
|
||||||
<!--#include("adjust.js"){}#-->
|
<!--#include("adjust.js"){}#-->
|
||||||
|
|||||||
+25
-21
@@ -390,19 +390,21 @@ const write = {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(async () => {
|
}).then(async () => {
|
||||||
const loading = createLoading('正在提交中')
|
const loading = createLoading('正在提交中')
|
||||||
const {code} = await $.post('/platform/teacherCongress/delegate/push/write/save', this.formData)
|
this.$axios.post('/platform/teacherCongress/delegate/push/write/save', this.formData).then(async resp => {
|
||||||
loading.close()
|
loading.close()
|
||||||
if (code === 0) {
|
if (resp.code === 0) {
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
this.$emit('refresh')
|
this.$emit('refresh')
|
||||||
if (this.session_id && this.user_id) {
|
if (this.session_id && this.user_id) {
|
||||||
await this.initOtherInfo()
|
await this.initOtherInfo()
|
||||||
|
} else {
|
||||||
|
await this.initInfo()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
await this.initInfo()
|
this.$message.warning('保存失败')
|
||||||
}
|
}
|
||||||
} else {
|
})
|
||||||
this.$message.warning('保存失败')
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -418,18 +420,20 @@ const write = {
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(async () => {
|
}).then(async () => {
|
||||||
const {code} = await $.post('/platform/teacherCongress/delegate/push/write/submit', this.formData)
|
this.$axios.post('/platform/teacherCongress/delegate/push/write/submit', this.formData).then(async resp => {
|
||||||
if (code === 0) {
|
if (resp.code === 0) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
this.$emit('refresh')
|
this.$emit('refresh')
|
||||||
if (this.session_id && this.user_id) {
|
if (this.session_id && this.user_id) {
|
||||||
await this.initOtherInfo()
|
await this.initOtherInfo()
|
||||||
|
} else {
|
||||||
|
await this.initInfo()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
await this.initInfo()
|
this.$message.warning('提交失败')
|
||||||
}
|
}
|
||||||
} else {
|
})
|
||||||
this.$message.warning('提交失败')
|
|
||||||
}
|
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user