tijiao
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
//记得切换
|
//记得切换
|
||||||
|
|
||||||
//正式
|
//正式
|
||||||
// const mediaUrl = '/public/';
|
const mediaUrl = '/public/';
|
||||||
// const baseUrl = '/';
|
const baseUrl = '/';
|
||||||
|
|
||||||
|
|
||||||
// const mediaUrl = 'https://submission.tmrjournals.com/public/';
|
// const mediaUrl = 'https://submission.tmrjournals.com/public/';
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
// const baseUrl = '/api';
|
// const baseUrl = '/api';
|
||||||
//晓玲
|
//晓玲
|
||||||
|
|
||||||
const mediaUrl = 'http://zmzm.tougao.dev.com/public/';
|
// const mediaUrl = 'http://zmzm.tougao.dev.com/public/';
|
||||||
|
|
||||||
const baseUrl = '/api';
|
// const baseUrl = '/api';
|
||||||
|
|
||||||
// const mediaUrl = 'http://www.tougao.com/';
|
// const mediaUrl = 'http://www.tougao.com/';
|
||||||
// const baseUrl = 'http://www.tougao.com/';
|
// const baseUrl = 'http://www.tougao.com/';
|
||||||
|
|||||||
@@ -53,9 +53,10 @@
|
|||||||
>Avg: <em>{{ journalInfo.avg }}</em></span
|
>Avg: <em>{{ journalInfo.avg }}</em></span
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
>Total: <em>{{ journalInfo.boards_count }}</em>
|
>Total: <em>{{ journalInfo.boards_count }}</em
|
||||||
|
>
|
||||||
<span style="color: #909399; float: none"
|
<span style="color: #909399; float: none"
|
||||||
>( China: <em style="color: #2675c7;font-weight: 500;">{{ journalInfo.china_count }}</em
|
>( China: <em style="color: #2675c7; font-weight: 500">{{ journalInfo.china_count }}</em
|
||||||
>)</span
|
>)</span
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
@@ -593,30 +594,29 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-form ref="add_Form" :model="addForm" :rules="rules" label-width="150px" v-if="dis_able">
|
<el-form ref="add_Form" :model="addForm" :rules="rules" label-width="150px" v-if="dis_able">
|
||||||
|
|
||||||
<el-form-item label="Personal Picture :" prop="icon">
|
<el-form-item label="Personal Picture :" prop="icon">
|
||||||
<div class="portrait" @click="unplIcon">
|
<div class="portrait" @click="unplIcon">
|
||||||
<img src="@/assets/img/userImg.jpg" class="portrait" v-if="pictureUrl == ''" />
|
<img src="@/assets/img/userImg.jpg" class="portrait" v-if="pictureUrl == ''" />
|
||||||
<img :src="pictureUrl" class="portrait" v-if="pictureUrl != ''" />
|
<img :src="pictureUrl" class="portrait" v-if="pictureUrl != ''" />
|
||||||
<el-upload
|
<el-upload
|
||||||
class="avatar-uploader"
|
class="avatar-uploader"
|
||||||
ref="upIconIMg"
|
ref="upIconIMg"
|
||||||
:action="baseUrl + 'api/Ucenter/up_userIcon_file'"
|
:action="baseUrl + 'api/Ucenter/up_userIcon_file'"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
name="icon"
|
name="icon"
|
||||||
:on-success="handleAvatarSuccess2"
|
:on-success="handleAvatarSuccess2"
|
||||||
:on-error="handleAvatarError2"
|
:on-error="handleAvatarError2"
|
||||||
:before-upload="beforeAvatarUpload2"
|
:before-upload="beforeAvatarUpload2"
|
||||||
style="display: none"
|
style="display: none"
|
||||||
>
|
>
|
||||||
<img v-if="pictureUrl == ''" :src="pictureUrl" class="avatar" accept=".png,.jpg" />
|
<img v-if="pictureUrl == ''" :src="pictureUrl" class="avatar" accept=".png,.jpg" />
|
||||||
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<div class="ptmark">Upload avatar</div>
|
<div class="ptmark">Upload avatar</div>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Email :" prop="email">
|
<el-form-item label="Email :" prop="email">
|
||||||
<el-input v-model="addForm.email"></el-input>
|
<el-input v-model="addForm.email"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="Account :" prop="account">
|
<!-- <el-form-item label="Account :" prop="account">
|
||||||
{{addForm.account}}
|
{{addForm.account}}
|
||||||
@@ -627,7 +627,6 @@
|
|||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<el-form-item label="English name :" prop="realname">
|
<el-form-item label="English name :" prop="realname">
|
||||||
<el-input v-model="addForm.realname"></el-input>
|
<el-input v-model="addForm.realname"></el-input>
|
||||||
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Website :" prop="website">
|
<el-form-item label="Website :" prop="website">
|
||||||
<el-input v-model="addForm.website" placeholder="eg:http://..."></el-input>
|
<el-input v-model="addForm.website" placeholder="eg:http://..."></el-input>
|
||||||
@@ -713,42 +712,46 @@
|
|||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="Personal Picture :" prop="email">
|
<el-form-item label="Personal Picture :" prop="email">
|
||||||
<div class="portrait" @click="unplIcon">
|
<div class="portrait" @click="unplIcon">
|
||||||
<img src="@/assets/img/userImg.jpg" class="portrait" v-if="pictureUrl == ''" />
|
<img src="@/assets/img/userImg.jpg" class="portrait" v-if="pictureUrl == ''" />
|
||||||
<img :src="pictureUrl" class="portrait" v-if="pictureUrl != ''" />
|
<img :src="pictureUrl" class="portrait" v-if="pictureUrl != ''" />
|
||||||
<el-upload
|
<el-upload
|
||||||
class="avatar-uploader"
|
class="avatar-uploader"
|
||||||
ref="upIconIMg"
|
ref="upIconIMg"
|
||||||
:action="baseUrl + 'api/Ucenter/up_userIcon_file'"
|
:action="baseUrl + 'api/Ucenter/up_userIcon_file'"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
name="icon"
|
name="icon"
|
||||||
:on-success="handleAvatarSuccess2"
|
:on-success="handleAvatarSuccess2"
|
||||||
:on-error="handleAvatarError2"
|
:on-error="handleAvatarError2"
|
||||||
:before-upload="beforeAvatarUpload2"
|
:before-upload="beforeAvatarUpload2"
|
||||||
style="display: none"
|
style="display: none"
|
||||||
>
|
>
|
||||||
<img v-if="pictureUrl" :src="pictureUrl" class="avatar" accept=".png,.jpg" />
|
<img v-if="pictureUrl" :src="pictureUrl" class="avatar" accept=".png,.jpg" />
|
||||||
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<div class="ptmark">Upload avatar</div>
|
<div class="ptmark">Upload avatar</div>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Email :" prop="email">
|
<el-form-item label="Email :" prop="email">
|
||||||
<el-input v-model="BoardEditorForm.email"></el-input>
|
<el-input v-model="BoardEditorForm.email"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="English name :" prop="realname">
|
<el-form-item label="English name :" prop="realname">
|
||||||
<el-input v-model="BoardEditorForm.realname"></el-input>
|
<el-input v-model="BoardEditorForm.realname"></el-input>
|
||||||
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|
||||||
<el-form-item label="Website :" prop="website">
|
<el-form-item label="Website :" prop="website">
|
||||||
<el-input v-model="BoardEditorForm.website" placeholder="eg:http://..."></el-input>
|
<el-input v-model="BoardEditorForm.website" placeholder="eg:http://..."></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Title :" prop="technical">
|
<el-form-item label="Title :" prop="technical">
|
||||||
<el-select v-model="BoardEditorForm.technical" filterable placeholder="Please select" value-key="groupID" style="width: 200px">
|
<el-select
|
||||||
|
v-model="BoardEditorForm.technical"
|
||||||
|
filterable
|
||||||
|
placeholder="Please select"
|
||||||
|
value-key="groupID"
|
||||||
|
style="width: 200px"
|
||||||
|
>
|
||||||
<el-option v-for="item in df_technical" :key="item.label" :label="item.label" :value="item.label"></el-option>
|
<el-option v-for="item in df_technical" :key="item.label" :label="item.label" :value="item.label"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -771,7 +774,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
pictureUrl:'',
|
pictureUrl: '',
|
||||||
journalInfo: {}, // 选中期刊信息
|
journalInfo: {}, // 选中期刊信息
|
||||||
baseUrl: this.Common.baseUrl,
|
baseUrl: this.Common.baseUrl,
|
||||||
mediaUrl: this.Common.mediaUrl,
|
mediaUrl: this.Common.mediaUrl,
|
||||||
@@ -791,7 +794,7 @@ export default {
|
|||||||
BoardEditorForm: {
|
BoardEditorForm: {
|
||||||
btj_id: null,
|
btj_id: null,
|
||||||
type: 0,
|
type: 0,
|
||||||
|
|
||||||
research_areas: '',
|
research_areas: '',
|
||||||
email: '',
|
email: '',
|
||||||
icon: '',
|
icon: '',
|
||||||
@@ -800,7 +803,7 @@ export default {
|
|||||||
affiliation: '',
|
affiliation: '',
|
||||||
website: '',
|
website: '',
|
||||||
realname: '',
|
realname: '',
|
||||||
type: '',
|
type: ''
|
||||||
},
|
},
|
||||||
BoardEditorFormVisible: false,
|
BoardEditorFormVisible: false,
|
||||||
addForm: {
|
addForm: {
|
||||||
@@ -811,12 +814,10 @@ export default {
|
|||||||
affiliation: '',
|
affiliation: '',
|
||||||
website: '',
|
website: '',
|
||||||
realname: '',
|
realname: '',
|
||||||
type: '',
|
type: ''
|
||||||
|
|
||||||
},
|
},
|
||||||
editForm: {
|
editForm: {
|
||||||
journal_id: 0,
|
journal_id: 0
|
||||||
|
|
||||||
},
|
},
|
||||||
edit_group: [],
|
edit_group: [],
|
||||||
dis_able: false,
|
dis_able: false,
|
||||||
@@ -1192,15 +1193,15 @@ export default {
|
|||||||
|
|
||||||
//上传头像
|
//上传头像
|
||||||
handleAvatarSuccess2(res, file) {
|
handleAvatarSuccess2(res, file) {
|
||||||
console.log('res at line 1183:', res)
|
console.log('res at line 1183:', res);
|
||||||
// upurl
|
// upurl
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
if(this.addVisible){
|
if (this.addVisible) {
|
||||||
this.addForm.icon=res.upurl
|
this.addForm.icon = res.upurl;
|
||||||
}else if(this.BoardEditorFormVisible){
|
} else if (this.BoardEditorFormVisible) {
|
||||||
this.BoardEditorForm.icon=res.upurl
|
this.BoardEditorForm.icon = res.upurl;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.pictureUrl = URL.createObjectURL(file.raw);
|
this.pictureUrl = URL.createObjectURL(file.raw);
|
||||||
// this.$api
|
// this.$api
|
||||||
// .post('api/Ucenter/updateIncon', {
|
// .post('api/Ucenter/updateIncon', {
|
||||||
@@ -1382,23 +1383,19 @@ export default {
|
|||||||
this.$refs.BoardEditorForm.validate((valid) => {
|
this.$refs.BoardEditorForm.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.BoardEditorForm.icon == '' || this.BoardEditorForm.icon == undefined) {
|
if (this.BoardEditorForm.icon == '' || this.BoardEditorForm.icon == undefined) {
|
||||||
this.$message.error('Please upload the picture!');
|
this.$message.error('Please upload the picture!');
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
this.$api
|
this.$api
|
||||||
.post('/api/Board/editBoardNew', this.BoardEditorForm)
|
.post('/api/Board/editBoardNew', this.BoardEditorForm)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|
||||||
this.$refs.BoardEditorForm.resetFields();
|
this.$refs.BoardEditorForm.resetFields();
|
||||||
this.$message.success('succeed!');
|
this.$message.success('succeed!');
|
||||||
this.BoardEditorFormVisible = false;
|
this.BoardEditorFormVisible = false;
|
||||||
setTimeout(()=>{
|
setTimeout(() => {
|
||||||
this.getDate();
|
this.getDate();
|
||||||
},500)
|
}, 500);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.msg);
|
this.$message.error(res.msg);
|
||||||
}
|
}
|
||||||
@@ -1520,7 +1517,7 @@ export default {
|
|||||||
|
|
||||||
// 添加操作
|
// 添加操作
|
||||||
addEditor(index, row) {
|
addEditor(index, row) {
|
||||||
this.$set(this.addForm,'journal_id', this.add_jour[0].journal_id)
|
this.$set(this.addForm, 'journal_id', this.add_jour[0].journal_id);
|
||||||
// this.addForm.journal_id = this.add_jour[0].journal_id;
|
// this.addForm.journal_id = this.add_jour[0].journal_id;
|
||||||
this.getJourAdd();
|
this.getJourAdd();
|
||||||
this.addVisible = true;
|
this.addVisible = true;
|
||||||
@@ -1530,7 +1527,7 @@ export default {
|
|||||||
getJourAdd(type) {
|
getJourAdd(type) {
|
||||||
this.$api
|
this.$api
|
||||||
.post('api/Board/getBoardGroupList', {
|
.post('api/Board/getBoardGroupList', {
|
||||||
journal_id:type?this.BoardEditorForm.journal_id: this.addForm.journal_id
|
journal_id: type ? this.BoardEditorForm.journal_id : this.addForm.journal_id
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
@@ -1551,46 +1548,41 @@ export default {
|
|||||||
|
|
||||||
// 编辑编委操作
|
// 编辑编委操作
|
||||||
bhandleEdit(index, row) {
|
bhandleEdit(index, row) {
|
||||||
|
|
||||||
this.$api
|
this.$api
|
||||||
.post('api/Board/getBoardInfo', {
|
.post('api/Board/getBoardInfo', {
|
||||||
btj_id: row.btj_id
|
btj_id: row.btj_id
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0&&res.data) {
|
if (res.code == 0 && res.data) {
|
||||||
|
var info = { ...res.data };
|
||||||
var info={...res.data}
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
this.BoardEditorForm.btj_id = info.btj_id;
|
||||||
this.BoardEditorForm.btj_id = info.btj_id;
|
this.BoardEditorForm.type = info.type;
|
||||||
this.BoardEditorForm.type = info.type;
|
this.BoardEditorForm.board_group_id = info.board_group_id;
|
||||||
this.BoardEditorForm.board_group_id = info.board_group_id;
|
this.BoardEditorForm.research_areas = info.research_areas;
|
||||||
this.BoardEditorForm.research_areas = info.research_areas;
|
this.BoardEditorForm.affiliation = info.affiliation;
|
||||||
this.BoardEditorForm.affiliation = info.affiliation||info.company;
|
this.BoardEditorForm.icon = info.icon;
|
||||||
this.BoardEditorForm.icon = info.icon;
|
this.BoardEditorForm.technical = info.technical;
|
||||||
this.BoardEditorForm.technical = info.technical;
|
this.BoardEditorForm.website = info.website;
|
||||||
this.BoardEditorForm.website = info.website;
|
this.BoardEditorForm.email = info.email;
|
||||||
this.BoardEditorForm.email = info.email;
|
this.BoardEditorForm.realname = info.realname;
|
||||||
this.BoardEditorForm.realname = info.realname;
|
this.BoardEditorForm.journal_id = info.journal_id;
|
||||||
this.BoardEditorForm.journal_id = info.journal_id;
|
// this.pictureUrl=this.mediaUrl + 'usericon/' + info.icon;
|
||||||
// this.pictureUrl=this.mediaUrl + 'usericon/' + info.icon;
|
|
||||||
|
|
||||||
if (info.icon != '') {
|
if (info.icon != '') {
|
||||||
this.pictureUrl = this.mediaUrl + 'usericon/' + info.icon;
|
this.pictureUrl = this.mediaUrl + 'usericon/' + info.icon;
|
||||||
} else {
|
} else {
|
||||||
this.pictureUrl = '';
|
this.pictureUrl = '';
|
||||||
}
|
}
|
||||||
this.getJourAdd('edit');
|
this.getJourAdd('edit');
|
||||||
this.BoardEditorFormVisible = true;
|
this.BoardEditorFormVisible = true;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
this.$message.error(err);
|
this.$message.error(err);
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
// 查找账号
|
// 查找账号
|
||||||
saerNa_U() {
|
saerNa_U() {
|
||||||
@@ -1615,7 +1607,7 @@ export default {
|
|||||||
this.addForm.technical = res.data.user_info.technical;
|
this.addForm.technical = res.data.user_info.technical;
|
||||||
this.addForm.icon = res.data.user_info.icon;
|
this.addForm.icon = res.data.user_info.icon;
|
||||||
this.pictureUrl = this.mediaUrl + 'usericon/' + res.data.user_info.icon;
|
this.pictureUrl = this.mediaUrl + 'usericon/' + res.data.user_info.icon;
|
||||||
this.$forceUpdate()
|
this.$forceUpdate();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.msg);
|
this.$message.error(res.msg);
|
||||||
@@ -1631,14 +1623,13 @@ export default {
|
|||||||
|
|
||||||
// 保存添加
|
// 保存添加
|
||||||
saveAdd() {
|
saveAdd() {
|
||||||
|
console.log('this.addForm at line 1597:', this.addForm);
|
||||||
console.log('this.addForm at line 1597:', this.addForm)
|
|
||||||
|
|
||||||
this.$refs.add_Form.validate((valid) => {
|
this.$refs.add_Form.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.addForm.icon == '' || this.addForm.icon == undefined) {
|
if (this.addForm.icon == '' || this.addForm.icon == undefined) {
|
||||||
this.$message.error('Please upload the picture!');
|
this.$message.error('Please upload the picture!');
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
this.$api
|
this.$api
|
||||||
.post('api/Board/addBoardNew', {
|
.post('api/Board/addBoardNew', {
|
||||||
@@ -1652,7 +1643,7 @@ export default {
|
|||||||
website: this.addForm.website,
|
website: this.addForm.website,
|
||||||
affiliation: this.addForm.affiliation,
|
affiliation: this.addForm.affiliation,
|
||||||
technical: this.addForm.technical,
|
technical: this.addForm.technical,
|
||||||
icon: this.addForm.icon,
|
icon: this.addForm.icon
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
@@ -1660,9 +1651,9 @@ export default {
|
|||||||
this.$refs.add_Form.resetFields();
|
this.$refs.add_Form.resetFields();
|
||||||
this.$message.success(`Added successfully!`);
|
this.$message.success(`Added successfully!`);
|
||||||
this.dis_able = false;
|
this.dis_able = false;
|
||||||
setTimeout(()=>{
|
setTimeout(() => {
|
||||||
this.getDate();
|
this.getDate();
|
||||||
},500)
|
}, 500);
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.msg);
|
this.$message.error(res.msg);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ module.exports = {
|
|||||||
// target: 'http://api.tmrjournals.com/public/index.php/',//正式
|
// target: 'http://api.tmrjournals.com/public/index.php/',//正式
|
||||||
|
|
||||||
// target: 'http://192.168.110.90:80/',//晓玲
|
// target: 'http://192.168.110.90:80/',//晓玲
|
||||||
target: 'http://zmzm.tougao.dev.com/',//晓玲
|
// target: 'http://zmzm.tougao.dev.com/',//晓玲
|
||||||
// target: 'https://submission.tmrjournals.com/',//正式
|
target: 'https://submission.tmrjournals.com/',//正式
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/api': ''
|
'^/api': ''
|
||||||
|
|||||||
Reference in New Issue
Block a user