This commit is contained in:
xulu
2021-08-31 09:19:27 +08:00
parent 95f5b46be8
commit 0e0fb27136
28 changed files with 4969 additions and 2585 deletions

View File

@@ -30,7 +30,7 @@
</div>
<!-- 添加弹出框 -->
<el-dialog title="Add editorial board" :visible.sync="addVisible" width="40%">
<el-dialog title="Add Editorial board member" :visible.sync="addVisible" width="40%">
<el-form ref="add_Form" :model="addForm" :rules="rules" label-width="150px">
<el-form-item label="account" prop="account">
<el-input v-model="addForm.account" @blur='saerNa_U()'></el-input>
@@ -59,13 +59,13 @@
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="addVisible = false">Cancel</el-button>
<el-button type="primary" @click="saveAdd(addForm)">OK</el-button>
<el-button type="primary" @click="saveAdd(addForm)" :disabled="this.btn_alert">OK</el-button>
</span>
</el-dialog>
<!-- 已有信息弹出框 -->
<el-dialog title="Add editorial board" :visible.sync="oldVisible" width="40%">
<el-dialog title="Add Editorial board member" :visible.sync="oldVisible" width="40%">
<el-form ref="old_Form" :model="oldForm" :rules="rules" label-width="100px">
<el-form-item label="account">
{{oldForm.account}}
@@ -108,6 +108,7 @@
oldForm: {},
aid: -1,
id: -1,
btn_alert: false,
query: {
journal_id: 0,
},
@@ -162,7 +163,7 @@
this.tableData = res.data.boards;
})
.catch(err => {
console.log(err);
this.$message.error(err);
});
},
@@ -181,7 +182,7 @@
this.tableData = res.data.boards;
})
.catch(err => {
console.log(err);
this.$message.error(err);
});
} else {
this.$message.error(res.msg);
@@ -213,7 +214,7 @@
.then(res => {
if (res.code == 0) {
if (res.data.user_info != null) {
this.$confirm('该账户已存在,是否在该账户下操作', '提示', {
this.$confirm('this account already exists. Do you want to operate under this account', 'Tips', {
type: 'warning'
})
.then(() => {
@@ -224,6 +225,9 @@
this.oldForm = res.data.user_info;
})
.catch(() => {});
this.btn_alert = true
} else {
this.btn_alert = false
}
} else {
this.$message.error(res.msg);
@@ -244,7 +248,7 @@
.then(res => {
if (res.code == 0) {
if (res.data.user_info != null) {
this.$confirm('该账户已存在,是否在该账户下操作', '提示', {
this.$confirm('this account already exists. Do you want to operate under this account', 'Tips', {
type: 'warning'
})
.then(() => {
@@ -255,6 +259,9 @@
this.oldForm = res.data.user_info;
})
.catch(() => {});
this.btn_alert = true
} else {
this.btn_alert = false
}
} else {
this.$message.error(res.msg);
@@ -277,7 +284,7 @@
if (res.code == 0) {
this.addVisible = false;
this.$refs.add_Form.resetFields();
this.$message.success(`添加成功`);
this.$message.success(`Added successfully`);
this.getdate();
} else {
this.$message.error(res.msg);
@@ -291,7 +298,7 @@
}
});
} else {
this.$message.error("两次新密码输入不一致");
this.$message.error("The two passwords are inconsistent");
}
},
// 保存old添加
@@ -304,7 +311,7 @@
if (res.code == 0) {
this.oldVisible = false;
this.$refs.old_Form.resetFields();
this.$message.success(`添加成功`);
this.$message.success(`Added successfully`);
this.getdate();
} else {
this.$message.error(res.msg);
@@ -321,7 +328,7 @@
// 删除操作
handleDelete(index, row) {
// 二次确认删除
this.$confirm('确定要删除吗', '提示', {
this.$confirm('Are you sure you want to delete', 'Tips', {
type: 'warning'
})
.then(() => {
@@ -329,7 +336,7 @@
.post('api/Chief/delJournalBoard', row)
.then(res => {
if (res.code == 0) {
this.$message.success('删除成功');
this.$message.success('Delete succeeded');
this.getdate();
} else {
this.$message.error(res.msg);