|
@@ -715,6 +715,7 @@ export default {
|
|
|
* 删除考试
|
|
* 删除考试
|
|
|
*/
|
|
*/
|
|
|
handleRemove (ids) {
|
|
handleRemove (ids) {
|
|
|
|
|
+ /*
|
|
|
if (!ids || !ids.length) {
|
|
if (!ids || !ids.length) {
|
|
|
return this.$message.warning('请选择要删除的考试!')
|
|
return this.$message.warning('请选择要删除的考试!')
|
|
|
}
|
|
}
|
|
@@ -742,6 +743,47 @@ export default {
|
|
|
// this.search()
|
|
// this.search()
|
|
|
// })
|
|
// })
|
|
|
})
|
|
})
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if (!ids || !ids.length) {
|
|
|
|
|
+ return this.$message.warning('请选择要删除的考试!')
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$confirm(
|
|
|
|
|
+ '将删除所选考试及已产生的试卷数据,数据删除后无法恢复,确定要继续吗?',
|
|
|
|
|
+ '提示',
|
|
|
|
|
+ {
|
|
|
|
|
+ confirmButtonText: '确认',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ showClose: false,
|
|
|
|
|
+ closeOnClickModal: false
|
|
|
|
|
+ }
|
|
|
|
|
+ ).then(() => {
|
|
|
|
|
+ removeFormData({
|
|
|
|
|
+ formKey: 'examForDelete',
|
|
|
|
|
+ ids: ids.join(',')
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ Promise.all([
|
|
|
|
|
+ this.$common.request('delete', {
|
|
|
|
|
+ tableName: 'IBPS_PARTY_USER_CALENDAR',
|
|
|
|
|
+ paramWhere: { data_source_id_: ids.join(',') }
|
|
|
|
|
+ }),
|
|
|
|
|
+ this.$common.request('delete', {
|
|
|
|
|
+ tableName: 'IBPS_MSG_INNER',
|
|
|
|
|
+ paramWhere: { wai_jian_: ids.join(',') }
|
|
|
|
|
+ })
|
|
|
|
|
+ ]).then((res) => {
|
|
|
|
|
+ this.search()
|
|
|
|
|
+ this.$message.success('删除成功!')
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {})
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
transformUser (userId) {
|
|
transformUser (userId) {
|
|
|
const user = this.userList.find(u => u.userId === userId) || {}
|
|
const user = this.userList.find(u => u.userId === userId) || {}
|