diff --git a/src/components/page/Academic_Integrity_Committee.vue b/src/components/page/Academic_Integrity_Committee.vue
index c2c7d82..8ed920c 100644
--- a/src/components/page/Academic_Integrity_Committee.vue
+++ b/src/components/page/Academic_Integrity_Committee.vue
@@ -38,19 +38,20 @@
-
- Field: {{scope.row.field}}
+
+ {{scope.row.research_areas}}
-
+
- -->
+
@@ -66,10 +67,15 @@
-
+
Detail
+
+
+ Edit
+
+
Delete
@@ -84,7 +90,7 @@
-
@@ -92,7 +98,7 @@
Check
- Note: The new Young Scientist must be a registered user.
+ Note: The new Academic Integrity Committee must be a registered user.
Click register.
@@ -113,12 +119,9 @@
:value="item.journal_id">
-
+
+
+
-
-
-
-
- {{reneForm.account}}
-
-
- {{reneForm.email}}
-
-
- {{reneForm.realname}}
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
- {{remarkMes.realname}}
-
-
- {{remarkMes.email}}
-
-
-
-
-
-
-
-
@@ -214,8 +186,13 @@
reneVisible: false,
cerVisible: false,
addForm: {
- account: '',
+ account: '',
},
+ addForm1:{
+ ctj_id: null,
+ areas:''
+ },
+ editvisible:false,
reneForm: {
journal_id: 0
},
@@ -257,6 +234,40 @@
},
methods: {
+ // 关闭编辑弹窗
+ editClose(){
+ this.editvisible = false
+ this.addForm1.ctj_id = null,
+ this.addForm1.areas = ''
+ },
+ // 显示编辑弹出框
+ editHandle(val){
+ this.editvisible = true
+ this.$nextTick(function() {
+ this.addForm1.ctj_id = val.ctj_id
+ this.addForm1.areas = val.research_areas
+ })
+ },
+ // 提交编辑弹窗
+ saveEdit(){
+ this.$api
+ .post('api/User/editCommittee', {
+ 'ctj_id': this.addForm1.ctj_id,
+ 'research_areas': this.addForm1.areas
+ })
+ .then(res => {
+ if (res.code == 0) {
+ this.$message.success('Edit successfully!')
+ this.editClose()
+ this.getDate();
+ } else {
+ this.$message.error(res.msg);
+ }
+ })
+ .catch(err => {
+ this.$message.error(err);
+ });
+ },
// 获取下拉值
getSelect() {
this.$api
@@ -350,7 +361,8 @@
.post('api/User/addCommittee',
{
'user_id': this.addForm.user_id,
- 'journal_id': this.addForm.journal_id
+ 'journal_id': this.addForm.journal_id,
+ 'research_areas': this.addForm.areas
})
.then(res => {
if (res.code == 0) {
@@ -380,6 +392,7 @@
addVisCancle() {
this.addVisible = false
this.addForm.journal_id = null
+ this.addForm.research_areas = ''
},
// 查找与他相同的账号
@@ -429,48 +442,7 @@
window.open(routerJump.href, '_blank');
},
- // 续约
- reneHandle(e) {
- this.reneForm.journal_id = e.journal_id
- this.reneForm.user_id = e.user_id
- this.reneForm.account = e.account
- this.reneForm.realname = e.realname
- this.reneForm.email = e.email
- this.reneVisible = true
- },
-
- // 保存续约
- saveRene(e) {
- this.$refs.rene_Form.validate((valid) => {
- if (valid) {
- const loading = this.$loading({
- lock: true,
- text: 'Loading...',
- spinner: 'el-icon-loading',
- background: 'rgba(0, 0, 0, 0.7)'
- });
- this.$api
- .post('api/User/addYboardContinue', this.reneForm)
- .then(res => {
- if (res.code == 0) {
- this.reneVisible = false;
- this.getDate();
- this.$message.success(`Renewal successfully!`);
- loading.close();
- } else {
- this.$message.error(res.msg);
- loading.close();
- }
- })
- .catch(err => {
- this.$message.error(err);
- loading.close();
- });
- } else {
- return false;
- }
- });
- },
+
// 删除
reneDelete(e) {
@@ -502,28 +474,6 @@
this.cerVisible = true;
},
- // 标记弹出框
- BoxRemark(e) {
- this.remarkBox = true;
- this.remarkMes.realname = e.realname;
- this.remarkMes.user_id = e.user_id;
- this.remarkMes.email = e.email;
- this.remarkMes.remark = e.remark;
- },
-
- // 修改标记
- saveRemark() {
- this.$api.post('api/User/editRemarkForUser', this.remarkMes)
- .then(res => {
- if (res.code == 0) {
- this.$message.success('Success');
- this.remarkBox = false;
- this.getDate();
- } else {
- this.$message.error(res.msg);
- }
- });
- },
// 分页导航
handlePageChange(val) {