Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
cea867bdaf
152
src/App.vue
152
src/App.vue
|
@ -37,7 +37,12 @@
|
||||||
height="100"
|
height="100"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
<el-table-column prop="Code" label="标签" width="300" show-overflow-tooltip>
|
<el-table-column
|
||||||
|
prop="Code"
|
||||||
|
label="标签"
|
||||||
|
width="300"
|
||||||
|
show-overflow-tooltip
|
||||||
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column-->
|
<!-- <el-table-column-->
|
||||||
<!-- prop="Description"-->
|
<!-- prop="Description"-->
|
||||||
|
@ -54,7 +59,7 @@
|
||||||
v-model="scope.row.Value"
|
v-model="scope.row.Value"
|
||||||
@input="
|
@input="
|
||||||
(e) => {
|
(e) => {
|
||||||
$set(scope.row, 'Value', e);
|
$set(scope.row, 'Value', e)
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
@ -67,7 +72,7 @@
|
||||||
v-model="scope.row.ValueCN"
|
v-model="scope.row.ValueCN"
|
||||||
@input="
|
@input="
|
||||||
(e) => {
|
(e) => {
|
||||||
$set(scope.row, 'ValueCN', e);
|
$set(scope.row, 'ValueCN', e)
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
@ -90,13 +95,13 @@
|
||||||
import {
|
import {
|
||||||
batchAddOrUpdateFrontInternationalization,
|
batchAddOrUpdateFrontInternationalization,
|
||||||
getFrontInternationalizationList,
|
getFrontInternationalizationList,
|
||||||
} from "@/api/dictionary/dictionary";
|
} from '@/api/dictionary/dictionary'
|
||||||
import { getTrialExtralConfig } from "@/api/trials";
|
import { getTrialExtralConfig } from '@/api/trials'
|
||||||
import feedBack from "@/views/trials/trials-layout/components/feedBack";
|
import feedBack from '@/views/trials/trials-layout/components/feedBack'
|
||||||
import Vue from "vue";
|
import Vue from 'vue'
|
||||||
import i18n from "./lang";
|
import i18n from './lang'
|
||||||
export default {
|
export default {
|
||||||
name: "App",
|
name: 'App',
|
||||||
components: { feedBack },
|
components: { feedBack },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -105,38 +110,43 @@ export default {
|
||||||
show: false,
|
show: false,
|
||||||
key: null,
|
key: null,
|
||||||
arr: [],
|
arr: [],
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.show = process.env.VUE_APP_OSS_PATH === "/test/dist";
|
this.show = process.env.VUE_APP_OSS_PATH === '/test/dist'
|
||||||
},
|
|
||||||
watch: {
|
|
||||||
"$route.query": {
|
|
||||||
async handler() {
|
|
||||||
if (
|
|
||||||
this.$route.query.trialId &&
|
|
||||||
this.$route.query.trialId !==
|
|
||||||
this.$store.state.trials.config.trialId &&
|
|
||||||
this.$store.state.trials.whiteList.indexOf(this.$route.path) === -1
|
|
||||||
) {
|
|
||||||
let res = await getTrialExtralConfig({
|
|
||||||
TrialId: this.$route.query.trialId,
|
|
||||||
});
|
|
||||||
if (res.IsSuccess) {
|
|
||||||
this.$store.dispatch("trials/setConfig", {
|
|
||||||
trialId: this.$route.query.trialId,
|
|
||||||
...res.Result,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
immediate: true,
|
|
||||||
deep: true,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
// watch: {
|
||||||
|
// '$route.query': {
|
||||||
|
// async handler() {
|
||||||
|
// if (!this.$route.query.trialId) {
|
||||||
|
// this.$store.dispatch('trials/setConfig', {})
|
||||||
|
// }
|
||||||
|
// if (
|
||||||
|
// this.$route.query.trialId &&
|
||||||
|
// this.$route.query.trialId !==
|
||||||
|
// this.$store.state.trials.config.trialId &&
|
||||||
|
// this.$store.state.trials.whiteList.indexOf(this.$route.path) === -1
|
||||||
|
// ) {
|
||||||
|
// let res = await getTrialExtralConfig({
|
||||||
|
// TrialId: this.$route.query.trialId,
|
||||||
|
// })
|
||||||
|
// console.log(222222222222)
|
||||||
|
// res.Result.aa = { 阅片人: '采集人', 申办方: 'aaa' }
|
||||||
|
// if (res.IsSuccess) {
|
||||||
|
// this.$store.dispatch('trials/setConfig', {
|
||||||
|
// trialId: this.$route.query.trialId,
|
||||||
|
// ...res.Result,
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// immediate: true,
|
||||||
|
// deep: true,
|
||||||
|
// },
|
||||||
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
changeValue(target, attr, e) {
|
changeValue(target, attr, e) {
|
||||||
this.$set(target, attr, e);
|
this.$set(target, attr, e)
|
||||||
},
|
},
|
||||||
keyChange(v) {
|
keyChange(v) {
|
||||||
if (this.key) {
|
if (this.key) {
|
||||||
|
@ -148,65 +158,65 @@ export default {
|
||||||
~v.Value.indexOf(this.key) ||
|
~v.Value.indexOf(this.key) ||
|
||||||
~v.ValueCN.indexOf(this.key)
|
~v.ValueCN.indexOf(this.key)
|
||||||
)
|
)
|
||||||
);
|
)
|
||||||
} else {
|
} else {
|
||||||
this.tableData = Object.assign([], this.arr);
|
this.tableData = Object.assign([], this.arr)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.$confirm("确定修改当前页面国际化内容?").then(() => {
|
this.$confirm('确定修改当前页面国际化内容?').then(() => {
|
||||||
batchAddOrUpdateFrontInternationalization(this.tableData).then(
|
batchAddOrUpdateFrontInternationalization(this.tableData).then(
|
||||||
async (res) => {
|
async (res) => {
|
||||||
var zhMessages = {},
|
var zhMessages = {},
|
||||||
enMessages = {};
|
enMessages = {}
|
||||||
var Internationalization = await getFrontInternationalizationList();
|
var Internationalization = await getFrontInternationalizationList()
|
||||||
Vue.prototype.$tl = Internationalization.Result;
|
Vue.prototype.$tl = Internationalization.Result
|
||||||
this.tableData.forEach((v) => {
|
this.tableData.forEach((v) => {
|
||||||
// zhMessages[v.Description + '_' + v.Code] = v.ValueCN
|
// zhMessages[v.Description + '_' + v.Code] = v.ValueCN
|
||||||
// enMessages[v.Description + '_' + v.Code] = v.Value
|
// enMessages[v.Description + '_' + v.Code] = v.Value
|
||||||
zhMessages[v.Code] = v.ValueCN;
|
zhMessages[v.Code] = v.ValueCN
|
||||||
enMessages[v.Code] = v.Value;
|
enMessages[v.Code] = v.Value
|
||||||
});
|
})
|
||||||
i18n.mergeLocaleMessage("zh", zhMessages);
|
i18n.mergeLocaleMessage('zh', zhMessages)
|
||||||
i18n.mergeLocaleMessage("en", enMessages);
|
i18n.mergeLocaleMessage('en', enMessages)
|
||||||
this.drawer = false;
|
this.drawer = false
|
||||||
this.$message.success("国际化修改成功");
|
this.$message.success('国际化修改成功')
|
||||||
}
|
}
|
||||||
);
|
)
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
openI18n() {
|
openI18n() {
|
||||||
this.tableData = [];
|
this.tableData = []
|
||||||
this.key = null;
|
this.key = null
|
||||||
this.drawer = true;
|
this.drawer = true
|
||||||
let arr = [];
|
let arr = []
|
||||||
let tableData = this.$tl.map((v) => {
|
let tableData = this.$tl.map((v) => {
|
||||||
let a = { ...v };
|
let a = { ...v }
|
||||||
// if (!a.Description) {
|
// if (!a.Description) {
|
||||||
// a.Description = this.$route.path
|
// a.Description = this.$route.path
|
||||||
// }
|
// }
|
||||||
return a;
|
return a
|
||||||
});
|
})
|
||||||
tableData = tableData.filter((v) => {
|
tableData = tableData.filter((v) => {
|
||||||
// return ~this.$path.indexOf(v.Description + '_' + v.Code)
|
// return ~this.$path.indexOf(v.Description + '_' + v.Code)
|
||||||
return ~this.$path.indexOf(v.Code);
|
return ~this.$path.indexOf(v.Code)
|
||||||
});
|
})
|
||||||
this.$path.forEach((v) => {
|
this.$path.forEach((v) => {
|
||||||
let o = tableData.find((a) => {
|
let o = tableData.find((a) => {
|
||||||
return a.Code === v;
|
return a.Code === v
|
||||||
});
|
})
|
||||||
if (o) {
|
if (o) {
|
||||||
arr.push(o);
|
arr.push(o)
|
||||||
} else {
|
} else {
|
||||||
arr.push({
|
arr.push({
|
||||||
Code: v,
|
Code: v,
|
||||||
Description: null,
|
Description: null,
|
||||||
Value: null,
|
Value: null,
|
||||||
ValueCN: null,
|
ValueCN: null,
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
this.arr = arr;
|
this.arr = arr
|
||||||
if (this.key) {
|
if (this.key) {
|
||||||
this.tableData = Object.assign(
|
this.tableData = Object.assign(
|
||||||
[],
|
[],
|
||||||
|
@ -216,15 +226,15 @@ export default {
|
||||||
~v.Value.indexOf(this.key) ||
|
~v.Value.indexOf(this.key) ||
|
||||||
~v.ValueCN.indexOf(this.key)
|
~v.ValueCN.indexOf(this.key)
|
||||||
)
|
)
|
||||||
);
|
)
|
||||||
} else {
|
} else {
|
||||||
this.tableData = Object.assign([], this.arr);
|
this.tableData = Object.assign([], this.arr)
|
||||||
}
|
}
|
||||||
// console.log(JSON.stringify(this.$path))
|
// console.log(JSON.stringify(this.$path))
|
||||||
// console.log(JSON.stringify(this.tableData))
|
// console.log(JSON.stringify(this.tableData))
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
@ -249,7 +259,7 @@ input::-webkit-inner-spin-button {
|
||||||
-webkit-appearance: none !important;
|
-webkit-appearance: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="number"] {
|
input[type='number'] {
|
||||||
-moz-appearance: textfield !important;
|
-moz-appearance: textfield !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -275,7 +285,7 @@ textarea {
|
||||||
color: $light_gray;
|
color: $light_gray;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-family: "Times New Roman";
|
font-family: 'Times New Roman';
|
||||||
text-shadow: 1px 0.5px 1.5px #666;
|
text-shadow: 1px 0.5px 1.5px #666;
|
||||||
}
|
}
|
||||||
.title-logo {
|
.title-logo {
|
||||||
|
|
|
@ -1061,4 +1061,12 @@ export function getSystemCalculateTableQuestions(params) {
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: params
|
data: params
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
// 添加pd/入组默认邮件
|
||||||
|
export function batchAddEnrollOrPdEmailConfig(params) {
|
||||||
|
return request({
|
||||||
|
url: `/TrialEmailNoticeConfig/batchAddEnrollOrPdEmailConfig`,
|
||||||
|
method: 'post',
|
||||||
|
params
|
||||||
|
})
|
||||||
}
|
}
|
13
src/main.js
13
src/main.js
|
@ -295,13 +295,18 @@ async function VueInit() {
|
||||||
}
|
}
|
||||||
Vue.prototype.$path = []
|
Vue.prototype.$path = []
|
||||||
var t = function (key) {
|
var t = function (key) {
|
||||||
// if (![Vue.prototype.toPath + '_' + key].includes(Vue.prototype.$path)) {
|
|
||||||
if (!~Vue.prototype.$path.indexOf(key)) {
|
if (!~Vue.prototype.$path.indexOf(key)) {
|
||||||
// Vue.prototype.$path.push(Vue.prototype.toPath + '_' + key)
|
|
||||||
Vue.prototype.$path.push(key)
|
Vue.prototype.$path.push(key)
|
||||||
}
|
}
|
||||||
// return i18n.t(Vue.prototype.toPath + '_' + key)
|
let text = i18n.t(key)
|
||||||
return i18n.t(key)
|
if (store.state.trials.config.aa) {
|
||||||
|
Object.keys(store.state.trials.config.aa).forEach(key => {
|
||||||
|
let test = new RegExp(key)
|
||||||
|
text = text.replace(test, store.state.trials.config.aa[key])
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// return i18n.t(key)
|
||||||
|
return text;
|
||||||
}
|
}
|
||||||
Vue.prototype.$t = t
|
Vue.prototype.$t = t
|
||||||
_vm = new Vue({
|
_vm = new Vue({
|
||||||
|
|
|
@ -7,6 +7,7 @@ import { getToken } from '@/utils/auth'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { OSSclient } from './utils/oss'
|
import { OSSclient } from './utils/oss'
|
||||||
import WHITELIST from "./utils/whiteList"
|
import WHITELIST from "./utils/whiteList"
|
||||||
|
import { getTrialExtralConfig } from '@/api/trials'
|
||||||
// import getPageTitle from '@/utils/get-page-title'
|
// import getPageTitle from '@/utils/get-page-title'
|
||||||
|
|
||||||
NProgress.configure({ showSpinner: false })
|
NProgress.configure({ showSpinner: false })
|
||||||
|
@ -88,6 +89,27 @@ router.beforeEach(async (to, from, next) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!to.query.trialId) {
|
||||||
|
store.dispatch('trials/setConfig', {})
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
to.query.trialId &&
|
||||||
|
to.query.trialId !==
|
||||||
|
store.state.trials.config.trialId &&
|
||||||
|
store.state.trials.whiteList.indexOf(to.path) === -1
|
||||||
|
) {
|
||||||
|
let res = await getTrialExtralConfig({
|
||||||
|
TrialId: to.query.trialId,
|
||||||
|
})
|
||||||
|
res.Result.aa = { 阅片人: '采集人', 申办方: 'aaa' }
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
store.dispatch('trials/setConfig', {
|
||||||
|
trialId: to.query.trialId,
|
||||||
|
...res.Result,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
router.afterEach(() => {
|
router.afterEach(() => {
|
||||||
|
|
|
@ -456,10 +456,12 @@ export default {
|
||||||
},
|
},
|
||||||
// 输入框输入事件
|
// 输入框输入事件
|
||||||
setPassword(val) {
|
setPassword(val) {
|
||||||
|
console.log(val)
|
||||||
if (this.isShowPassword) {
|
if (this.isShowPassword) {
|
||||||
this.loginForm.password = val
|
this.loginForm.password = val
|
||||||
} else {
|
} else {
|
||||||
let reg = /[0-9a-zA-Z]/g // 只允许输入字母和数字
|
let reg =
|
||||||
|
/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[-_.@^+\$!%#*?&\$~])[A-Za-z0-9-~_.@^+\$~!%#*?&]{8,32}$/g // 只允许输入字母和数字
|
||||||
let nDot = /[^●]/g // 非圆点字符
|
let nDot = /[^●]/g // 非圆点字符
|
||||||
let index = -1 // 新输入的字符位置
|
let index = -1 // 新输入的字符位置
|
||||||
let lastChar = void 0 // 新输入的字符
|
let lastChar = void 0 // 新输入的字符
|
||||||
|
@ -475,25 +477,31 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// 判断输入的字符是否符合规范,不符合的话去掉该字符
|
// 判断输入的字符是否符合规范,不符合的话去掉该字符
|
||||||
if (lastChar && !reg.test(lastChar)) {
|
// if (lastChar && !reg.test(lastChar)) {
|
||||||
coverArr.splice(index, 1)
|
// coverArr.splice(index, 1)
|
||||||
this.pwdCover = coverArr.join('')
|
// this.pwdCover = coverArr.join('')
|
||||||
return
|
// console.log(111111111111111, lastChar)
|
||||||
}
|
// // return
|
||||||
if (realLen < coverLen) {
|
// }
|
||||||
// 新增字符
|
if (coverLen - realLen <= 2) {
|
||||||
realArr.splice(index, 0, lastChar)
|
if (realLen < coverLen) {
|
||||||
} else if (coverLen <= realLen && index !== -1) {
|
// 新增字符
|
||||||
// 替换字符(选取一个或多个字符直接替换)
|
realArr.splice(index, 0, lastChar)
|
||||||
realArr.splice(index, realLen - (coverLen - 1), lastChar)
|
} else if (coverLen <= realLen && index !== -1) {
|
||||||
} else {
|
// 替换字符(选取一个或多个字符直接替换)
|
||||||
// 删除字符,因为 val 全是 ● ,没有办法匹配,不知道是从末尾还是中间删除的字符,删除了几个,不好对 password 处理,所以可以通过光标的位置和 val 的长度来判断
|
realArr.splice(index, realLen - (coverLen - 1), lastChar)
|
||||||
let pos = document.getElementById('pwd').selectionEnd // 获取光标位置
|
} else {
|
||||||
realArr.splice(pos, realLen - coverLen)
|
// 删除字符,因为 val 全是 ● ,没有办法匹配,不知道是从末尾还是中间删除的字符,删除了几个,不好对 password 处理,所以可以通过光标的位置和 val 的长度来判断
|
||||||
|
let pos = document.getElementById('pwd').selectionEnd // 获取光标位置
|
||||||
|
realArr.splice(pos, realLen - coverLen)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 将 pwdCover 替换成 ●
|
// 将 pwdCover 替换成 ●
|
||||||
this.pwdCover = val.replace(/\S/g, '●')
|
this.pwdCover = val.replace(/\S/g, '●')
|
||||||
this.loginForm.password = realArr.join('')
|
let v = val.replace(/●/g, '')
|
||||||
|
this.loginForm.password =
|
||||||
|
coverLen - realLen >= 2 ? realArr.join('') + v : realArr.join('')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 点击右侧小眼睛控制显示隐藏
|
// 点击右侧小眼睛控制显示隐藏
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
{{ $t('curriculumVitae:curriculum:fileTitle:EN') }}
|
{{ $t('curriculumVitae:curriculum:fileTitle:EN') }}
|
||||||
</div>
|
</div>
|
||||||
<template v-if="resumeListEN.length > 0">
|
<template v-if="resumeListEN.length > 0">
|
||||||
<div class="file" v-for="item in resumeListEN" :key="item">
|
<div class="file" v-for="item in resumeListEN" :key="item.FileName">
|
||||||
<div class="name" :title="item.FileName">{{ item.FileName }}</div>
|
<div class="name" :title="item.FileName">{{ item.FileName }}</div>
|
||||||
<i
|
<i
|
||||||
class="el-icon-download"
|
class="el-icon-download"
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
<template v-if="DATA.FirstName && DATA.LastName">
|
<template v-if="DATA.FirstName && DATA.LastName">
|
||||||
<div class="userInfo">
|
<div class="userInfo">
|
||||||
<span>{{ DATA.FirstName }}{{ DATA.LastName }}</span>
|
<span>{{ DATA.FirstName }}{{ DATA.LastName }}</span>
|
||||||
|
<span>{{ $fd('Sex', DATA.Sex) }}</span>
|
||||||
<span v-if="isEN">
|
<span v-if="isEN">
|
||||||
{{
|
{{
|
||||||
Array.isArray(DATA.TitleList) && DATA.TitleList.length > 0
|
Array.isArray(DATA.TitleList) && DATA.TitleList.length > 0
|
||||||
|
@ -494,11 +495,13 @@ export default {
|
||||||
openEdit() {
|
openEdit() {
|
||||||
this.form = defaultForm()
|
this.form = defaultForm()
|
||||||
Object.keys(this.form).forEach((key) => {
|
Object.keys(this.form).forEach((key) => {
|
||||||
if (this.DATA[key]) {
|
if (this.DATA[key] || this.DATA[key] == 0) {
|
||||||
this.form[key] = this.DATA[key]
|
this.form[key] = this.DATA[key]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.model_cfg.visible = true
|
this.model_cfg.visible = true
|
||||||
|
console.log(this.form)
|
||||||
|
console.log(this.DATA)
|
||||||
},
|
},
|
||||||
handleCancle() {
|
handleCancle() {
|
||||||
this.form = defaultForm()
|
this.form = defaultForm()
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
? reviewerData.BasicInfoView.BlindName
|
? reviewerData.BasicInfoView.BlindName
|
||||||
: reviewerData.BasicInfoView.BlindNameCN
|
: reviewerData.BasicInfoView.BlindNameCN
|
||||||
}}</span>
|
}}</span>
|
||||||
|
<span>{{ $fd('Sex', reviewerData.BasicInfoView.Sex) }}</span>
|
||||||
<span v-if="isEN">
|
<span v-if="isEN">
|
||||||
{{
|
{{
|
||||||
Array.isArray(reviewerData.BasicInfoView.TitleList) &&
|
Array.isArray(reviewerData.BasicInfoView.TitleList) &&
|
||||||
|
@ -536,7 +537,7 @@
|
||||||
{{ $t('curriculumVitae:curriculum:fileTitle:EN') }}
|
{{ $t('curriculumVitae:curriculum:fileTitle:EN') }}
|
||||||
</div>
|
</div>
|
||||||
<template v-if="true">
|
<template v-if="true">
|
||||||
<div class="file" v-for="item in resumeListEN" :key="item">
|
<div class="file" v-for="item in resumeListEN" :key="item.FileName">
|
||||||
<div class="name" :title="item.FileName">{{ item.FileName }}</div>
|
<div class="name" :title="item.FileName">{{ item.FileName }}</div>
|
||||||
<i
|
<i
|
||||||
class="el-icon-download"
|
class="el-icon-download"
|
||||||
|
@ -701,6 +702,10 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
trialId: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
isEN: {
|
isEN: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
|
@ -830,7 +835,7 @@ export default {
|
||||||
try {
|
try {
|
||||||
let id = this.reviewerId
|
let id = this.reviewerId
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let res = await getDetail(id)
|
let res = await getDetail(id, this.trialId)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.reviewerData = res.Result
|
this.reviewerData = res.Result
|
||||||
|
|
|
@ -15,7 +15,12 @@
|
||||||
<el-menu-item index="3">{{
|
<el-menu-item index="3">{{
|
||||||
$t('trials:trials-myinfo:menuTitle:loginLog')
|
$t('trials:trials-myinfo:menuTitle:loginLog')
|
||||||
}}</el-menu-item>
|
}}</el-menu-item>
|
||||||
<div index="4" @click="handleSelect('4')" class="el-menu-item">
|
<div
|
||||||
|
index="4"
|
||||||
|
@click="handleSelect('4')"
|
||||||
|
class="el-menu-item"
|
||||||
|
v-if="hasPermi(['role:ir'])"
|
||||||
|
>
|
||||||
{{ $t('trials:trials-myinfo:menuTitle:resume') }}
|
{{ $t('trials:trials-myinfo:menuTitle:resume') }}
|
||||||
</div>
|
</div>
|
||||||
</el-menu>
|
</el-menu>
|
||||||
|
@ -73,7 +78,7 @@ export default {
|
||||||
}
|
}
|
||||||
let id = await this.useUserIDGetDoctorID()
|
let id = await this.useUserIDGetDoctorID()
|
||||||
const routeData = this.$router.resolve({
|
const routeData = this.$router.resolve({
|
||||||
path: `/curriculumVitae?id=${id}&&lang=${this.$i18n.locale}`,
|
path: `/curriculumVitae?Id=${id}&&lang=${this.$i18n.locale}`,
|
||||||
})
|
})
|
||||||
this.open = window.open(routeData.href, '_blank')
|
this.open = window.open(routeData.href, '_blank')
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
icon="el-icon-view"
|
icon="el-icon-view"
|
||||||
circle
|
circle
|
||||||
:title="$t('trials:spmEnroll:button:view')"
|
:title="$t('trials:spmEnroll:button:view')"
|
||||||
@click="lookResumeInfo(scope.row)"
|
@click="handleDetail(scope.row)"
|
||||||
/>
|
/>
|
||||||
<!-- 同意 -->
|
<!-- 同意 -->
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -219,9 +219,11 @@ export default {
|
||||||
},
|
},
|
||||||
handleSelectTable(row) { return row.DoctorTrialState !== 8 },
|
handleSelectTable(row) { return row.DoctorTrialState !== 8 },
|
||||||
handleDetail(row) {
|
handleDetail(row) {
|
||||||
const { href } = this.$router.resolve({ path: `/trialsResume?doctorId=${row.Id}` })
|
const { href } = this.$router.resolve({
|
||||||
|
path: `/trialsResume?doctorId=${row.Id}&trialId=${this.$route.query.trialId}`,
|
||||||
|
})
|
||||||
window.open(href, '_blank')
|
window.open(href, '_blank')
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button> -->
|
<!-- <el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button> -->
|
||||||
<span style="color: #428bca;cursor: pointer;" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</span>
|
<span style="color: #428bca;cursor: pointer;" @click="go(`/trialsResume?doctorId=${scope.row.Id}&trialId=${$route.query.trialId}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- Name CN -->
|
<!-- Name CN -->
|
||||||
|
@ -160,7 +160,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleSelectTable(row) { return row.DoctorTrialState !== 8 },
|
handleSelectTable(row) { return row.DoctorTrialState !== 8 },
|
||||||
handleDetail(row) {
|
handleDetail(row) {
|
||||||
const { href } = this.$router.resolve({ path: `/trialsResume?doctorId=${row.Id}` })
|
const { href } = this.$router.resolve({ path: `/trialsResume?doctorId=${row.Id}&trialId=${this.$route.query.trialId}` })
|
||||||
window.open(href, '_blank')
|
window.open(href, '_blank')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<BaseContainer>
|
<BaseContainer>
|
||||||
<template slot="search-container">
|
<template slot="search-container">
|
||||||
<div style="margin-left:auto;">
|
<div style="margin-left: auto">
|
||||||
<!-- Confirm -->
|
<!-- Confirm -->
|
||||||
<el-button
|
<el-button
|
||||||
v-if="hasPermi(['role:pm'])"
|
v-if="hasPermi(['role:pm'])"
|
||||||
icon="el-icon-check"
|
icon="el-icon-check"
|
||||||
type="primary"
|
type="primary"
|
||||||
:disabled="confirmIdArr.length==0"
|
:disabled="confirmIdArr.length == 0"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@click="handleConfirm"
|
@click="handleConfirm"
|
||||||
>
|
>
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
<template slot="main-container">
|
<template slot="main-container">
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading"
|
v-loading="listLoading"
|
||||||
v-adaptive="{bottomOffset:65}"
|
v-adaptive="{ bottomOffset: 65 }"
|
||||||
height="100"
|
height="100"
|
||||||
:data="list"
|
:data="list"
|
||||||
class="table"
|
class="table"
|
||||||
|
@ -38,7 +38,15 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button> -->
|
<!-- <el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button> -->
|
||||||
<span style="color: #428bca;cursor: pointer;" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</span>
|
<span
|
||||||
|
style="color: #428bca; cursor: pointer"
|
||||||
|
@click="
|
||||||
|
go(
|
||||||
|
`/trialsResume?doctorId=${scope.row.Id}&trialId=${$route.query.trialId}&token=${token}`
|
||||||
|
)
|
||||||
|
"
|
||||||
|
>{{ scope.row.LastName }} / {{ scope.row.FirstName }}</span
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- Name CN -->
|
<!-- Name CN -->
|
||||||
|
@ -64,9 +72,15 @@
|
||||||
min-width="120"
|
min-width="120"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.DoctorTrialState === 10" type="primary">{{ $fd('DoctorTrialState', scope.row.DoctorTrialState) }}</el-tag>
|
<el-tag v-if="scope.row.DoctorTrialState === 10" type="primary">{{
|
||||||
<el-tag v-if="scope.row.DoctorTrialState === 9" type="warning">{{ $fd('DoctorTrialState', scope.row.DoctorTrialState) }}</el-tag>
|
$fd('DoctorTrialState', scope.row.DoctorTrialState)
|
||||||
<el-tag v-if="scope.row.DoctorTrialState === 8" type="danger">{{ $fd('DoctorTrialState', scope.row.DoctorTrialState) }}</el-tag>
|
}}</el-tag>
|
||||||
|
<el-tag v-if="scope.row.DoctorTrialState === 9" type="warning">{{
|
||||||
|
$fd('DoctorTrialState', scope.row.DoctorTrialState)
|
||||||
|
}}</el-tag>
|
||||||
|
<el-tag v-if="scope.row.DoctorTrialState === 8" type="danger">{{
|
||||||
|
$fd('DoctorTrialState', scope.row.DoctorTrialState)
|
||||||
|
}}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- Confirmor -->
|
<!-- Confirmor -->
|
||||||
|
@ -87,7 +101,13 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column> -->
|
</el-table-column> -->
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination class="page" :total="total" :page.sync="listQuery.PageIndex" :limit.sync="listQuery.PageSize" @pagination="getList" />
|
<pagination
|
||||||
|
class="page"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="listQuery.PageIndex"
|
||||||
|
:limit.sync="listQuery.PageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</BaseContainer>
|
</BaseContainer>
|
||||||
</template>
|
</template>
|
||||||
|
@ -108,15 +128,17 @@ export default {
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
PageSize: 20,
|
PageSize: 20,
|
||||||
Asc: false,
|
Asc: false,
|
||||||
SortField: ''
|
SortField: '',
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
listLoading: false,
|
listLoading: false,
|
||||||
confirmIdArr: [],
|
confirmIdArr: [],
|
||||||
token: store.getters.token
|
token: store.getters.token,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() { this.initPage() },
|
created() {
|
||||||
|
this.initPage()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
go(path) {
|
go(path) {
|
||||||
window.open(path)
|
window.open(path)
|
||||||
|
@ -127,23 +149,27 @@ export default {
|
||||||
getList() {
|
getList() {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
this.listQuery.TrialId = this.$route.query.trialId
|
this.listQuery.TrialId = this.$route.query.trialId
|
||||||
getConfirmationReviewerList(this.listQuery).then(res => {
|
getConfirmationReviewerList(this.listQuery)
|
||||||
this.listLoading = false
|
.then((res) => {
|
||||||
this.list = res.Result.CurrentPageData
|
this.listLoading = false
|
||||||
this.total = res.Result.TotalCount
|
this.list = res.Result.CurrentPageData
|
||||||
// eslint-disable-next-line handle-callback-err
|
this.total = res.Result.TotalCount
|
||||||
}).catch(() => { this.listLoading = false })
|
// eslint-disable-next-line handle-callback-err
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleConfirm() {
|
handleConfirm() {
|
||||||
// Reviewer(s) Confirmed?
|
// Reviewer(s) Confirmed?
|
||||||
this.$confirm(this.$t('trials:seletctedReviews:message:msg2'), {
|
this.$confirm(this.$t('trials:seletctedReviews:message:msg2'), {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
distinguishCancelAndClose: true
|
distinguishCancelAndClose: true,
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.doctorConfirm(1)
|
this.doctorConfirm(1)
|
||||||
})
|
})
|
||||||
.catch(action => {
|
.catch((action) => {
|
||||||
// if (action === 'cancel') {
|
// if (action === 'cancel') {
|
||||||
// this.doctorConfirm(0)
|
// this.doctorConfirm(0)
|
||||||
// }
|
// }
|
||||||
|
@ -157,15 +183,17 @@ export default {
|
||||||
DoctorIdArray: this.confirmIdArr,
|
DoctorIdArray: this.confirmIdArr,
|
||||||
ConfirmState: state,
|
ConfirmState: state,
|
||||||
BaseUrl: `${location.protocol}//${location.host}/login`,
|
BaseUrl: `${location.protocol}//${location.host}/login`,
|
||||||
RouteUrl: `${location.protocol}//${location.host}/email-recompose`
|
RouteUrl: `${location.protocol}//${location.host}/email-recompose`,
|
||||||
}
|
}
|
||||||
confirmReviewer(params).then(res => {
|
confirmReviewer(params)
|
||||||
this.loading = false
|
.then((res) => {
|
||||||
this.getList()
|
this.loading = false
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
this.getList()
|
||||||
}).catch(() => {
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.loading = false
|
})
|
||||||
})
|
.catch(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
const arr = []
|
const arr = []
|
||||||
|
@ -189,19 +217,23 @@ export default {
|
||||||
return 'selected'
|
return 'selected'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSelectTable(row) { return row.DoctorTrialState !== 10 },
|
handleSelectTable(row) {
|
||||||
|
return row.DoctorTrialState !== 10
|
||||||
|
},
|
||||||
handleDetail(row) {
|
handleDetail(row) {
|
||||||
const { href } = this.$router.resolve({ path: `/trialsResume?doctorId=${row.Id}` })
|
const { href } = this.$router.resolve({
|
||||||
|
path: `/trialsResume?doctorId=${row.Id}&trialId=${this.$route.query.trialId}`,
|
||||||
|
})
|
||||||
window.open(href, '_blank')
|
window.open(href, '_blank')
|
||||||
},
|
},
|
||||||
cellColor({ row, column, rowIndex, columnIndex }) {
|
cellColor({ row, column, rowIndex, columnIndex }) {
|
||||||
if (row.DoctorTrialState === 10 && columnIndex === 5) {
|
if (row.DoctorTrialState === 10 && columnIndex === 5) {
|
||||||
return {
|
return {
|
||||||
color: '#428bca'
|
color: '#428bca',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -168,7 +168,9 @@
|
||||||
<span
|
<span
|
||||||
style="color: #428bca; cursor: pointer"
|
style="color: #428bca; cursor: pointer"
|
||||||
@click="
|
@click="
|
||||||
go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)
|
go(
|
||||||
|
`/trialsResume?doctorId=${scope.row.Id}&trialId=${$route.query.trialId}&token=${token}`
|
||||||
|
)
|
||||||
"
|
"
|
||||||
>{{ scope.row.LastName }} / {{ scope.row.FirstName }}</span
|
>{{ scope.row.LastName }} / {{ scope.row.FirstName }}</span
|
||||||
>
|
>
|
||||||
|
@ -581,7 +583,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleDetail(row) {
|
handleDetail(row) {
|
||||||
const { href } = this.$router.resolve({
|
const { href } = this.$router.resolve({
|
||||||
path: `/trialsResume?doctorId=${row.Id}`,
|
path: `/trialsResume?doctorId=${row.Id}&trialId=${this.$route.query.trialId}`,
|
||||||
})
|
})
|
||||||
window.open(href, '_blank')
|
window.open(href, '_blank')
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<BaseContainer>
|
<BaseContainer>
|
||||||
<template slot="search-container">
|
<template slot="search-container">
|
||||||
<div style="margin-left:auto;">
|
<div style="margin-left: auto">
|
||||||
<!-- 提交 -->
|
<!-- 提交 -->
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
:disabled="submitIdArr.length==0"
|
:disabled="submitIdArr.length == 0"
|
||||||
icon="el-icon-check"
|
icon="el-icon-check"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@click="handleSubmit"
|
@click="handleSubmit"
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
<template slot="main-container">
|
<template slot="main-container">
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading"
|
v-loading="listLoading"
|
||||||
v-adaptive="{bottomOffset:65}"
|
v-adaptive="{ bottomOffset: 65 }"
|
||||||
height="100"
|
height="100"
|
||||||
:data="list"
|
:data="list"
|
||||||
class="table"
|
class="table"
|
||||||
|
@ -47,7 +47,15 @@
|
||||||
min-width="120"
|
min-width="120"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span style="color: #428bca;cursor: pointer;" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</span>
|
<span
|
||||||
|
style="color: #428bca; cursor: pointer"
|
||||||
|
@click="
|
||||||
|
go(
|
||||||
|
`/trialsResume?doctorId=${scope.row.Id}&trialId=${$route.query.trialId}&token=${token}`
|
||||||
|
)
|
||||||
|
"
|
||||||
|
>{{ scope.row.LastName }} / {{ scope.row.FirstName }}</span
|
||||||
|
>
|
||||||
<!-- <el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button> -->
|
<!-- <el-button type="text" @click="go(`/trialsResume?doctorId=${scope.row.Id}&token=${token}`)">{{ scope.row.LastName }} / {{ scope.row.FirstName }}</el-button> -->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -74,8 +82,12 @@
|
||||||
min-width="100"
|
min-width="100"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.DoctorTrialState === 5" type="primary">{{ $fd('DoctorTrialState', scope.row.DoctorTrialState) }}</el-tag>
|
<el-tag v-if="scope.row.DoctorTrialState === 5" type="primary">{{
|
||||||
<el-tag v-else type="danger">{{ $fd('DoctorTrialState', 16) }}</el-tag>
|
$fd('DoctorTrialState', scope.row.DoctorTrialState)
|
||||||
|
}}</el-tag>
|
||||||
|
<el-tag v-else type="danger">{{
|
||||||
|
$fd('DoctorTrialState', 16)
|
||||||
|
}}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- Submitter -->
|
<!-- Submitter -->
|
||||||
|
@ -106,7 +118,13 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination class="page" :total="total" :page.sync="listQuery.PageIndex" :limit.sync="listQuery.PageSize" @pagination="getList" />
|
<pagination
|
||||||
|
class="page"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="listQuery.PageIndex"
|
||||||
|
:limit.sync="listQuery.PageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="$t('trials:seletctedReviews:title:language')"
|
:title="$t('trials:seletctedReviews:title:language')"
|
||||||
|
@ -120,8 +138,12 @@
|
||||||
<el-radio :label="1">中文</el-radio>
|
<el-radio :label="1">中文</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dialogVisible = false">{{ $t('common:button:cancel') }}</el-button>
|
<el-button @click="dialogVisible = false">{{
|
||||||
<el-button type="primary" @click="handleDownloadResumes">{{ $t('common:button:save') }}</el-button>
|
$t('common:button:cancel')
|
||||||
|
}}</el-button>
|
||||||
|
<el-button type="primary" @click="handleDownloadResumes">{{
|
||||||
|
$t('common:button:save')
|
||||||
|
}}</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
@ -130,11 +152,15 @@
|
||||||
<script>
|
<script>
|
||||||
import BaseContainer from '@/components/BaseContainer'
|
import BaseContainer from '@/components/BaseContainer'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import { getSubmissionOrApprovalReviewerList, submitReviewer, downloadResume } from '@/api/trials'
|
import {
|
||||||
|
getSubmissionOrApprovalReviewerList,
|
||||||
|
submitReviewer,
|
||||||
|
downloadResume,
|
||||||
|
} from '@/api/trials'
|
||||||
import { getTrialDoctorOfficialResume } from '@/api/reviewers'
|
import { getTrialDoctorOfficialResume } from '@/api/reviewers'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import axios from "axios";
|
import axios from 'axios'
|
||||||
import JSZip from "jszip";
|
import JSZip from 'jszip'
|
||||||
import { saveAs } from 'file-saver'
|
import { saveAs } from 'file-saver'
|
||||||
const enrollState = 1
|
const enrollState = 1
|
||||||
export default {
|
export default {
|
||||||
|
@ -149,7 +175,7 @@ export default {
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
PageSize: 20,
|
PageSize: 20,
|
||||||
Asc: false,
|
Asc: false,
|
||||||
SortField: ''
|
SortField: '',
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
total: 0,
|
total: 0,
|
||||||
|
@ -158,10 +184,12 @@ export default {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
language: 2,
|
language: 2,
|
||||||
token: store.getters.token,
|
token: store.getters.token,
|
||||||
selectTable: {}
|
selectTable: {},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() { this.initPage() },
|
created() {
|
||||||
|
this.initPage()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
go(path) {
|
go(path) {
|
||||||
window.open(path)
|
window.open(path)
|
||||||
|
@ -172,35 +200,41 @@ export default {
|
||||||
getList() {
|
getList() {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
this.listQuery.TrialId = this.$route.query.trialId
|
this.listQuery.TrialId = this.$route.query.trialId
|
||||||
getSubmissionOrApprovalReviewerList(this.listQuery).then(res => {
|
getSubmissionOrApprovalReviewerList(this.listQuery)
|
||||||
this.listLoading = false
|
.then((res) => {
|
||||||
this.list = res.Result.CurrentPageData
|
this.listLoading = false
|
||||||
this.total = res.Result.TotalCount
|
this.list = res.Result.CurrentPageData
|
||||||
// eslint-disable-next-line handle-callback-err
|
this.total = res.Result.TotalCount
|
||||||
}).catch(() => { this.listLoading = false })
|
// eslint-disable-next-line handle-callback-err
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.listLoading = false
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
// 是否确认提交?
|
// 是否确认提交?
|
||||||
this.$confirm(this.$t('trials:seletctedReviews:message:msg2'), {
|
this.$confirm(this.$t('trials:seletctedReviews:message:msg2'), {
|
||||||
type: 'warning'
|
type: 'warning',
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
const trialId = this.$route.query.trialId
|
const trialId = this.$route.query.trialId
|
||||||
submitReviewer(trialId, this.submitIdArr, 1).then(res => {
|
submitReviewer(trialId, this.submitIdArr, 1)
|
||||||
this.loading = false
|
.then((res) => {
|
||||||
if (res.IsSuccess) {
|
this.loading = false
|
||||||
this.getList()
|
if (res.IsSuccess) {
|
||||||
// 保存成功
|
this.getList()
|
||||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
// 保存成功
|
||||||
if(res.Result.IsHaveSPMOrCPM){
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
this.$emit('nextStep', 'approval')
|
if (res.Result.IsHaveSPMOrCPM) {
|
||||||
}else{
|
this.$emit('nextStep', 'approval')
|
||||||
this.$emit('nextStep', 'confirmation')
|
} else {
|
||||||
|
this.$emit('nextStep', 'confirmation')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
}).catch(() => {
|
.catch(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
|
@ -225,9 +259,13 @@ export default {
|
||||||
return 'selected'
|
return 'selected'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSelectTable(row) { return row.DoctorTrialState !== 5 },
|
handleSelectTable(row) {
|
||||||
|
return row.DoctorTrialState !== 5
|
||||||
|
},
|
||||||
handleDetail(row) {
|
handleDetail(row) {
|
||||||
const { href } = this.$router.resolve({ path: `/trialsResume?doctorId=${row.Id}` })
|
const { href } = this.$router.resolve({
|
||||||
|
path: `/trialsResume?doctorId=${row.Id}&trialId=${this.$route.query.trialId}`,
|
||||||
|
})
|
||||||
window.open(href, '_blank')
|
window.open(href, '_blank')
|
||||||
},
|
},
|
||||||
handleDownloadAll() {
|
handleDownloadAll() {
|
||||||
|
@ -243,68 +281,81 @@ export default {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
axios(fileUrl, {
|
axios(fileUrl, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
responseType: 'blob' // 返回的数据会被强制转为blob类型 ,转换成arraybuffer 也行
|
responseType: 'blob', // 返回的数据会被强制转为blob类型 ,转换成arraybuffer 也行
|
||||||
}).then((res) => {
|
|
||||||
console.log('res', res)
|
|
||||||
resolve(res)
|
|
||||||
}).catch(error => {
|
|
||||||
reject(error)
|
|
||||||
})
|
})
|
||||||
|
.then((res) => {
|
||||||
|
console.log('res', res)
|
||||||
|
resolve(res)
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
reject(error)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async handleBatchDown(dataSource) {
|
async handleBatchDown(dataSource) {
|
||||||
return new Promise(resolve => {
|
return new Promise((resolve) => {
|
||||||
console.log('开始压缩')
|
console.log('开始压缩')
|
||||||
const zip = new JSZip() // 创建实例对象
|
const zip = new JSZip() // 创建实例对象
|
||||||
const promises = []
|
const promises = []
|
||||||
dataSource.FileList.forEach((item) => {
|
dataSource.FileList.forEach((item) => {
|
||||||
console.log(this.OSSclientConfig.basePath + item.Path)
|
console.log(this.OSSclientConfig.basePath + item.Path)
|
||||||
const promise = this.getFileData(this.OSSclientConfig.basePath + item.Path).then((res) => {
|
const promise = this.getFileData(
|
||||||
|
this.OSSclientConfig.basePath + item.Path
|
||||||
|
).then((res) => {
|
||||||
const fileName = item.FileName + ''
|
const fileName = item.FileName + ''
|
||||||
// 创建文件用file(),创建文件夹用 floder()
|
// 创建文件用file(),创建文件夹用 floder()
|
||||||
zip.file(fileName, res.data, {binary: true})
|
zip.file(fileName, res.data, { binary: true })
|
||||||
})
|
})
|
||||||
promises.push(promise)
|
promises.push(promise)
|
||||||
})
|
})
|
||||||
console.log(promises)
|
console.log(promises)
|
||||||
// 生成 zip 文件
|
// 生成 zip 文件
|
||||||
Promise.all(promises).then(() => {
|
Promise.all(promises)
|
||||||
// 生成zip 文件
|
.then(() => {
|
||||||
zip.generateAsync({
|
// 生成zip 文件
|
||||||
type: 'blob',
|
zip
|
||||||
compression: 'DEFLATE', // STORE: 默认不压缩, DEFLATE:需要压缩
|
.generateAsync({
|
||||||
compressionOptions: {
|
type: 'blob',
|
||||||
level: 9 // 压缩等级 1~9 1 压缩速度最快, 9 最优压缩方式
|
compression: 'DEFLATE', // STORE: 默认不压缩, DEFLATE:需要压缩
|
||||||
}
|
compressionOptions: {
|
||||||
}).then((res) => {
|
level: 9, // 压缩等级 1~9 1 压缩速度最快, 9 最优压缩方式
|
||||||
saveAs(res, dataSource.ReviewerCode + '_Sub.zip') // 使用FileSaver.saveAs保存文件,文件名可自定义
|
},
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
saveAs(res, dataSource.ReviewerCode + '_Sub.zip') // 使用FileSaver.saveAs保存文件,文件名可自定义
|
||||||
|
resolve()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.catch((reason) => {
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
}).catch(reason => {
|
|
||||||
resolve()
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleDownloadResumes() {
|
handleDownloadResumes() {
|
||||||
getTrialDoctorOfficialResume({
|
getTrialDoctorOfficialResume({
|
||||||
doctorIdList:this.selectTable.Id?[this.selectTable.Id]: this.list.map(v => {return v.Id}),
|
doctorIdList: this.selectTable.Id
|
||||||
language: this.language
|
? [this.selectTable.Id]
|
||||||
}).then(async res => {
|
: this.list.map((v) => {
|
||||||
this.selectTable = {};
|
return v.Id
|
||||||
this.dialogVisible = false
|
}),
|
||||||
if (!res.Result || res.Result.length === 0) {
|
language: this.language,
|
||||||
this.$alert(this.$t('trials:seletctedReviews:table:noResume'))
|
|
||||||
}else{
|
|
||||||
for (let i = 0; res.Result.length > i; i++) {
|
|
||||||
let item = res.Result[i]
|
|
||||||
await this.handleBatchDown(item)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}).catch(err=>{
|
|
||||||
this.dialogVisible = false;
|
|
||||||
this.selectTable= {};
|
|
||||||
})
|
})
|
||||||
|
.then(async (res) => {
|
||||||
|
this.selectTable = {}
|
||||||
|
this.dialogVisible = false
|
||||||
|
if (!res.Result || res.Result.length === 0) {
|
||||||
|
this.$alert(this.$t('trials:seletctedReviews:table:noResume'))
|
||||||
|
} else {
|
||||||
|
for (let i = 0; res.Result.length > i; i++) {
|
||||||
|
let item = res.Result[i]
|
||||||
|
await this.handleBatchDown(item)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
this.dialogVisible = false
|
||||||
|
this.selectTable = {}
|
||||||
|
})
|
||||||
// this.dialogVisible = false
|
// this.dialogVisible = false
|
||||||
// const arr = []
|
// const arr = []
|
||||||
// for (let index = 0; index < this.list.length; index++) {
|
// for (let index = 0; index < this.list.length; index++) {
|
||||||
|
@ -313,9 +364,13 @@ export default {
|
||||||
// this.downloadResume(arr)
|
// this.downloadResume(arr)
|
||||||
},
|
},
|
||||||
downloadResume(arr) {
|
downloadResume(arr) {
|
||||||
downloadResume(this.$route.query.trialId, this.language, arr).then(res => { window.open(res.Result) })
|
downloadResume(this.$route.query.trialId, this.language, arr).then(
|
||||||
|
(res) => {
|
||||||
|
window.open(res.Result)
|
||||||
|
}
|
||||||
|
)
|
||||||
},
|
},
|
||||||
handleDownload(row) {
|
handleDownload(row) {
|
||||||
this.selectTable = row
|
this.selectTable = row
|
||||||
// 英文环境直接下载
|
// 英文环境直接下载
|
||||||
if (process.env.NODE_ENV === 'usa') {
|
if (process.env.NODE_ENV === 'usa') {
|
||||||
|
@ -324,8 +379,8 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- <resume-info v-if="isInit" /> -->
|
<!-- <resume-info v-if="isInit" /> -->
|
||||||
<preview :isEN="isEN" :reviewerId.sync="reviewerId" />
|
<preview
|
||||||
|
:isEN="isEN"
|
||||||
|
:isAll="isAll"
|
||||||
|
:reviewerId.sync="reviewerId"
|
||||||
|
:trialId.sync="trialId"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -18,15 +23,20 @@ export default {
|
||||||
return {
|
return {
|
||||||
isInit: false,
|
isInit: false,
|
||||||
reviewerId: '',
|
reviewerId: '',
|
||||||
|
trialId: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.reviewerId = this.$route.query.doctorId
|
this.reviewerId = this.$route.query.doctorId
|
||||||
|
this.trialId = this.$route.query.trialId
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isEN() {
|
isEN() {
|
||||||
return this.$i18n.locale !== 'zh'
|
return this.$i18n.locale !== 'zh'
|
||||||
},
|
},
|
||||||
|
isAll() {
|
||||||
|
return this.hasPermi(['role:pm', 'role:admin', 'role:apm', 'role:ir'])
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const token = getQueryString('token')
|
const token = getQueryString('token')
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
class="el-icon-plus"
|
class="el-icon-plus"
|
||||||
v-if="!isDistinguishCriteria"
|
v-if="!isDistinguishCriteria && isShow"
|
||||||
>{{ $t('trials:reviewTrack:button:addDefault') }}</el-button
|
>{{ $t('trials:reviewTrack:button:addDefault') }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -353,6 +353,7 @@
|
||||||
import {
|
import {
|
||||||
getSysEmailNoticeConfigList,
|
getSysEmailNoticeConfigList,
|
||||||
batchAddSysEmailConfig,
|
batchAddSysEmailConfig,
|
||||||
|
batchAddEnrollOrPdEmailConfig,
|
||||||
} from '@/api/dictionary'
|
} from '@/api/dictionary'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
// import { addTrialDataFromSystem } from '@/api/trials'
|
// import { addTrialDataFromSystem } from '@/api/trials'
|
||||||
|
@ -389,6 +390,12 @@ export default {
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
isShow: {
|
||||||
|
type: Boolean,
|
||||||
|
default() {
|
||||||
|
return false
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -427,7 +434,21 @@ export default {
|
||||||
}
|
}
|
||||||
return ''
|
return ''
|
||||||
},
|
},
|
||||||
handleAdd() {},
|
async handleAdd() {
|
||||||
|
try {
|
||||||
|
let data = {
|
||||||
|
TrialId: this.$route.query.trialId,
|
||||||
|
}
|
||||||
|
let res = await batchAddEnrollOrPdEmailConfig(data)
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.$message.success(this.$t('common:message:addedSuccessfully'))
|
||||||
|
this.getList()
|
||||||
|
this.$emit('getList')
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.log(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
handleSelectChange(val) {
|
handleSelectChange(val) {
|
||||||
// console.log(val)
|
// console.log(val)
|
||||||
// const arr = []
|
// const arr = []
|
||||||
|
|
|
@ -40,11 +40,7 @@
|
||||||
:label="$t('trials:emailManageCfg:title:toUserTypeList')"
|
:label="$t('trials:emailManageCfg:title:toUserTypeList')"
|
||||||
prop="ToUserTypeList"
|
prop="ToUserTypeList"
|
||||||
>
|
>
|
||||||
<el-select
|
<el-select v-model="searchData.ToUserType" clearable class="mr">
|
||||||
v-model="searchData.ToUserType"
|
|
||||||
clearable
|
|
||||||
class="mr"
|
|
||||||
>
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item of $d.UserType"
|
v-for="item of $d.UserType"
|
||||||
:key="`ToUserTypeList${item.label}`"
|
:key="`ToUserTypeList${item.label}`"
|
||||||
|
@ -57,11 +53,7 @@
|
||||||
:label="$t('trials:emailManageCfg:table:IsEnable')"
|
:label="$t('trials:emailManageCfg:table:IsEnable')"
|
||||||
prop="IsEnable"
|
prop="IsEnable"
|
||||||
>
|
>
|
||||||
<el-select
|
<el-select v-model="searchData.IsEnable" clearable class="mr">
|
||||||
v-model="searchData.IsEnable"
|
|
||||||
clearable
|
|
||||||
class="mr"
|
|
||||||
>
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item of $d.YesOrNo"
|
v-for="item of $d.YesOrNo"
|
||||||
:key="`ToUserTypeList${item.label}`"
|
:key="`ToUserTypeList${item.label}`"
|
||||||
|
@ -367,6 +359,7 @@
|
||||||
<DefaultQS
|
<DefaultQS
|
||||||
@getList="getList"
|
@getList="getList"
|
||||||
:is-distinguish-criteria="isDistinguishCriteria"
|
:is-distinguish-criteria="isDistinguishCriteria"
|
||||||
|
:isShow="isBtnShow"
|
||||||
@close="addVisible = false"
|
@close="addVisible = false"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -419,6 +412,7 @@ export default {
|
||||||
trialCriterionList: [],
|
trialCriterionList: [],
|
||||||
criterionType: null,
|
criterionType: null,
|
||||||
addVisible: false,
|
addVisible: false,
|
||||||
|
isBtnShow: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
@ -476,6 +470,11 @@ export default {
|
||||||
item.CopyUserTypeList
|
item.CopyUserTypeList
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
if (res.OtherInfo) {
|
||||||
|
this.isBtnShow =
|
||||||
|
res.OtherInfo.IsEnrollementQualificationConfirm ||
|
||||||
|
res.OtherInfo.IsPDProgressView
|
||||||
|
}
|
||||||
this.list = res.Result
|
this.list = res.Result
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|
Loading…
Reference in New Issue