Compare commits
205 Commits
be9e78ec73
...
v1.9.0
| Author | SHA1 | Date | |
|---|---|---|---|
| dba4466ac2 | |||
| 9187bbe64f | |||
| a0f593a22f | |||
| 89f7aee973 | |||
| ced57cbfe4 | |||
| 99d099496e | |||
| d3afa7b676 | |||
| c08d701143 | |||
| a2d06ba72f | |||
| 148aa4908b | |||
| 53738c2da4 | |||
| 3513c08adf | |||
| 9eb3f2f322 | |||
| b16e351779 | |||
| b176ab0716 | |||
| c7eb323eaa | |||
| 7b3fe42654 | |||
| 21c96300ad | |||
| 8f46819b9a | |||
| 6e66dd8bbe | |||
| b209c6566b | |||
| f8bd826c9c | |||
| e3f6f9107d | |||
| f1c72c66e8 | |||
| 79caed3fd9 | |||
| e56440634e | |||
| ac657a162f | |||
| 9d362e13de | |||
| d04898dc28 | |||
| e0f42e815e | |||
| efe3d937b4 | |||
| 5cf6ab24bd | |||
| ff0ddeea9a | |||
| 42083afb8d | |||
| de1b22ff48 | |||
| 66cbbbbb75 | |||
| 3d89939a98 | |||
| ade4ab3e03 | |||
| a3550c44bd | |||
| 9e85e9705e | |||
| e1d5db8cf5 | |||
| 6f3381c267 | |||
| 0c52bde525 | |||
| 102089c16f | |||
| 6e1d07ee95 | |||
| 55ae6bac7e | |||
| 823ac2f085 | |||
| 73e0a13e91 | |||
| 7f179fb393 | |||
| 3441793bcb | |||
| dbe651fe98 | |||
| f54ff927ec | |||
| 535b37e830 | |||
| 13191c914e | |||
| 70735f2c47 | |||
| 8ad77f1679 | |||
| 3a76a7c24d | |||
| 5393ca571c | |||
| 4cef62ccba | |||
| 2772168c3b | |||
| 89be8d8a12 | |||
| 041266c250 | |||
| cbcb84a768 | |||
| 830718c228 | |||
| 6977ed3713 | |||
| 28ea52797e | |||
| 1348d5f864 | |||
| cd34ad7ef7 | |||
| 5af7e8dd3c | |||
| 455f808f49 | |||
| a0d5e58311 | |||
| 84dbcd49f0 | |||
| a4ec387814 | |||
| 3a6c3d451c | |||
| f396901731 | |||
| 0b00f4bc7e | |||
| e58695aeff | |||
| 65a9dd3cf1 | |||
| 63743dbbc1 | |||
| b5643d3774 | |||
| 4c1a770969 | |||
| 7ff0273c29 | |||
| 3f2a339cba | |||
| d3dd4ecffc | |||
| d636813210 | |||
| 66d09ca284 | |||
| e672e6bd18 | |||
| 9c964f11a1 | |||
| 0a473dcae3 | |||
| 85b3960f97 | |||
| b96f5b9910 | |||
| 31196e850e | |||
| c309410c04 | |||
| 0a671fb330 | |||
| febdfd7b4f | |||
| e1da0c9ea5 | |||
| 54be84c300 | |||
| 78c1b57770 | |||
| 39ce8fd355 | |||
| 130862518f | |||
| a129adbc4b | |||
| 3066781ee6 | |||
| df4880dc08 | |||
| 29e2a6ea65 | |||
| ae12c3d517 | |||
| cbe346a049 | |||
| c8c5ab72bb | |||
| 37dc4a960f | |||
| 05cf250c21 | |||
| b2ca803f94 | |||
| 2ff2f5106e | |||
| 67c2d47689 | |||
| 67a3c4f926 | |||
| 9ab7afa06f | |||
| e5a17d20b1 | |||
| 3c664e9ba6 | |||
| 50dd74b4ce | |||
| b22b9d338e | |||
| a13ef6e5d2 | |||
| 58141aaca9 | |||
| 17b868e7ed | |||
| bbc4da7b9e | |||
| c14079efe3 | |||
| ecf5119269 | |||
| b35ff2b7dc | |||
| bae5b9c51c | |||
| be5b9efa7b | |||
| efab56f6bd | |||
| a239bccc90 | |||
| 7dd15434bf | |||
| 437b4377ed | |||
| 7229bc65a9 | |||
| bf95ea96e2 | |||
| 013a657f78 | |||
| 8d4e9368c6 | |||
| d71fff7393 | |||
| d243d3cd11 | |||
| 221ad89fd4 | |||
| af42a3aec0 | |||
| b0529dca5f | |||
| 17ee60de81 | |||
| b9ef4fd3f3 | |||
| 252333ea5b | |||
| a5445804e2 | |||
| 0cabf49c43 | |||
| 5ee7ba9820 | |||
| 4f2419fe03 | |||
| 28bb98099c | |||
| 5963fc629d | |||
| 44feb21f63 | |||
| 343813158f | |||
| 5e80fe2c3f | |||
| 2e8095939b | |||
| b0dc5400aa | |||
| 7f18e717b7 | |||
| 6e66b77857 | |||
| 5328217853 | |||
| 0f4819f5db | |||
| 907371b693 | |||
| f65042a5c2 | |||
| 518ce72fd2 | |||
| ba54da2814 | |||
| d381b10bcd | |||
| d127637922 | |||
| 0e0c2ca55d | |||
| 98502230c3 | |||
| 2b987fb1ae | |||
| 8799431f7a | |||
| a8fe3d6073 | |||
| 3578882ec0 | |||
| d5c9298aab | |||
| 59df7214d4 | |||
| 6c50257972 | |||
| 58b8cf1391 | |||
| 1f6ee08a8b | |||
| c5fb53a05f | |||
| 24e05ebc3e | |||
| a78d848424 | |||
| 75f3b37c05 | |||
| ca4f2c4a8e | |||
| 4defa157ee | |||
| 13ba919484 | |||
| bf407a49fd | |||
| 3c50254a2d | |||
| 41ac3d562a | |||
| d790a95952 | |||
| 328359dfde | |||
| 1286cd1212 | |||
| f739563fe9 | |||
| 2f4ace45b8 | |||
| 407f0b85d2 | |||
| 3052b269e9 | |||
| a7c3bf09f8 | |||
| 65d9c7b711 | |||
| 3ca1e9d8ed | |||
| f27fda4a5f | |||
| 27352f572c | |||
| 47c6b30d4a | |||
| 91bd50d565 | |||
| d1ed8b39f0 | |||
| 3925652428 | |||
| 37f8f2fff1 | |||
| 32551e3faa | |||
| 43f99b02c4 | |||
| 9c22809bae |
+101
-18
@@ -23,12 +23,38 @@
|
||||
>
|
||||
i18n
|
||||
</div>
|
||||
<el-drawer title="国际化" :visible.sync="drawer" direction="rtl" size="80%">
|
||||
<div style="width: 320px">
|
||||
<el-form label-width="100px" @submit.native.prevent size="small">
|
||||
<el-form-item label="关键字">
|
||||
<el-drawer
|
||||
:title="$t('il8n:title')"
|
||||
:visible.sync="drawer"
|
||||
direction="rtl"
|
||||
size="80%"
|
||||
>
|
||||
<div style="width: 620px">
|
||||
<el-form
|
||||
label-width="100px"
|
||||
@submit.native.prevent
|
||||
size="small"
|
||||
:inline="true"
|
||||
class="demo-form-inline"
|
||||
>
|
||||
<el-form-item :label="$t('il8n:search:keyword')">
|
||||
<el-input v-model="key" @input="keyChange" />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('il8n:search:state')" v-if="il8nExternal">
|
||||
<el-select
|
||||
v-model="State"
|
||||
clearable
|
||||
filterable
|
||||
@change="handleStateChange"
|
||||
>
|
||||
<el-option
|
||||
v-for="item of $d.InternationalizationKeyState"
|
||||
:key="'InternationalizationKeyState' + item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<el-table
|
||||
@@ -39,7 +65,7 @@
|
||||
>
|
||||
<el-table-column
|
||||
prop="Code"
|
||||
label="标签"
|
||||
:label="$t('il8n:table:label')"
|
||||
width="300"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
@@ -53,7 +79,7 @@
|
||||
<!-- {{scope.row.Description}}-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column prop="Value" label="英文">
|
||||
<el-table-column prop="Value" :label="$t('il8n:table:en')">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.Value"
|
||||
@@ -66,7 +92,7 @@
|
||||
></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="ValueCN" label="中文">
|
||||
<el-table-column prop="ValueCN" :label="$t('il8n:table:cn')">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.ValueCN"
|
||||
@@ -79,6 +105,27 @@
|
||||
></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="ValueCN"
|
||||
:label="$t('il8n:table:state')"
|
||||
v-if="il8nExternal"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-select
|
||||
v-model="scope.row.State"
|
||||
clearable
|
||||
filterable
|
||||
size="mini"
|
||||
>
|
||||
<el-option
|
||||
v-for="item of $d.InternationalizationKeyState"
|
||||
:key="'InternationalizationKeyState' + item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div style="text-align: right; padding-top: 10px; padding-right: 10px">
|
||||
<el-button size="mini" @click="drawer = false">取消 </el-button>
|
||||
@@ -110,10 +157,13 @@ export default {
|
||||
show: false,
|
||||
key: null,
|
||||
arr: [],
|
||||
il8nExternal: false,
|
||||
State: null,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.show = process.env.VUE_APP_OSS_PATH === '/test/dist'
|
||||
Vue.prototype.$openI18n = this.openI18n
|
||||
},
|
||||
// watch: {
|
||||
// '$route.query': {
|
||||
@@ -145,6 +195,11 @@ export default {
|
||||
// },
|
||||
// },
|
||||
methods: {
|
||||
handleStateChange() {
|
||||
this.tableData.forEach((item) => {
|
||||
item.State = this.State
|
||||
})
|
||||
},
|
||||
changeValue(target, attr, e) {
|
||||
this.$set(target, attr, e)
|
||||
},
|
||||
@@ -154,9 +209,9 @@ export default {
|
||||
[],
|
||||
this.arr.filter(
|
||||
(v) =>
|
||||
~v.Code.indexOf(this.key) ||
|
||||
~v.Value.indexOf(this.key) ||
|
||||
~v.ValueCN.indexOf(this.key)
|
||||
~v.Code.toLowerCase().indexOf(this.key.toLowerCase()) ||
|
||||
~v.Value.toLowerCase().indexOf(this.key.toLowerCase()) ||
|
||||
~v.ValueCN.toLowerCase().indexOf(this.key.toLowerCase())
|
||||
)
|
||||
)
|
||||
} else {
|
||||
@@ -181,22 +236,50 @@ export default {
|
||||
i18n.mergeLocaleMessage('en', enMessages)
|
||||
this.drawer = false
|
||||
this.$message.success('国际化修改成功')
|
||||
if (this.il8nExternal) {
|
||||
this.$EventBus.$emit('il8nUpdate')
|
||||
}
|
||||
}
|
||||
)
|
||||
})
|
||||
},
|
||||
openI18n() {
|
||||
openI18n(ARRAY) {
|
||||
this.tableData = []
|
||||
this.il8nExternal = false
|
||||
this.key = null
|
||||
this.drawer = true
|
||||
let arr = []
|
||||
let tableData = this.$tl.map((v) => {
|
||||
let a = { ...v }
|
||||
// if (!a.Description) {
|
||||
// a.Description = this.$route.path
|
||||
// }
|
||||
return a
|
||||
})
|
||||
let tableData = []
|
||||
if (ARRAY && Array.isArray(ARRAY)) {
|
||||
this.il8nExternal = true
|
||||
let data = ARRAY.map((v) => {
|
||||
let a = { ...v }
|
||||
|
||||
return a
|
||||
})
|
||||
tableData = data.map((item) => {
|
||||
return {
|
||||
Code: item.Code,
|
||||
Description: item.Description,
|
||||
FrontType: item.FrontType,
|
||||
Module: item.Module,
|
||||
Value: item.Value,
|
||||
ValueCN: item.ValueCN,
|
||||
State: item.State,
|
||||
}
|
||||
})
|
||||
this.tableData = Object.assign([], tableData)
|
||||
this.arr = Object.assign([], tableData)
|
||||
return false
|
||||
} else {
|
||||
tableData = this.$tl.map((v) => {
|
||||
let a = { ...v }
|
||||
// if (!a.Description) {
|
||||
// a.Description = this.$route.path
|
||||
// }
|
||||
return a
|
||||
})
|
||||
}
|
||||
tableData = tableData.filter((v) => {
|
||||
// return ~this.$path.indexOf(v.Description + '_' + v.Code)
|
||||
return ~this.$path.indexOf(v.Code)
|
||||
|
||||
@@ -334,3 +334,11 @@ export function updateUserRoleInfo(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
// 管理端新增用户发送邮件
|
||||
export function addNewUserSendEmail(data) {
|
||||
return request({
|
||||
url: `/User/addNewUserSendEmail`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
+28
-2
@@ -252,10 +252,36 @@ export function uploadOCTLipidAngleTemplate(param) {
|
||||
})
|
||||
}
|
||||
|
||||
export function saveTableQuestionMark(param) {
|
||||
export function saveTableQuestionMark(param, type) {
|
||||
return request({
|
||||
url: `/ReadingImageTask/saveTableQuestionMark`,
|
||||
url: `/saveTableQuestionMark/${type}`,
|
||||
method: 'post',
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteTableQuestionMark(param, type) {
|
||||
return request({
|
||||
url: `/deleteTableQuestionMark/${type}`,
|
||||
method: 'post',
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
export function submitTaskRowInfo(param, type) {
|
||||
return request({
|
||||
url: `/SubmitTaskRowInfo/${type}`,
|
||||
method: 'post',
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteSingleTableQuestionMark(param, type) {
|
||||
return request({
|
||||
url: `/DeleteSingleTableQuestionMark/${type}`,
|
||||
method: 'post',
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3931,4 +3931,31 @@ export function updateTrialUserRole(data) {
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 获取报表配置
|
||||
export function getTrialQuestionExportResult(data) {
|
||||
return request({
|
||||
url: `/ReadingQuestion/getTrialQuestionExportResult`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 修改报表配置
|
||||
export function setTrialQuestionExportResult(data) {
|
||||
return request({
|
||||
url: `/ReadingQuestion/SetTrialQuestionExportResult`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 项目加入人员发送邮件
|
||||
export function trialUserSendJoinEmail(data) {
|
||||
return request({
|
||||
url: `/TrialMaintenance/trialUserSendJoinEmail`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
+2
-2
@@ -179,11 +179,11 @@ export function verifyMFACode(params) {
|
||||
}
|
||||
|
||||
// 发送MFA邮件
|
||||
export function sendMFAEmail(params) {
|
||||
export function sendMFAEmail(data) {
|
||||
return request({
|
||||
url: `/User/sendMFAEmail`,
|
||||
method: 'post',
|
||||
params
|
||||
data
|
||||
})
|
||||
}
|
||||
// 获取公钥
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
v-model="searchData[item.prop]"
|
||||
:placeholder="item.placeholder"
|
||||
size="mini"
|
||||
clearable
|
||||
:style="{ width: item.width }"
|
||||
:readonly="item.readonly"
|
||||
/>
|
||||
@@ -22,6 +23,7 @@
|
||||
v-model="searchData[item.prop]"
|
||||
:placeholder="item.placeholder"
|
||||
size="mini"
|
||||
clearable
|
||||
:style="{ width: item.width }"
|
||||
@change="item.change && item.change(that, searchData[item.prop])"
|
||||
>
|
||||
@@ -37,6 +39,7 @@
|
||||
v-model="searchData[item.prop]"
|
||||
:placeholder="item.placeholder"
|
||||
size="mini"
|
||||
clearable
|
||||
:style="{ width: item.width }"
|
||||
@change="item.change && item.change(that, searchData[item.prop])"
|
||||
>
|
||||
@@ -96,6 +99,7 @@
|
||||
value-format="yyyy-MM-dd"
|
||||
format="yyyy-MM-dd"
|
||||
:picker-options="item.pickerOption"
|
||||
clearable
|
||||
/>
|
||||
<!-- 时间 -->
|
||||
<el-time-select
|
||||
@@ -104,6 +108,7 @@
|
||||
:placeholder="item.placeholder"
|
||||
type=""
|
||||
:style="{ width: item.width }"
|
||||
clearable
|
||||
/>
|
||||
<!-- 日期时间 -->
|
||||
<el-date-picker
|
||||
@@ -114,12 +119,14 @@
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
:disabled="item.disable && item.disable(searchData[item.prop])"
|
||||
:style="{ width: item.width }"
|
||||
clearable
|
||||
/>
|
||||
<!-- 日期时间段 -->
|
||||
<el-date-picker
|
||||
v-if="item.type === 'Daterange'"
|
||||
v-model="searchData[item.prop]"
|
||||
type="datetimerange"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
:range-separator="$t('baseForm:daterange:rangeSeparator')"
|
||||
:start-placeholder="$t('baseForm:daterange:startPlaceholder')"
|
||||
:end-placeholder="$t('baseForm:daterange:startendPlaceholder')"
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
:show-overflow-tooltip="column.showOverflowTooltip || false"
|
||||
:sortable="column.sortable || false"
|
||||
:prop="column.prop"
|
||||
:fixed="column.fixed"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<!-- 仅仅显示文字 -->
|
||||
@@ -63,6 +64,10 @@
|
||||
<el-button
|
||||
:size="operate.size || 'mini'"
|
||||
:type="operate.type || 'primary'"
|
||||
v-if="
|
||||
(operate.show && scope.row[operate.show]) ||
|
||||
!operate.show
|
||||
"
|
||||
style="margin-right: 5px"
|
||||
@click="handleClick(operate, scope.row)"
|
||||
>{{ operate.name }}</el-button
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
label-width="100px"
|
||||
>
|
||||
<!-- 邮箱 -->
|
||||
<p class="tip">
|
||||
<p class="tip_mfa">
|
||||
<i class="el-icon-warning" style="color: #409eff"></i>
|
||||
<span>{{ tip }}</span>
|
||||
</p>
|
||||
@@ -83,7 +83,7 @@ export default {
|
||||
second: 60,
|
||||
form: {
|
||||
Code: null,
|
||||
UserId: null,
|
||||
IdentityUserId: null,
|
||||
EMail: null,
|
||||
username: null,
|
||||
},
|
||||
@@ -115,7 +115,7 @@ export default {
|
||||
methods: {
|
||||
open(data) {
|
||||
let { UserId, status, username, EMail } = data;
|
||||
this.form.UserId = UserId;
|
||||
this.form.IdentityUserId = UserId;
|
||||
this.status = status ? status : "login";
|
||||
this.form.username = username;
|
||||
this.form.EMail = EMail;
|
||||
@@ -134,10 +134,10 @@ export default {
|
||||
let res = await verifyMFACode(this.form);
|
||||
this.loading = false;
|
||||
if (res.IsSuccess) {
|
||||
if (this.status === "login") {
|
||||
this.$message.success(this.$t("mfa:message:verifySuccess"));
|
||||
}
|
||||
this.$emit("success", this.form.UserId);
|
||||
// if (this.status === "login") {
|
||||
// this.$message.success(this.$t("mfa:message:verifySuccess"));
|
||||
// }
|
||||
this.$emit("success", this.form.IdentityUserId);
|
||||
this.cancel();
|
||||
}
|
||||
} catch (err) {
|
||||
@@ -154,7 +154,7 @@ export default {
|
||||
this.timer = null;
|
||||
}
|
||||
let data = {
|
||||
UserId: this.form.UserId,
|
||||
IdentityUserId: this.form.IdentityUserId,
|
||||
};
|
||||
if (this.status === "lock") {
|
||||
data.MfaType = 1;
|
||||
@@ -189,7 +189,7 @@ export default {
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.tip {
|
||||
.tip_mfa {
|
||||
width: 86%;
|
||||
margin: auto;
|
||||
margin-bottom: 20px;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="trialsTab">
|
||||
<el-tabs v-model="trialsTab" @tab-click="clickTab">
|
||||
<el-tab-pane v-for="item of trialsRouter.children.find(v => {return v.name == 'TrialsPanel'}).children" :key="`tab${item.path}`" :disabled="TotalNeedSignTrialDocCount !== 0 && item.path !== '/trials/trials-panel/attachments'" :label="$t(item.LanguageMark)" :name="item.path">
|
||||
<el-tabs v-if="!item.tabHiddn" v-model="trialsTabChild" @tab-click="clickTab">
|
||||
<el-tabs v-if="!item.tabHiddn" v-model="trialsTabChild" @tab-click="clickTab" style="background-color: #f5f7fa;">
|
||||
<template v-for="item1 of item.children">
|
||||
<el-tab-pane
|
||||
v-if="TrialConfig && isShow(item1.path)"
|
||||
@@ -22,11 +22,14 @@
|
||||
<i class="iconfont" style="font-size: 30px;color:#ccc"></i>
|
||||
</div>
|
||||
<!-- 返回项目列表 -->
|
||||
<div class="my_icon_box" :title="$t('trials:trials:title:backTrialList')" @click="goBack">
|
||||
<el-button type="primary" size="small" @click="goBack">
|
||||
<i class="iconfont"></i>
|
||||
<!-- 返回 -->
|
||||
<span>{{ $t('trials:trials:title:back') }}</span>
|
||||
</div>
|
||||
</el-button>
|
||||
<!-- <div class="my_icon_box" :title="$t('trials:trials:title:backTrialList')" @click="goBack">
|
||||
<i class="iconfont"></i>
|
||||
<span>{{ $t('trials:trials:title:back') }}</span>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -221,6 +224,9 @@ export default {
|
||||
.el-tabs__header{
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
.el-tabs__item.is-active{
|
||||
font-weight: bold;
|
||||
}
|
||||
position: relative;
|
||||
.el-input--medium .el-input__inner{
|
||||
height: 44px;line-height: 44px;width: 280px;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
v-for="item in roles"
|
||||
:key="item.Id"
|
||||
:label="item.Id"
|
||||
:disabled="item.isUserRoleDisabled"
|
||||
:disabled="item.IsUserRoleDisabled"
|
||||
style="margin-bottom: 10px"
|
||||
>
|
||||
{{ item.UserTypeShortName }}
|
||||
@@ -40,6 +40,7 @@
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="save"
|
||||
:disabled="saveDisabled"
|
||||
:loading="loading"
|
||||
v-if="hasRole"
|
||||
>
|
||||
@@ -78,6 +79,9 @@ export default {
|
||||
hasRole() {
|
||||
return this.roles && this.roles.length > 0
|
||||
},
|
||||
saveDisabled() {
|
||||
return this.form.userRoleId === zzSessionStorage.getItem('userId')
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
cancel() {
|
||||
@@ -98,11 +102,13 @@ export default {
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.roles {
|
||||
width: 100%;
|
||||
max-width: 365px;
|
||||
width: fit-content;
|
||||
display: flex;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
// justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
/deep/ .el-radio__original {
|
||||
@@ -113,4 +119,7 @@ export default {
|
||||
.el-radio__inner {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
.el-radio {
|
||||
width: 60px;
|
||||
}
|
||||
</style>
|
||||
@@ -10,7 +10,7 @@ const dialogDrag = Vue.directive('dialogDrag', {
|
||||
dragDom.style.cssText += ';top:0px;'
|
||||
|
||||
// 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
|
||||
const sty = (function() {
|
||||
const sty = (function () {
|
||||
if (window.document.currentStyle) {
|
||||
return (dom, attr) => dom.currentStyle[attr]
|
||||
} else {
|
||||
@@ -47,8 +47,10 @@ const dialogDrag = Vue.directive('dialogDrag', {
|
||||
styL = +styL.replace(/\px/g, '')
|
||||
styT = +styT.replace(/\px/g, '')
|
||||
}
|
||||
const oldMousemove = document.onmousemove
|
||||
|
||||
document.onmousemove = function(e) {
|
||||
document.onmousemove = function (e) {
|
||||
oldMousemove(e)
|
||||
// 通过事件委托,计算移动的距离
|
||||
let left = e.clientX - disX
|
||||
const top = e.clientY - disY
|
||||
@@ -70,8 +72,8 @@ const dialogDrag = Vue.directive('dialogDrag', {
|
||||
dragDom.style.cssText += `;left:${left + styL}px;top:${top + styT}px;`
|
||||
}
|
||||
|
||||
document.onmouseup = function(e) {
|
||||
document.onmousemove = null
|
||||
document.onmouseup = function (e) {
|
||||
document.onmousemove = oldMousemove
|
||||
document.onmouseup = null
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,13 +14,13 @@
|
||||
|
||||
<div class="right-menu">
|
||||
<div class="navbar-flex-wrapper">
|
||||
<template v-if="device!=='mobile'">
|
||||
<template v-if="device !== 'mobile'">
|
||||
<screenfull id="screenfull" class="right-menu-item hover-effect" />
|
||||
</template>
|
||||
<!-- <div class="avatar-container">
|
||||
<img src="@/assets/avatar.png" class="user-avatar">
|
||||
</div> -->
|
||||
<div style="margin-left:20px;">
|
||||
<div style="margin-left: 20px">
|
||||
<el-dropdown class="dropdown-container" trigger="click">
|
||||
<span class="el-dropdown-link">
|
||||
{{ `${name} (${userTypeShortName})` }}
|
||||
@@ -30,10 +30,20 @@
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown" class="user-dropdown">
|
||||
<el-dropdown-item v-if="!isReviewer">
|
||||
<span style="display:block;" @click="editInfo">{{$t('system:navbar:button:Profile')}}</span>
|
||||
<span style="display: block" @click="editInfo">{{
|
||||
$t('system:navbar:button:Profile')
|
||||
}}</span>
|
||||
</el-dropdown-item>
|
||||
<!-- 切换角色 -->
|
||||
<el-dropdown-item divided v-if="hasRole">
|
||||
<span style="display: block" @click="openToggleRole">{{
|
||||
$t('system:navbar:button:toggleRole')
|
||||
}}</span>
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item divided>
|
||||
<span style="display:block;" @click="logout">{{$t('system:navbar:button:Log Out')}}</span>
|
||||
<span style="display: block" @click="logout">{{
|
||||
$t('system:navbar:button:Log Out')
|
||||
}}</span>
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
@@ -41,38 +51,119 @@
|
||||
<TopLang></TopLang>
|
||||
</div>
|
||||
</div>
|
||||
<toggleRole
|
||||
v-if="toggleRoleVisible"
|
||||
:visible.sync="toggleRoleVisible"
|
||||
:loading="toggleRoleLoading"
|
||||
@save="loginByRole"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapGetters, mapMutations} from 'vuex'
|
||||
import { mapGetters, mapMutations } from 'vuex'
|
||||
import Breadcrumb from '@/components/Breadcrumb'
|
||||
import Hamburger from '@/components/Hamburger'
|
||||
import Screenfull from '@/components/Screenfull'
|
||||
import TopLang from './topLang'
|
||||
|
||||
|
||||
import toggleRole from '@/components/toggleRole'
|
||||
import { resetRouter } from '@/router'
|
||||
export default {
|
||||
components: {
|
||||
Breadcrumb,
|
||||
Hamburger,
|
||||
Screenfull,
|
||||
TopLang
|
||||
TopLang,
|
||||
toggleRole,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isReviewer: false,
|
||||
userTypeShortName: zzSessionStorage.getItem('userTypeShortName')
|
||||
toggleRoleVisible: false,
|
||||
toggleRoleLoading: false,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['sidebar', 'name', 'device'])
|
||||
...mapGetters(['sidebar', 'name', 'device', 'userTypeShortName']),
|
||||
roles() {
|
||||
return this.$store.state.user.roles
|
||||
},
|
||||
hasRole() {
|
||||
return this.roles && this.roles.length > 1
|
||||
},
|
||||
},
|
||||
created() {
|
||||
// this.isReviewer = JSON.parse(zzSessionStorage.getItem('IsReviewer'))
|
||||
},
|
||||
methods: {
|
||||
...mapMutations({ setLanguage: 'lang/setLanguage' }),
|
||||
openToggleRole() {
|
||||
this.$store.dispatch('user/getUserInfo').then((res) => {
|
||||
this.toggleRoleVisible = true
|
||||
})
|
||||
},
|
||||
loginByRole(userRoleId) {
|
||||
if (this.$store.state.user.userId === userRoleId) {
|
||||
this.toggleRoleVisible = false
|
||||
this.toggleRoleLoading = false
|
||||
return false
|
||||
}
|
||||
this.toggleRoleLoading = true
|
||||
this.$store
|
||||
.dispatch('user/loginByRole', { userRoleId })
|
||||
.then((res) => {
|
||||
if (res) {
|
||||
this.$store
|
||||
.dispatch('permission/generateRoutes')
|
||||
.then(async (res) => {
|
||||
if (res && res.length > 0) {
|
||||
resetRouter()
|
||||
await this.$store.dispatch('global/getNoticeList')
|
||||
this.$router.addRoutes(res)
|
||||
this.toggleRoleLoading = false
|
||||
if (this.loginType === 'DevOps') {
|
||||
this.$router.replace({ path: res[0].path })
|
||||
return
|
||||
}
|
||||
if (this.hasPermi(['role:radmin'])) {
|
||||
this.$router.replace({ path: res[0].path })
|
||||
return
|
||||
}
|
||||
if (
|
||||
this.hasPermi([
|
||||
'role:air',
|
||||
'role:rpm',
|
||||
'role:rcrc',
|
||||
'role:rir',
|
||||
])
|
||||
) {
|
||||
history.replaceState(null, null, '/trials/trials-list')
|
||||
history.go(0)
|
||||
} else {
|
||||
history.replaceState(null, null, '/trials/trials-workbench')
|
||||
history.go(0)
|
||||
}
|
||||
this.toggleRoleVisible = false
|
||||
this.toggleRoleLoading = false
|
||||
this.$EventBus.$emit('reload')
|
||||
} else {
|
||||
// 此账户暂未配置菜单权限,请联系管理员处理后再登录。
|
||||
this.toggleRoleLoading = false
|
||||
this.$message.warning(this.$t('login:message:login2'))
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err)
|
||||
this.toggleRoleLoading = false
|
||||
})
|
||||
} else {
|
||||
this.toggleRoleLoading = false
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.toggleRoleLoading = false
|
||||
})
|
||||
},
|
||||
toggleSideBar() {
|
||||
this.$store.dispatch('app/toggleSideBar')
|
||||
},
|
||||
@@ -84,23 +175,23 @@ export default {
|
||||
} else {
|
||||
this.$router.push(`/login`)
|
||||
}
|
||||
this.$i18n.locale = 'zh'
|
||||
this.setLanguage('zh')
|
||||
// //this.$i18n.locale = 'zh'
|
||||
// //this.setLanguage('zh')
|
||||
this.$updateDictionary()
|
||||
},
|
||||
editInfo() {
|
||||
this.$router.push({ name: 'BaiscInfo' })
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.navbar-flex-wrapper{
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.navbar-flex-wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.navbar {
|
||||
height: 50px;
|
||||
overflow: hidden;
|
||||
|
||||
+7
-2
@@ -293,6 +293,7 @@ async function VueInit() {
|
||||
}()
|
||||
_vm.$forceUpdate()
|
||||
}
|
||||
Vue.prototype.$EventBus = new Vue()
|
||||
Vue.prototype.$path = []
|
||||
var t = function (key) {
|
||||
if (!~Vue.prototype.$path.indexOf(key)) {
|
||||
@@ -402,8 +403,12 @@ async function VueInit() {
|
||||
}
|
||||
_vm.$store.dispatch('user/logout').then(res => {
|
||||
// window.location.href = `/login`
|
||||
if (_vm.$msgbox) {
|
||||
_vm.$msgbox.close();
|
||||
try {
|
||||
if (_vm.$msgbox && _vm.$msgbox.close) {
|
||||
_vm.$msgbox.close();
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
_vm.$FB.close();
|
||||
_vm.$FBT.close();
|
||||
|
||||
+18
-4
@@ -4,7 +4,7 @@ import store from './store'
|
||||
// import { Message } from 'element-ui'
|
||||
import NProgress from 'nprogress'
|
||||
import 'nprogress/nprogress.css'
|
||||
import { getToken } from '@/utils/auth'
|
||||
import { getToken, removeToken } from '@/utils/auth'
|
||||
import Vue from 'vue'
|
||||
import { OSSclient } from './utils/oss'
|
||||
import WHITELIST from "./utils/whiteList"
|
||||
@@ -70,6 +70,16 @@ router.beforeEach(async (to, from, next) => {
|
||||
}
|
||||
next()
|
||||
NProgress.done()
|
||||
} else if (from.path === '/researchForm') {
|
||||
removeToken()
|
||||
let lang = to.query.lang || zzSessionStorage.getItem('lang')
|
||||
next(`/researchLogin?trialId=${to.query.trialId}&lang=${lang}`)
|
||||
NProgress.done()
|
||||
} else if (from.path === '/researchDetail_m') {
|
||||
removeToken()
|
||||
let lang = to.query.lang || zzSessionStorage.getItem('lang')
|
||||
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`)
|
||||
NProgress.done()
|
||||
} else {
|
||||
await OSSclient()
|
||||
const hasGetUserInfo = store.getters.userId
|
||||
@@ -85,6 +95,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
router.addRoutes(accessRoutes)
|
||||
next({ ...to, replace: true })
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
// 删除token并进入登录页面以重新登录
|
||||
await store.dispatch('user/resetToken')
|
||||
next(`/login?redirect=${to.path}`)
|
||||
@@ -96,9 +107,10 @@ router.beforeEach(async (to, from, next) => {
|
||||
/* has no token*/
|
||||
if (whiteList.indexOf(to.path) !== -1) {
|
||||
if (to.path === '/researchLogin') {
|
||||
let lang = to.query.lang || zzSessionStorage.getItem('lang')
|
||||
const flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
|
||||
if (flag) {
|
||||
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${to.query.lang}`)
|
||||
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`)
|
||||
} else {
|
||||
next()
|
||||
}
|
||||
@@ -111,10 +123,12 @@ router.beforeEach(async (to, from, next) => {
|
||||
}
|
||||
} else {
|
||||
if (to.path === '/researchForm') {
|
||||
next(`/researchLogin?`)
|
||||
let lang = to.query.lang || zzSessionStorage.getItem('lang')
|
||||
next(`/researchLogin?trialId=${to.query.trialId}&lang=${lang}`)
|
||||
NProgress.done()
|
||||
} else if (to.path === '/researchDetail_m') {
|
||||
next(`/researchLogin_m?`)
|
||||
let lang = to.query.lang || zzSessionStorage.getItem('lang')
|
||||
next(`/researchLogin_m?trialId=${to.query.trialId}&lang=${lang}`)
|
||||
NProgress.done()
|
||||
} else if (to.path === '/ReviewersResearchForm') {
|
||||
next(`/ReviewersResearch?`)
|
||||
|
||||
@@ -47,6 +47,7 @@ const getters = {
|
||||
language: state => state.lang.language,
|
||||
TotalNeedSignSystemDocCount: state => state.user.TotalNeedSignSystemDocCount,
|
||||
TotalNeedSignTrialDocCount: state => state.user.TotalNeedSignTrialDocCount,
|
||||
IsFirstSysDocNeedSign: state => state.user.IsFirstSysDocNeedSign,
|
||||
TrialStatusStr: state => state.user.TrialStatusStr
|
||||
}
|
||||
export default getters
|
||||
|
||||
@@ -75,7 +75,7 @@ function getQuestions(questions) {
|
||||
let isMeasurable = getQuestionAnswer(item.TableQuestions.Questions, 1105, answerObj)
|
||||
answerObj.isMeasurable = isMeasurable
|
||||
answerObj.mean = getQuestionAnswer(item.TableQuestions.Questions, 1104, answerObj)
|
||||
answerObj.saveTypeEnum = isNaN(parseFloat(isMeasurable)) ? 1 : 2
|
||||
answerObj.saveTypeEnum = parseInt(isMeasurable) === 1 && isNaN(parseFloat(answerObj.mean)) ? 1 : 2
|
||||
} else {
|
||||
answerObj.lesionPart = getQuestionAnswer(item.TableQuestions.Questions, 8, answerObj)
|
||||
answerObj.loctation = getQuestionAnswer(item.TableQuestions.Questions, 6, answerObj)
|
||||
@@ -887,6 +887,12 @@ const actions = {
|
||||
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
|
||||
imageIds.push(imageId)
|
||||
})
|
||||
} else if (study.IsCriticalSequence && instance.KeyFramesList.length === 0) {
|
||||
// 兼容保存标记数据未存NumberOfFrames的情况,按序列展示
|
||||
for (let i = 0; i < instance.NumberOfFrames; i++) {
|
||||
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
|
||||
imageIds.push(imageId)
|
||||
}
|
||||
} else {
|
||||
for (let i = 0; i < instance.NumberOfFrames; i++) {
|
||||
const imageId = `wadouri:${localStorage.getItem('location') !== 'USA' ? Vue.prototype.OSSclientConfig.basePath : Vue.prototype.OSSclientConfig.basePath}${instance.Path}?frame=${i}&instanceId=${instance.Id}&visitTaskId=${obj.visitTaskId}&idx=${studyIndex}|${seriesIndex}|${index}`
|
||||
|
||||
@@ -18,6 +18,7 @@ const getDefaultState = () => {
|
||||
/* eslint-disable */
|
||||
TotalNeedSignSystemDocCount: eval(process.env.VUE_APP_WORD_FOR_PERMISSION) ? null : 0,
|
||||
TotalNeedSignTrialDocCount: eval(process.env.VUE_APP_WORD_FOR_PERMISSION) ? null : 0,
|
||||
IsFirstSysDocNeedSign: false,
|
||||
TrialStatusStr: null,
|
||||
isTestUser: false,
|
||||
roles: []
|
||||
@@ -65,6 +66,10 @@ const mutations = {
|
||||
SET_ISTESTUSER: (state, isTestUser) => {
|
||||
state.isTestUser = eval(isTestUser)
|
||||
},
|
||||
SET_IS_FIRST_SYSTEM_DOC_SIGN: (state, IsFirstSysDocNeedSign) => {
|
||||
zzSessionStorage.setItem('IsFirstSysDocNeedSign', IsFirstSysDocNeedSign)
|
||||
state.IsFirstSysDocNeedSign = IsFirstSysDocNeedSign
|
||||
},
|
||||
SET_NEED_SIGN_SYSTEM_DOC_COUNT: (state, TotalNeedSignSystemDocCount) => {
|
||||
/* eslint-disable */
|
||||
if (eval(process.env.VUE_APP_WORD_FOR_PERMISSION) && !state.isTestUser) {
|
||||
@@ -135,15 +140,14 @@ const actions = {
|
||||
zzSessionStorage.setItem('isTestUser', data.BasicInfo.IsTestUser)
|
||||
commit('SET_ISTESTUSER', data.BasicInfo.IsTestUser)
|
||||
commit('SET_USERNAME', data.BasicInfo.UserName)
|
||||
commit('SET_USERID', data.BasicInfo.IdentityUserId)
|
||||
setToken(data.JWTStr)
|
||||
// setName(data.BasicInfo.RealName)
|
||||
const userString = decodeURIComponent(escape(window.atob(data.JWTStr.split('.')[1].replace(/-/g, '+').replace(/_/g, '/'))))
|
||||
const user = JSON.parse(userString)
|
||||
// const userString = decodeURIComponent(escape(window.atob(data.JWTStr.split('.')[1].replace(/-/g, '+').replace(/_/g, '/'))))
|
||||
// const user = JSON.parse(userString)
|
||||
// zzSessionStorage.setItem('userId', user.identityUserId)
|
||||
commit('SET_IDENTITYUSERID', user.identityUserId)
|
||||
zzSessionStorage.setItem('identityUserId', user.identityUserId)
|
||||
zzSessionStorage.setItem('userTypeEnumInt', user.userTypeEnumInt)
|
||||
// commit('SET_IDENTITYUSERID', user.identityUserId)
|
||||
// zzSessionStorage.setItem('identityUserId', user.identityUserId)
|
||||
// zzSessionStorage.setItem('userTypeEnumInt', user.userTypeEnumInt)
|
||||
// var permissions = await getUserPermissions()
|
||||
// var menuTree = await getUserMenuTree()
|
||||
// commit('SET_TREE', menuTree.Result)
|
||||
@@ -177,18 +181,24 @@ const actions = {
|
||||
try {
|
||||
commit('SET_TOKEN', data)
|
||||
setToken(data)
|
||||
commit('SET_USERID', userRoleId)
|
||||
zzSessionStorage.setItem('userId', userRoleId)
|
||||
const userString = decodeURIComponent(escape(window.atob(data.split('.')[1].replace(/-/g, '+').replace(/_/g, '/'))))
|
||||
const user = JSON.parse(userString)
|
||||
zzSessionStorage.setItem('userTypeShortName', user.userTypeShortName)
|
||||
commit('SET_USERTYPESHORTNAME', user.userTypeShortName)
|
||||
commit('SET_NAME', user.fullName)
|
||||
setName(user.fullName)
|
||||
commit('SET_IDENTITYUSERID', user.identityUserId)
|
||||
zzSessionStorage.setItem('identityUserId', user.identityUserId)
|
||||
zzSessionStorage.setItem('userTypeEnumInt', user.userTypeEnumInt)
|
||||
var permissions = await getUserPermissions()
|
||||
var menuTree = await getUserMenuTree()
|
||||
commit('SET_TREE', menuTree.Result)
|
||||
commit('SET_PERMISSIONS', permissions.Result)
|
||||
zzSessionStorage.setItem('newTree', JSON.stringify(menuTree.Result))
|
||||
zzSessionStorage.setItem('permissions', JSON.stringify(permissions.Result))
|
||||
zzSessionStorage.removeItem('lastWorkbench')
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
@@ -211,6 +221,9 @@ const actions = {
|
||||
setTotalNeedSignSystemDocCount({ commit }, TotalNeedSignSystemDocCount) {
|
||||
commit('SET_NEED_SIGN_SYSTEM_DOC_COUNT', TotalNeedSignSystemDocCount)
|
||||
},
|
||||
setIsFirstSysDocNeedSign({ commit }, IsFirstSysDocNeedSign) {
|
||||
commit('SET_IS_FIRST_SYSTEM_DOC_SIGN', IsFirstSysDocNeedSign)
|
||||
},
|
||||
setTotalNeedSignTrialDocCount({ commit }, TotalNeedSignTrialDocCount) {
|
||||
commit('SET_NEED_SIGN_TRIALS_DOC_COUNT', TotalNeedSignTrialDocCount)
|
||||
},
|
||||
@@ -233,6 +246,7 @@ const actions = {
|
||||
commit('SET_USERNAME', zzSessionStorage.getItem('userName'))
|
||||
commit('SET_NEED_SIGN_SYSTEM_DOC_COUNT', parseInt(zzSessionStorage.getItem('TotalNeedSignSystemDocCount')))
|
||||
commit('SET_NEED_SIGN_TRIALS_DOC_COUNT', parseInt(zzSessionStorage.getItem('TotalNeedSignTrialDocCount')))
|
||||
commit('SET_IS_FIRST_SYSTEM_DOC_SIGN', zzSessionStorage.getItem('IsFirstSysDocNeedSign'))
|
||||
// console.log(zzSessionStorage.getItem('TotalNeedSignSystemDocCount'))
|
||||
// console.log(zzSessionStorage.getItem('TotalNeedSignTrialDocCount'))
|
||||
zzSessionStorage.setItem('userName', user.name)
|
||||
@@ -249,7 +263,9 @@ const actions = {
|
||||
getUserInfo({ commit, state }) {
|
||||
return new Promise((resolve, reject) => {
|
||||
getUser().then(res => {
|
||||
commit('SET_ROLES', res.Result.AccountList)
|
||||
if (res.Result) {
|
||||
commit('SET_ROLES', res.Result.AccountList)
|
||||
}
|
||||
resolve(res.Result)
|
||||
}).catch(err => {
|
||||
reject(err)
|
||||
@@ -266,7 +282,26 @@ const actions = {
|
||||
})
|
||||
resetRouter()
|
||||
removeName()
|
||||
let lang = zzSessionStorage.getItem('lang')
|
||||
zzSessionStorage.clear()
|
||||
zzSessionStorage.setItem('lang', lang)
|
||||
commit('RESET_STATE')
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
async resetData({ commit, state }) {
|
||||
try {
|
||||
removeToken() // must remove token first
|
||||
// await loginOut({
|
||||
// UserRoleId: zzSessionStorage.getItem('userId'),
|
||||
// IdentityUserId: zzSessionStorage.getItem('identityUserId'),
|
||||
// })
|
||||
resetRouter()
|
||||
removeName()
|
||||
let lang = zzSessionStorage.getItem('lang')
|
||||
zzSessionStorage.clear()
|
||||
zzSessionStorage.setItem('lang', lang)
|
||||
commit('RESET_STATE')
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
|
||||
@@ -47,3 +47,6 @@
|
||||
.el-range-separator {
|
||||
box-sizing: content-box;
|
||||
}
|
||||
.el-select-dropdown__wrap{
|
||||
max-height: 350px;
|
||||
}
|
||||
+3
-2
@@ -40,8 +40,9 @@ Vue.directive('dialogDrag', {
|
||||
styL = +styL.replace(/\px/g, '')
|
||||
styT = +styT.replace(/\px/g, '')
|
||||
}
|
||||
|
||||
const oldMousemove = document.onmousemove
|
||||
document.onmousemove = function(e) {
|
||||
oldMousemove(e)
|
||||
// 通过事件委托,计算移动的距离
|
||||
let left = e.clientX - disX
|
||||
let top = e.clientY - disY
|
||||
@@ -63,7 +64,7 @@ Vue.directive('dialogDrag', {
|
||||
}
|
||||
|
||||
document.onmouseup = function(e) {
|
||||
document.onmousemove = null
|
||||
document.onmousemove = oldMousemove
|
||||
document.onmouseup = null
|
||||
}
|
||||
return false
|
||||
|
||||
@@ -89,9 +89,9 @@ service.interceptors.response.use(
|
||||
})
|
||||
store.dispatch('user/logout').then(() => {
|
||||
router.push(`/login`)
|
||||
this.$i18n.locale = 'zh'
|
||||
this.setLanguage('zh')
|
||||
this.$updateDictionary()
|
||||
//this.$i18n.locale = 'zh'
|
||||
//this.setLanguage('zh')
|
||||
// this.$updateDictionary()
|
||||
})
|
||||
}
|
||||
} else {
|
||||
|
||||
+20
-9
@@ -1,11 +1,11 @@
|
||||
import axios from 'axios'
|
||||
import _vm from '@/main'
|
||||
import { Message, MessageBox, Alert } from 'element-ui'
|
||||
import store from '@/store'
|
||||
import router from '@/router'
|
||||
import WHITELIST from "./whiteList"
|
||||
import moment from 'moment-timezone';
|
||||
import { encryptConfig } from "@/utils/encrypt"
|
||||
const ROUTER = require('@/router');
|
||||
axios.defaults.withCredentials = false
|
||||
const service = axios.create({
|
||||
baseURL: '/api',
|
||||
@@ -91,13 +91,20 @@ service.interceptors.response.use(
|
||||
const status = error.response.status
|
||||
if (error.response.data && (error.response.data.Code === -1 || error.response.data.Code === -2)) {
|
||||
store.dispatch('user/logout').then(() => {
|
||||
if (_vm.$msgbox) {
|
||||
_vm.$msgbox.close();
|
||||
let _vm = ROUTER.default.app
|
||||
try {
|
||||
if (_vm.$msgbox && _vm.$msgbox.close) {
|
||||
_vm.$msgbox.close();
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
router.push(`/login`)
|
||||
this.$i18n.locale = 'zh'
|
||||
this.setLanguage('zh')
|
||||
this.$updateDictionary()
|
||||
// if (!this.$i18n.locale) {
|
||||
// //this.$i18n.locale = 'zh'
|
||||
// //this.setLanguage('zh')
|
||||
// }
|
||||
// this.$updateDictionary()
|
||||
})
|
||||
}
|
||||
switch (status) {
|
||||
@@ -127,9 +134,9 @@ service.interceptors.response.use(
|
||||
}
|
||||
store.dispatch('user/logout').then(() => {
|
||||
router.push(`/login`)
|
||||
this.$i18n.locale = 'zh'
|
||||
this.setLanguage('zh')
|
||||
this.$updateDictionary()
|
||||
// //this.$i18n.locale = 'zh'
|
||||
// //this.setLanguage('zh')
|
||||
// this.$updateDictionary()
|
||||
})
|
||||
} else {
|
||||
setTimer({
|
||||
@@ -143,6 +150,7 @@ service.interceptors.response.use(
|
||||
setTimer([message, store.state.lang.language === 'en' ? 'Warning' : '警告', {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
confirmButtonText: store.state.lang.language === 'en' ? 'ok' : "确定",
|
||||
callback: action => { }
|
||||
}], 'confirm')
|
||||
}
|
||||
@@ -153,6 +161,7 @@ service.interceptors.response.use(
|
||||
[store.state.lang.language === 'en' ? 'Please check your network,and try again later!' : '请检查网络,稍后重试!', store.state.lang.language === 'en' ? 'Warning' : '警告', {
|
||||
type: 'warning',
|
||||
showCancelButton: false,
|
||||
confirmButtonText: store.state.lang.language === 'en' ? 'ok' : "确定",
|
||||
callback: action => { }
|
||||
}], "confirm"
|
||||
)
|
||||
@@ -171,6 +180,8 @@ const setTimer = (obj, type) => {
|
||||
Message(obj)
|
||||
}
|
||||
if (type === 'confirm') {
|
||||
obj[2].closeOnClickModal = false
|
||||
obj[2].closeOnPressEscape = false
|
||||
MessageBox.confirm(...obj)
|
||||
}
|
||||
clearTimeout(timer);
|
||||
|
||||
@@ -131,8 +131,8 @@ export default {
|
||||
.then(() => {
|
||||
this.$store.dispatch('user/logout').then(res => {
|
||||
this.$router.push(`/login`)
|
||||
this.$i18n.locale = 'zh'
|
||||
this.setLanguage('zh')
|
||||
//this.$i18n.locale = 'zh'
|
||||
//this.setLanguage('zh')
|
||||
this.$updateDictionary()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -3,13 +3,16 @@
|
||||
ref="sysAttachmentFrom"
|
||||
v-loading="loading"
|
||||
:model="form"
|
||||
label-width="170px"
|
||||
label-width="190px"
|
||||
size="small"
|
||||
:rules="rules"
|
||||
class="upload-temporary-file"
|
||||
>
|
||||
<div class="base-dialog-body">
|
||||
<el-form-item label="文件类型: " prop="FileTypeId">
|
||||
<el-form-item
|
||||
:label="$t('dictionary:signature:form:FileTypeId')"
|
||||
prop="FileTypeId"
|
||||
>
|
||||
<el-select
|
||||
v-model="form.FileTypeId"
|
||||
style="width: 100%"
|
||||
@@ -25,7 +28,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="文件: ">
|
||||
<el-form-item :label="$t('dictionary:signature:form:File')">
|
||||
<div class="upload-container">
|
||||
<el-upload
|
||||
class="upload-demo"
|
||||
@@ -46,16 +49,16 @@
|
||||
type="primary"
|
||||
:disabled="form.FileTypeId === ''"
|
||||
:loading="btnLoading"
|
||||
>Select</el-button
|
||||
>{{ $t('common:button:check') }}</el-button
|
||||
>
|
||||
<span slot="tip" style="margin-left: 10px" class="el-upload__tip">
|
||||
(must be in pdf format)
|
||||
({{ $t('trials:signature:label:mustBepdf') }})
|
||||
</span>
|
||||
</el-upload>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="需要签署的用户类型: "
|
||||
:label="$t('dictionary:signature:form:NeedConfirmedUserTypeIdList')"
|
||||
prop="NeedConfirmedUserTypeIdList"
|
||||
>
|
||||
<el-select
|
||||
@@ -71,7 +74,10 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否仅内部签署: " prop="DocUserSignType">
|
||||
<el-form-item
|
||||
:label="$t('dictionary:signature:form:DocUserSignType')"
|
||||
prop="DocUserSignType"
|
||||
>
|
||||
<el-switch
|
||||
v-model="form.DocUserSignType"
|
||||
:active-value="1"
|
||||
@@ -80,7 +86,7 @@
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="查看最短时间(分钟): "
|
||||
:label="$t('dictionary:signature:form:SignViewMinimumMinutes')"
|
||||
prop="SignViewMinimumMinutes"
|
||||
>
|
||||
<el-input-number
|
||||
@@ -105,7 +111,7 @@
|
||||
:disabled="form.FileTypeId === '' || form.Name === ''"
|
||||
:loading="saveBtnLoading"
|
||||
@click="handleSave"
|
||||
>Save</el-button
|
||||
>{{ $t('common:button:save') }}</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -138,13 +144,25 @@ export default {
|
||||
},
|
||||
rules: {
|
||||
FileTypeId: [
|
||||
{ required: true, message: 'Please select', trigger: ['blur'] },
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur'],
|
||||
},
|
||||
],
|
||||
SignViewMinimumMinutes: [
|
||||
{ required: true, message: 'Please specify', trigger: ['change'] },
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('common:ruleMessage:specify'),
|
||||
trigger: ['change'],
|
||||
},
|
||||
],
|
||||
NeedConfirmedUserTypeIdList: [
|
||||
{ required: true, message: 'Please select', trigger: ['blur'] },
|
||||
{
|
||||
required: true,
|
||||
message: this.$t('common:ruleMessage:select'),
|
||||
trigger: ['blur'],
|
||||
},
|
||||
],
|
||||
},
|
||||
fileList: [],
|
||||
@@ -211,7 +229,7 @@ export default {
|
||||
this.fileList = []
|
||||
return true
|
||||
} else {
|
||||
this.$alert('must be in pdf format')
|
||||
this.$alert(this.$t('trials:signature:label:mustBepdf'))
|
||||
|
||||
return false
|
||||
}
|
||||
@@ -236,7 +254,7 @@ export default {
|
||||
this.$refs.sysAttachmentFrom.validate((valid) => {
|
||||
if (!valid) return
|
||||
if (!this.form.Name) {
|
||||
this.$alert('Please select file.')
|
||||
this.$alert(this.$t('trials:signature:message:selectFile'))
|
||||
return
|
||||
}
|
||||
this.saveBtnLoading = true
|
||||
@@ -245,7 +263,7 @@ export default {
|
||||
this.saveBtnLoading = false
|
||||
this.$emit('closeDialog')
|
||||
this.$emit('getList')
|
||||
this.$message.success('Uploaded successfully')
|
||||
this.$message.success(this.$t('common:message:updatedSuccessfully'))
|
||||
})
|
||||
.catch(() => {
|
||||
this.saveBtnLoading = false
|
||||
@@ -263,7 +281,7 @@ export default {
|
||||
}
|
||||
},
|
||||
handleExceed(files, fileList) {
|
||||
this.$message.warning(`Upload is currently limited to 1 file`)
|
||||
this.$message.warning(this.$t('upload:rule:maxFile1'))
|
||||
},
|
||||
checkFileSuffix(fileName) {
|
||||
var typeArr = ['pdf']
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<BaseContainer>
|
||||
<template slot="search-container">
|
||||
<el-form :inline="true" size="small">
|
||||
<el-form-item label="文件类型:">
|
||||
<el-form-item :label="$t('dictionary:signature:search:FileTypeId')">
|
||||
<el-select v-model="searchData.FileTypeId" style="width: 150px">
|
||||
<el-option
|
||||
v-for="item of dict.type.Sys_Document"
|
||||
@@ -12,7 +12,7 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="文件名称">
|
||||
<el-form-item :label="$t('dictionary:signature:search:Name')">
|
||||
<el-input v-model="searchData.Name" style="width: 130px" clearable />
|
||||
</el-form-item>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
style="margin-left: auto"
|
||||
style="margin-left: auto; margin-bottom: 10px"
|
||||
size="small"
|
||||
@click="handleAdd"
|
||||
>
|
||||
@@ -53,26 +53,27 @@
|
||||
<el-table-column type="index" width="40" />
|
||||
<el-table-column
|
||||
prop="FileType"
|
||||
label="文件类型"
|
||||
:label="$t('dictionary:signature:table:FileType')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="Name"
|
||||
label="文件名称"
|
||||
:label="$t('dictionary:signature:table:Name')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
|
||||
<el-table-column
|
||||
prop="SignViewMinimumMinutes"
|
||||
label="查看最短时间(分钟)"
|
||||
:label="$t('dictionary:signature:table:SignViewMinimumMinutes')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
min-width="110"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="NeedConfirmedUserTypes"
|
||||
label="需要签署的用户类型"
|
||||
:label="$t('dictionary:signature:table:NeedConfirmedUserTypes')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
@@ -85,19 +86,25 @@
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="IsDeleted"
|
||||
label="是否废除"
|
||||
:label="$t('dictionary:signature:table:IsDeleted')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.IsDeleted ? 'Yes' : 'No' }}
|
||||
<el-tag v-if="scope.row.IsDeleted" type="danger">{{
|
||||
$fd('TrainingStatus', scope.row.IsDeleted)
|
||||
}}</el-tag>
|
||||
<el-tag v-else type="primary">{{
|
||||
$fd('TrainingStatus', scope.row.IsDeleted)
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="DocUserSignType"
|
||||
label="是否仅内部签署"
|
||||
:label="$t('dictionary:signature:table:DocUserSignType')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
min-width="90"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ $fd('ReadingYesOrNo', Number(scope.row.DocUserSignType)) }}
|
||||
@@ -105,28 +112,28 @@
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="CreateTime"
|
||||
label="创建时间"
|
||||
:label="$t('dictionary:signature:table:CreateTime')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
|
||||
<el-table-column label="Action">
|
||||
<el-table-column :label="$t('common:action:action')" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click="handlePreview(scope.row)">
|
||||
预览
|
||||
{{ $t('common:button:preview') }}
|
||||
</el-button>
|
||||
<el-button type="text" @click="handleEdit(scope.row)">
|
||||
编辑
|
||||
{{ $t('common:button:edit') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
:disabled="scope.row.IsDeleted"
|
||||
type="text"
|
||||
@click="handleRepeal(scope.row)"
|
||||
>
|
||||
废除
|
||||
{{ $t('common:button:revoke') }}
|
||||
</el-button>
|
||||
<el-button type="text" @click="handleDelete(scope.row)">
|
||||
删除
|
||||
{{ $t('common:button:delete') }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -261,7 +268,7 @@ export default {
|
||||
},
|
||||
// 废除
|
||||
handleRepeal(row) {
|
||||
this.$confirm('是否确认废除此文件?', {
|
||||
this.$confirm(this.$t('dictionary:signature:confirm:delFile'), {
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true,
|
||||
})
|
||||
@@ -298,7 +305,9 @@ export default {
|
||||
this.list.findIndex((item) => item.Id === row.Id),
|
||||
1
|
||||
)
|
||||
this.$message.success('删除成功!')
|
||||
this.$message.success(
|
||||
this.$t('common:message:deletedSuccessfully')
|
||||
)
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
@@ -10,12 +10,16 @@
|
||||
<el-input v-model="searchData.Version" style="width: 100px" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleReset">{{
|
||||
$t("dictionary:browser:button:reset")
|
||||
}}</el-button>
|
||||
<el-button type="primary" @click="handleSearch">{{
|
||||
$t("dictionary:browser:button:search")
|
||||
}}</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span style="margin-left: auto">
|
||||
|
||||
@@ -24,6 +24,16 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="标准分组" prop="CriterionGroup">
|
||||
<el-select v-model="form.CriterionGroup">
|
||||
<el-option
|
||||
v-for="item of $d.CriterionGroup"
|
||||
:key="item.id"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item v-if="form.Id !== ''" label="是否配置完成">
|
||||
<el-switch v-model="form.IsCompleteConfig" />
|
||||
@@ -40,7 +50,7 @@
|
||||
<el-form-item v-if="form.Id !== ''" label="是否启用">
|
||||
<el-switch v-model="form.IsEnable" />
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.Id !== ''" label="eCRF是否显示在影像阅片页面">
|
||||
<el-form-item v-if="form.Id !== ''" label="eICRF仅展示阅片Tab">
|
||||
<el-switch v-model="form.IseCRFShowInDicomReading" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
@@ -72,6 +82,7 @@ export default {
|
||||
Id: '',
|
||||
CriterionName: '',
|
||||
CriterionType: null,
|
||||
CriterionGroup: null,
|
||||
IsEnable: true,
|
||||
IsCompleteConfig: false,
|
||||
ShowOrder: null,
|
||||
@@ -80,7 +91,8 @@ export default {
|
||||
},
|
||||
rules: {
|
||||
CriterionName: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur'] }],
|
||||
CriterionType: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] }]
|
||||
CriterionType: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] }],
|
||||
CriterionGroup: [{ required: true, message: this.$t('common:ruleMessage:select'), trigger: ['blur'] }]
|
||||
},
|
||||
|
||||
loading: false,
|
||||
|
||||
@@ -16,8 +16,16 @@
|
||||
<el-input v-model="searchData.TagDescriptionCN" clearable style="width:120px;" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleReset">Reset</el-button>
|
||||
<el-button type="primary" @click="handleSearch">Search</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span style="margin-left:auto">
|
||||
|
||||
@@ -27,8 +27,16 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleReset">重置</el-button>
|
||||
<el-button type="primary" @click="handleSearch">查询</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span style="margin-left:auto">
|
||||
|
||||
@@ -243,7 +243,7 @@
|
||||
>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="导出标识"
|
||||
<!-- <el-form-item label="导出标识"
|
||||
prop="ExportIdentification"
|
||||
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
|
||||
>
|
||||
@@ -262,8 +262,11 @@
|
||||
>{{ item.label }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="导出结果" v-if="form.ExportIdentification" prop="ExportResult">
|
||||
</el-form-item> -->
|
||||
<el-form-item
|
||||
label="导出结果"
|
||||
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
|
||||
>
|
||||
<el-select v-model="form.ExportResult" multiple>
|
||||
<el-option
|
||||
v-for="item in CriterionDictionaryList.ExportResult"
|
||||
@@ -450,10 +453,10 @@
|
||||
<el-form-item v-if="form.QuestionGenre === 3" label="默认值">
|
||||
<el-select v-model="form.DefaultValue" clearable>
|
||||
<el-option
|
||||
v-for="item of form.DictionaryCode ? $d[form.DictionaryCode] : []"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
v-for="item of highlightAnswers"
|
||||
:key="item.Id"
|
||||
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
|
||||
:value="item.Code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -829,7 +832,7 @@ export default {
|
||||
ConvertShowType: 0,
|
||||
QuestionClassify: null,
|
||||
HighlightAnswerList: [],
|
||||
ExportIdentification: 0,
|
||||
// ExportIdentification: 0,
|
||||
ExportResult: [],
|
||||
MaxAnswerLength: null,
|
||||
FileType: [],
|
||||
@@ -866,12 +869,12 @@ export default {
|
||||
{ required: true, message: '请注明', trigger: 'blur' },
|
||||
{ max: 50, message: '最大长度为 50' },
|
||||
],
|
||||
ExportIdentification: [
|
||||
{ required: true, message: '请选择', trigger: 'blur' },
|
||||
],
|
||||
ExportResult: [
|
||||
{ required: true, message: '请选择', trigger: 'blur' },
|
||||
]
|
||||
// ExportIdentification: [
|
||||
// { required: true, message: '请选择', trigger: 'blur' },
|
||||
// ],
|
||||
// ExportResult: [
|
||||
// { required: true, message: '请选择', trigger: 'blur' },
|
||||
// ]
|
||||
},
|
||||
loading: false,
|
||||
btnLoading: false,
|
||||
@@ -1159,7 +1162,7 @@ export default {
|
||||
data.ConvertShowType = 0
|
||||
data.QuestionClassify = null
|
||||
data.HighlightAnswerList = []
|
||||
data.ExportIdentification = 0
|
||||
// data.ExportIdentification = 0
|
||||
data.ExportResult = []
|
||||
data.FileType = []
|
||||
data.ClassifyQuestionId = null
|
||||
|
||||
@@ -8,9 +8,16 @@
|
||||
<el-input v-model="searchData.QuestionName" clearable style="width:120px;" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleReset">重置</el-button>
|
||||
<el-button type="primary" @click="handleSearch">查询</el-button>
|
||||
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div>
|
||||
|
||||
@@ -8,9 +8,65 @@
|
||||
>
|
||||
<el-input v-model="searchData.CriterionName" clearable style="width:120px;" />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="标准类型"
|
||||
>
|
||||
<el-select v-model="searchData.CriterionType" clearable style="width:120px;">
|
||||
<el-option
|
||||
v-for="item of $d.CriterionType"
|
||||
:key="item.id"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="标准分组"
|
||||
>
|
||||
<el-select v-model="searchData.CriterionGroup" clearable style="width:120px;">
|
||||
<el-option
|
||||
v-for="item of $d.CriterionGroup"
|
||||
:key="item.id"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="是否配置完成"
|
||||
>
|
||||
<el-select v-model="searchData.IsCompleteConfig" clearable style="width:120px;">
|
||||
<el-option
|
||||
v-for="item of $d.YesOrNo"
|
||||
:key="item.id"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="是否启用"
|
||||
>
|
||||
<el-select v-model="searchData.IsEnable" clearable style="width:120px;">
|
||||
<el-option
|
||||
v-for="item of $d.YesOrNo"
|
||||
:key="item.id"
|
||||
:value="item.value"
|
||||
:label="item.label"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleReset">重置</el-button>
|
||||
<el-button type="primary" @click="handleSearch">查询</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span style="margin-left:auto">
|
||||
@@ -25,6 +81,8 @@
|
||||
stripe
|
||||
size="small"
|
||||
height="100"
|
||||
@sort-change="handleSortByColumn"
|
||||
ref="criterionsTbl"
|
||||
>
|
||||
<el-table-column type="index" width="60" />
|
||||
|
||||
@@ -32,20 +90,33 @@
|
||||
prop="CriterionName"
|
||||
label="标准名称"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="CriterionType"
|
||||
label="标准类型"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ $fd('CriterionType',scope.row.CriterionType) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="CriterionGroup"
|
||||
label="标准分组"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ $fd('CriterionGroup',scope.row.CriterionGroup) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="IsCompleteConfig"
|
||||
label="是否配置完成"
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
|
||||
@@ -62,22 +133,32 @@
|
||||
label="描述"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
|
||||
<el-table-column
|
||||
prop="ShowOrder"
|
||||
label="显示序号"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
|
||||
<el-table-column
|
||||
prop="IsEnable"
|
||||
label="是否启用"
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ $fd('YesOrNo', scope.row.IsEnable) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
prop="ShowOrder"
|
||||
label="显示序号"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="IseCRFShowInDicomReading"
|
||||
label="eICRF仅展示阅片Tab"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
width="210"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ $fd('YesOrNo', scope.row.IseCRFShowInDicomReading) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="Action" min-width="200px">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
@@ -172,8 +253,14 @@ import AddCriterion from './AddCriterion'
|
||||
const searchDataDefault = () => {
|
||||
return {
|
||||
CriterionName: '',
|
||||
CriterionType: null,
|
||||
CriterionGroup: null,
|
||||
IsCompleteConfig: null,
|
||||
IsEnable: null,
|
||||
PageIndex: 1,
|
||||
PageSize: 20
|
||||
PageSize: 20,
|
||||
Asc: true,
|
||||
SortField: ''
|
||||
}
|
||||
}
|
||||
export default {
|
||||
@@ -271,6 +358,18 @@ export default {
|
||||
// 重置
|
||||
handleReset() {
|
||||
this.searchData = searchDataDefault()
|
||||
this.$refs['criterionsTbl'].clearSort()
|
||||
this.getList()
|
||||
},
|
||||
// 指定排序字段,对列表进行排序
|
||||
handleSortByColumn(column) {
|
||||
if (column.order === 'ascending') {
|
||||
this.searchData.Asc = true
|
||||
} else {
|
||||
this.searchData.Asc = false
|
||||
}
|
||||
this.searchData.SortField = column.prop
|
||||
this.searchData.PageIndex = 1
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,8 +16,16 @@
|
||||
<el-input v-model="searchData.TagDescriptionCN" clearable style="width:120px;" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleReset">Reset</el-button>
|
||||
<el-button type="primary" @click="handleSearch">Search</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span style="margin-left:auto">
|
||||
|
||||
@@ -38,8 +38,16 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleReset">重置</el-button>
|
||||
<el-button type="primary" @click="handleSearch">查询</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span style="margin-left:auto">
|
||||
|
||||
@@ -26,8 +26,16 @@
|
||||
<el-input v-model="searchData.Type" clearable style="width:120px;" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleReset">Reset</el-button>
|
||||
<el-button type="primary" @click="handleSearch">Search</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span style="margin-left:auto">
|
||||
|
||||
@@ -147,7 +147,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- 导出标识 -->
|
||||
<el-form-item
|
||||
<!-- <el-form-item
|
||||
:label="$t('trials:readingUnit:qsList:title:ExportIdentification')" prop="ExportIdentification"
|
||||
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
|
||||
>
|
||||
@@ -166,9 +166,12 @@
|
||||
>{{ item.label }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
<!-- 导出结果 -->
|
||||
<el-form-item :label="$t('trials:readingUnit:qsList:title:ExportResult')" v-if="form.ExportIdentification" prop="ExportResult">
|
||||
<el-form-item
|
||||
:label="$t('trials:readingUnit:qsList:title:ExportResult')"
|
||||
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
|
||||
>
|
||||
<el-select v-model="form.ExportResult" multiple>
|
||||
<el-option
|
||||
v-for="item in CriterionDictionaryList.ExportResult"
|
||||
@@ -327,6 +330,32 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.TableQuestionType === 3" label="默认值">
|
||||
<el-select v-model="form.DefaultValue" clearable>
|
||||
<!-- <el-option
|
||||
v-for="item of form.DictionaryCode ? $d[form.DictionaryCode] : []"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
/> -->
|
||||
<el-option
|
||||
v-for="item of highlightAnswers"
|
||||
:key="item.Id"
|
||||
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
|
||||
:value="item.Code"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.TableQuestionType === 0" label="默认值">
|
||||
<el-select v-model="form.DefaultValue" clearable>
|
||||
<el-option
|
||||
v-for="item of form.TypeValue ? form.TypeValue.split('|') : []"
|
||||
:key="item"
|
||||
:label="item"
|
||||
:value="item"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.Type === 'select' || form.Type === 'radio'" label="高亮标记值" prop="HighlightAnswerList">
|
||||
<el-select v-model="form.HighlightAnswerList" clearable multiple>
|
||||
<template v-if="form.TypeValue">
|
||||
@@ -338,11 +367,17 @@
|
||||
/>
|
||||
</template>
|
||||
<template v-else-if="form.DictionaryCode">
|
||||
<el-option
|
||||
<!-- <el-option
|
||||
v-for="item of $d[form.DictionaryCode]"
|
||||
:key="item.id"
|
||||
:label="item.label"
|
||||
:value="item.value.toString()"
|
||||
/> -->
|
||||
<el-option
|
||||
v-for="item of highlightAnswers"
|
||||
:key="item.Id"
|
||||
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
|
||||
:value="item.Code"
|
||||
/>
|
||||
</template>
|
||||
</el-select>
|
||||
@@ -607,8 +642,9 @@ export default {
|
||||
ImageCount: 0,
|
||||
ClassifyTableQuestionId: null,
|
||||
ClassifyAlgorithms: null,
|
||||
ExportIdentification: 0,
|
||||
ExportResult: []
|
||||
// ExportIdentification: 0,
|
||||
ExportResult: [],
|
||||
DefaultValue:null
|
||||
// IsEnable: true
|
||||
},
|
||||
rules: {
|
||||
@@ -633,12 +669,12 @@ export default {
|
||||
DataTableColumn: [{ required: true, message: '请选择', trigger: 'blur' }],
|
||||
// DictionaryCode: [{ required: true, message: '请选择', trigger: 'blur' }],
|
||||
DependParentId: [{ required: true, message: '请选择', trigger: 'blur' }],
|
||||
ExportIdentification: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
|
||||
],
|
||||
ExportResult: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
|
||||
]
|
||||
// ExportIdentification: [
|
||||
// { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
|
||||
// ],
|
||||
// ExportResult: [
|
||||
// { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
|
||||
// ]
|
||||
},
|
||||
loading: false,
|
||||
parentOptions: [],
|
||||
@@ -648,9 +684,31 @@ export default {
|
||||
colOptions: [],
|
||||
dicList: [],
|
||||
CriterionDictionaryList: [],
|
||||
Questions: []
|
||||
Questions: [],
|
||||
highlightAnswers: []
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'form.DictionaryCode': {
|
||||
deep: true,
|
||||
immediate: true,
|
||||
async handler(v, oldv) {
|
||||
try {
|
||||
if (!v) {
|
||||
this.highlightAnswers = []
|
||||
return
|
||||
}
|
||||
let res = await getCriterionDictionary({
|
||||
ReadingCriterionId: this.criterionId,
|
||||
DictionaryCode: this.form.DictionaryCode,
|
||||
})
|
||||
this.highlightAnswers = res.Result[this.form.DictionaryCode]
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.initForm()
|
||||
this.getCriterionDictionary()
|
||||
@@ -910,8 +968,9 @@ export default {
|
||||
form.ImageCount = null
|
||||
form.ClassifyTableQuestionId = null
|
||||
form.ClassifyAlgorithms = null
|
||||
form.ExportIdentification = 0
|
||||
// form.ExportIdentification = 0
|
||||
form.ExportResult = []
|
||||
form.DefaultValue = null
|
||||
},
|
||||
close() {
|
||||
this.$emit('close')
|
||||
|
||||
@@ -246,9 +246,9 @@
|
||||
:autosize="{ minRows: 8, maxRows: 8 }"
|
||||
/>
|
||||
<el-button
|
||||
:disabled="!form.EmailHtmlContentCN"
|
||||
:disabled="!form.EmailHtmlContentCN && form.EmailHtmlContent"
|
||||
type="text"
|
||||
@click="PreviewHTML(form.EmailHtmlContentCN)"
|
||||
@click="PreviewHTML(form.EmailHtmlContentCN, form.EmailHtmlContent)"
|
||||
style="position: absolute; left: -50px; top: 30px"
|
||||
>
|
||||
{{ $t('common:button:preview') }}
|
||||
@@ -265,9 +265,9 @@
|
||||
:autosize="{ minRows: 8, maxRows: 8 }"
|
||||
/>
|
||||
<el-button
|
||||
:disabled="!form.EmailHtmlContent"
|
||||
:disabled="!form.EmailHtmlContentCN && form.EmailHtmlContent"
|
||||
type="text"
|
||||
@click="PreviewHTML(form.EmailHtmlContent)"
|
||||
@click="PreviewHTML(form.EmailHtmlContentCN, form.EmailHtmlContent)"
|
||||
style="position: absolute; left: -50px; top: 30px"
|
||||
>
|
||||
{{ $t('common:button:preview') }}
|
||||
@@ -519,8 +519,8 @@ export default {
|
||||
})
|
||||
},
|
||||
// 预览模板
|
||||
PreviewHTML(html) {
|
||||
this.$emit('PreviewHTML', html)
|
||||
PreviewHTML(html, htmlEn) {
|
||||
this.$emit('PreviewHTML', html, htmlEn)
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -123,8 +123,16 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleSearch">查询</el-button>
|
||||
<el-button type="primary" @click="handleReset">重置</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span style="margin-left: auto">
|
||||
@@ -370,6 +378,13 @@
|
||||
<el-button type="text" @click="handleDelete(scope.row)"
|
||||
>删除</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
@click="
|
||||
preview(scope.row.EmailHtmlContentCN, scope.row.EmailHtmlContent)
|
||||
"
|
||||
>{{ $t('common:button:preview') }}</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -427,7 +442,23 @@
|
||||
fullscreen
|
||||
custom-class="base-dialog-wrapper"
|
||||
>
|
||||
<div v-html="previewHTML"></div>
|
||||
<div
|
||||
style="
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-around;
|
||||
flex-wrap: wrap;
|
||||
"
|
||||
>
|
||||
<div>
|
||||
<h3>邮件内容模版(CN)</h3>
|
||||
<div v-html="previewHTML"></div>
|
||||
</div>
|
||||
<div>
|
||||
<h3>邮件内容模版(EN)</h3>
|
||||
<div v-html="previewHTMLEN"></div>
|
||||
</div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</box-content>
|
||||
</template>
|
||||
@@ -487,6 +518,7 @@ export default {
|
||||
attachmentVisible: false,
|
||||
previewVisible: false,
|
||||
previewHTML: null,
|
||||
previewHTMLEN: null,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -574,8 +606,9 @@ export default {
|
||||
closeDialog() {
|
||||
this.editVisible = false
|
||||
},
|
||||
preview(html) {
|
||||
preview(html, htmlEN) {
|
||||
this.previewHTML = html
|
||||
this.previewHTMLEN = htmlEN
|
||||
this.previewVisible = true
|
||||
},
|
||||
// 导出
|
||||
|
||||
@@ -3,15 +3,23 @@
|
||||
<!-- 搜索框 -->
|
||||
<div class="search">
|
||||
<el-form :inline="true" size="mini" class="base-search-form">
|
||||
<el-form-item label="编号:">
|
||||
<el-form-item label="Code:">
|
||||
<el-input v-model="searchData.Code" style="width:100px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="模板:">
|
||||
<el-input v-model="searchData.Name" style="width:100px;" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleReset">Reset</el-button>
|
||||
<el-button type="primary" @click="handleSearch">Search</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span style="margin-left:auto;">
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
</el-form-item>
|
||||
<!-- 新密码 -->
|
||||
<el-form-item
|
||||
class="my_new_pwd"
|
||||
:label="$t('recompose:form:newPassword')"
|
||||
prop="NewPassWord"
|
||||
>
|
||||
@@ -84,6 +85,11 @@ export default {
|
||||
password: {
|
||||
NewUserName: null,
|
||||
UserId: null,
|
||||
ConfirmPassWord: null,
|
||||
NewPassWord: null,
|
||||
Email: null,
|
||||
UserType: null,
|
||||
access_token: null,
|
||||
},
|
||||
passwordFormRules: {
|
||||
NewUserName: [
|
||||
@@ -175,9 +181,9 @@ export default {
|
||||
this.$i18n.locale = this.$route.query.lang
|
||||
this.setLanguage(this.$route.query.lang)
|
||||
this.$updateDictionary()
|
||||
if (!this.password.NewUserName) {
|
||||
this.$alert(this.$t('recompose:message:warning'))
|
||||
}
|
||||
// if (!this.password.NewUserName) {
|
||||
// this.$alert(this.$t('recompose:message:warning'))
|
||||
// }
|
||||
},
|
||||
methods: {
|
||||
...mapMutations({ setLanguage: 'lang/setLanguage' }),
|
||||
@@ -189,8 +195,10 @@ export default {
|
||||
} else {
|
||||
this.$router.push(`/login`)
|
||||
}
|
||||
this.$i18n.locale = 'zh'
|
||||
this.setLanguage('zh')
|
||||
if (!this.$i18n.locale) {
|
||||
//this.$i18n.locale = 'zh'
|
||||
//this.setLanguage('zh')
|
||||
}
|
||||
this.$updateDictionary()
|
||||
},
|
||||
save() {
|
||||
@@ -228,7 +236,10 @@ export default {
|
||||
})
|
||||
},
|
||||
cancel() {
|
||||
this.$refs['passwordForm'].resetFields()
|
||||
// this.$refs['passwordForm'].resetFields()
|
||||
this.password.NewPassWord = null
|
||||
this.password.NewUserName = null
|
||||
this.password.ConfirmPassWord = null
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -262,7 +273,7 @@ input {
|
||||
background-color: transparent;
|
||||
caret-color: #fff;
|
||||
}
|
||||
.el-form-item {
|
||||
margin-bottom: 30px;
|
||||
::v-deep .is-error.my_new_pwd {
|
||||
margin-bottom: 45px;
|
||||
}
|
||||
</style>
|
||||
|
||||
+5
-2
@@ -2,7 +2,8 @@
|
||||
<div class="wscn-http404-container">
|
||||
<div class="wscn-http404" style="display: flex;align-items: center">
|
||||
<div class="pic-404">
|
||||
<img class="pic-404__parent" src="@/assets/login-bg.png" alt="404">
|
||||
<!-- <img class="pic-404__parent" src="@/assets/login-bg.png" alt="404"> -->
|
||||
<svg-icon icon-class="login-bg" style="width: 100%; height: 100%" />
|
||||
<img class="pic-404__child left" src="@/assets/404_images/404_cloud.png" alt="404">
|
||||
<img class="pic-404__child mid" src="@/assets/404_images/404_cloud.png" alt="404">
|
||||
<img class="pic-404__child right" src="@/assets/404_images/404_cloud.png" alt="404">
|
||||
@@ -56,8 +57,10 @@ export default {
|
||||
.pic-404 {
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 400px;
|
||||
width: 500px;
|
||||
height: 300px;
|
||||
overflow: hidden;
|
||||
margin-right: 10px;
|
||||
&__parent {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -423,7 +423,7 @@ export default {
|
||||
/* margin-bottom: 40px;*/
|
||||
/*}*/
|
||||
.is-error.my_new_pwd {
|
||||
margin-bottom: 40px;
|
||||
margin-bottom: 45px;
|
||||
}
|
||||
.flexBox {
|
||||
display: flex;
|
||||
|
||||
+58
-26
@@ -205,17 +205,21 @@
|
||||
"
|
||||
>
|
||||
<h1
|
||||
style="text-align: center; margin-bottom: 20px"
|
||||
style="text-align: center; margin-bottom: 30px"
|
||||
v-if="NODE_ENV === 'usa'"
|
||||
>
|
||||
About
|
||||
</h1>
|
||||
<h1 style="text-align: center; margin-bottom: 20px" v-else>关于</h1>
|
||||
<p style="margin-bottom: 20px" v-if="NODE_ENV === 'usa'">
|
||||
{{ $t('login:title:system_title_about') }}
|
||||
<h1 style="text-align: center; margin-bottom: 30px" v-else>关于</h1>
|
||||
<p style="margin-bottom: 0px" v-if="NODE_ENV === 'usa'">
|
||||
<!-- {{ $t('login:title:system_title_about') }} -->
|
||||
<svg-icon
|
||||
icon-class="login-logo"
|
||||
style="width: 250px; height: 71px"
|
||||
/>
|
||||
</p>
|
||||
<p style="margin-bottom: 20px" v-else>{{ $t('login:title:system') }}</p>
|
||||
<p style="margin-bottom: 20px">
|
||||
<p style="margin-bottom: 0px" v-else>{{ $t('login:title:system') }}</p>
|
||||
<p style="margin-bottom: 20px; margin-top: 0">
|
||||
V{{ $version.IsEnv_US ? $version.Version_US : $version.Version }}
|
||||
</p>
|
||||
<p style="margin-bottom: 20px" v-if="language === 'zh'">
|
||||
@@ -313,7 +317,8 @@ export default {
|
||||
computed: {
|
||||
...mapGetters(['asyncRoutes', 'routes', 'language']),
|
||||
host() {
|
||||
return window.location.host
|
||||
// return window.location.host
|
||||
return 'elevateimaging.ai '
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
@@ -328,7 +333,8 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
zzSessionStorage.clear()
|
||||
let lang = zzSessionStorage.getItem('lang') || 'zh'
|
||||
// zzSessionStorage.clear()
|
||||
this.loginType = this.$route.query.loginType
|
||||
this.location = this.$route.query.location
|
||||
zzSessionStorage.setItem('loginType', this.loginType)
|
||||
@@ -343,9 +349,9 @@ export default {
|
||||
this.setLanguage('en')
|
||||
this.$updateDictionary()
|
||||
} else {
|
||||
// this.$i18n.locale = 'zh'
|
||||
// this.setLanguage('zh')
|
||||
// this.$updateDictionary()
|
||||
this.$i18n.locale = lang
|
||||
this.setLanguage(lang)
|
||||
this.$updateDictionary()
|
||||
}
|
||||
}
|
||||
this.$refs.browserTip.open()
|
||||
@@ -387,6 +393,9 @@ export default {
|
||||
this.$store
|
||||
.dispatch('user/login', this.loginForm)
|
||||
.then((res) => {
|
||||
if (res.BasicInfo.LoginState === 2) {
|
||||
this.$message.warning(this.$t('login:message:login4'))
|
||||
}
|
||||
if (res.BasicInfo.IsFirstAdd) {
|
||||
// 当前用户为首次登录,请先修改密码之后再次登录
|
||||
this.$message.success(this.$t('login:message:login1'))
|
||||
@@ -396,7 +405,7 @@ export default {
|
||||
})
|
||||
}, 500)
|
||||
return
|
||||
} else if (res.BasicInfo.LoginState === 1) {
|
||||
} else if (res.BasicInfo.NeedChangePassWord) {
|
||||
// 请先修改密码后再登录!
|
||||
this.$alert(
|
||||
this.$t('login:message:login3'),
|
||||
@@ -412,29 +421,27 @@ export default {
|
||||
)
|
||||
return
|
||||
} else if (res.IsMFA) {
|
||||
zzSessionStorage.removeItem('userId')
|
||||
zzSessionStorage.removeItem('identityUserId')
|
||||
this.$MFA({
|
||||
UserId: res.BasicInfo.Id,
|
||||
UserId: res.BasicInfo.IdentityUserId,
|
||||
EMail: res.BasicInfo.EMail,
|
||||
username: this.loginForm.username,
|
||||
callBack: this.loginIn,
|
||||
callBack: this.changeRoleLogin,
|
||||
cancelBack: () => {
|
||||
this.loading = false
|
||||
},
|
||||
})
|
||||
return
|
||||
} else if (res.BasicInfo.LoginState === 2) {
|
||||
// 本次登录的IP或设备与上次不一致,请确认'
|
||||
// this.$alert(this.$t('login:message:login4'), this.$t('common:title:warning'))
|
||||
this.$message.warning(this.$t('login:message:login4'))
|
||||
}
|
||||
if (
|
||||
Array.isArray(this.$store.state.user.roles) &&
|
||||
this.$store.state.user.roles.length === 1
|
||||
) {
|
||||
this.loginByRole(this.$store.state.user.roles[0].Id)
|
||||
return
|
||||
}
|
||||
return (this.toggleRoleVisible = true)
|
||||
// else if (res.BasicInfo.LoginState === 2) {
|
||||
// // 本次登录的IP或设备与上次不一致,请确认'
|
||||
// // this.$alert(this.$t('login:message:login4'), this.$t('common:title:warning'))
|
||||
// this.$message.warning(this.$t('login:message:login4'))
|
||||
// }
|
||||
zzSessionStorage.removeItem('userId')
|
||||
zzSessionStorage.removeItem('identityUserId')
|
||||
this.changeRoleLogin()
|
||||
})
|
||||
.catch(() => {
|
||||
this.showCode = true
|
||||
@@ -455,6 +462,9 @@ export default {
|
||||
if (res && res.length > 0) {
|
||||
this.$store.dispatch('global/getNoticeList')
|
||||
this.$router.addRoutes(res)
|
||||
// if (this.LoginState === 2) {
|
||||
// this.$message.warning(this.$t('login:message:login4'))
|
||||
// }
|
||||
if (this.loginType === 'DevOps') {
|
||||
this.$router.replace({ path: res[0].path })
|
||||
return
|
||||
@@ -494,6 +504,28 @@ export default {
|
||||
this.toggleRoleLoading = false
|
||||
})
|
||||
},
|
||||
changeRoleLogin() {
|
||||
if (
|
||||
Array.isArray(this.$store.state.user.roles) &&
|
||||
this.$store.state.user.roles.length === 1
|
||||
) {
|
||||
this.loginByRole(this.$store.state.user.roles[0].Id)
|
||||
return
|
||||
}
|
||||
if (
|
||||
Array.isArray(this.$store.state.user.roles) &&
|
||||
this.$store.state.user.roles.filter((item) => item.IsUserRoleDisabled)
|
||||
.length ===
|
||||
this.$store.state.user.roles.length - 1
|
||||
) {
|
||||
let role = this.$store.state.user.roles.find(
|
||||
(item) => !item.IsUserRoleDisabled
|
||||
)
|
||||
this.loginByRole(role.Id)
|
||||
return
|
||||
}
|
||||
return (this.toggleRoleVisible = true)
|
||||
},
|
||||
cancel() {
|
||||
this.showCode = true
|
||||
this.loading = false
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
</el-form-item>
|
||||
<!-- 新密码 -->
|
||||
<el-form-item
|
||||
class="my_new_pwd"
|
||||
:label="$t('recompose:form:newPassword')"
|
||||
prop="NewPassWord"
|
||||
>
|
||||
@@ -138,14 +139,16 @@ export default {
|
||||
...mapMutations({ setLanguage: 'lang/setLanguage' }),
|
||||
async logout() {
|
||||
var loginType = zzSessionStorage.getItem('loginType')
|
||||
await this.$store.dispatch('user/logout')
|
||||
await this.$store.dispatch('user/resetData')
|
||||
if (loginType) {
|
||||
this.$router.push(`/login?loginType=${loginType}`)
|
||||
} else {
|
||||
this.$router.push(`/login`)
|
||||
}
|
||||
this.$i18n.locale = 'zh'
|
||||
this.setLanguage('zh')
|
||||
if (!this.$i18n.locale) {
|
||||
//this.$i18n.locale = 'zh'
|
||||
//this.setLanguage('zh')
|
||||
}
|
||||
this.$updateDictionary()
|
||||
},
|
||||
save() {
|
||||
@@ -219,4 +222,7 @@ input {
|
||||
background-color: transparent;
|
||||
caret-color: #fff;
|
||||
}
|
||||
::v-deep .is-error.my_new_pwd {
|
||||
margin-bottom: 45px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
:title="$t('trials:researchForm:dialogTitle:reject')"
|
||||
width="600px"
|
||||
custom-class="base-dialog-wrapper"
|
||||
:append-to-body="userTypeEnumInt !== 0"
|
||||
append-to-body
|
||||
>
|
||||
<el-form ref="rejectForm" :model="rejectForm" label-width="100px">
|
||||
<div class="base-dialog-body">
|
||||
|
||||
@@ -437,7 +437,7 @@ export default {
|
||||
},
|
||||
handlePreview3(row) {
|
||||
return this.$preview({
|
||||
path: row.FilePath,
|
||||
path: row.Path || row.FilePath,
|
||||
type: 'pdf',
|
||||
title: row.FileName,
|
||||
})
|
||||
@@ -447,7 +447,7 @@ export default {
|
||||
},
|
||||
handlePreview2(row, r2) {
|
||||
return this.$preview({
|
||||
path: row.fullPath,
|
||||
path: row.Path || row.fullPath,
|
||||
type: 'pdf',
|
||||
title: row.FileName,
|
||||
})
|
||||
@@ -537,7 +537,7 @@ export default {
|
||||
handlePreview(row) {
|
||||
console.log(row)
|
||||
return this.$preview({
|
||||
path: row.FullPath,
|
||||
path: row.Path || row.FullPath,
|
||||
type: 'pdf',
|
||||
title: row.FileName,
|
||||
})
|
||||
|
||||
@@ -333,7 +333,7 @@ export default {
|
||||
},
|
||||
preview(row) {
|
||||
this.$preview({
|
||||
path: row.FullPath,
|
||||
path: row.Path || row.FullPath,
|
||||
type: 'pdf',
|
||||
title: row.FileName,
|
||||
})
|
||||
|
||||
@@ -292,7 +292,7 @@ export default {
|
||||
},
|
||||
preview(row) {
|
||||
this.$preview({
|
||||
path: row.FullPath,
|
||||
path: row.Path || row.FullPath,
|
||||
type: 'pdf',
|
||||
title: row.FileName,
|
||||
})
|
||||
|
||||
@@ -159,7 +159,6 @@
|
||||
style="width: 100%"
|
||||
v-model="form.Hospital"
|
||||
:fetch-suggestions="querySearch"
|
||||
@select="handleSelect"
|
||||
placeholder=""
|
||||
></el-autocomplete>
|
||||
</el-form-item>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<template v-if="DATA.FirstName && DATA.LastName">
|
||||
<div class="userInfo">
|
||||
<span>{{
|
||||
isEN ? DATA.FirstName + DATA.LastName : DATA.ChineseName
|
||||
isEN ? DATA.LastName + ' / ' + DATA.FirstName : DATA.ChineseName
|
||||
}}</span>
|
||||
<span>{{ $fd('Sex', DATA.Sex) }}</span>
|
||||
<span v-if="isEN">
|
||||
@@ -269,16 +269,10 @@
|
||||
:label="$t('curriculumVitae:info:form:City')"
|
||||
v-if="isEN"
|
||||
>
|
||||
<el-input
|
||||
v-model="form.City"
|
||||
size="small"
|
||||
/>
|
||||
<el-input v-model="form.City" size="small" />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('curriculumVitae:info:form:City')" v-else>
|
||||
<el-input
|
||||
v-model="form.CityCN"
|
||||
size="small"
|
||||
/>
|
||||
<el-input v-model="form.CityCN" size="small" />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('curriculumVitae:info:form:department')"
|
||||
@@ -757,11 +751,12 @@ export default {
|
||||
if (this.reviewerId) {
|
||||
this.form.Id = this.reviewerId
|
||||
}
|
||||
// console.log(this.form)
|
||||
let data = Object.assign({}, this.form)
|
||||
if (!this.hospitalList.find((item) => item.Id === data.HospitalId)) {
|
||||
data.HospitalName = data.HospitalId
|
||||
data.HospitalId = null
|
||||
}
|
||||
// if (!this.hospitalList.find((item) => item.Id === data.HospitalId)) {
|
||||
// data.HospitalName = data.HospitalId
|
||||
// data.HospitalId = null
|
||||
// }
|
||||
this.loading = true
|
||||
let res = await addOrUpdateDoctorBasicInfoAndEmployment(data)
|
||||
this.loading = false
|
||||
|
||||
@@ -7,8 +7,9 @@
|
||||
<span v-if="isAll">
|
||||
{{
|
||||
isEN
|
||||
? reviewerData.BasicInfoView.FirstName +
|
||||
reviewerData.BasicInfoView.LastName
|
||||
? reviewerData.BasicInfoView.LastName +
|
||||
' / ' +
|
||||
reviewerData.BasicInfoView.FirstName
|
||||
: reviewerData.BasicInfoView.ChineseName
|
||||
}}
|
||||
</span>
|
||||
@@ -1014,7 +1015,7 @@ export default {
|
||||
}
|
||||
},
|
||||
preview(row) {
|
||||
let path = row.FullPath || row.FilePath
|
||||
let path = row.Path || row.FullPath || row.FilePath
|
||||
this.$preview({
|
||||
path: path,
|
||||
type: 'pdf',
|
||||
|
||||
@@ -179,6 +179,7 @@ export default {
|
||||
methods: {
|
||||
openDialog(title, data, options = [], status) {
|
||||
this.PublishVersionList = options;
|
||||
this.loading = false
|
||||
this.status = status;
|
||||
this.model_cfg.visible = true;
|
||||
this.model_cfg.title = title;
|
||||
|
||||
@@ -154,6 +154,15 @@
|
||||
>
|
||||
批量更新
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-edit-outline"
|
||||
size="mini"
|
||||
:disabled="selectTableList.length <= 0"
|
||||
@click="handleBatchUpdateToChange"
|
||||
>
|
||||
批量编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
@@ -380,6 +389,9 @@ export default {
|
||||
mounted() {
|
||||
this.getList()
|
||||
this.getPublishVersionSelect()
|
||||
this.$EventBus.$on('il8nUpdate', (data) => {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 获取迭代
|
||||
@@ -416,6 +428,10 @@ export default {
|
||||
)
|
||||
})
|
||||
},
|
||||
// 批量编辑国际化内容
|
||||
handleBatchUpdateToChange() {
|
||||
this.$openI18n(this.selectTableList)
|
||||
},
|
||||
async batch(row) {
|
||||
let { PublishLogId, State } = row
|
||||
let data = {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<el-form-item :label="$t('system:log:form:version')" prop="Version">
|
||||
<el-input v-model="form.Version" />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('system:log:form:versionUS')" prop="Version">
|
||||
<el-form-item :label="$t('system:log:form:versionUS')" prop="Version_US">
|
||||
<el-input v-model="form.Version_US" />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
@@ -100,6 +100,9 @@ export default {
|
||||
},
|
||||
{ max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50` },
|
||||
],
|
||||
Version_US:[
|
||||
{ max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50` }
|
||||
],
|
||||
// PublishTime: [
|
||||
// { required: true, message: '请注明', trigger: 'blur' }
|
||||
// ],
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
<template>
|
||||
<base-model v-if="config.visible" :config="config">
|
||||
<template slot="dialog-body">
|
||||
<el-table :data="curData" border style="width: 100%" size="small">
|
||||
<el-table-column
|
||||
prop="key"
|
||||
:label="$t('system:loginLog:table:cfgItem')"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
prop="value"
|
||||
:label="$t('system:loginLog:table:cfgVal')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.prop !== 'UserRoleList'">{{
|
||||
scope.row.value
|
||||
}}</span>
|
||||
<template v-else>
|
||||
<div
|
||||
v-for="item in scope.row.value"
|
||||
:key="item.UserTypeEnum"
|
||||
style="margin: 0"
|
||||
>
|
||||
{{ item.UserTypeShortName
|
||||
}}{{ $t('system:loginLog:form:symbol')
|
||||
}}{{ $fd('IsEnable', !item.IsUserRoleDisabled) }}
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</template>
|
||||
<template slot="dialog-footer">
|
||||
<el-button type="primary" @click="config.visible = false">
|
||||
{{ $t('common:button:confirm') }}
|
||||
</el-button>
|
||||
</template>
|
||||
</base-model>
|
||||
</template>
|
||||
<script>
|
||||
import BaseModel from '@/components/BaseModel'
|
||||
export default {
|
||||
components: { BaseModel },
|
||||
props: {
|
||||
JsonObj: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
config: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
return {
|
||||
visible: false,
|
||||
title: this.$t('system:loginLog:dialog:title'),
|
||||
width: '500px',
|
||||
top: '10vh',
|
||||
appendToBody: true,
|
||||
bodyStyle: `min-height: 100px; max-height: 650px;overflow-y: auto;padding: 10px;border: 1px solid #e0e0e0;`,
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
curKeys: [
|
||||
'UserName',
|
||||
'FirstName',
|
||||
'LastName',
|
||||
'EMail',
|
||||
'Phone',
|
||||
'OrganizationName',
|
||||
'PositionName',
|
||||
'DepartmentName',
|
||||
'UserRoleList',
|
||||
],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
curDataArr() {
|
||||
if (!this.curData) return []
|
||||
return Object.keys(this.curData)
|
||||
},
|
||||
curData() {
|
||||
if (!this.JsonObj) return []
|
||||
let obj = JSON.parse(this.JsonObj)
|
||||
let curData = []
|
||||
Object.keys(obj).forEach((key) => {
|
||||
if (this.curKeys.includes(key)) {
|
||||
let o = {
|
||||
key: this.$t(`system:loginLog:form:${key}`),
|
||||
value: obj[key],
|
||||
prop: key,
|
||||
}
|
||||
curData.push(o)
|
||||
}
|
||||
})
|
||||
return curData
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .el-form-item__label {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
@@ -50,7 +50,7 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label=" $t('system:loginLog:table:LoginUserType')"
|
||||
:label="$t('system:loginLog:table:LoginUserType')"
|
||||
prop="LoginUserTypeEnum"
|
||||
>
|
||||
<el-select
|
||||
@@ -77,19 +77,15 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
@click="getList"
|
||||
>
|
||||
{{ $t("common:button:search") }}
|
||||
<el-button type="primary" icon="el-icon-search" @click="getList">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t("common:button:reset") }}
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -101,7 +97,32 @@
|
||||
class="table"
|
||||
@sort-change="handleSortByColumn"
|
||||
>
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column type="index" width="50">
|
||||
<template slot-scope="scope">
|
||||
<span
|
||||
style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
"
|
||||
>
|
||||
<el-tooltip
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="$t('system:loginLog:label:IsLoginUncommonly')"
|
||||
placement="top"
|
||||
style="margin-right: 3px"
|
||||
v-if="scope.row.IsLoginUncommonly"
|
||||
>
|
||||
<i
|
||||
v-if="scope.row.IsLoginUncommonly"
|
||||
class="el-icon-warning icon-i"
|
||||
></i>
|
||||
</el-tooltip>
|
||||
<span>{{ scope.$index + 1 }}</span>
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('system:loginLog:table:OptType')"
|
||||
prop="OptType"
|
||||
@@ -110,7 +131,7 @@
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ $fd("UserOptType", scope.row.OptType) }}
|
||||
{{ $fd('UserOptType', scope.row.OptType) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -127,21 +148,28 @@
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column
|
||||
<!-- <el-table-column
|
||||
:label="$t('system:loginLog:table:LoginFaildName')"
|
||||
prop="LoginFaildName"
|
||||
min-width="180"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
/> -->
|
||||
<el-table-column
|
||||
:label="$t('system:loginLog:table:LoginUserName')"
|
||||
prop="LoginUserName"
|
||||
prop="ActionUserName"
|
||||
min-width="140"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<el-table-column
|
||||
:label="$t('system:loginLog:table:Aetionlserlype')"
|
||||
prop="ActionUserType"
|
||||
min-width="100"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
<!-- <el-table-column
|
||||
:label="$t('system:loginLog:table:LoginUserType')"
|
||||
prop="LoginUserTypeEnum"
|
||||
min-width="120"
|
||||
@@ -151,15 +179,15 @@
|
||||
<template slot-scope="scope">
|
||||
{{ $fd("UserType", scope.row.LoginUserTypeEnum) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column> -->
|
||||
<el-table-column
|
||||
:label="$t('system:loginLog:table:OptUserName')"
|
||||
prop="OptUserName"
|
||||
prop="TargetIdentityUserName"
|
||||
min-width="200"
|
||||
sortable="custom"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column
|
||||
<!-- <el-table-column
|
||||
:label="$t('system:loginLog:table:OptUserType')"
|
||||
prop="OptUserTypeEnum"
|
||||
min-width="200"
|
||||
@@ -169,6 +197,21 @@
|
||||
<template slot-scope="scope">
|
||||
{{ $fd("UserType", scope.row.OptUserTypeEnum) }}
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column
|
||||
:label="$t('system:loginLog:table:detail')"
|
||||
min-width="120"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
v-if="scope.row.JsonObj"
|
||||
type="text"
|
||||
@click="handleOpenDialog(scope.row)"
|
||||
>
|
||||
<span>{{ $t('system:loginLog:message:detail') }}</span>
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('system:loginLog:table:CreateTime')"
|
||||
@@ -187,29 +230,31 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<detail :config="config" :JsonObj="JsonObj" />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getUserLogList } from "@/api/user";
|
||||
import Pagination from "@/components/Pagination";
|
||||
import moment from "moment";
|
||||
import { getUserLogList } from '@/api/user'
|
||||
import Pagination from '@/components/Pagination'
|
||||
import detail from './detail.vue'
|
||||
import moment from 'moment'
|
||||
const searchDataDefault = () => {
|
||||
return {
|
||||
OptType: null,
|
||||
Ip: "",
|
||||
LoginFaildName: "",
|
||||
Ip: '',
|
||||
LoginFaildName: '',
|
||||
LoginUserName: '',
|
||||
LoginUserTypeEnum: null,
|
||||
BeginDate: "",
|
||||
EndDate: "",
|
||||
BeginDate: '',
|
||||
EndDate: '',
|
||||
Asc: false,
|
||||
SortField: "CreateTime",
|
||||
SortField: 'CreateTime',
|
||||
PageIndex: 1,
|
||||
PageSize: 20,
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
export default {
|
||||
components: { Pagination },
|
||||
components: { Pagination, detail },
|
||||
data() {
|
||||
return {
|
||||
moment,
|
||||
@@ -218,52 +263,69 @@ export default {
|
||||
total: 0,
|
||||
loading: false,
|
||||
datetimerange: [],
|
||||
};
|
||||
config: {
|
||||
visible: false,
|
||||
title: this.$t('system:loginLog:dialog:title'),
|
||||
width: '500px',
|
||||
top: '10vh',
|
||||
},
|
||||
JsonObj: null,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getList();
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
handleOpenDialog(row) {
|
||||
if (!row.JsonObj)
|
||||
return this.$message.warning(this.$t('system:loginLog:message:noJSON'))
|
||||
this.config.title = this.$t('system:loginLog:dialog:title').replace(
|
||||
'xxx',
|
||||
this.$fd('UserOptType', row.OptType)
|
||||
)
|
||||
this.JsonObj = row.JsonObj
|
||||
this.config.visible = true
|
||||
},
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
getUserLogList(this.searchData)
|
||||
.then((res) => {
|
||||
this.loading = false;
|
||||
this.list = res.Result.CurrentPageData;
|
||||
this.total = res.Result.TotalCount;
|
||||
this.loading = false
|
||||
this.list = res.Result.CurrentPageData
|
||||
this.total = res.Result.TotalCount
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
handleDatetimeChange(val) {
|
||||
if (val) {
|
||||
this.searchData.BeginDate = val[0];
|
||||
this.searchData.EndDate = val[1];
|
||||
this.searchData.BeginDate = val[0]
|
||||
this.searchData.EndDate = val[1]
|
||||
} else {
|
||||
this.searchData.BeginDate = "";
|
||||
this.searchData.EndDate = "";
|
||||
this.searchData.BeginDate = ''
|
||||
this.searchData.EndDate = ''
|
||||
}
|
||||
},
|
||||
// 重置列表查询
|
||||
handleReset() {
|
||||
this.datetimerange = []
|
||||
this.searchData = searchDataDefault();
|
||||
this.getList();
|
||||
this.searchData = searchDataDefault()
|
||||
this.getList()
|
||||
},
|
||||
// 排序
|
||||
handleSortByColumn(column) {
|
||||
if (column.order === "ascending") {
|
||||
this.searchData.Asc = true;
|
||||
if (column.order === 'ascending') {
|
||||
this.searchData.Asc = true
|
||||
} else {
|
||||
this.searchData.Asc = false;
|
||||
this.searchData.Asc = false
|
||||
}
|
||||
this.searchData.SortField = column.prop;
|
||||
this.searchData.PageIndex = 1;
|
||||
this.getList();
|
||||
this.searchData.SortField = column.prop
|
||||
this.searchData.PageIndex = 1
|
||||
this.getList()
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.log {
|
||||
@@ -291,5 +353,9 @@ export default {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
.icon-i {
|
||||
color: #f56c6c;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
</el-radio-group>
|
||||
</el-form-item> -->
|
||||
<el-form-item :label="$t('system:userlist:table:Email')" prop="EMail">
|
||||
<el-input v-model="user.EMail" />
|
||||
<el-input v-model="user.EMail" :disabled="!!user.UserCode" />
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('system:userlist:table:Phone')" prop="Phone">
|
||||
<el-input v-model="user.Phone" />
|
||||
@@ -73,7 +73,8 @@
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('system:userlist:table:UserType')"
|
||||
prop="UserTypeId"
|
||||
prop="Roles"
|
||||
v-if="type === 0"
|
||||
>
|
||||
<div style="display: flex; align-items: center">
|
||||
<el-select
|
||||
@@ -85,17 +86,24 @@
|
||||
style="width: 100%"
|
||||
:disabled="user.CanEditUserType === false || type === 1"
|
||||
@change="handleChange"
|
||||
v-if="type === 0"
|
||||
>
|
||||
<template v-for="userType of userTypeOptions">
|
||||
<el-option
|
||||
v-if="userType.UserTypeEnum !== 20"
|
||||
v-if="![4, 6, 20].includes(userType.UserTypeEnum)"
|
||||
:key="userType.Id"
|
||||
:label="userType.UserType"
|
||||
:value="userType.Id"
|
||||
/>
|
||||
</template>
|
||||
</el-select>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:label="$t('system:userlist:table:UserType')"
|
||||
prop="userTypeId"
|
||||
v-else
|
||||
>
|
||||
<div style="display: flex; align-items: center">
|
||||
<el-select
|
||||
ref="userType"
|
||||
v-model="Roles"
|
||||
@@ -105,11 +113,10 @@
|
||||
style="width: 100%"
|
||||
:disabled="user.CanEditUserType === false || type === 1"
|
||||
@change="handleChange"
|
||||
v-else
|
||||
>
|
||||
<template v-for="userType of userTypeOptions">
|
||||
<el-option
|
||||
v-if="userType.UserTypeEnum !== 20"
|
||||
v-if="![4, 6, 20].includes(userType.UserTypeEnum)"
|
||||
:key="userType.Id"
|
||||
:label="userType.UserType"
|
||||
:value="userType.Id"
|
||||
@@ -291,7 +298,12 @@ export default {
|
||||
getUserTypeList() {
|
||||
getUserTypeListByUserType(0).then((res) => {
|
||||
if (res.IsSuccess) {
|
||||
this.userTypeOptions = res.Result
|
||||
this.userTypeOptions = []
|
||||
res.Result.forEach((item) => {
|
||||
if (item.UserTypeEnum !== 21) {
|
||||
this.userTypeOptions.push(item)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<span> {{ $fd('IsEnable', !scope.row.IsUserRoleDisabled) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('common:action:action')" width="120px">
|
||||
<el-table-column :label="$t('common:action:action')" min-width="120px">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
@@ -155,7 +155,8 @@ export default {
|
||||
roleList() {
|
||||
let arr = this.list.map((item) => item.UserTypeId)
|
||||
return this.userTypeOptions.filter(
|
||||
(item) => !arr.includes(item.Id) && item.UserTypeEnum !== 20
|
||||
(item) =>
|
||||
!arr.includes(item.Id) && ![4, 6, 20].includes(item.UserTypeEnum)
|
||||
)
|
||||
},
|
||||
},
|
||||
@@ -164,6 +165,7 @@ export default {
|
||||
this.$emit('update:visible', false)
|
||||
},
|
||||
openAdd() {
|
||||
this.form.roles = []
|
||||
this.addVisible = true
|
||||
},
|
||||
async save() {
|
||||
|
||||
@@ -20,17 +20,33 @@
|
||||
:total="total"
|
||||
@getList="getList"
|
||||
@editCb="handleEditUser"
|
||||
@sendCb="addNewUserSendEmail"
|
||||
@deleteCb="handleDeleteUser"
|
||||
@sortByColumn="sortByColumn"
|
||||
>
|
||||
<!-- 选择自定义slot -->
|
||||
<template slot="tip-slot" slot-scope="{ scope }">
|
||||
<i
|
||||
v-if="diffTime(scope.row.LastLoginTime) >= 90"
|
||||
v-if="
|
||||
diffTime(scope.row.LastLoginTime) >= 90 &&
|
||||
diffTime(scope.row.LastChangePassWordTime) >= 90
|
||||
"
|
||||
class="el-icon-warning"
|
||||
style="color: #f56c6c"
|
||||
:title="$t('system:userlist:tip:overTimeAndoverTimePassWord')"
|
||||
/>
|
||||
<i
|
||||
v-else-if="diffTime(scope.row.LastLoginTime) >= 90"
|
||||
class="el-icon-warning"
|
||||
style="color: #f56c6c"
|
||||
:title="$t('system:userlist:tip:overTime')"
|
||||
/>
|
||||
<i
|
||||
v-else-if="diffTime(scope.row.LastChangePassWordTime) >= 90"
|
||||
class="el-icon-warning"
|
||||
style="color: #f56c6c"
|
||||
:title="$t('system:userlist:tip:overTimePassWord')"
|
||||
/>
|
||||
</template>
|
||||
<template slot="genderSlot" slot-scope="{ scope }">
|
||||
{{ scope.row.Sex ? 'Male' : 'Female' }}
|
||||
@@ -40,13 +56,13 @@
|
||||
Array.isArray(scope.row.UserRoleList) &&
|
||||
scope.row.UserRoleList.length > 0
|
||||
? scope.row.UserRoleList.map((item) => item.UserTypeShortName).join(
|
||||
','
|
||||
', '
|
||||
)
|
||||
: ''
|
||||
}}
|
||||
</template>
|
||||
<template slot="roleSlot" slot-scope="{ scope }">
|
||||
{{ scope.row.RoleNameList.map((role) => role.RoleName).join(',') }}
|
||||
{{ scope.row.RoleNameList.map((role) => role.RoleName).join(', ') }}
|
||||
</template>
|
||||
<template slot="isZhiZhunSlot" slot-scope="{ scope }">
|
||||
{{
|
||||
@@ -73,7 +89,12 @@
|
||||
</box-content>
|
||||
</template>
|
||||
<script>
|
||||
import { getUserList, getUserTypeList, deleteSysUser } from '@/api/admin'
|
||||
import {
|
||||
getUserList,
|
||||
getUserTypeList,
|
||||
deleteSysUser,
|
||||
addNewUserSendEmail,
|
||||
} from '@/api/admin'
|
||||
// import { searchForm, searchHandle, columns } from './list'
|
||||
import BoxContent from '@/components/BoxContent'
|
||||
import SearchForm from '@/components/BaseForm/search-form'
|
||||
@@ -95,8 +116,12 @@ const searchDataDefault = () => {
|
||||
RealName: '',
|
||||
BeginCreateTime: '',
|
||||
EndCreateTime: '',
|
||||
EndLastLoginTime: null,
|
||||
EndLastChangePassWordTime: null,
|
||||
BeginLastChangePassWordTime: null,
|
||||
CreateTimeArr: [],
|
||||
LastLoginTimeArr: [],
|
||||
LastChangePassWordTimeArr: [],
|
||||
SortField: 'CreateTime',
|
||||
}
|
||||
}
|
||||
@@ -202,6 +227,13 @@ export default {
|
||||
sortable: 'custom',
|
||||
showOverflowTooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'LastChangePassWordTime',
|
||||
label: this.$t('system:userlist:table:LastChangePassWordTime'),
|
||||
minWidth: 250,
|
||||
sortable: 'custom',
|
||||
showOverflowTooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'CreateTime',
|
||||
label: this.$t('system:userlist:table:createTime'),
|
||||
@@ -213,12 +245,19 @@ export default {
|
||||
type: 'operate',
|
||||
label: this.$t('common:action:action'),
|
||||
minWidth: 200,
|
||||
fixed: 'right',
|
||||
operates: [
|
||||
{
|
||||
name: this.$t('common:button:edit'),
|
||||
type: 'primary',
|
||||
emitKey: 'editCb',
|
||||
},
|
||||
{
|
||||
name: this.$t('common:button:email'),
|
||||
type: 'primary',
|
||||
emitKey: 'sendCb',
|
||||
show: 'IsFirstAdd',
|
||||
},
|
||||
// {
|
||||
// name: this.$t('common:button:delete'),
|
||||
// type: 'danger',
|
||||
@@ -337,6 +376,13 @@ export default {
|
||||
width: '400px',
|
||||
placeholder: '',
|
||||
},
|
||||
{
|
||||
type: 'Daterange',
|
||||
label: this.$t('system:userlist:label:LastChangePassWordTime'),
|
||||
prop: 'LastChangePassWordTimeArr',
|
||||
width: '400px',
|
||||
placeholder: '',
|
||||
},
|
||||
{
|
||||
type: 'Daterange',
|
||||
label: this.$t('system:userlist:label:CreateTime'),
|
||||
@@ -346,15 +392,17 @@ export default {
|
||||
},
|
||||
],
|
||||
searchHandle: [
|
||||
{
|
||||
label: this.$t('common:button:reset'),
|
||||
type: 'primary',
|
||||
emitKey: 'reset',
|
||||
},
|
||||
{
|
||||
label: this.$t('common:button:search'),
|
||||
type: 'primary',
|
||||
emitKey: 'search',
|
||||
icon: 'el-icon-search'
|
||||
},
|
||||
{
|
||||
label: this.$t('common:button:reset'),
|
||||
type: 'primary',
|
||||
emitKey: 'reset',
|
||||
icon: 'el-icon-refresh-left'
|
||||
},
|
||||
{
|
||||
label: this.$t('common:button:new'),
|
||||
@@ -376,6 +424,31 @@ export default {
|
||||
diffTime(time) {
|
||||
return moment(new Date()).diff(time, 'days')
|
||||
},
|
||||
async addNewUserSendEmail(row) {
|
||||
try {
|
||||
let confirm = await this.$confirm(
|
||||
this.$t('system:userlist:confirm:sendEmail')
|
||||
)
|
||||
if (!confirm) return false
|
||||
let data = {
|
||||
IdentityUserId: row.Id,
|
||||
BaseUrl: `${location.protocol}//${location.host}/login`,
|
||||
RouteUrl: `${location.protocol}//${location.host}/email-recompose`,
|
||||
}
|
||||
this.loading = true
|
||||
let res = await addNewUserSendEmail(data)
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
this.$message.success(
|
||||
this.$t('system:userlist:message:sendEmailSuccess')
|
||||
)
|
||||
this.getList()
|
||||
}
|
||||
} catch (err) {
|
||||
this.loading = false
|
||||
console.log(err)
|
||||
}
|
||||
},
|
||||
// 获取用户信息
|
||||
getList() {
|
||||
this.loading = true
|
||||
@@ -441,6 +514,12 @@ export default {
|
||||
this.searchData.BeginLastLoginTime = this.searchData.LastLoginTimeArr[0]
|
||||
this.searchData.EndLastLoginTime = this.searchData.LastLoginTimeArr[1]
|
||||
}
|
||||
if (this.searchData.LastChangePassWordTimeArr.length > 0) {
|
||||
this.searchData.BeginLastChangePassWordTime =
|
||||
this.searchData.LastChangePassWordTimeArr[0]
|
||||
this.searchData.EndLastChangePassWordTime =
|
||||
this.searchData.LastChangePassWordTimeArr[1]
|
||||
}
|
||||
this.getList()
|
||||
},
|
||||
},
|
||||
|
||||
@@ -71,6 +71,8 @@ export default {
|
||||
<style lang="scss" scoped>
|
||||
.notice-marquee_wrapper{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
/deep/ .el-dialog__header{
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
@@ -146,7 +146,11 @@ export default {
|
||||
return this.$store.state.user.roles
|
||||
},
|
||||
hasRole() {
|
||||
return this.roles && this.roles.length > 1
|
||||
return (
|
||||
this.roles &&
|
||||
this.roles.length > 1 &&
|
||||
this.roles.filter((item) => !item.IsUserRoleDisabled).length > 1
|
||||
)
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
@@ -221,8 +225,8 @@ export default {
|
||||
async logout() {
|
||||
await this.$store.dispatch('user/logout')
|
||||
this.$router.push(`/login`)
|
||||
this.$i18n.locale = 'zh'
|
||||
this.setLanguage('zh')
|
||||
//this.$i18n.locale = 'zh'
|
||||
//this.setLanguage('zh')
|
||||
this.$updateDictionary()
|
||||
},
|
||||
go(value) {
|
||||
@@ -270,15 +274,16 @@ export default {
|
||||
history.go(0)
|
||||
// this.$router.replace({ path: '/trials/trials-list' })
|
||||
} else {
|
||||
history.replaceState(null, null, '/trials')
|
||||
history.replaceState(null, null, '/trials/trials-workbench')
|
||||
history.go(0)
|
||||
// this.$router.replace({ path: '/trials/trials-workbench' })
|
||||
}
|
||||
this.toggleRoleVisible = false
|
||||
this.toggleRoleLoading = false
|
||||
this.$nextTick(() => {
|
||||
window.location.reload()
|
||||
})
|
||||
this.$EventBus.$emit('reload')
|
||||
// this.$nextTick(() => {
|
||||
// window.location.reload()
|
||||
// })
|
||||
} else {
|
||||
// 此账户暂未配置菜单权限,请联系管理员处理后再登录。
|
||||
this.toggleRoleLoading = false
|
||||
@@ -378,6 +383,11 @@ export default {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.right-menu {
|
||||
.el-menu-item.is-active {
|
||||
font-weight: bolder;
|
||||
}
|
||||
}
|
||||
.center-menu {
|
||||
width: calc(100% - 1200px);
|
||||
}
|
||||
|
||||
@@ -788,6 +788,11 @@ export default {
|
||||
created() {
|
||||
this.initPage()
|
||||
},
|
||||
mounted(){
|
||||
this.$EventBus.$on("reload", (data) => {
|
||||
window.location.reload()
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
initPage() {
|
||||
this.getList()
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
v-for="item in roles"
|
||||
:key="item.Id"
|
||||
:label="item.Id"
|
||||
:disabled="item.isUserRoleDisabled"
|
||||
:disabled="item.IsUserRoleDisabled"
|
||||
style="margin-bottom: 10px"
|
||||
>
|
||||
{{ item.UserTypeShortName }}
|
||||
@@ -127,7 +127,7 @@
|
||||
</el-radio-group>
|
||||
<!-- 修改 -->
|
||||
<el-button
|
||||
:disabled="!userRoleId"
|
||||
:disabled="!userRoleId || saveDisabled"
|
||||
class="saveBtn"
|
||||
:loading="toggleRoleLoading"
|
||||
type="primary"
|
||||
@@ -215,6 +215,9 @@ export default {
|
||||
hasRole() {
|
||||
return this.roles && this.roles.length > 1
|
||||
},
|
||||
saveDisabled() {
|
||||
return this.userRoleId === zzSessionStorage.getItem('userId')
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// 切换角色
|
||||
@@ -330,10 +333,18 @@ export default {
|
||||
} else {
|
||||
this.$router.push(`/login`)
|
||||
}
|
||||
this.$i18n.locale = 'zh'
|
||||
this.setLanguage('zh')
|
||||
//this.$i18n.locale = 'zh'
|
||||
//this.setLanguage('zh')
|
||||
this.$updateDictionary()
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.el-radio-group {
|
||||
margin-top: 12px;
|
||||
}
|
||||
.el-radio {
|
||||
width: 60px;
|
||||
}
|
||||
</style>
|
||||
@@ -37,7 +37,7 @@
|
||||
:IsCanConnectInternet="IsCanConnectInternet"
|
||||
v-if="activeIndex === '2'"
|
||||
/>
|
||||
<login-log v-if="activeIndex === '3'" :id="userId" :isMine="true" />
|
||||
<login-log v-if="activeIndex === '3'" :id="identityUserId" :isMine="true" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -64,7 +64,7 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['userId', 'userName']),
|
||||
...mapGetters(['identityUserId', 'userName']),
|
||||
},
|
||||
mounted() {
|
||||
this.getUserInfo()
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
<!-- 新密码 -->
|
||||
<el-form-item
|
||||
:label="$t('recompose:form:newPassword')"
|
||||
class="my_new_pwd"
|
||||
prop="NewPassWord"
|
||||
>
|
||||
<el-input
|
||||
@@ -151,15 +152,15 @@ export default {
|
||||
} else {
|
||||
this.$router.push(`/login`)
|
||||
}
|
||||
this.$i18n.locale = 'zh'
|
||||
this.setLanguage('zh')
|
||||
//this.$i18n.locale = 'zh'
|
||||
//this.setLanguage('zh')
|
||||
this.$updateDictionary()
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.el-form-item {
|
||||
margin-bottom: 30px;
|
||||
::v-deep .is-error.my_new_pwd {
|
||||
margin-bottom: 45px;
|
||||
}
|
||||
</style>
|
||||
@@ -17,7 +17,7 @@
|
||||
<el-form-item :label="$t('trials:notice:table:notificationContent')">
|
||||
<el-input
|
||||
v-model="searchData.NoticeContent"
|
||||
style="width:100px;"
|
||||
style="width: 100px"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
@@ -36,7 +36,11 @@
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<el-button type="primary" icon="el-icon-refresh-left" @click="handleReset">
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
@@ -44,7 +48,7 @@
|
||||
</template>
|
||||
<template slot="main-container">
|
||||
<el-table
|
||||
v-adaptive="{bottomOffset:60}"
|
||||
v-adaptive="{ bottomOffset: 60 }"
|
||||
v-loading="loading"
|
||||
:data="list"
|
||||
stripe
|
||||
@@ -79,7 +83,15 @@
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag :type="scope.row.ActualNoticeStateEnum === 0 ? 'info' : scope.row.ActualNoticeStateEnum === 1 ? 'success' : 'error'">
|
||||
<el-tag
|
||||
:type="
|
||||
scope.row.ActualNoticeStateEnum === 0
|
||||
? 'info'
|
||||
: scope.row.ActualNoticeStateEnum === 1
|
||||
? 'success'
|
||||
: 'error'
|
||||
"
|
||||
>
|
||||
{{ $fd('NoticeState', scope.row.ActualNoticeStateEnum) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
@@ -113,7 +125,12 @@
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a :href="OSSclientConfig.basePath + scope.row.Path" target="_blank" style="color:#428bca">{{ scope.row.FileName }}</a>
|
||||
<a
|
||||
:href="OSSclientConfig.basePath + scope.row.Path"
|
||||
target="_blank"
|
||||
style="color: #428bca"
|
||||
>{{ scope.row.FileName }}</a
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -124,11 +141,19 @@
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.IsRead">{{ $fd('YesOrNo', scope.row.IsRead) }}</el-tag>
|
||||
<el-tag v-else type="danger">{{ $fd('YesOrNo', scope.row.IsRead) }}</el-tag>
|
||||
<el-tag v-if="scope.row.IsRead">{{
|
||||
$fd('YesOrNo', scope.row.IsRead)
|
||||
}}</el-tag>
|
||||
<el-tag v-else type="danger">{{
|
||||
$fd('YesOrNo', scope.row.IsRead)
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('common:action:action')" min-width="100" fixed="right">
|
||||
<el-table-column
|
||||
:label="$t('common:action:action')"
|
||||
min-width="100"
|
||||
fixed="right"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
circle
|
||||
@@ -136,12 +161,17 @@
|
||||
icon="el-icon-info"
|
||||
@click="showDetail(scope.row)"
|
||||
/>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!-- 分页组件 -->
|
||||
<pagination class="page" :total="total" :page.sync="searchData.PageIndex" :limit.sync="searchData.PageSize" @pagination="getList" />
|
||||
<pagination
|
||||
class="page"
|
||||
:total="total"
|
||||
:page.sync="searchData.PageIndex"
|
||||
:limit.sync="searchData.PageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</template>
|
||||
</BaseContainer>
|
||||
</template>
|
||||
@@ -157,9 +187,10 @@ const searchDataDefault = () => {
|
||||
ApplicableProjectEnum: null,
|
||||
NoticeModeEnum: null,
|
||||
NoticeStateEnum: null,
|
||||
Asc: true,
|
||||
Asc: false,
|
||||
SortField: 'PublishedTime',
|
||||
PageIndex: 1,
|
||||
PageSize: 20
|
||||
PageSize: 20,
|
||||
}
|
||||
}
|
||||
export default {
|
||||
@@ -171,7 +202,7 @@ export default {
|
||||
searchData: searchDataDefault(),
|
||||
list: [],
|
||||
total: 0,
|
||||
loading: false
|
||||
loading: false,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -180,17 +211,21 @@ export default {
|
||||
methods: {
|
||||
getList() {
|
||||
this.loading = true
|
||||
getUserSystemNoticeList(this.searchData).then(res => {
|
||||
this.loading = false
|
||||
this.list = res.Result.CurrentPageData
|
||||
this.total = res.Result.TotalCount
|
||||
}).catch(() => { this.loading = false })
|
||||
getUserSystemNoticeList(this.searchData)
|
||||
.then((res) => {
|
||||
this.loading = false
|
||||
this.list = res.Result.CurrentPageData
|
||||
this.total = res.Result.TotalCount
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
showDetail(row) {
|
||||
var currentNoticeType = this.$fd('NoteType', row.NoticeTypeEnum)
|
||||
if (row.IsRead || row.ActualNoticeStateEnum !== 1) {
|
||||
this.$alert(row.NoticeContent, currentNoticeType, {
|
||||
showConfirmButton: false
|
||||
showConfirmButton: false,
|
||||
})
|
||||
} else {
|
||||
const h = this.$createElement
|
||||
@@ -200,18 +235,22 @@ export default {
|
||||
beforeClose: (action, instance, done) => {
|
||||
if (action === 'confirm') {
|
||||
instance.confirmButtonLoading = true
|
||||
setSystemNoticeHaveRead(row.Id).then(async res => {
|
||||
if (res.IsSuccess) {
|
||||
await this.$store.dispatch('global/getNoticeList')
|
||||
this.getList()
|
||||
}
|
||||
instance.confirmButtonLoading = false
|
||||
done()
|
||||
}).catch(() => { instance.confirmButtonLoading = false })
|
||||
setSystemNoticeHaveRead(row.Id)
|
||||
.then(async (res) => {
|
||||
if (res.IsSuccess) {
|
||||
await this.$store.dispatch('global/getNoticeList')
|
||||
this.getList()
|
||||
}
|
||||
instance.confirmButtonLoading = false
|
||||
done()
|
||||
})
|
||||
.catch(() => {
|
||||
instance.confirmButtonLoading = false
|
||||
})
|
||||
} else {
|
||||
done()
|
||||
}
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
},
|
||||
@@ -237,10 +276,9 @@ export default {
|
||||
this.searchData.SortField = column.prop
|
||||
this.searchData.PageIndex = 1
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
|
||||
@@ -5,7 +5,11 @@
|
||||
<el-form :inline="true">
|
||||
<!-- 文件类型 -->
|
||||
<el-form-item :label="$t('trials:signRecords:table:fileType')">
|
||||
<el-select v-model="searchData.FileTypeId" clearable style="width: 150px">
|
||||
<el-select
|
||||
v-model="searchData.FileTypeId"
|
||||
clearable
|
||||
style="width: 150px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item of typeOptions"
|
||||
:key="item.FileTypeId"
|
||||
@@ -72,7 +76,7 @@
|
||||
style="width: 120px"
|
||||
>
|
||||
<el-option
|
||||
v-for="i of $d.YesOrNo"
|
||||
v-for="i of $d.TrainingStatusEnum"
|
||||
:key="'IsConfirmed' + i.label"
|
||||
:value="i.value"
|
||||
:label="i.label"
|
||||
@@ -86,7 +90,7 @@
|
||||
style="width: 120px"
|
||||
>
|
||||
<el-option
|
||||
v-for="i of $d.YesOrNo"
|
||||
v-for="i of $d.TrainingStatus"
|
||||
:key="'IsDeleted' + i.label"
|
||||
:value="i.value"
|
||||
:label="i.label"
|
||||
@@ -96,7 +100,7 @@
|
||||
<el-form-item>
|
||||
<!-- 查询 -->
|
||||
<el-button icon="el-icon-search" type="primary" @click="handleSearch">
|
||||
{{ $t("common:button:search") }}
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<!-- 重置 -->
|
||||
<el-button
|
||||
@@ -104,7 +108,7 @@
|
||||
type="primary"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t("common:button:reset") }}
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
<!-- 导出 -->
|
||||
<el-button
|
||||
@@ -113,7 +117,7 @@
|
||||
:loading="exportLoading"
|
||||
@click="handleExport"
|
||||
>
|
||||
{{ $t("common:button:export") }}
|
||||
{{ $t('common:button:export') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -156,10 +160,10 @@
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.IsSystemDoc" type="primary">{{
|
||||
$fd("IsSystemDoc", scope.row.IsSystemDoc)
|
||||
$fd('IsSystemDoc', scope.row.IsSystemDoc)
|
||||
}}</el-tag>
|
||||
<el-tag v-else type="warning">{{
|
||||
$fd("IsSystemDoc", scope.row.IsSystemDoc)
|
||||
$fd('IsSystemDoc', scope.row.IsSystemDoc)
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -172,10 +176,10 @@
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.IsDeleted" type="danger">{{
|
||||
$fd("YesOrNo", scope.row.IsDeleted)
|
||||
$fd('TrainingStatus', scope.row.IsDeleted)
|
||||
}}</el-tag>
|
||||
<el-tag v-else type="primary">{{
|
||||
$fd("YesOrNo", scope.row.IsDeleted)
|
||||
$fd('TrainingStatus', scope.row.IsDeleted)
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -195,11 +199,11 @@
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="!scope.row.IsConfirmed" type="primary">{{
|
||||
$fd("YesOrNo", scope.row.IsConfirmed)
|
||||
<el-tag v-if="scope.row.IsConfirmed" type="primary">{{
|
||||
$fd('TrainingStatusEnum', scope.row.IsConfirmed)
|
||||
}}</el-tag>
|
||||
<el-tag v-else type="danger">{{
|
||||
$fd("YesOrNo", scope.row.IsConfirmed)
|
||||
$fd('TrainingStatusEnum', scope.row.IsConfirmed)
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -219,11 +223,19 @@
|
||||
/>
|
||||
<!-- 用户类型 -->
|
||||
<el-table-column
|
||||
prop="UserTypeShortName"
|
||||
prop="UserConfirmedUserTypeList"
|
||||
:label="$t('trials:signRecords:table:userType')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
/>
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{
|
||||
Array.isArray(scope.row.UserConfirmedUserTypeList) &&
|
||||
scope.row.UserConfirmedUserTypeList.length > 0
|
||||
? scope.row.UserConfirmedUserTypeList.join(', ')
|
||||
: ''
|
||||
}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 签署时间 -->
|
||||
<el-table-column
|
||||
prop="ConfirmTime"
|
||||
@@ -283,25 +295,25 @@ import {
|
||||
getTrialUserSelect,
|
||||
getTrialUserTypeList,
|
||||
getTrialDocAndSystemDocType,
|
||||
} from "@/api/trials";
|
||||
import { pMTrainingRecordList_Export } from "@/api/export";
|
||||
import BaseContainer from "@/components/BaseContainer";
|
||||
import Pagination from "@/components/Pagination";
|
||||
import PreviewFile from "@/components/PreviewFile/index";
|
||||
} from '@/api/trials'
|
||||
import { pMTrainingRecordList_Export } from '@/api/export'
|
||||
import BaseContainer from '@/components/BaseContainer'
|
||||
import Pagination from '@/components/Pagination'
|
||||
import PreviewFile from '@/components/PreviewFile/index'
|
||||
const searchDataDefault = () => {
|
||||
return {
|
||||
FileTypeId: "",
|
||||
Name: "",
|
||||
UserId: "",
|
||||
UserTypeId: "",
|
||||
FileTypeId: '',
|
||||
Name: '',
|
||||
UserId: '',
|
||||
UserTypeId: '',
|
||||
PageIndex: 1,
|
||||
PageSize: 20,
|
||||
IsConfirmed: null,
|
||||
IsDeleted: null,
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
export default {
|
||||
name: "AttachmentsManagement",
|
||||
name: 'AttachmentsManagement',
|
||||
components: { BaseContainer, Pagination, PreviewFile },
|
||||
data() {
|
||||
return {
|
||||
@@ -310,99 +322,99 @@ export default {
|
||||
list: [],
|
||||
total: 0,
|
||||
currentRow: {},
|
||||
currentPath: "",
|
||||
currentType: "",
|
||||
currentPath: '',
|
||||
currentType: '',
|
||||
previewVisible: false,
|
||||
userOptions: [],
|
||||
userTypeOptions: [],
|
||||
currentUser: zzSessionStorage.getItem("userName"),
|
||||
currentUser: zzSessionStorage.getItem('userName'),
|
||||
typeOptions: [],
|
||||
trialId: this.$route.query.trialId,
|
||||
exportLoading: false,
|
||||
};
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getTypeOptions();
|
||||
this.getUserSelect();
|
||||
this.getUserType();
|
||||
this.getList();
|
||||
this.getTypeOptions()
|
||||
this.getUserSelect()
|
||||
this.getUserType()
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
handleExport() {
|
||||
this.exportLoading = true;
|
||||
this.exportLoading = true
|
||||
pMTrainingRecordList_Export(this.searchData)
|
||||
.then(() => {
|
||||
this.exportLoading = false;
|
||||
this.exportLoading = false
|
||||
})
|
||||
.catch((err) => {
|
||||
this.exportLoading = false;
|
||||
});
|
||||
this.exportLoading = false
|
||||
})
|
||||
},
|
||||
// 获取系统文件数据
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.searchData.TrialId = this.trialId;
|
||||
this.loading = true
|
||||
this.searchData.TrialId = this.trialId
|
||||
getDocumentConfirmList(this.searchData)
|
||||
.then(async (res) => {
|
||||
this.loading = false;
|
||||
this.list = res.Result.CurrentPageData;
|
||||
this.total = res.Result.TotalCount;
|
||||
console.log(this.total);
|
||||
this.loading = false
|
||||
this.list = res.Result.CurrentPageData
|
||||
this.total = res.Result.TotalCount
|
||||
console.log(this.total)
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 获取文件类型下拉数据
|
||||
getTypeOptions() {
|
||||
getTrialDocAndSystemDocType(this.trialId).then((res) => {
|
||||
this.typeOptions = res.Result;
|
||||
});
|
||||
this.typeOptions = res.Result
|
||||
})
|
||||
},
|
||||
// 获取当前项目下参与者信息
|
||||
getUserSelect() {
|
||||
getTrialUserSelect(this.trialId).then((res) => {
|
||||
this.userOptions = res.Result;
|
||||
});
|
||||
this.userOptions = res.Result
|
||||
})
|
||||
},
|
||||
// 获取用户类型下拉数据
|
||||
getUserType() {
|
||||
getTrialUserTypeList().then((res) => {
|
||||
this.userTypeOptions = res.Result;
|
||||
});
|
||||
this.userTypeOptions = res.Result
|
||||
})
|
||||
},
|
||||
// 预览
|
||||
handlePreview(row) {
|
||||
this.currentRow = { ...row };
|
||||
const { Name, FullFilePath } = row;
|
||||
this.currentPath = FullFilePath;
|
||||
this.currentRow = { ...row }
|
||||
const { Name, FullFilePath } = row
|
||||
this.currentPath = FullFilePath
|
||||
this.currentType = row.Name
|
||||
? Name.substring(Name.lastIndexOf(".") + 1).toLocaleLowerCase()
|
||||
: "";
|
||||
this.previewVisible = true;
|
||||
? Name.substring(Name.lastIndexOf('.') + 1).toLocaleLowerCase()
|
||||
: ''
|
||||
this.previewVisible = true
|
||||
},
|
||||
// 重置
|
||||
handleReset() {
|
||||
this.searchData = searchDataDefault();
|
||||
this.getList();
|
||||
this.searchData = searchDataDefault()
|
||||
this.getList()
|
||||
this.$nextTick(() => {
|
||||
this.$refs.AttachmentsManagement.clearSort();
|
||||
});
|
||||
this.$refs.AttachmentsManagement.clearSort()
|
||||
})
|
||||
},
|
||||
// 查询
|
||||
handleSearch() {
|
||||
this.getList();
|
||||
this.getList()
|
||||
},
|
||||
// 排序
|
||||
handleSortByColumn(column) {
|
||||
if (column.order === "ascending") {
|
||||
this.searchData.Asc = true;
|
||||
if (column.order === 'ascending') {
|
||||
this.searchData.Asc = true
|
||||
} else {
|
||||
this.searchData.Asc = false;
|
||||
this.searchData.Asc = false
|
||||
}
|
||||
this.searchData.SortField = column.prop;
|
||||
this.getList();
|
||||
this.searchData.SortField = column.prop
|
||||
this.getList()
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<BaseContainer>
|
||||
<template slot="search-container">
|
||||
<div style="margin-left:auto;">
|
||||
<div style="margin-left: auto">
|
||||
<!-- Approve -->
|
||||
</div>
|
||||
</template>
|
||||
<template slot="main-container">
|
||||
<el-table
|
||||
v-loading="listLoading"
|
||||
v-adaptive="{bottomOffset:65}"
|
||||
v-adaptive="{ bottomOffset: 65 }"
|
||||
height="100"
|
||||
:data="list"
|
||||
class="table"
|
||||
@@ -27,17 +27,26 @@
|
||||
>
|
||||
<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> -->
|
||||
<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>
|
||||
<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>
|
||||
</el-table-column>
|
||||
<!-- Name CN -->
|
||||
<!-- <el-table-column
|
||||
<el-table-column
|
||||
v-if="!isEN"
|
||||
prop="ChineseName"
|
||||
:label="$t('trials:seletctedReviews:table:nameCN')"
|
||||
show-overflow-tooltip
|
||||
min-width="120"
|
||||
sortable="custom"
|
||||
/> -->
|
||||
/>
|
||||
<!-- ID -->
|
||||
<el-table-column
|
||||
prop="Code"
|
||||
@@ -53,8 +62,12 @@
|
||||
min-width="120"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.DoctorTrialState !== 5" type="primary">{{ $fd('DoctorTrialState', scope.row.DoctorTrialState) }}</el-tag>
|
||||
<el-tag v-else type="danger">{{ $fd('DoctorTrialState', scope.row.DoctorTrialState) }}</el-tag>
|
||||
<el-tag v-if="scope.row.DoctorTrialState !== 5" type="primary">{{
|
||||
$fd('DoctorTrialState', scope.row.DoctorTrialState)
|
||||
}}</el-tag>
|
||||
<el-tag v-else type="danger">{{
|
||||
$fd('DoctorTrialState', scope.row.DoctorTrialState)
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- Approver -->
|
||||
@@ -70,19 +83,34 @@
|
||||
min-width="150"
|
||||
/>
|
||||
</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>
|
||||
</BaseContainer>
|
||||
</template>
|
||||
<script>
|
||||
import BaseContainer from '@/components/BaseContainer'
|
||||
import Pagination from '@/components/Pagination'
|
||||
import { getSubmissionOrApprovalReviewerList, approveReviewer } from '@/api/trials'
|
||||
import {
|
||||
getSubmissionOrApprovalReviewerList,
|
||||
approveReviewer,
|
||||
} from '@/api/trials'
|
||||
import store from '@/store'
|
||||
const enrollState = 4
|
||||
export default {
|
||||
name: 'Approval',
|
||||
components: { BaseContainer, Pagination },
|
||||
props: {
|
||||
isEN: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
@@ -93,15 +121,17 @@ export default {
|
||||
PageIndex: 1,
|
||||
PageSize: 20,
|
||||
Asc: false,
|
||||
SortField: ''
|
||||
SortField: '',
|
||||
},
|
||||
total: 0,
|
||||
listLoading: false,
|
||||
approveIdArr: [],
|
||||
token: store.getters.token
|
||||
token: store.getters.token,
|
||||
}
|
||||
},
|
||||
created() { this.initPage() },
|
||||
created() {
|
||||
this.initPage()
|
||||
},
|
||||
methods: {
|
||||
go(path) {
|
||||
window.open(path)
|
||||
@@ -112,28 +142,36 @@ export default {
|
||||
getList() {
|
||||
this.listLoading = true
|
||||
this.listQuery.TrialId = this.$route.query.trialId
|
||||
getSubmissionOrApprovalReviewerList(this.listQuery).then(res => {
|
||||
this.listLoading = false
|
||||
this.list = res.Result.CurrentPageData
|
||||
this.total = res.Result.TotalCount
|
||||
// eslint-disable-next-line handle-callback-err
|
||||
}).catch(() => { this.listLoading = false })
|
||||
getSubmissionOrApprovalReviewerList(this.listQuery)
|
||||
.then((res) => {
|
||||
this.listLoading = false
|
||||
this.list = res.Result.CurrentPageData
|
||||
this.total = res.Result.TotalCount
|
||||
// eslint-disable-next-line handle-callback-err
|
||||
})
|
||||
.catch(() => {
|
||||
this.listLoading = false
|
||||
})
|
||||
},
|
||||
handleApprove() {
|
||||
// Confirm the approval?
|
||||
this.$confirm(this.$t('trials:seletctedReviews:message:msg2'), {
|
||||
type: 'warning'
|
||||
type: 'warning',
|
||||
}).then(() => {
|
||||
this.loading = true
|
||||
const trialId = this.$route.query.trialId
|
||||
approveReviewer(trialId, this.approveIdArr, 1).then(res => {
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
this.getList()
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
this.$emit('nextStep', 'confirmation')
|
||||
}
|
||||
}).catch(() => {this.loading = false})
|
||||
approveReviewer(trialId, this.approveIdArr, 1)
|
||||
.then((res) => {
|
||||
this.loading = false
|
||||
if (res.IsSuccess) {
|
||||
this.getList()
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
this.$emit('nextStep', 'confirmation')
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false
|
||||
})
|
||||
})
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
@@ -158,12 +196,16 @@ export default {
|
||||
return 'selected'
|
||||
}
|
||||
},
|
||||
handleSelectTable(row) { return row.DoctorTrialState !== 8 },
|
||||
handleSelectTable(row) {
|
||||
return row.DoctorTrialState !== 8
|
||||
},
|
||||
handleDetail(row) {
|
||||
const { href } = this.$router.resolve({ path: `/trialsResume?doctorId=${row.Id}&trialId=${this.$route.query.trialId}` })
|
||||
const { href } = this.$router.resolve({
|
||||
path: `/trialsResume?doctorId=${row.Id}&trialId=${this.$route.query.trialId}`,
|
||||
})
|
||||
window.open(href, '_blank')
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -50,13 +50,14 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- Name CN -->
|
||||
<!-- <el-table-column
|
||||
<el-table-column
|
||||
v-if="!isEN"
|
||||
prop="ChineseName"
|
||||
:label="$t('trials:seletctedReviews:table:nameCN')"
|
||||
show-overflow-tooltip
|
||||
min-width="120"
|
||||
sortable="custom"
|
||||
/> -->
|
||||
/>
|
||||
<!-- ID -->
|
||||
<el-table-column
|
||||
prop="Code"
|
||||
@@ -119,6 +120,12 @@ import store from '@/store'
|
||||
export default {
|
||||
name: 'Confirmation',
|
||||
components: { BaseContainer, Pagination },
|
||||
props: {
|
||||
isEN: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
|
||||
@@ -186,13 +186,14 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- Name CN -->
|
||||
<!-- <el-table-column
|
||||
<el-table-column
|
||||
v-if="!isEN"
|
||||
prop="ChineseName"
|
||||
:label="$t('trials:seletctedReviews:table:nameCN')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
width="120"
|
||||
/> -->
|
||||
/>
|
||||
|
||||
<el-table-column
|
||||
prop="DoctorUserName"
|
||||
@@ -483,6 +484,12 @@ export default {
|
||||
curriculumVitae,
|
||||
},
|
||||
dicts: ['ReadingType', 'Subspeciality', 'Position', 'Rank'],
|
||||
props: {
|
||||
isEN: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
|
||||
@@ -60,13 +60,14 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- Name CN -->
|
||||
<!-- <el-table-column
|
||||
<el-table-column
|
||||
v-if="!isEN"
|
||||
prop="ChineseName"
|
||||
:label="$t('trials:seletctedReviews:table:nameCN')"
|
||||
show-overflow-tooltip
|
||||
sortable="custom"
|
||||
min-width="120"
|
||||
/> -->
|
||||
/>
|
||||
<!-- ID -->
|
||||
<el-table-column
|
||||
prop="Code"
|
||||
@@ -166,6 +167,12 @@ const enrollState = 1
|
||||
export default {
|
||||
name: 'Submission',
|
||||
components: { BaseContainer, Pagination },
|
||||
props: {
|
||||
isEN: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
|
||||
@@ -8,50 +8,83 @@
|
||||
<div v-if="trialInfo" class="trial-wrapper">
|
||||
<div class="div-row">
|
||||
<div class="div-col">
|
||||
<label class="el-label">{{ $t('trials:trials-list:form:indication:') }}</label>
|
||||
<span>{{$fd('Indication', trialInfo.IndicationEnum)}}{{trialInfo.Indication ? '-' + trialInfo.Indication : '' }}</span>
|
||||
</div>
|
||||
|
||||
<div class="div-col">
|
||||
<label class="el-label">{{ $t('trials:trials-list:form:declarationType:') }}</label>
|
||||
<el-tooltip
|
||||
class="item"
|
||||
:content="trialInfo.DeclarationTypeEnumList.map(v => $fd('DeclarationType', v)).join(', ')"
|
||||
placement="top"
|
||||
<label class="el-label">{{
|
||||
$t('trials:trials-list:form:indication:')
|
||||
}}</label>
|
||||
<span
|
||||
>{{ $fd('Indication', trialInfo.IndicationEnum)
|
||||
}}{{
|
||||
trialInfo.Indication ? '-' + trialInfo.Indication : ''
|
||||
}}</span
|
||||
>
|
||||
<span>{{ trialInfo.DeclarationTypeEnumList.map(v => $fd('DeclarationType', v)).join(', ') }}</span>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div class="div-col">
|
||||
<label class="el-label">{{ $t('trials:trials-list:form:criterion:') }}</label>
|
||||
<el-tooltip
|
||||
class="item"
|
||||
:content="(trialInfo.CriterionList && trialInfo.CriterionList.length>0)? trialInfo.CriterionList.join(', '): ''"
|
||||
placement="top"
|
||||
>
|
||||
<span>{{ (trialInfo.CriterionList && trialInfo.CriterionList.length>0)? trialInfo.CriterionList.join(', '): '' }}</span>
|
||||
</el-tooltip>
|
||||
|
||||
</div>
|
||||
<div class="div-col">
|
||||
</div>
|
||||
|
||||
<div class="div-col">
|
||||
<label class="el-label">{{
|
||||
$t('trials:trials-list:form:declarationType:')
|
||||
}}</label>
|
||||
<el-tooltip
|
||||
class="item"
|
||||
:content="
|
||||
trialInfo.DeclarationTypeEnumList.map((v) =>
|
||||
$fd('DeclarationType', v)
|
||||
).join(', ')
|
||||
"
|
||||
placement="top"
|
||||
>
|
||||
<span>{{
|
||||
trialInfo.DeclarationTypeEnumList.map((v) =>
|
||||
$fd('DeclarationType', v)
|
||||
).join(', ')
|
||||
}}</span>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div class="div-col">
|
||||
<label class="el-label">{{
|
||||
$t('trials:trials-list:form:criterion:')
|
||||
}}</label>
|
||||
<el-tooltip
|
||||
class="item"
|
||||
:content="
|
||||
trialInfo.CriterionList && trialInfo.CriterionList.length > 0
|
||||
? trialInfo.CriterionList.join(', ')
|
||||
: ''
|
||||
"
|
||||
placement="top"
|
||||
>
|
||||
<span>{{
|
||||
trialInfo.CriterionList && trialInfo.CriterionList.length > 0
|
||||
? trialInfo.CriterionList.join(', ')
|
||||
: ''
|
||||
}}</span>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
<div class="div-col"></div>
|
||||
</div>
|
||||
<div class="div-row">
|
||||
<div class="div-col">
|
||||
<label class="el-label">{{ $t('trials:trials-list:form:expedited:') }}</label>
|
||||
<span>{{$fd('YesOrNoForInt', trialInfo.Expedited)}}</span>
|
||||
<label class="el-label">{{
|
||||
$t('trials:trials-list:form:expedited:')
|
||||
}}</label>
|
||||
<span>{{ $fd('YesOrNoForInt', trialInfo.Expedited) }}</span>
|
||||
</div>
|
||||
<div class="div-col">
|
||||
<label class="el-label">{{ $t('trials:trials-list:form:totalReviewers:') }}</label>
|
||||
<label class="el-label">{{
|
||||
$t('trials:trials-list:form:totalReviewers:')
|
||||
}}</label>
|
||||
<span>{{ trialInfo.TotalReviewers }}</span>
|
||||
</div>
|
||||
<div class="div-col">
|
||||
<label class="el-label">{{ $t('trials:trials-list:form:typeofReviewers:') }}</label>
|
||||
<span>{{ trialInfo.AttendedReviewerTypeEnumList.map(v => $fd('AttendedReviewerType', v)).join(', ') }}</span>
|
||||
</div>
|
||||
<div class="div-col">
|
||||
<label class="el-label">{{
|
||||
$t('trials:trials-list:form:typeofReviewers:')
|
||||
}}</label>
|
||||
<span>{{
|
||||
trialInfo.AttendedReviewerTypeEnumList.map((v) =>
|
||||
$fd('AttendedReviewerType', v)
|
||||
).join(', ')
|
||||
}}</span>
|
||||
</div>
|
||||
<div class="div-col"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="title">
|
||||
@@ -60,7 +93,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="step-wrapper">
|
||||
<el-steps :active="activeStatus" style="margin-top: 70px" align-center :space="300">
|
||||
<el-steps
|
||||
:active="activeStatus"
|
||||
style="margin-top: 70px"
|
||||
align-center
|
||||
:space="300"
|
||||
>
|
||||
<!-- Selection -->
|
||||
<el-step
|
||||
:title="$t('trials:seletctedReviews:timeline:selection')"
|
||||
@@ -92,22 +130,26 @@
|
||||
</el-steps>
|
||||
<div class="step-content">
|
||||
<Selection
|
||||
v-if="activeStatus===0"
|
||||
v-if="activeStatus === 0"
|
||||
:isEN="isEN"
|
||||
@nextStep="nextStep"
|
||||
/>
|
||||
<Submission
|
||||
v-if="activeStatus===1"
|
||||
v-if="activeStatus === 1"
|
||||
ref="submission"
|
||||
:isEN="isEN"
|
||||
@nextStep="nextStep"
|
||||
/>
|
||||
<Approval
|
||||
v-if="activeStatus===2"
|
||||
v-if="activeStatus === 2"
|
||||
ref="approval"
|
||||
:isEN="isEN"
|
||||
@nextStep="nextStep"
|
||||
/>
|
||||
<Confirmation
|
||||
v-if="activeStatus===3"
|
||||
v-if="activeStatus === 3"
|
||||
ref="confirmation"
|
||||
:isEN="isEN"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -127,18 +169,30 @@ export default {
|
||||
trialInfo: null,
|
||||
TrialId: '',
|
||||
activeStatus: null,
|
||||
TrialMaxState: 0
|
||||
TrialMaxState: 0,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.TrialId = this.$route.query.trialId
|
||||
this.initPage()
|
||||
},
|
||||
computed: {
|
||||
isEN() {
|
||||
return this.$i18n.locale !== 'zh'
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
initPage() {
|
||||
getTrialInfoAndMaxTrialState(this.TrialId).then(res => {
|
||||
getTrialInfoAndMaxTrialState(this.TrialId).then((res) => {
|
||||
this.trialInfo = res.Result.TrialView
|
||||
var activeStatus = res.Result.TrialMaxState < 1 ? 0 : res.Result.TrialMaxState < 5 ? 1 : res.Result.TrialMaxState < 8 ? 2 : 3
|
||||
var activeStatus =
|
||||
res.Result.TrialMaxState < 1
|
||||
? 0
|
||||
: res.Result.TrialMaxState < 5
|
||||
? 1
|
||||
: res.Result.TrialMaxState < 8
|
||||
? 2
|
||||
: 3
|
||||
this.activeStatus = activeStatus
|
||||
this.TrialMaxState = activeStatus
|
||||
})
|
||||
@@ -147,95 +201,93 @@ export default {
|
||||
this.activeStatus = step
|
||||
},
|
||||
nextStep(stepName) {
|
||||
this.activeStatus = this.activeStatus === 3 ? 3 : this.activeStatus + 1;
|
||||
if(stepName==='confirmation'){
|
||||
this.activeStatus = 3;
|
||||
this.activeStatus = this.activeStatus === 3 ? 3 : this.activeStatus + 1
|
||||
if (stepName === 'confirmation') {
|
||||
this.activeStatus = 3
|
||||
}
|
||||
this.TrialMaxState = this.activeStatus
|
||||
this.$nextTick(
|
||||
function() {
|
||||
function () {
|
||||
this.$refs[stepName].getList()
|
||||
}.bind(this)
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.enroll-container {
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
.enroll-container {
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: #fff;
|
||||
.content-wrapper {
|
||||
height: 100px;
|
||||
}
|
||||
.step-wrapper {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: #fff;
|
||||
.content-wrapper{
|
||||
height: 100px;
|
||||
}
|
||||
.el-steps {
|
||||
height: 80px;
|
||||
}
|
||||
.step-content {
|
||||
flex: 1;
|
||||
}
|
||||
.title {
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
padding-left: 5px;
|
||||
background: #e4ebf1;
|
||||
border-left: 3px solid #0fc8e0;
|
||||
font-size: 13px;
|
||||
p {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.step-wrapper{
|
||||
flex: 1;
|
||||
}
|
||||
.trial-wrapper {
|
||||
height: 60px;
|
||||
.div-row {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.el-steps{
|
||||
height: 80px;
|
||||
}
|
||||
.step-content{
|
||||
flex: 1;
|
||||
}
|
||||
.title {
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
padding-left: 5px;
|
||||
background: #e4ebf1;
|
||||
border-left: 3px solid #0fc8e0;
|
||||
justify-content: space-between;
|
||||
margin: 10px 20px !important;
|
||||
font-size: 13px;
|
||||
p{
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
.trial-wrapper{
|
||||
height: 60px;
|
||||
.div-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 10px 20px !important;
|
||||
font-size: 13px;
|
||||
.div-col {
|
||||
flex: 1;
|
||||
width: 100px;
|
||||
white-space: nowrap !important;
|
||||
text-overflow: ellipsis !important;
|
||||
word-break: break-word !important;
|
||||
overflow: hidden !important;
|
||||
label {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.div-textarea {
|
||||
display: inline-block;
|
||||
.div-col {
|
||||
flex: 1;
|
||||
width: 100px;
|
||||
white-space: nowrap !important;
|
||||
text-overflow: ellipsis !important;
|
||||
word-break: break-word !important;
|
||||
overflow: hidden !important;
|
||||
label {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.div-textarea {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.underline {
|
||||
// .el-step__title {
|
||||
// text-decoration: underline;
|
||||
// }
|
||||
.el-step__title,
|
||||
.el-step__title.is-process,
|
||||
.el-step__title.is-finish {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.underline{
|
||||
// .el-step__title {
|
||||
// text-decoration: underline;
|
||||
// }
|
||||
.el-step__title,
|
||||
.el-step__title.is-process,
|
||||
.el-step__title.is-finish {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
.noneUnderline{
|
||||
.el-step__title {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
.noneUnderline {
|
||||
.el-step__title {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
.el-step__head.is-process,
|
||||
.el-step__title.is-process,
|
||||
.el-step__description.is-process {
|
||||
@@ -261,5 +313,5 @@ export default {
|
||||
.click_cursor {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<!-- 是否签署 -->
|
||||
<el-form-item :label="$t('trials:self-attachment:table:isSign')">
|
||||
<el-select v-model="searchData.IsSign" clearable style="width:120px;">
|
||||
<template v-for="item of $d.YesOrNo">
|
||||
<template v-for="item of $d.TrainingStatusEnum">
|
||||
<el-option v-if="item.raw.ValueCN !== '无'" :label="item.label" :value="item.value" :key="item.id"/>
|
||||
</template>
|
||||
</el-select>
|
||||
@@ -77,8 +77,8 @@
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.IsDeleted" type="danger">{{ $fd('YesOrNo', scope.row.IsDeleted) }}</el-tag>
|
||||
<el-tag v-else type="primary">{{ $fd('YesOrNo', scope.row.IsDeleted) }}</el-tag>
|
||||
<el-tag v-if="scope.row.IsDeleted" type="danger">{{ $fd('TrainingStatus', scope.row.IsDeleted) }}</el-tag>
|
||||
<el-tag v-else type="primary">{{ $fd('TrainingStatus', scope.row.IsDeleted) }}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 上传时间 -->
|
||||
@@ -96,8 +96,8 @@
|
||||
sortable="custom"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.IsConfirmed" type="primary">{{ $fd('YesOrNo', scope.row.IsConfirmed) }}</el-tag>
|
||||
<el-tag v-else type="danger">{{ $fd('YesOrNo', scope.row.IsConfirmed) }}</el-tag>
|
||||
<el-tag v-if="scope.row.IsConfirmed" type="primary">{{ $fd('TrainingStatusEnum', scope.row.IsConfirmed) }}</el-tag>
|
||||
<el-tag v-else type="danger">{{ $fd('TrainingStatusEnum', scope.row.IsConfirmed) }}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 签署时间 -->
|
||||
|
||||
@@ -270,7 +270,7 @@
|
||||
v-hasPermi="[
|
||||
'trials:trials-panel:attachments:site-research:auidt',
|
||||
]"
|
||||
:disabled="scope.row.State === 0 || scope.row.State === 3"
|
||||
:disabled="scope.row.State === 0 || scope.row.State === 3 || scope.row.IsDeleted"
|
||||
circle
|
||||
:title="$t('trials:researchRecord:action:view')"
|
||||
icon="el-icon-s-check"
|
||||
@@ -332,13 +332,12 @@
|
||||
<template slot="dialog-body">
|
||||
<div style="width: 100%; display: flex">
|
||||
<div class="shareLink">
|
||||
<div>
|
||||
<!-- <div>
|
||||
<i style="color: #428bca" class="el-icon-success" />
|
||||
<!-- 成功创建调查表链接 -->
|
||||
<span>{{
|
||||
$t('trials:researchRecord:message:createLinkSuccessfully')
|
||||
}}</span>
|
||||
</div>
|
||||
</div> -->
|
||||
<div style="margin: 10px 0">
|
||||
<!-- 链接: -->
|
||||
{{ $t('trials:researchRecord:label:link') }}
|
||||
@@ -525,7 +524,7 @@ export default {
|
||||
.getElementsByTagName('canvas')
|
||||
let a = document.createElement('a')
|
||||
a.href = qrCodeCanvas[0].toDataURL('image/url')
|
||||
a.download = `${this.$t('trials:researchRecord:title:code')}.png`
|
||||
a.download = `${this.$route.query.researchProgramNo}${this.$t('trials:researchRecord:title:code')}.png`
|
||||
a.click()
|
||||
},
|
||||
// 复制二维码
|
||||
|
||||
@@ -307,23 +307,21 @@
|
||||
</div>
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="adInfo.ReadingTaskState < 2">
|
||||
<div style="text-align: center">
|
||||
<el-button type="primary" @click="skipTask">
|
||||
<!-- 跳过 -->
|
||||
{{ $t("trials:readingReport:button:skip") }}
|
||||
</el-button>
|
||||
<!-- 保存 -->
|
||||
<el-button type="primary" @click="handleSave">{{
|
||||
$t("common:button:save")
|
||||
}}</el-button>
|
||||
<!-- 提交 -->
|
||||
<el-button type="primary" @click="handleSubmit">{{
|
||||
$t("common:button:submit")
|
||||
}}</el-button>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div style="text-align: center;width:100%" v-if="adInfo.ReadingTaskState < 2">
|
||||
<el-button type="primary" @click="skipTask">
|
||||
<!-- 跳过 -->
|
||||
{{ $t("trials:readingReport:button:skip") }}
|
||||
</el-button>
|
||||
<!-- 保存 -->
|
||||
<el-button type="primary" @click="handleSave">{{
|
||||
$t("common:button:save")
|
||||
}}</el-button>
|
||||
<!-- 提交 -->
|
||||
<el-button type="primary" @click="handleSubmit">{{
|
||||
$t("common:button:submit")
|
||||
}}</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<el-card
|
||||
|
||||
@@ -1195,7 +1195,7 @@ export default {
|
||||
})
|
||||
DicomEvent.$on('addAnnotation', async obj => {
|
||||
this.tmpData = Object.assign({}, obj.question)
|
||||
await this.imageLocation(obj.locateInfo)
|
||||
// await this.imageLocation(obj.locateInfo)
|
||||
this.setToolActive('Probe', true, null, 'tableQuestion')
|
||||
})
|
||||
window.addEventListener('beforeunload', () => {
|
||||
|
||||
@@ -561,10 +561,13 @@ export default {
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
await store.dispatch('reading/refreshMeasuredData', this.visitTaskId)
|
||||
DicomEvent.$emit('getMeasureData')
|
||||
this.$refs['ecrf3'].getQuestions(this.visitTaskId)
|
||||
await store.dispatch('reading/refreshDicomReadingQuestionAnswer', { trialId: this.$route.query.trialId, visitTaskId: this.visitTaskId })
|
||||
this.$refs['ecrf'].getQuestions(this.visitTaskId, true)
|
||||
this.$refs['ecrf2'].getQuestions(this.visitTaskId, true)
|
||||
this.$refs['ecrf3'].getQuestions(this.visitTaskId, true)
|
||||
loading.close()
|
||||
resolve()
|
||||
} catch (e) { console.log(e) }
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
<div class="base-dialog-body">
|
||||
<div style="display: flex;justify-content: space-between;">
|
||||
<h3 v-if="questionName" style="color: #ddd;padding: 5px 0px;margin: 0;">
|
||||
<!-- {{ `${questionName} (${orderMark}${String(rowIndex).padStart(2, '0')})` }} -->
|
||||
{{ lesionName }}
|
||||
<!-- {{ lesionName }} -->
|
||||
</h3>
|
||||
<!-- 关闭 -->
|
||||
<div>
|
||||
@@ -52,7 +51,7 @@
|
||||
type="text"
|
||||
@click="addAnnotation(qs)"
|
||||
>
|
||||
测量
|
||||
{{$t('trials:MRIPDFF:button:measure')}}
|
||||
</el-button>
|
||||
<!-- 清除标记 -->
|
||||
<el-button
|
||||
@@ -62,9 +61,9 @@
|
||||
@click="removeAnnotation(qs)"
|
||||
style="margin-left: 0px"
|
||||
>
|
||||
清除
|
||||
{{$t('trials:MRIPDFF:button:clear')}}
|
||||
</el-button>
|
||||
<!-- 定位 -->
|
||||
<!-- 返回 -->
|
||||
<el-button
|
||||
v-if="questionForm[qs.Id]"
|
||||
size="mini"
|
||||
@@ -72,11 +71,11 @@
|
||||
@click="locateAnnotation(qs)"
|
||||
style="margin-left: 0px"
|
||||
>
|
||||
返回
|
||||
{{$t('trials:MRIPDFF:button:return')}}
|
||||
</el-button>
|
||||
<!-- 保存 -->
|
||||
<el-button
|
||||
v-if="readingTaskState!== 2"
|
||||
v-if="questionForm[isMeasurableId] && parseInt(questionForm[isMeasurableId]) === 1 && questionForm[qs.Id] && readingTaskState!== 2"
|
||||
size="mini"
|
||||
type="text"
|
||||
@click="saveAnnotation(qs)"
|
||||
@@ -150,7 +149,7 @@
|
||||
<el-radio-group
|
||||
v-else-if="qs.Type==='radio'"
|
||||
v-model="questionForm[qs.Id]"
|
||||
:disabled="!isCurrentTask || readingTaskState>=2"
|
||||
:disabled="!isCurrentTask || readingTaskState>=2 || (qs.QuestionMark === 1105 && isDisabledMeasurableRadio)"
|
||||
@change="((val)=>{formItemChange(val, qs)})"
|
||||
>
|
||||
<template v-if="qs.DictionaryCode.length > 0">
|
||||
@@ -203,8 +202,8 @@
|
||||
</el-form>
|
||||
</template>
|
||||
<script>
|
||||
import { submitTableQuestion } from '@/api/trials'
|
||||
import { saveTableQuestionMark } from '@/api/reading'
|
||||
// import { submitTableQuestion } from '@/api/trials'
|
||||
import { saveTableQuestionMark, submitTaskRowInfo, deleteTableQuestionMark, deleteSingleTableQuestionMark } from '@/api/reading'
|
||||
import DicomEvent from './../DicomEvent'
|
||||
import store from '@/store'
|
||||
export default {
|
||||
@@ -272,7 +271,10 @@ export default {
|
||||
activeQuestionMark: '',
|
||||
markList: [],
|
||||
digitPlaces: 2,
|
||||
isMeasurableId: ''
|
||||
isMeasurableId: '',
|
||||
isExitsMarks: false,
|
||||
isDisabledMeasurableRadio: false,
|
||||
liverSeg: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -290,41 +292,63 @@ export default {
|
||||
methods: {
|
||||
async initForm() {
|
||||
this.isRender = false
|
||||
this.isMeasurableId = this.getQuestionId(1105)
|
||||
// const loading = this.$loading({ fullscreen: true })
|
||||
this.questions.forEach(item => {
|
||||
var val = this.answers[item.Id]
|
||||
if (item.DictionaryCode) {
|
||||
val = isNaN(parseInt(this.answers[item.Id])) ? this.answers[item.Id] : parseInt(this.answers[item.Id])
|
||||
}
|
||||
if (this.isBaseLineTask && item.QuestionMark === 7 && this.lesionType === 0) {
|
||||
val = 0
|
||||
}
|
||||
if (this.isBaseLineTask && item.QuestionMark === 7 && this.lesionType === 1) {
|
||||
val = 0
|
||||
}
|
||||
|
||||
this.$set(this.questionForm, item.Id, val)
|
||||
|
||||
})
|
||||
this.$set(this.questionForm, 'MeasureData', this.answers.MeasureData ? JSON.parse(this.answers.MeasureData) : '')
|
||||
this.$set(this.questionForm, 'RowIndex', this.answers.RowIndex ? this.answers.RowIndex : '')
|
||||
this.$set(this.questionForm, 'RowId', this.answers.RowId ? this.answers.RowId : '')
|
||||
|
||||
// 如果存在标记且是否可测量为否,则将是否可测量更改为是
|
||||
if (this.isCurrentTask && this.readingTaskState < 2) {
|
||||
let arr = JSON.parse(this.answers.TableQuestionMarkList)
|
||||
let isExitsMarks = arr.findIndex(i=>i.MeasureData) > -1
|
||||
if (isExitsMarks && parseInt(this.questionForm[this.isMeasurableId]) === 0) {
|
||||
this.$set(this.questionForm, this.isMeasurableId, 1)
|
||||
}
|
||||
}
|
||||
// saveTypeEnum 0:未保存过(新建病灶);1:已保存,信息不完整(随访初始化病灶/分裂病灶,通过状态判断);2:已保存,信息完整
|
||||
let isMeasurable = this.getQuestionVal(1105)
|
||||
this.$set(this.questionForm, 'saveTypeEnum', isMeasurable === '' ? 1 : 2)
|
||||
|
||||
const mean = this.getQuestionVal(1104)
|
||||
if (this.questionForm.saveTypeEnum !== 1 && this.isCurrentTask && this.readingTaskState < 2) {
|
||||
this.$set(this.questionForm, 'saveTypeEnum', parseInt(isMeasurable) === 1 && isNaN(parseFloat(mean)) ? 1 : 2)
|
||||
}
|
||||
this.lesionName = this.getLesionInfo(this.orderMark, this.rowIndex)
|
||||
this.lesionMark = this.getLesionName(this.orderMark, 1101)
|
||||
this.originalQuestionForm = { ...this.questionForm }
|
||||
this.markList = []
|
||||
this.isExitsMarks = false
|
||||
this.isDisabledMeasurableRadio = false
|
||||
let seg = this.getQuestionVal(1106)
|
||||
this.liverSeg = this.$fd('LiverSegmentation', seg)
|
||||
if (this.answers.TableQuestionMarkList) {
|
||||
let arr = JSON.parse(this.answers.TableQuestionMarkList)
|
||||
arr.map(i=>{
|
||||
|
||||
if (i.MeasureData) {
|
||||
this.isExitsMarks = true
|
||||
if (!isNaN(parseInt(isMeasurable)) && parseInt(isMeasurable) === 1 && this.isCurrentTask && this.readingTaskState < 2) {
|
||||
this.isDisabledMeasurableRadio = true
|
||||
}
|
||||
i.MeasureData = JSON.parse(i.MeasureData)
|
||||
}
|
||||
this.markList.push({tableQuestionId: i.TableQuestionId, measureData: i, saveEnum: 1})
|
||||
})
|
||||
}
|
||||
this.isMeasurableId = this.getQuestionId(1105)
|
||||
|
||||
let newMean = this.getMean()
|
||||
if (newMean !== mean) {
|
||||
let meanId = this.getQuestionId(1104)
|
||||
this.$set(this.questionForm, meanId, newMean ? newMean : '')
|
||||
}
|
||||
if (this.questionForm.saveTypeEnum === 1 && this.isCurrentTask && this.readingTaskState < 2) {
|
||||
this.setQuestions()
|
||||
}
|
||||
this.isRender = true
|
||||
// loading.close()
|
||||
},
|
||||
@@ -368,38 +392,6 @@ export default {
|
||||
return ''
|
||||
}
|
||||
},
|
||||
getOrganInfoList(isLymphNodes = null) {
|
||||
return new Promise(async resolve => {
|
||||
// var param = {
|
||||
// trialId: this.trialId,
|
||||
// visitTaskId: this.visitTaskId,
|
||||
// lesionType: this.lesionType,
|
||||
// isEnable: true
|
||||
// }
|
||||
// if (isLymphNodes !== undefined && isLymphNodes !== null) {
|
||||
// param.isLymphNodes = isLymphNodes
|
||||
// }
|
||||
// getTrialOrganList(param).then(res => {
|
||||
// this.organList = res.Result
|
||||
// resolve()
|
||||
// })
|
||||
if (!sessionStorage.getItem('organList')) {
|
||||
await store.dispatch('reading/getOrganInfo', this.visitTaskId)
|
||||
}
|
||||
var organList = sessionStorage.getItem('organList') ? JSON.parse(sessionStorage.getItem('organList')) : []
|
||||
var idx = organList.findIndex(i => i.LesionType === this.lesionType)
|
||||
if (idx > -1) {
|
||||
organList = organList[idx].OrganList
|
||||
|
||||
if (!isNaN(parseInt(isLymphNodes))) {
|
||||
this.organList = organList.filter((item) => item.IsLymphNodes === parseInt(isLymphNodes))
|
||||
} else {
|
||||
this.organList = organList
|
||||
}
|
||||
}
|
||||
resolve()
|
||||
})
|
||||
},
|
||||
async formItemChange(v, qs) {
|
||||
// 维护平均值、是否可测量等信息
|
||||
this.$set(this.questionForm, 'saveTypeEnum', 1)
|
||||
@@ -410,21 +402,34 @@ export default {
|
||||
let meanId = this.getQuestionId(1104)
|
||||
this.$set(this.questionForm, meanId, newMean ? newMean : '')
|
||||
}
|
||||
} else if (qs.QuestionMark === 1105) {
|
||||
if (!v) {
|
||||
let meanId = this.getQuestionId(1104)
|
||||
this.$set(this.questionForm, meanId, 'NE')
|
||||
} else {
|
||||
let mean = this.getMean()
|
||||
let meanId = this.getQuestionId(1104)
|
||||
this.$set(this.questionForm, meanId, mean)
|
||||
}
|
||||
}
|
||||
const isMeasurable = this.getQuestionVal(1105)
|
||||
this.$emit('resetQuestions', { mean, isMeasurable, saveTypeEnum: this.questionForm.saveTypeEnum, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
||||
this.setQuestions()
|
||||
},
|
||||
getMean() {
|
||||
let mean = null
|
||||
let isMeasurable = this.getQuestionVal(1105)
|
||||
isMeasurable = !isNaN(parseInt(isMeasurable)) ? parseInt(isMeasurable) : null
|
||||
let l1 = this.getQuestionVal(1101)
|
||||
let l2 = this.getQuestionVal(1102)
|
||||
let l3 = this.getQuestionVal(1103)
|
||||
if (!isNaN(parseFloat(l1)) && !isNaN(parseFloat(l2)) && !isNaN(parseFloat(l3))) {
|
||||
if ( isMeasurable && !isNaN(parseFloat(l1)) && !isNaN(parseFloat(l2)) && !isNaN(parseFloat(l3))) {
|
||||
const sum = l1 + l2 + l3
|
||||
mean = sum / 3
|
||||
return parseFloat(mean.toFixed(this.digitPlaces))
|
||||
} else if (isMeasurable === 0) {
|
||||
return 'NE'
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
|
||||
return mean ? mean.toFixed(this.digitPlaces) : null;
|
||||
},
|
||||
setMeasureData(measureData, isInit = false) {
|
||||
return new Promise(resolve => {
|
||||
@@ -437,7 +442,8 @@ export default {
|
||||
// 维护标记信息
|
||||
measureData.data.remark = this.getLesionName(this.orderMark, this.activeQuestionMark)
|
||||
}
|
||||
this.$set(this.questionForm, measureData.tableQuestionId, measureData.data.cachedStats.mean)
|
||||
let val = measureData.data.cachedStats.mean / 10
|
||||
this.$set(this.questionForm, measureData.tableQuestionId, val.toFixed(this.digitPlaces))
|
||||
data = {
|
||||
Id: '',
|
||||
StudyId: measureData.studyId,
|
||||
@@ -462,8 +468,6 @@ export default {
|
||||
this.$set(this.questionForm, meanId, newMean ? newMean : '')
|
||||
}
|
||||
const isMeasurable = this.getQuestionVal(1105)
|
||||
this.$emit('resetQuestions', { mean, isMeasurable, saveTypeEnum: this.questionForm.saveTypeEnum, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
||||
|
||||
DicomEvent.$emit('refreshStudyListMeasureData')
|
||||
let i = this.markList.findIndex(i=>i.tableQuestionId === measureData.tableQuestionId)
|
||||
if (i === -1) {
|
||||
@@ -472,11 +476,22 @@ export default {
|
||||
this.markList[i].saveEnum = 0
|
||||
this.markList[i].measureData = data
|
||||
}
|
||||
|
||||
if (!isNaN(parseInt(isMeasurable)) && parseInt(isMeasurable) === 1) {
|
||||
this.isDisabledMeasurableRadio = true
|
||||
}
|
||||
this.$set(this.questionForm, 'saveTypeEnum', 1)
|
||||
this.setQuestions()
|
||||
resolve()
|
||||
})
|
||||
},
|
||||
addAnnotation(qs) {
|
||||
// 判断是否有测量数据未保存
|
||||
let i = this.markList.findIndex(i=>i.saveEnum === 0)
|
||||
if (i > -1 && this.markList[i].measureData && this.markList[i].measureData.MeasureData) {
|
||||
this.$alert(this.$t('trials:MRIPDFF:message:message3'))
|
||||
// this.$message.warning(this.$t('trials:MRIPDFF:message:message3'))
|
||||
return
|
||||
}
|
||||
let orderMarkName = this.getLesionName(this.orderMark, qs.QuestionMark)
|
||||
this.activeQuestionId = qs.Id
|
||||
this.activeQuestionMark= qs.QuestionMark
|
||||
@@ -498,6 +513,15 @@ export default {
|
||||
return false
|
||||
}
|
||||
},
|
||||
getIsExitsMarks() {
|
||||
const isMeasurable = this.getQuestionVal(1105)
|
||||
if (!isNaN(parseInt(isMeasurable)) && parseInt(isMeasurable) === 1) {
|
||||
return this.markList.findIndex(i=>i.measureData && i.measureData.MeasureData) > -1 ? true : false
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
|
||||
},
|
||||
async removeAnnotation(qs) {
|
||||
let i = this.markList.findIndex(i=>i.tableQuestionId === qs.Id)
|
||||
DicomEvent.$emit('imageLocation', { questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex, visitTaskId: this.visitTaskId, lesionName: this.markList[i].measureData.OrderMarkName, lesionType: null, markTool: 'Probe', readingTaskState: this.readingTaskState, isMarked: true })
|
||||
@@ -512,6 +536,9 @@ export default {
|
||||
if (confirm !== 'confirm') return
|
||||
|
||||
let measureData = Object.assign({}, this.markList[i].measureData)
|
||||
if (measureData.Id) {
|
||||
await deleteSingleTableQuestionMark({Id: measureData.Id}, 11)
|
||||
}
|
||||
// 移除缓存中的measureData
|
||||
await store.dispatch('reading/removeMeasuredData', { visitTaskId: this.visitTaskId, measureData: measureData, questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex, orderMarkName: measureData.OrderMarkName})
|
||||
DicomEvent.$emit('getMeasureData')
|
||||
@@ -521,6 +548,9 @@ export default {
|
||||
this.$set(this.questionForm, this.markList[i].tableQuestionId, '')
|
||||
let meanId = this.getQuestionId(1104)
|
||||
this.$set(this.questionForm, meanId, '')
|
||||
this.isDisabledMeasurableRadio = this.getIsExitsMarks()
|
||||
this.$set(this.questionForm, 'saveTypeEnum', 1)
|
||||
this.setQuestions()
|
||||
},
|
||||
locateAnnotation(qs) {
|
||||
let i = this.markList.findIndex(i=>i.tableQuestionId === qs.Id)
|
||||
@@ -531,6 +561,11 @@ export default {
|
||||
var isMarked = !!measureData
|
||||
DicomEvent.$emit('imageLocation', { questionId: this.parentQsId, rowIndex: this.questionForm.RowIndex, visitTaskId: this.visitTaskId, lesionName: measureData.OrderMarkName, lesionType: null, markTool, readingTaskState, isMarked })
|
||||
},
|
||||
setQuestions() {
|
||||
const mean = this.getQuestionVal(1104)
|
||||
const isMeasurable = this.getQuestionVal(1105)
|
||||
this.$emit('resetQuestions', { mean, isMeasurable, saveTypeEnum: this.questionForm.saveTypeEnum, rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
||||
},
|
||||
async saveAnnotation(qs) {
|
||||
const loading = this.$loading({ fullscreen: true })
|
||||
try {
|
||||
@@ -582,15 +617,46 @@ export default {
|
||||
async saveTableQuestionInfo(params, qs) {
|
||||
const loading = this.$loading({ fullscreen: true })
|
||||
try {
|
||||
let res = await saveTableQuestionMark(params)
|
||||
let res = await saveTableQuestionMark(params, 11)
|
||||
if (res.IsSuccess) {
|
||||
// 保存后设置保存状态
|
||||
let i = this.markList.findIndex(i=>i.tableQuestionId === qs.Id)
|
||||
this.markList[i].saveEnum = 1
|
||||
// 保存病灶
|
||||
let j = this.markList.findIndex(i=>!(i.saveEnum === 1 && i.measureData && i.measureData.MeasureData))
|
||||
if (j === -1) {
|
||||
let answers = []
|
||||
let reg = new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
|
||||
for (const k in this.questionForm) {
|
||||
if (reg.test(k)) {
|
||||
if (answers.findIndex(i => i.tableQuestionId === k) === -1) {
|
||||
answers.push({ tableQuestionId: k, answer: this.questionForm[k] })
|
||||
}
|
||||
}
|
||||
}
|
||||
let params = {
|
||||
questionId: this.parentQsId,
|
||||
rowId: this.questionForm.RowId,
|
||||
rowIndex: this.answers.RowIndex,
|
||||
visitTaskId: this.visitTaskId,
|
||||
trialId: this.trialId,
|
||||
answerList: answers,
|
||||
isDicomReading: true
|
||||
}
|
||||
const res = await submitTaskRowInfo(params, 11)
|
||||
if (res.IsSuccess) {
|
||||
this.$set(this.questionForm, 'saveTypeEnum', 2)
|
||||
this.originalQuestionForm = { ...this.questionForm }
|
||||
this.$set(this.questionForm, 'RowId', res.Result.RowId)
|
||||
this.setQuestions()
|
||||
DicomEvent.$emit('getReportInfo', true)
|
||||
}
|
||||
}
|
||||
// 保存成功
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
// 刷新表格、刷新标记信息
|
||||
this.$emit('getReadingQuestionAndAnswer')
|
||||
DicomEvent.$emit('setMeasuredToolsPassive')
|
||||
loading.close()
|
||||
}
|
||||
} catch(e) {
|
||||
@@ -667,17 +733,52 @@ export default {
|
||||
return new Blob([bytesCode], { type: imgtype })
|
||||
},
|
||||
async handleSave() {
|
||||
const valid = await this.$refs.measurementForm.validate()
|
||||
try {
|
||||
const valid = await this.$refs.measurementForm.validate()
|
||||
if (!valid) return
|
||||
// 检验是否有标记为保存
|
||||
let i = this.markList.findIndex(i=>i.saveEnum === 0)
|
||||
if (i > -1) {
|
||||
this.$message.warning('请先保存标注信息!')
|
||||
return
|
||||
if (parseInt(this.questionForm[this.isMeasurableId]) === 1) {
|
||||
// 检验是否有标记为保存
|
||||
let i = this.markList.findIndex(i=>i.saveEnum === 0)
|
||||
if (i > -1) {
|
||||
// 请先保存标注信息!
|
||||
this.$alert(this.$t('trials:MRIPDFF:message:message1'))
|
||||
// this.$message.warning(this.$t('trials:MRIPDFF:message:message1'))
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// 不可测量时,清空测量值,平均值
|
||||
// '是否确认不可测量?'
|
||||
const confirm = await this.$confirm(
|
||||
this.$t('trials:MRIPDFF:message:message2'),
|
||||
{
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true
|
||||
}
|
||||
)
|
||||
if (confirm !== 'confirm') return
|
||||
let l1Id = this.getQuestionId(1101)
|
||||
this.$set(this.questionForm, l1Id, '')
|
||||
let l2Id = this.getQuestionId(1102)
|
||||
this.$set(this.questionForm, l2Id, '')
|
||||
let l3Id = this.getQuestionId(1103)
|
||||
this.$set(this.questionForm, l3Id, '')
|
||||
let meanId = this.getQuestionId(1104)
|
||||
this.$set(this.questionForm, meanId, 'NE')
|
||||
}
|
||||
|
||||
const loading = this.$loading({ fullscreen: true })
|
||||
|
||||
try {
|
||||
// let isResetMarks = this.markList.findIndex(i=>i.measureData && i.measureData.MeasureData) > -1 ? true : false
|
||||
if (parseInt(this.questionForm[this.isMeasurableId]) === 0 && this.isExitsMarks) {
|
||||
await deleteTableQuestionMark({rowId: this.questionForm.RowId}, 11)
|
||||
this.markList.forEach(i => {
|
||||
if (i.measureData && i.measureData.MeasureData) {
|
||||
i.measureData = ''
|
||||
}
|
||||
})
|
||||
this.isExitsMarks = false
|
||||
}
|
||||
var answers = []
|
||||
var reg = new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)
|
||||
for (const k in this.questionForm) {
|
||||
@@ -697,26 +798,29 @@ export default {
|
||||
answerList: answers,
|
||||
isDicomReading: true
|
||||
}
|
||||
const res = await submitTableQuestion(params)
|
||||
const res = await submitTaskRowInfo(params, 11)
|
||||
if (res.IsSuccess) {
|
||||
// 保存成功!
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
this.$set(this.questionForm, 'saveTypeEnum', 2)
|
||||
this.originalQuestionForm = { ...this.questionForm }
|
||||
this.$set(this.questionForm, 'RowId', res.Result.RowId)
|
||||
// 维护平均值、是否可测量数据
|
||||
const isMeasurable = this.getQuestionVal(1105)
|
||||
const mean = this.getQuestionVal(1104)
|
||||
this.$emit('resetQuestions', { isMeasurable, mean, saveTypeEnum: this.questionForm.saveTypeEnum,rowIndex: this.rowIndex, questionId: this.parentQsId, anwsers: this.questionForm })
|
||||
this.setQuestions()
|
||||
this.$emit('close')
|
||||
DicomEvent.$emit('getReportInfo', true)
|
||||
DicomEvent.$emit('setMeasuredToolsPassive')
|
||||
// await store.dispatch('reading/refreshMeasuredData', this.visitTaskId)
|
||||
// DicomEvent.$emit('getMeasureData')
|
||||
this.$emit('getReadingQuestionAndAnswer')
|
||||
}
|
||||
loading.close()
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
loading.close()
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
async handleClose() {
|
||||
this.$emit('close')
|
||||
@@ -758,6 +862,9 @@ export default {
|
||||
/deep/ .el-button--mini, .el-button--mini.is-round {
|
||||
padding: 7px 10px;
|
||||
}
|
||||
/deep/ .el-input-group__append, .el-input-group__prepend {
|
||||
padding: 0 10px;
|
||||
}
|
||||
.el-form-item__content
|
||||
.el-select{
|
||||
width: 100%;
|
||||
|
||||
@@ -33,10 +33,13 @@
|
||||
<div class="title">{{ item.QuestionName }}</div>
|
||||
</div>
|
||||
<div style="color: #ddd;text-align: left;padding: 5px 10px;border-bottom: 1px solid #5a5a5a; font-size: 15px;">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="7">分段</el-col>
|
||||
<el-col :span="8">是否可测量</el-col>
|
||||
<el-col :span="6">平均值</el-col>
|
||||
<el-row >
|
||||
<!-- 分段 -->
|
||||
<el-col :span="14">{{$t('trials:MRIPDFF:label:col1')}}</el-col>
|
||||
<!-- 是否可测量 -->
|
||||
<!-- <el-col :span="7">{{$t('trials:MRIPDFF:label:col2')}}</el-col> -->
|
||||
<!-- 平均值 -->
|
||||
<el-col :span="7">{{$t('trials:MRIPDFF:label:col3')}}</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
|
||||
@@ -64,14 +67,14 @@
|
||||
<el-tooltip v-if="readingTaskState<2 && parseInt(item.TableQuestions.Answers[i].saveTypeEnum) ===1" class="item" effect="dark" :content="$t('trials:reading:button:incompleteInfor')" placement="bottom">
|
||||
<i class="el-icon-warning" style="color:#ff9800" />
|
||||
</el-tooltip>
|
||||
<div style="position: absolute;left: 90px;top: 2px;">
|
||||
<div style="position: absolute;right: 0px;top: 2px;">
|
||||
<!-- white-space: nowrap;overflow: hidden;text-overflow: ellipsis; -->
|
||||
<div style="font-size: 13px;width:220px;height: 30px;">
|
||||
<div style="display: inline-block;margin-left:10px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;width:110px">
|
||||
<div style="font-size: 13px;width:110px;height: 30px;">
|
||||
<!-- <div style="display: inline-block;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;width:95px">
|
||||
{{ $fd('ReadingYesOrNo', parseInt(item.TableQuestions.Answers[i].isMeasurable)) }}
|
||||
</div>
|
||||
<div style="display: inline-block;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;width:80px">
|
||||
{{ item.TableQuestions.Answers[i].mean }}
|
||||
</div> -->
|
||||
<div style="display: inline-block;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;width:50px">
|
||||
{{ isNaN(parseFloat(item.TableQuestions.Answers[i].mean)) ? item.TableQuestions.Answers[i].mean : `${item.TableQuestions.Answers[i].mean}%` }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -107,7 +110,6 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { splitLesion } from '@/api/trials'
|
||||
import { resetReadingTask } from '@/api/reading'
|
||||
import DicomEvent from './../DicomEvent'
|
||||
import store from '@/store'
|
||||
@@ -511,7 +513,7 @@ export default {
|
||||
item.TableQuestions.Answers.map(t => {
|
||||
const refName = `${item.Id}_${t.RowIndex}`
|
||||
if (this.$refs[refName] && this.$refs[refName][0] && this.$refs[refName][0].questionForm.saveTypeEnum !== 2) {
|
||||
var lessionName = this.getLesionName(item.OrderMark, t.RowIndex)
|
||||
var lessionName = this.$refs[refName][0].liverSeg
|
||||
arr.push({ lessionName: lessionName, rowIndex: t.RowIndex, questionId: item.Id })
|
||||
}
|
||||
})
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
:data="taskQuestions"
|
||||
row-key="Id"
|
||||
border
|
||||
default-expand-all
|
||||
:expand-row-keys="expandedRows"
|
||||
:height="height"
|
||||
:tree-props="{children: 'Childrens', hasChildren: 'hasChildren'}"
|
||||
size="mini"
|
||||
@@ -319,7 +319,8 @@ export default {
|
||||
assessmentQuestions: [],
|
||||
tLesionCount: null,
|
||||
ntLesionCount: null,
|
||||
openWindow: null
|
||||
openWindow: null,
|
||||
expandedRows: []
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -458,16 +459,32 @@ export default {
|
||||
const arr = []
|
||||
if (questions.length !== 0) {
|
||||
questions.forEach((item) => {
|
||||
if (this.CriterionType === 21) {
|
||||
if (!this.isShowDetail) {
|
||||
if (!item.RowId) {
|
||||
this.expandedRows.push(item.Id)
|
||||
}
|
||||
} else {
|
||||
this.expandedRows.push(item.Id)
|
||||
}
|
||||
|
||||
} else {
|
||||
this.expandedRows.push(item.Id)
|
||||
}
|
||||
// 过滤病灶标识 病灶名称 部位 器官 位置 是否淋巴结
|
||||
// 非靶病灶和新病灶 过滤长径和短径信息
|
||||
// 非淋巴结靶病灶 过滤短径
|
||||
|
||||
lesionType = item.LesionType
|
||||
var filterArr = [7]
|
||||
// 0:靶病灶、 5:新靶病灶
|
||||
// 1:非靶病灶、2:新病灶、6:新非靶病灶、7:其它既往新病灶、8:触发irecisit后的新病灶
|
||||
// 0:长径,1:短径,2:是否淋巴结,3:自增ID,4:病灶名称,5:所在器官,6:所在位置,7:状态,8:所在部位,10:部位描述
|
||||
// 1105:是否可测量,1106:肝脏分段
|
||||
if ((item.LesionType === 1 || item.LesionType === 2 || item.LesionType === 6 || item.LesionType === 7 || item.LesionType === 8) && isNTFilterLength) {
|
||||
filterArr = [0, 1, 3, 4, 5, 6, 2, 8, 10, 7]
|
||||
filterArr = [0, 1, 3, 4, 5, 6, 2, 8, 10, 7, 1105]
|
||||
} else {
|
||||
filterArr = [3, 4, 5, 6, 2, 8, 10, 7]
|
||||
filterArr = [3, 4, 5, 6, 2, 8, 10, 7, 1106, 1105]
|
||||
}
|
||||
if ((lesionType === 0 || lesionType === 5) && isLymphNodes === 0 && !this.isShowDetail && (this.CriterionType === 1 || this.CriterionType === 3 || this.CriterionType === 17)) {
|
||||
filterArr.push(1)
|
||||
@@ -542,6 +559,28 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.CriterionType === 21) {
|
||||
var liverSegmentIdx = item.Childrens.findIndex(i => i.QuestionMark === 1106)
|
||||
if (liverSegmentIdx > -1) {
|
||||
if (item.Childrens[liverSegmentIdx].Answer.length > 0) {
|
||||
let v = item.Childrens[liverSegmentIdx].Answer[0].Answer
|
||||
obj.QuestionName = this.$fd(item.Childrens[liverSegmentIdx].DictionaryCode, parseInt(v))
|
||||
let Answers = {}
|
||||
let mean = item.Childrens.findIndex(i => i.QuestionMark === 1104)
|
||||
if (mean > -1) {
|
||||
this.visitTaskList.forEach(v => {
|
||||
const o = item.Childrens[mean].Answer.find(v1 => {
|
||||
return v1.VisitTaskId === v.VisitTaskId
|
||||
})
|
||||
if (o) {
|
||||
Answers[o.VisitTaskId] = isNaN(parseFloat(o.Answer)) ? o.Answer : `${o.Answer}%`
|
||||
}
|
||||
})
|
||||
}
|
||||
this.$set(obj, 'Answers', Answers)
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
|
||||
@@ -11,12 +11,7 @@
|
||||
<span>({{ record.CreateTime }}) </span>
|
||||
</p>
|
||||
<div class="info-content">
|
||||
<template v-if="[14, 30].includes(record.UserTypeEnumInt) && (record.MedicalDialogCloseEnum!== null || record.Content)">
|
||||
<div>{{ $t('trials:medicalFeedback:title:closeReasonEnum') }}{{ $fd('MedicalDialogCloseEnum',record.MedicalDialogCloseEnum) }}</div>
|
||||
<div v-if="record.Content">{{ $t('trials:medicalFeedback:title:closereasonRemarks') }}{{ record.Content }}</div>
|
||||
|
||||
</template>
|
||||
<template v-else-if="[14, 30].includes(record.UserTypeEnumInt) && record.Questioning">
|
||||
<template v-if="[14, 30].includes(record.UserTypeEnumInt) && record.Questioning">
|
||||
<div>
|
||||
<!-- 您好,根据医学审核反馈,该阅片任务的评估有如下问题需要您确认或澄清: -->
|
||||
{{ $t('trials:medicalFeedback:message:msg1') }}
|
||||
@@ -35,7 +30,7 @@
|
||||
style="margin:0 10px;"
|
||||
:images="[`${OSSclientConfig.basePath}${file.ImagePath}`]"
|
||||
>
|
||||
<el-button type="text" @click="previewImage(file.ImagePath)">
|
||||
<el-button type="text" @click="previewImage(file.ImagePath)" style="width: 400px;white-space: normal; word-wrap: break-word;text-align: left;">
|
||||
{{ file.FileName }}
|
||||
</el-button>
|
||||
<img
|
||||
@@ -60,11 +55,14 @@
|
||||
{{ $t('trials:medicalFeedback:message:msg4') }}
|
||||
</div>
|
||||
</template>
|
||||
<template v-else-if="[14, 30].includes(record.UserTypeEnumInt)">
|
||||
<template v-if="[14, 30].includes(record.UserTypeEnumInt) && record.MedicalDialogCloseEnum!== null">
|
||||
<div>{{ $t('trials:medicalFeedback:title:closeReasonEnum') }}{{ $fd('MedicalDialogCloseEnum',record.MedicalDialogCloseEnum) }}</div>
|
||||
</template>
|
||||
<template v-if="[14, 30].includes(record.UserTypeEnumInt) && record.Content ">
|
||||
<div>{{ record.Content }}</div>
|
||||
</template>
|
||||
|
||||
<template v-else-if="[13].includes(record.UserTypeEnumInt)">
|
||||
<template v-if="[13].includes(record.UserTypeEnumInt)">
|
||||
<div>
|
||||
{{ $t('trials:medicalFeedback:title:isEndorse') }}{{ $fd('MedicalReviewDoctorUserIdea', record.DoctorUserIdeaEnum) }}
|
||||
</div>
|
||||
|
||||
@@ -11,12 +11,8 @@
|
||||
<span>({{ record.CreateTime }}) </span>
|
||||
</p>
|
||||
<div class="info-content">
|
||||
<template v-if="[14, 30].includes(record.UserTypeEnumInt) && (record.MedicalDialogCloseEnum!== null || record.Content)">
|
||||
<div>{{ $t('trials:medicalFeedback:title:closeReasonEnum') }}{{ $fd('MedicalDialogCloseEnum',record.MedicalDialogCloseEnum) }}</div>
|
||||
<div v-if="record.Content">{{ $t('trials:medicalFeedback:title:closereasonRemarks') }}{{ record.Content }}</div>
|
||||
|
||||
</template>
|
||||
<template v-else-if="[14, 30].includes(record.UserTypeEnumInt) && record.Questioning">
|
||||
|
||||
<template v-if="[14, 30].includes(record.UserTypeEnumInt) && record.Questioning">
|
||||
<div>
|
||||
<!-- 您好,根据医学审核反馈,该阅片任务的评估有如下问题需要您确认或澄清: -->
|
||||
{{ $t('trials:medicalFeedback:message:msg1') }}
|
||||
@@ -35,7 +31,7 @@
|
||||
style="margin:0 10px;"
|
||||
:images="[`${OSSclientConfig.basePath}${file.ImagePath}`]"
|
||||
>
|
||||
<el-button type="text" @click="previewImage(file.ImagePath)">
|
||||
<el-button type="text" @click="previewImage(file.ImagePath)" style="width: 400px;white-space: normal; word-wrap: break-word;text-align: left;">
|
||||
{{ file.FileName }}
|
||||
</el-button>
|
||||
<img
|
||||
@@ -60,11 +56,14 @@
|
||||
{{ $t('trials:medicalFeedback:message:msg4') }}
|
||||
</div>
|
||||
</template>
|
||||
<template v-else-if="[14, 30].includes(record.UserTypeEnumInt)">
|
||||
<template v-if="[14, 30].includes(record.UserTypeEnumInt) && record.MedicalDialogCloseEnum!== null">
|
||||
<div>{{ $t('trials:medicalFeedback:title:closeReasonEnum') }}{{ $fd('MedicalDialogCloseEnum',record.MedicalDialogCloseEnum) }}</div>
|
||||
</template>
|
||||
<template v-if="[14, 30].includes(record.UserTypeEnumInt) && record.Content">
|
||||
<div>{{ record.Content }}</div>
|
||||
</template>
|
||||
|
||||
<template v-else-if="[13].includes(record.UserTypeEnumInt)">
|
||||
<template v-if="[13].includes(record.UserTypeEnumInt)">
|
||||
<div>
|
||||
{{ $t('trials:medicalFeedback:title:isEndorse') }}{{ $fd('MedicalReviewDoctorUserIdea', record.DoctorUserIdeaEnum) }}
|
||||
</div>
|
||||
|
||||
@@ -260,7 +260,11 @@ export default {
|
||||
if (Object.keys(this.medicalReviewInfo).length > 0) {
|
||||
for (const k in this.form) {
|
||||
if (this.medicalReviewInfo.hasOwnProperty(k)) {
|
||||
this.form[k] = this.medicalReviewInfo[k];
|
||||
if (k === 'IsHaveQuestion' && this.medicalReviewInfo.AuditState === 0) {
|
||||
this.form[k] = null
|
||||
} else {
|
||||
this.form[k] = this.medicalReviewInfo[k]
|
||||
}
|
||||
}
|
||||
}
|
||||
this.fileList = [];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable */
|
||||
<template>
|
||||
<BaseContainer>
|
||||
<BaseContainer class="read-task-allocation">
|
||||
<el-tabs type="border-card" v-model="TrialReadingCriterionId">
|
||||
<el-tab-pane :label="i.TrialReadingCriterionName" :name="i.TrialReadingCriterionId" v-for="i of trialCriterionList" :key="i.TrialReadingCriterionId">
|
||||
<div v-if="TrialReadingCriterionId === i.TrialReadingCriterionId">
|
||||
@@ -1013,6 +1013,11 @@ export default {
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.read-task-allocation{
|
||||
/deep/.search {
|
||||
padding: 0px !important;
|
||||
}
|
||||
}
|
||||
/deep/ .hidden-row{
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
<template>
|
||||
<div style="text-align: right">
|
||||
<el-tabs v-model="activeName">
|
||||
<!-- 报表导出 -->
|
||||
<el-tab-pane
|
||||
:label="$t('trials:readingTracking:reviewResult:reportsExport')"
|
||||
name="reportsExport"
|
||||
>
|
||||
<el-tabs type="border-card" v-model="reportCriterionId">
|
||||
<el-tab-pane
|
||||
:label="i.TrialReadingCriterionName"
|
||||
:name="i.TrialReadingCriterionId"
|
||||
v-for="i of trialCriterionList"
|
||||
:key="i.TrialReadingCriterionId"
|
||||
>
|
||||
<exportList
|
||||
v-if="reportCriterionId === i.TrialReadingCriterionId && activeName === 'reportsExport'"
|
||||
:trialReadingCriterionId="i.TrialReadingCriterionId"
|
||||
:data="data"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</el-tab-pane>
|
||||
<!-- 报表导出配置 -->
|
||||
<el-tab-pane
|
||||
:label="$t('trials:readingTracking:reviewResult:reportsConfig')"
|
||||
name="reportsConfig"
|
||||
>
|
||||
<el-tabs type="border-card" v-model="reportConfigCriterionId">
|
||||
<el-tab-pane
|
||||
:label="i.TrialReadingCriterionName"
|
||||
:name="i.TrialReadingCriterionId"
|
||||
v-for="i of trialCriterionList"
|
||||
:key="i.TrialReadingCriterionId"
|
||||
>
|
||||
<configList
|
||||
v-if="reportConfigCriterionId === i.TrialReadingCriterionId && activeName === 'reportsConfig'"
|
||||
:trialReadingCriterionId="i.TrialReadingCriterionId"
|
||||
/>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getTrialCriterionList } from '@/api/trials/reading'
|
||||
import exportList from './exportList'
|
||||
import configList from './configList'
|
||||
export default {
|
||||
name: 'ReviewResults',
|
||||
components: {
|
||||
exportList,
|
||||
configList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
trialCriterionList: [],
|
||||
reportCriterionId: null,
|
||||
trialId: null,
|
||||
activeName: 'reportsExport',
|
||||
reportConfigCriterionId: ''
|
||||
}
|
||||
},
|
||||
props: {
|
||||
data: {
|
||||
type: Object,
|
||||
default() {
|
||||
return {}
|
||||
},
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.trialId = this.$route.query.trialId
|
||||
this.getTrialCriterionList()
|
||||
},
|
||||
methods: {
|
||||
async getTrialCriterionList() {
|
||||
try {
|
||||
let res = await getTrialCriterionList(this.trialId)
|
||||
if (res.IsSuccess) {
|
||||
this.trialCriterionList = res.Result
|
||||
this.reportCriterionId = this.trialCriterionList[0].TrialReadingCriterionId
|
||||
this.reportConfigCriterionId = this.trialCriterionList[0].TrialReadingCriterionId
|
||||
}
|
||||
} catch(e) {
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
@@ -0,0 +1,168 @@
|
||||
<template>
|
||||
<div>
|
||||
<!-- 保存 -->
|
||||
<el-button type="primary" size="mini" @click="submit" style="margin-bottom: 5px;">
|
||||
{{ $t('common:button:save') }}
|
||||
</el-button>
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="exportInfo.QuestionList"
|
||||
height="500"
|
||||
row-key="Id"
|
||||
border
|
||||
default-expand-all
|
||||
:tree-props="{ children: 'Children', hasChildren: 'hasChildren' }"
|
||||
>
|
||||
<!-- 问题名称 -->
|
||||
<el-table-column
|
||||
prop="QuestionName"
|
||||
:label="$t('trials:readingTracking:config:questionName')"
|
||||
width="300">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-for="item in exportInfo.DicList"
|
||||
:key="item.Code"
|
||||
:label="$i18n.locale === 'zh' ? item.ValueCN : item.Value"
|
||||
|
||||
>
|
||||
<template v-slot="scope">
|
||||
<el-checkbox
|
||||
@change="() => changeState(scope, item.Code)"
|
||||
:checked="getCheckState(scope, item.Code)"
|
||||
:disabled="getDisabledState(scope.row, item)"
|
||||
v-show="!scope.row.IsGroup || !scope.row.HasChildren"
|
||||
>
|
||||
</el-checkbox>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- CDISC编码 -->
|
||||
<el-table-column
|
||||
prop="CDISCCode"
|
||||
:label="$t('trials:readingTracking:config:code')"
|
||||
width="180"
|
||||
>
|
||||
<template v-slot="scope">
|
||||
<el-input
|
||||
v-model="scope.row.CDISCCode"
|
||||
size="mini"
|
||||
:disabled="scope.row.HasChildren || scope.row.IsTableQuestion"
|
||||
v-show="!scope.row.IsGroup || !scope.row.HasChildren"
|
||||
>
|
||||
</el-input>
|
||||
</template>
|
||||
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getTrialQuestionExportResult, setTrialQuestionExportResult } from '@/api/trials'
|
||||
export default {
|
||||
name: 'configList',
|
||||
props: {
|
||||
trialReadingCriterionId: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
exportInfo: []
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getConfigInfo()
|
||||
},
|
||||
methods: {
|
||||
async getConfigInfo() {
|
||||
try {
|
||||
this.loading = true
|
||||
let res = await getTrialQuestionExportResult(
|
||||
{
|
||||
trialReadingCriterionId: this.trialReadingCriterionId
|
||||
}
|
||||
)
|
||||
if (res.IsSuccess) {
|
||||
this.exportInfo = res.Result
|
||||
}
|
||||
this.loading = false
|
||||
} catch(e) {
|
||||
this.loading = false
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
async submit() {
|
||||
this.loading = true
|
||||
try {
|
||||
let params = this.filterQuestions(this.exportInfo.QuestionList)
|
||||
let res = await setTrialQuestionExportResult(params)
|
||||
if (res.IsSuccess) {
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
}
|
||||
this.loading = false
|
||||
} catch(e) {
|
||||
this.loading = false
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
filterQuestions(arr) {
|
||||
let params= {
|
||||
questionList: [],
|
||||
tableQuestionList: []
|
||||
}
|
||||
for (let i of arr) {
|
||||
if (!i.IsGroup && !i.IsTableQuestion) {
|
||||
params.questionList.push({
|
||||
questionId: i.QuestionId,
|
||||
tableQuestionId: i.TableQuestionId,
|
||||
exportResult: i.ExportResult,
|
||||
CDISCCode: i.CDISCCode
|
||||
})
|
||||
}
|
||||
if (i.TableQuestionId) {
|
||||
params.tableQuestionList.push({
|
||||
questionId: i.QuestionId,
|
||||
tableQuestionId: i.TableQuestionId,
|
||||
exportResult: i.ExportResult,
|
||||
CDISCCode: i.CDISCCode
|
||||
})
|
||||
}
|
||||
if (i.Children && i.Children.length > 0) {
|
||||
const childResults = this.filterQuestions(i.Children)
|
||||
params.questionList = params.questionList.concat(childResults.questionList)
|
||||
params.tableQuestionList = params.tableQuestionList.concat(childResults.tableQuestionList)
|
||||
}
|
||||
}
|
||||
return params;
|
||||
},
|
||||
// 获取状态
|
||||
getCheckState(item, code) {
|
||||
return item.row.ExportResult.indexOf(code) > -1
|
||||
},
|
||||
// 改变状态
|
||||
changeState(item, code) {
|
||||
item.row.ExportResult.indexOf(code) > -1 ? item.row.ExportResult.splice(item.row.ExportResult.indexOf(code), 1) : item.row.ExportResult.push(code);
|
||||
},
|
||||
// 获取禁用状态
|
||||
getDisabledState(row, item) {
|
||||
// 肿瘤评估标准阅片结果表(1)和阅片结果明细表(2)禁用
|
||||
if (this.exportInfo.CriterionGroup === 1 && (item.Code === 1 || item.Code === 2)) {
|
||||
return true
|
||||
} else if ((this.exportInfo.CriterionGroup === 0 || this.exportInfo.CriterionType === 0 ) && item.Code === 1 && (row.HasChildren || row.IsTableQuestion)) {
|
||||
// 自定义或非肿瘤阅片标准阅片结果表(1)不能配置表格问题
|
||||
return true
|
||||
} else if (item.Code === 8 && (row.HasChildren || row.IsTableQuestion)) {
|
||||
// CDISC导出不能配置表格问题
|
||||
return true
|
||||
} else if (item.Code === 2 && row.HasChildren) {
|
||||
// 阅片结果明细表
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -1,58 +1,32 @@
|
||||
<template>
|
||||
<div style="text-align: right">
|
||||
<!--导出-->
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="!(trialCriterionList.length > 0)"
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport(0)"
|
||||
style="margin-bottom: 10px"
|
||||
<el-table v-loading="loading" :data="list" border stripe height="500">
|
||||
<el-table-column label="" width="50">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.$index + 1 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 文件名称 -->
|
||||
<el-table-column
|
||||
:label="$t('trials:reviewTrack:title:fileName')"
|
||||
:min-width="50"
|
||||
>
|
||||
{{ $t('common:button:export') }}
|
||||
</el-button>
|
||||
<el-tabs type="border-card" v-model="TrialReadingCriterionId">
|
||||
<el-tab-pane
|
||||
:label="i.TrialReadingCriterionName"
|
||||
:name="i.TrialReadingCriterionId"
|
||||
v-for="i of trialCriterionList"
|
||||
:key="i.TrialReadingCriterionId"
|
||||
>
|
||||
<el-table v-loading="loading" :data="list" border stripe>
|
||||
<el-table-column label="" :min-width="50">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.$index + 1 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 文件名称 -->
|
||||
<el-table-column
|
||||
:label="$t('trials:reviewTrack:title:fileName')"
|
||||
:min-width="50"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.FileName }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop=""
|
||||
:label="$t('common:action:action')"
|
||||
min-width="80"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<!-- 下载 -->
|
||||
<el-button
|
||||
icon="el-icon-download"
|
||||
circle
|
||||
:title="$t('trials:reviewTrack:title:download')"
|
||||
size="mini"
|
||||
@click="handleExport(scope.row.ExportCatogory)"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.FileName }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="" :label="$t('common:action:action')" min-width="80">
|
||||
<template slot-scope="scope">
|
||||
<!-- 下载 -->
|
||||
<el-button
|
||||
icon="el-icon-download"
|
||||
circle
|
||||
:title="$t('trials:reviewTrack:title:download')"
|
||||
size="mini"
|
||||
@click="handleExport(scope.row.ExportCatogory)"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -65,20 +39,13 @@ import {
|
||||
getEvaluationOfTumorEfficacy_Export,
|
||||
getDetailedOfEvaluatedLesion_Export,
|
||||
} from '@/api/export'
|
||||
import { getTrialCriterionList } from '@/api/trials/reading'
|
||||
|
||||
export default {
|
||||
name: 'exportList',
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
trialCriterionList: [],
|
||||
TrialReadingCriterionId: null,
|
||||
trialId: null,
|
||||
list: [],
|
||||
}
|
||||
},
|
||||
props: {
|
||||
trialReadingCriterionId: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
data: {
|
||||
type: Object,
|
||||
default() {
|
||||
@@ -86,30 +53,35 @@ export default {
|
||||
},
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
TrialReadingCriterionId(v) {
|
||||
if (v === '0') return
|
||||
this.loading = true
|
||||
getTrialReadingCriterionCanExportDocumentList({
|
||||
TrialReadingCriterionId: v,
|
||||
})
|
||||
.then((res) => {
|
||||
this.list = res.Result
|
||||
this.loading = false
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = true
|
||||
})
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
trialId: null,
|
||||
list: [],
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.trialId = this.$route.query.trialId
|
||||
this.getTrialCriterionList()
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
async getList() {
|
||||
this.loading = true
|
||||
try {
|
||||
let res = await getTrialReadingCriterionCanExportDocumentList({
|
||||
TrialReadingCriterionId: this.trialReadingCriterionId,
|
||||
})
|
||||
if (res.IsSuccess) {
|
||||
this.list = res.Result
|
||||
}
|
||||
this.loading = false
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
handleExport(type) {
|
||||
var searchData = { ...this.data }
|
||||
searchData.TrialReadingCriterionId = this.TrialReadingCriterionId
|
||||
searchData.TrialReadingCriterionId = this.trialReadingCriterionId
|
||||
switch (type) {
|
||||
case 0:
|
||||
getReadingTaskList_Export(searchData)
|
||||
@@ -159,7 +131,8 @@ export default {
|
||||
})
|
||||
break
|
||||
case 8:
|
||||
getCommonJudgeRatioList_Export(searchData)
|
||||
searchData.ReadingExportType = 8
|
||||
getCommonEvaluationList_Export(searchData)
|
||||
.then((res) => {})
|
||||
.catch(() => {
|
||||
this.loading = false
|
||||
@@ -183,15 +156,6 @@ export default {
|
||||
break
|
||||
}
|
||||
},
|
||||
getTrialCriterionList() {
|
||||
getTrialCriterionList(this.trialId)
|
||||
.then((res) => {
|
||||
this.trialCriterionList = res.Result
|
||||
this.TrialReadingCriterionId =
|
||||
this.trialCriterionList[0].TrialReadingCriterionId
|
||||
})
|
||||
.catch(() => {})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -110,6 +110,10 @@
|
||||
<el-button type="primary" icon="el-icon-download" @click="handleExport">
|
||||
{{ $t('common:button:export') }}
|
||||
</el-button>
|
||||
<!-- 阅片结果 -->
|
||||
<el-button type="primary" icon="el-icon-download" @click="handleReviewResults">
|
||||
{{ $t('trials:readingTracking:button:reviewResults') }}
|
||||
</el-button>
|
||||
<el-button type="primary" icon="el-icon-info" @click="handleViewRecord">
|
||||
{{ $t('common:button:failureRecord') }}
|
||||
</el-button>
|
||||
@@ -146,8 +150,8 @@
|
||||
<el-tag v-else type="primary">{{ $fd('YesOrNo', scope.row.IsUrgent) }}</el-tag> -->
|
||||
<el-tooltip placement="top">
|
||||
<div slot="content">
|
||||
<span>{{`加急原因:${$fd('TaskUrgentType',scope.row.TaskUrgentType)}`}}</span><br/>
|
||||
<span>{{scope.row.TaskUrgentRemake?`备注:${scope.row.TaskUrgentRemake}`:''}}</span>
|
||||
<span>{{`${$t('trials:reviewTrack:label:taskUrgentType')}${$fd('TaskUrgentType',scope.row.TaskUrgentType)}`}}</span><br/>
|
||||
<span>{{scope.row.TaskUrgentRemake?`${$t('trials:reviewTrack:label:taskUrgentRemake')}${scope.row.TaskUrgentRemake}`:''}}</span>
|
||||
</div>
|
||||
<div>
|
||||
<el-button :disabled="!(!scope.row.TaskState && (scope.row.ReadingTaskState === 0 || scope.row.ReadingTaskState === 1)) || !scope.row.IsCanEditUrgentState" v-if="scope.row.IsUrgent" type="danger" size="mini" @click="changeUrgentStatus(scope.row)">{{ $fd('YesOrNo', scope.row.IsUrgent) }}</el-button>
|
||||
@@ -833,11 +837,13 @@
|
||||
</el-dialog>
|
||||
<el-dialog
|
||||
v-if="exportVisible"
|
||||
v-dialogDrag
|
||||
:title="$t('trials:reviewTrack:button:export')"
|
||||
:visible.sync="exportVisible"
|
||||
:close-on-click-modal="false"
|
||||
width="60%"
|
||||
append-to-body>
|
||||
<exportList :trial-reading-criterion-id="TrialReadingCriterionId" :data="searchData" />
|
||||
<ReviewResults :data="searchData" />
|
||||
</el-dialog>
|
||||
|
||||
|
||||
@@ -941,12 +947,15 @@
|
||||
<script>
|
||||
import { getTrialSiteSelect,setTaskUrgent } from '@/api/trials'
|
||||
import { getTrialCriterionList, PMSetTaskBack, getInfluencedTaskList, getReReadingOrBackInfluenceTaskList, getReadingTaskList, configTrialReadingTaskViewRule, getDoctorUserSelectList, applyReReading } from '@/api/trials/reading'
|
||||
import {
|
||||
getReadingTaskList_Export
|
||||
} from '@/api/export'
|
||||
import { getToken } from '@/utils/auth'
|
||||
import { changeURLStatic } from '@/utils/history.js'
|
||||
import BaseContainer from '@/components/BaseContainer'
|
||||
import Pagination from '@/components/Pagination'
|
||||
import RefereeRules from './components/RefereeRules.vue'
|
||||
import exportList from './components/exportList.vue'
|
||||
import ReviewResults from './components/ReviewResults'
|
||||
import ClinicalData from "../../subject/reading-period/components/ClinicalData"
|
||||
import RecordList from './components/RecordList.vue'
|
||||
const searchDataDefault = () => {
|
||||
@@ -978,7 +987,7 @@ const searchDataDefault = () => {
|
||||
}
|
||||
export default {
|
||||
name: 'TrialsNotice',
|
||||
components: { BaseContainer, Pagination, RefereeRules, ClinicalData, exportList, RecordList },
|
||||
components: { BaseContainer, Pagination, RefereeRules, ClinicalData, ReviewResults, RecordList },
|
||||
props: {
|
||||
AllocationReadingCategory: {
|
||||
type: String
|
||||
@@ -1087,7 +1096,16 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
handleExport() {
|
||||
async handleExport() {
|
||||
this.loading = true
|
||||
try {
|
||||
await getReadingTaskList_Export(this.searchData)
|
||||
this.loading = false
|
||||
} catch(e) {
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
handleReviewResults() {
|
||||
this.exportVisible = true
|
||||
},
|
||||
handleView(row) {
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
v-for="item of $d.TrainingStatus"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="!item.value"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -136,10 +136,10 @@
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.IsDeleted" type="danger">{{
|
||||
$fd('TrainingStatus', !scope.row.IsDeleted)
|
||||
$fd('TrainingStatus', scope.row.IsDeleted)
|
||||
}}</el-tag>
|
||||
<el-tag v-else type="primary">{{
|
||||
$fd('TrainingStatus', !scope.row.IsDeleted)
|
||||
$fd('TrainingStatus', scope.row.IsDeleted)
|
||||
}}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@@ -396,6 +396,12 @@ export default {
|
||||
return false
|
||||
},
|
||||
},
|
||||
UserTypeList: {
|
||||
type: Array,
|
||||
default() {
|
||||
return []
|
||||
},
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -407,13 +413,6 @@ export default {
|
||||
total: 0,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
UserTypeList() {
|
||||
return this.$d.UserType.filter(
|
||||
(item) => ![7, 31, 32, 21, 26, 27].includes(item.value)
|
||||
)
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.trialId = this.$route.query.trialId
|
||||
this.getList()
|
||||
|
||||
@@ -56,13 +56,12 @@
|
||||
>
|
||||
<el-select
|
||||
v-model="form.ToUserTypeList"
|
||||
disabled
|
||||
clearable
|
||||
multiple
|
||||
class="mr"
|
||||
>
|
||||
<el-option
|
||||
v-for="item of $d.UserType"
|
||||
v-for="item of UserTypeList"
|
||||
:key="`ToUserTypeList${item.label}`"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
@@ -77,13 +76,12 @@
|
||||
>
|
||||
<el-select
|
||||
v-model="form.CopyUserTypeList"
|
||||
disabled
|
||||
clearable
|
||||
multiple
|
||||
class="mr"
|
||||
>
|
||||
<el-option
|
||||
v-for="item of $d.UserType"
|
||||
v-for="item of UserTypeList"
|
||||
:key="`CopyUserTypeList${item.label}`"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
@@ -310,6 +308,12 @@ export default {
|
||||
return {}
|
||||
},
|
||||
},
|
||||
UserTypeList: {
|
||||
type: Array,
|
||||
default() {
|
||||
return []
|
||||
},
|
||||
},
|
||||
},
|
||||
components: { vcrontab },
|
||||
data() {
|
||||
|
||||
@@ -339,6 +339,7 @@
|
||||
:data="currentRow"
|
||||
:criterion-type="criterionType"
|
||||
:is-distinguish-criteria="isDistinguishCriteria"
|
||||
:UserTypeList="UserTypeList"
|
||||
@closeDialog="closeDialog"
|
||||
@getList="getList"
|
||||
/>
|
||||
@@ -357,6 +358,7 @@
|
||||
@getList="getList"
|
||||
:is-distinguish-criteria="isDistinguishCriteria"
|
||||
:isShow="isBtnShow"
|
||||
:UserTypeList="UserTypeList"
|
||||
@close="addVisible = false"
|
||||
/>
|
||||
</div>
|
||||
@@ -422,7 +424,7 @@ export default {
|
||||
computed: {
|
||||
UserTypeList() {
|
||||
return this.$d.UserType.filter(
|
||||
(item) => ![7, 31, 32, 21, 26, 27].includes(item.value)
|
||||
(item) => ![4, 7, 8, 31, 32, 21, 26, 27].includes(item.value)
|
||||
)
|
||||
},
|
||||
},
|
||||
|
||||
@@ -236,11 +236,11 @@ export default {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
}
|
||||
>>>.el-collapse-item__header{
|
||||
/deep/.el-collapse-item__header{
|
||||
background:#e5ecef;
|
||||
padding-left:10px;
|
||||
}
|
||||
>>>.el-collapse-item__content{
|
||||
/deep/.el-collapse-item__content{
|
||||
padding: 10px;
|
||||
}
|
||||
.bottom{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<box-content v-loading="loading" style="height: 100%;background: #fff;padding: 10px;box-sizing: border-box">
|
||||
<box-content v-loading="loading" class="medical-audit-setting">
|
||||
<!-- 搜索框 -->
|
||||
<el-tabs v-model="trialReadingCriterionId" type="border-card">
|
||||
<el-tab-pane v-for="i of trialCriterionList" :key="i.TrialReadingCriterionId" :label="i.TrialReadingCriterionName" :name="i.TrialReadingCriterionId">
|
||||
@@ -130,7 +130,7 @@
|
||||
</div>
|
||||
<el-table
|
||||
v-if="isShow"
|
||||
v-adaptive="{bottomOffset:85}"
|
||||
v-adaptive="{bottomOffset:65}"
|
||||
:data="list"
|
||||
stripe
|
||||
height="100"
|
||||
@@ -556,3 +556,17 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.medical-audit-setting {
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
padding: 0px 10px;
|
||||
box-sizing: border-box;
|
||||
/deep/.search {
|
||||
padding: 0px !important;
|
||||
}
|
||||
/deep/ .el-tabs--border-card>.el-tabs__content {
|
||||
padding: 0px 15px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -353,7 +353,7 @@
|
||||
<!-- 修改参与者人员状态 -->
|
||||
<base-model v-if="status_model.visible" :config="status_model">
|
||||
<template slot="dialog-body">
|
||||
<span>{{ $t('trials:internalStaff:table:status') }}:</span>
|
||||
<span style="margin-right: 5px;">{{ $t('trials:internalStaff:table:status') }}:</span>
|
||||
<el-radio-group v-model="staffStatus">
|
||||
<el-radio
|
||||
v-for="item of $d.IsUserExitTrial"
|
||||
|
||||
@@ -103,7 +103,29 @@
|
||||
stripe
|
||||
@sort-change="handleSortByColumn"
|
||||
>
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column type="index" width="60">
|
||||
<template slot-scope="scope">
|
||||
<span
|
||||
style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
"
|
||||
>
|
||||
<el-tooltip
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="$t('trials:staff:tip:userDisabled')"
|
||||
placement="top"
|
||||
style="margin-right: 3px"
|
||||
v-if="!scope.row.Status"
|
||||
>
|
||||
<i v-if="!scope.row.Status" class="el-icon-warning icon-i"></i>
|
||||
</el-tooltip>
|
||||
<span>{{ scope.$index + 1 }}</span>
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 姓名 -->
|
||||
<el-table-column
|
||||
prop="FullName"
|
||||
@@ -126,23 +148,64 @@
|
||||
:label="$t('trials:staff:table:userType')"
|
||||
show-overflow-tooltip
|
||||
sortable
|
||||
width="140"
|
||||
width="160"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
v-if="
|
||||
Array.isArray(scope.row.TrialUserRoleList) &&
|
||||
scope.row.TrialUserRoleList.length > 0
|
||||
scope.row.TrialUserRoleList.length > 0 &&
|
||||
hasPermi(['trials:trials-panel:setting:personnel-manage:status'])
|
||||
"
|
||||
type="text"
|
||||
@click.stop="openRoleList(scope.row)"
|
||||
>
|
||||
<el-tooltip
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="$t('trials:staff:tip:userTypeDisabled')"
|
||||
placement="top"
|
||||
style="margin-right: 2px"
|
||||
v-if="
|
||||
scope.row.TrialUserRoleList.some(
|
||||
(item) => item.IsDeleted || item.IsUserRoleDisabled
|
||||
)
|
||||
"
|
||||
>
|
||||
<i class="el-icon-warning icon-i"></i>
|
||||
</el-tooltip>
|
||||
<span>{{
|
||||
scope.row.TrialUserRoleList.map(
|
||||
(item) => item.UserTypeShortName
|
||||
).join(',')
|
||||
).join(', ')
|
||||
}}</span>
|
||||
</el-button>
|
||||
<div
|
||||
v-else-if="
|
||||
Array.isArray(scope.row.TrialUserRoleList) &&
|
||||
scope.row.TrialUserRoleList.length > 0
|
||||
"
|
||||
>
|
||||
<el-tooltip
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="$t('trials:staff:tip:userTypeDisabled')"
|
||||
placement="top"
|
||||
style="margin-right: 2px"
|
||||
v-if="
|
||||
scope.row.TrialUserRoleList.some(
|
||||
(item) => item.IsDeleted || item.IsUserRoleDisabled
|
||||
)
|
||||
"
|
||||
>
|
||||
<i class="el-icon-warning icon-i"></i>
|
||||
</el-tooltip>
|
||||
<span>{{
|
||||
scope.row.TrialUserRoleList.map(
|
||||
(item) => item.UserTypeShortName
|
||||
).join(', ')
|
||||
}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 联系电话 -->
|
||||
@@ -247,10 +310,20 @@
|
||||
:title="$t('trials:staff:action:status')"
|
||||
icon="el-icon-edit-outline"
|
||||
:disabled="
|
||||
hasPermi(['role:pm']) && scope.row.UserTypeEnum * 1 === 1
|
||||
!!scope.row.TrialUserRoleList.find(
|
||||
(item) => item.UserTypeEnum === 1
|
||||
)
|
||||
"
|
||||
@click="handleStatus(scope.row)"
|
||||
/>
|
||||
<!---v-if="!scope.row.UserName"-->
|
||||
<el-button
|
||||
v-if="!scope.row.UserName"
|
||||
circle
|
||||
:title="$t('trials:staff:action:email')"
|
||||
icon="el-icon-message"
|
||||
@click="handleSendEmail(scope.row)"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -357,7 +430,32 @@
|
||||
<base-model v-if="role_model.visible" :config="role_model">
|
||||
<template slot="dialog-body">
|
||||
<el-table :data="roleList" style="width: 100%" max-height="300px">
|
||||
<el-table-column type="index" width="40" />
|
||||
<el-table-column type="index" width="60">
|
||||
<template slot-scope="scope">
|
||||
<span
|
||||
style="
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
"
|
||||
>
|
||||
<el-tooltip
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="$t('trials:staff:tip:userTypeSysDisabled')"
|
||||
placement="top"
|
||||
style="margin-right: 3px"
|
||||
v-if="scope.row.IsUserRoleDisabled"
|
||||
>
|
||||
<i
|
||||
v-if="scope.row.IsUserRoleDisabled"
|
||||
class="el-icon-warning icon-i"
|
||||
></i>
|
||||
</el-tooltip>
|
||||
<span>{{ scope.$index + 1 }}</span>
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="UserTypeShortName"
|
||||
:label="
|
||||
@@ -375,7 +473,7 @@
|
||||
"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span> {{ $fd('IsEnable', !scope.row.IsDeleted) }}</span>
|
||||
<span> {{ $fd('IsDisable', scope.row.IsDeleted) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -388,8 +486,8 @@
|
||||
min-width="120px"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span v-if="!scope.row.IsDeleted">
|
||||
{{ scope.row.UpdateTime }}
|
||||
<span>
|
||||
{{ scope.row.CreateTime }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -408,23 +506,26 @@
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('common:action:action')" width="120px">
|
||||
<el-table-column
|
||||
:label="$t('common:action:action')"
|
||||
min-width="120px"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
:disabled="scope.row.IsDeleted"
|
||||
:disabled="scope.row.IsDeleted || scope.row.UserTypeEnum === 1"
|
||||
@click.stop="changeRoleStatus(scope.row, true)"
|
||||
>
|
||||
{{ $fd('IsEnable', false) }}
|
||||
{{ $fd('IsDisable', true) }}
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
:disabled="!scope.row.IsDeleted"
|
||||
:disabled="!scope.row.IsDeleted || scope.row.UserTypeEnum === 1"
|
||||
@click.stop="changeRoleStatus(scope.row, false)"
|
||||
>
|
||||
{{ $fd('IsEnable', true) }}
|
||||
{{ $fd('IsDisable', false) }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -440,6 +541,7 @@ import {
|
||||
updateTrialUser,
|
||||
trialUserListExport,
|
||||
updateTrialUserRole,
|
||||
trialUserSendJoinEmail,
|
||||
} from '@/api/trials'
|
||||
import Pagination from '@/components/Pagination'
|
||||
import StaffForm from './staffForm'
|
||||
@@ -520,12 +622,39 @@ export default {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
// 发送邮件
|
||||
async handleSendEmail(row) {
|
||||
try {
|
||||
let confirm = await this.$confirm(
|
||||
this.$t('trials:staff:confirm:sendEmail')
|
||||
)
|
||||
if (!confirm) return false
|
||||
let data = {
|
||||
TrialId: this.$route.query.trialId,
|
||||
IdentityUserId: row.IdentityUserId,
|
||||
BaseUrl: `${location.protocol}//${location.host}/login`,
|
||||
RouteUrl: `${location.protocol}//${location.host}/email-recompose`,
|
||||
}
|
||||
this.listLoading = true
|
||||
let res = await trialUserSendJoinEmail(data)
|
||||
this.listLoading = false
|
||||
if (res.IsSuccess) {
|
||||
this.$message.success(
|
||||
this.$t('trials:staff:message:sendEmailSuccess')
|
||||
)
|
||||
this.getList()
|
||||
}
|
||||
} catch (err) {
|
||||
this.listLoading = false
|
||||
console.log(err)
|
||||
}
|
||||
},
|
||||
// 修改角色状态
|
||||
async changeRoleStatus(row, status) {
|
||||
try {
|
||||
let message = this.$t('trials:staff:comfirm:changeRoleStatus').replace(
|
||||
'xxx',
|
||||
this.$fd('IsEnable', !status)
|
||||
this.$fd('IsDisable', status)
|
||||
)
|
||||
let comfirm = await this.$confirm(message)
|
||||
if (!comfirm) return false
|
||||
@@ -684,4 +813,8 @@ export default {
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
.icon-i {
|
||||
color: #e6a23c;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
||||
+226
-104
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<el-container class="participant-container">
|
||||
<el-header style="height:50px">
|
||||
<el-header style="height: 50px">
|
||||
<div class="filter-container">
|
||||
<!-- 姓名 -->
|
||||
<span>{{ $t('trials:externalStaff:table:name') }}:</span>
|
||||
@@ -12,23 +12,55 @@
|
||||
<span>{{ $t('trials:externalStaff:table:phone') }}:</span>
|
||||
<el-input v-model="listQuery.Phone" size="mini" class="mr" clearable />
|
||||
<!-- 查询 -->
|
||||
<el-button type="primary" size="mini" icon="el-icon-search" @click="handleSearch">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
icon="el-icon-search"
|
||||
@click="handleSearch"
|
||||
>
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
<!-- 重置 -->
|
||||
<el-button size="mini" type="primary" icon="el-icon-refresh-left" @click="handleReset">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin-right: 10px"
|
||||
icon="el-icon-refresh-left"
|
||||
@click="handleReset"
|
||||
>
|
||||
{{ $t('common:button:reset') }}
|
||||
</el-button>
|
||||
<!-- 权限配置 -->
|
||||
<el-button type="primary" size="mini" style="margin-left:auto" :loading="assignLoadStatus" @click="openPermission">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
style="margin-left: auto"
|
||||
:loading="assignLoadStatus"
|
||||
@click="openPermission"
|
||||
>
|
||||
{{ $t('trials:staff:button:permissionConfiguration') }}
|
||||
</el-button>
|
||||
<!-- 发送邮件 -->
|
||||
<el-button type="primary" size="mini" style="margin-left:10px" :disabled="selectArr.length === 0" :loading="assignLoadStatus" icon="el-icon-message" @click="sendEmail">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
style="margin-left: 10px"
|
||||
:disabled="selectArr.length === 0"
|
||||
:loading="assignLoadStatus"
|
||||
icon="el-icon-message"
|
||||
@click="sendEmail"
|
||||
>
|
||||
{{ $t('trials:staff:button:sendEmail') }}
|
||||
</el-button>
|
||||
<!-- 添加 -->
|
||||
<el-button type="primary" icon="el-icon-plus" size="mini" style="margin-left:10px" :loading="assignLoadStatus" @click="handleAdd">
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
style="margin-left: 10px"
|
||||
:loading="assignLoadStatus"
|
||||
@click="handleAdd"
|
||||
>
|
||||
{{ $t('trials:staff:button:addExternalStaff') }}
|
||||
</el-button>
|
||||
</div>
|
||||
@@ -57,7 +89,9 @@
|
||||
sortable="custom"
|
||||
min-width="100"
|
||||
>
|
||||
<template slot-scope="scope">{{ scope.row.LastName + ' / ' + scope.row.FirstName }}</template>
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.LastName + ' / ' + scope.row.FirstName
|
||||
}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="UserType"
|
||||
@@ -67,7 +101,13 @@
|
||||
min-width="120"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ userTypeOptions.length > 0 ? userTypeOptions.find((v) => { return v.Id == scope.row.UserTypeId }).UserTypeShortName : '' }}
|
||||
{{
|
||||
userTypeOptions.length > 0
|
||||
? userTypeOptions.find((v) => {
|
||||
return v.Id == scope.row.UserTypeId
|
||||
}).UserTypeShortName
|
||||
: ''
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -100,9 +140,15 @@
|
||||
sortable="custom"
|
||||
min-width="120"
|
||||
>
|
||||
<template slot-scope="scope">{{ $fd('IsJoin', scope.row.IsJoin) }}</template>
|
||||
<template slot-scope="scope">{{
|
||||
$fd('IsJoin', scope.row.IsJoin)
|
||||
}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('common:action:action')" fixed="right" min-width="150">
|
||||
<el-table-column
|
||||
:label="$t('common:action:action')"
|
||||
fixed="right"
|
||||
min-width="150"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
circle
|
||||
@@ -116,23 +162,57 @@
|
||||
</el-table>
|
||||
</div>
|
||||
</el-main>
|
||||
<StaffExternalAdd ref="StaffExternalAdd" :user-type-options="userTypeOptions" @getList="refeshList" />
|
||||
<StaffExternalAdd
|
||||
ref="StaffExternalAdd"
|
||||
:user-type-options="userTypeOptions"
|
||||
@getList="refeshList"
|
||||
/>
|
||||
<base-model v-if="model_config.visible" :config="model_config">
|
||||
<template slot="dialog-body">
|
||||
<el-form :model="permission" :rules="permissionRole" ref="permissionForm" label-width="140px" class="demo-ruleForm">
|
||||
<el-form-item :label="$t('trials:externalStaff:form:IsSPMJoinReReadingApproval')" prop="IsSPMJoinReReadingApproval">
|
||||
<el-form
|
||||
:model="permission"
|
||||
:rules="permissionRole"
|
||||
ref="permissionForm"
|
||||
label-width="230px"
|
||||
class="demo-ruleForm"
|
||||
>
|
||||
<el-form-item
|
||||
:label="$t('trials:externalStaff:form:IsSPMJoinReReadingApproval')"
|
||||
prop="IsSPMJoinReReadingApproval"
|
||||
>
|
||||
<el-radio-group v-model="permission.IsSPMJoinReReadingApproval">
|
||||
<el-radio v-for="item in $d.YesOrNo" :key="item.id" :label="item.value">{{ item.label }}</el-radio>
|
||||
<el-radio
|
||||
v-for="item in $d.YesOrNo"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
>{{ item.label }}</el-radio
|
||||
>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('trials:externalStaff:form:IsSPMJoinReviewerSelect')" prop="IsSPMJoinReviewerSelect">
|
||||
<el-form-item
|
||||
:label="$t('trials:externalStaff:form:IsSPMJoinReviewerSelect')"
|
||||
prop="IsSPMJoinReviewerSelect"
|
||||
>
|
||||
<el-radio-group v-model="permission.IsSPMJoinReviewerSelect">
|
||||
<el-radio v-for="item in $d.YesOrNo" :key="item.id" :label="item.value">{{ item.label }}</el-radio>
|
||||
<el-radio
|
||||
v-for="item in $d.YesOrNo"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
>{{ item.label }}</el-radio
|
||||
>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('trials:externalStaff:form:IsSPMJoinSiteSurvey')" prop="IsSPMJoinSiteSurvey">
|
||||
<el-form-item
|
||||
:label="$t('trials:externalStaff:form:IsSPMJoinSiteSurvey')"
|
||||
prop="IsSPMJoinSiteSurvey"
|
||||
>
|
||||
<el-radio-group v-model="permission.IsSPMJoinSiteSurvey">
|
||||
<el-radio v-for="item in $d.YesOrNo" :key="item.id" :label="item.value">{{ item.label }}</el-radio>
|
||||
<el-radio
|
||||
v-for="item in $d.YesOrNo"
|
||||
:key="item.id"
|
||||
:label="item.value"
|
||||
>{{ item.label }}</el-radio
|
||||
>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -159,7 +239,14 @@
|
||||
</el-container>
|
||||
</template>
|
||||
<script>
|
||||
import { getTrialExternalUserList, addTrialUsers, getUserTypeList, sendExternalUserJoinEmail, getTrialConfigInfo, configTrialSPMInfo } from '@/api/trials'
|
||||
import {
|
||||
getTrialExternalUserList,
|
||||
addTrialUsers,
|
||||
getUserTypeList,
|
||||
sendExternalUserJoinEmail,
|
||||
getTrialConfigInfo,
|
||||
configTrialSPMInfo,
|
||||
} from '@/api/trials'
|
||||
import { deleteTrialExternalUser } from '@/api/trials/setting.js'
|
||||
import StaffExternalAdd from './staffExternalAdd'
|
||||
import BaseModel from '@/components/BaseModel'
|
||||
@@ -167,11 +254,11 @@ const getListQueryDefault = () => {
|
||||
return {
|
||||
Phone: '',
|
||||
Email: '',
|
||||
Name: ''
|
||||
Name: '',
|
||||
}
|
||||
}
|
||||
export default {
|
||||
components: { StaffExternalAdd,BaseModel },
|
||||
components: { StaffExternalAdd, BaseModel },
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
@@ -181,17 +268,26 @@ export default {
|
||||
assignLoadStatus: false,
|
||||
// isAdmin: JSON.parse(zzSessionStorage.getItem('IsAdmin')),
|
||||
userTypeOptions: [],
|
||||
stateList: ['WaitSent', 'HasSend', 'UserConfirmed', 'UserReject', 'OverTime'],
|
||||
stateList: [
|
||||
'WaitSent',
|
||||
'HasSend',
|
||||
'UserConfirmed',
|
||||
'UserReject',
|
||||
'OverTime',
|
||||
],
|
||||
trialId: '',
|
||||
model_config:{
|
||||
visible: false, title: this.$t('trials:staff:dialogTitle:permissionConfiguration'), width: '500px', appendToBody: true
|
||||
model_config: {
|
||||
visible: false,
|
||||
title: this.$t('trials:staff:dialogTitle:permissionConfiguration'),
|
||||
width: '500px',
|
||||
appendToBody: true,
|
||||
},
|
||||
permission:{
|
||||
permission: {
|
||||
IsSPMJoinReReadingApproval: false,
|
||||
IsSPMJoinReviewerSelect: false,
|
||||
IsSPMJoinSiteSurvey: false,
|
||||
},
|
||||
permissionRole:{}
|
||||
permissionRole: {},
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -201,42 +297,42 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
// 获取权限配置
|
||||
async getPermission(){
|
||||
try{
|
||||
let res = await getTrialConfigInfo(this.trialId);
|
||||
if(res.IsSuccess){
|
||||
Object.keys(this.permission).forEach(key=>{
|
||||
async getPermission() {
|
||||
try {
|
||||
let res = await getTrialConfigInfo(this.trialId)
|
||||
if (res.IsSuccess) {
|
||||
Object.keys(this.permission).forEach((key) => {
|
||||
this.permission[key] = res.Result[key]
|
||||
})
|
||||
}
|
||||
}catch(err){
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
},
|
||||
// 打开权限配置弹窗
|
||||
async openPermission(){
|
||||
try{
|
||||
await this.getPermission();
|
||||
this.model_config.visible = true;
|
||||
}catch(err){
|
||||
console.log(err);
|
||||
async openPermission() {
|
||||
try {
|
||||
await this.getPermission()
|
||||
this.model_config.visible = true
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
}
|
||||
},
|
||||
// 保存权限配置
|
||||
async savePermission(){
|
||||
try{
|
||||
let validate =await this.$refs.permissionForm.validate();
|
||||
if(!validate) return false;
|
||||
this.assignLoadStatus = true;
|
||||
let data = Object.assign({ Id: this.trialId },this.permission)
|
||||
let res = await configTrialSPMInfo(data);
|
||||
this.assignLoadStatus = false;
|
||||
if(res.IsSuccess){
|
||||
this.model_config.visible = false;
|
||||
this.$message.success(this.$t("common:message:updatedSuccessfully"))
|
||||
async savePermission() {
|
||||
try {
|
||||
let validate = await this.$refs.permissionForm.validate()
|
||||
if (!validate) return false
|
||||
this.assignLoadStatus = true
|
||||
let data = Object.assign({ Id: this.trialId }, this.permission)
|
||||
let res = await configTrialSPMInfo(data)
|
||||
this.assignLoadStatus = false
|
||||
if (res.IsSuccess) {
|
||||
this.model_config.visible = false
|
||||
this.$message.success(this.$t('common:message:updatedSuccessfully'))
|
||||
}
|
||||
}catch(err){
|
||||
this.assignLoadStatus = false;
|
||||
} catch (err) {
|
||||
this.assignLoadStatus = false
|
||||
console.log(err)
|
||||
}
|
||||
},
|
||||
@@ -249,83 +345,108 @@ export default {
|
||||
},
|
||||
handleEdit(row) {
|
||||
this.$nextTick(() => {
|
||||
this.$refs['StaffExternalAdd'].openDialog(this.$t('trials:externalStaff:dialogTitle:edit'), row)
|
||||
this.$refs['StaffExternalAdd'].openDialog(
|
||||
this.$t('trials:externalStaff:dialogTitle:edit'),
|
||||
row
|
||||
)
|
||||
})
|
||||
},
|
||||
handleAdd() {
|
||||
this.$nextTick(() => {
|
||||
this.$refs['StaffExternalAdd'].openDialog(this.$t('trials:externalStaff:dialogTitle:add'), {})
|
||||
this.$refs['StaffExternalAdd'].openDialog(
|
||||
this.$t('trials:externalStaff:dialogTitle:add'),
|
||||
{}
|
||||
)
|
||||
})
|
||||
},
|
||||
deleteTrialExternalUser(row) {
|
||||
this.$confirm(this.$t('trials:externalStaff:message:delete'), {
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true
|
||||
distinguishCancelAndClose: true,
|
||||
}).then(() => {
|
||||
this.loading = true
|
||||
deleteTrialExternalUser(row.Id, row.IsSystemUser, row.SystemUserId)
|
||||
.then((res) => {
|
||||
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||
this.getList()
|
||||
this.loading = false
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false
|
||||
})
|
||||
})
|
||||
.then(() => {
|
||||
this.loading = true
|
||||
deleteTrialExternalUser(row.Id, row.IsSystemUser, row.SystemUserId)
|
||||
.then(res => {
|
||||
this.$message.success(this.$t('common:message:deletedSuccessfully'))
|
||||
this.getList()
|
||||
this.loading = false
|
||||
}).catch(() => { this.loading = false })
|
||||
})
|
||||
},
|
||||
sendEmail() {
|
||||
const loading = this.$loading({
|
||||
target: document.querySelector('.participant-table-list'),
|
||||
fullscreen: false,
|
||||
lock: true
|
||||
lock: true,
|
||||
})
|
||||
// var BaseUrl = document.domain + `/#/login`
|
||||
var BaseUrl = `${location.protocol}//${location.host}/login`
|
||||
var joinUrl = `${location.protocol}//${location.host}/email-recompose`
|
||||
var sendEmailUserArr = this.selectArr.map((v) => { return { Id: v.Id, Email: v.Email, IsSystemUser: v.IsSystemUser, SystemUserId: v.SystemUserId } })
|
||||
var sendEmailUserArr = this.selectArr.map((v) => {
|
||||
return {
|
||||
Id: v.Id,
|
||||
Email: v.Email,
|
||||
IsSystemUser: v.IsSystemUser,
|
||||
SystemUserId: v.SystemUserId,
|
||||
UserTypeId: v.UserTypeId,
|
||||
}
|
||||
})
|
||||
sendExternalUserJoinEmail({
|
||||
TrialId: this.trialId,
|
||||
SendUsers: sendEmailUserArr,
|
||||
BaseUrl: BaseUrl,
|
||||
RouteUrl: joinUrl
|
||||
}).then(() => {
|
||||
loading.close()
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
this.getList()
|
||||
this.$emit('getList')
|
||||
}).catch(() => { loading.close() })
|
||||
RouteUrl: joinUrl,
|
||||
})
|
||||
.then(() => {
|
||||
loading.close()
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
this.getList()
|
||||
this.$emit('getList')
|
||||
})
|
||||
.catch(() => {
|
||||
loading.close()
|
||||
})
|
||||
},
|
||||
getList() {
|
||||
const loading = this.$loading({
|
||||
target: document.querySelector('.participant-table-list'),
|
||||
fullscreen: false,
|
||||
lock: true
|
||||
lock: true,
|
||||
})
|
||||
this.listQuery.TrialId = this.trialId
|
||||
getTrialExternalUserList(this.listQuery).then(res => {
|
||||
loading.close()
|
||||
this.list = res.Result
|
||||
}).catch(() => { loading.close() })
|
||||
getTrialExternalUserList(this.listQuery)
|
||||
.then((res) => {
|
||||
loading.close()
|
||||
this.list = res.Result
|
||||
})
|
||||
.catch(() => {
|
||||
loading.close()
|
||||
})
|
||||
},
|
||||
handleAssign() {
|
||||
this.$confirm(this.$t('trials:externalStaff:message:add'), {
|
||||
type: 'warning',
|
||||
distinguishCancelAndClose: true
|
||||
distinguishCancelAndClose: true,
|
||||
}).then(() => {
|
||||
const loading = this.$loading({
|
||||
target: document.querySelector('.participant-table-list'),
|
||||
fullscreen: false,
|
||||
lock: true
|
||||
lock: true,
|
||||
})
|
||||
this.assignLoadStatus = true
|
||||
addTrialUsers(this.selectArr)
|
||||
.then(res => {
|
||||
.then((res) => {
|
||||
this.assignLoadStatus = false
|
||||
loading.close()
|
||||
if (res.IsSuccess) {
|
||||
this.$emit('closeDialog')
|
||||
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||
}
|
||||
}).catch(() => {
|
||||
})
|
||||
.catch(() => {
|
||||
loading.close()
|
||||
this.assignLoadStatus = false
|
||||
})
|
||||
@@ -360,35 +481,36 @@ export default {
|
||||
}
|
||||
},
|
||||
getUserType() {
|
||||
getUserTypeList(1).then(res => {
|
||||
getUserTypeList(1).then((res) => {
|
||||
this.userTypeOptions = res.Result
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.participant-container{
|
||||
height: 100%;
|
||||
.el-header{
|
||||
.filter-container{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
span{
|
||||
font-size:13px;
|
||||
margin-right:5px;
|
||||
}
|
||||
.mr{
|
||||
margin-right: 5px;
|
||||
width: 120px;
|
||||
}
|
||||
.participant-container {
|
||||
height: 100%;
|
||||
.el-header {
|
||||
padding-right: 5px;
|
||||
.filter-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
span {
|
||||
font-size: 13px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.mr {
|
||||
margin-right: 5px;
|
||||
width: 120px;
|
||||
}
|
||||
}
|
||||
.el-main{
|
||||
padding: 0px;
|
||||
}
|
||||
.el-footer{
|
||||
padding: 0 20px;
|
||||
}
|
||||
}
|
||||
.el-main {
|
||||
padding: 0px;
|
||||
}
|
||||
.el-footer {
|
||||
padding: 0 20px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -196,6 +196,7 @@ export default {
|
||||
lock: true,
|
||||
})
|
||||
this.listQuery.TrialId = this.trialId
|
||||
this.listQuery.IsUserRoleDisabled = false
|
||||
getTrialUserScreeningList(this.listQuery)
|
||||
.then((res) => {
|
||||
loading.close()
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="search">
|
||||
<el-form :inline="true" class="base-search-form">
|
||||
<!-- 审核问题 -->
|
||||
<el-form-item :label="$t('trials:qcCfg:table:questionName')" style="margin-top: 10px">
|
||||
<el-form-item :label="$t('trials:qcCfg:table:questionName')">
|
||||
<el-input v-model="searchData.QuestionName" clearable style="width:120px;" />
|
||||
</el-form-item>
|
||||
<!-- 语言类型 -->
|
||||
@@ -26,22 +26,22 @@
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- 类型 -->
|
||||
<el-form-item :label="$t('trials:qcCfg:table:type')" style="margin-top: 10px">
|
||||
<el-form-item :label="$t('trials:qcCfg:table:type')">
|
||||
<el-select v-model="searchData.Type" clearable style="width:120px;">
|
||||
<el-option v-for="item of $d.QcType" :key="item.label" :value="item.value" :label="item.label" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('trials:qcCfg:table:isEnable')" style="margin-top: 10px">
|
||||
<el-form-item :label="$t('trials:qcCfg:table:isEnable')">
|
||||
<el-select v-model="searchData.IsEnable" clearable style="width:120px;">
|
||||
<el-option v-for="item of $d.YesOrNo" :key="item.label" :value="item.value" :label="item.label" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('trials:qcCfg:table:isRequired')" style="margin-top: 10px">
|
||||
<el-form-item :label="$t('trials:qcCfg:table:isRequired')">
|
||||
<el-select v-model="searchData.IsRequired" clearable style="width:120px;">
|
||||
<el-option v-for="item of $d.YesOrNo" :key="`IsRequired${item.label}`" :value="item.value" :label="item.label" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item style="margin-top: 10px">
|
||||
<el-form-item >
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleSearch">
|
||||
{{ $t('common:button:search') }}
|
||||
</el-button>
|
||||
|
||||
@@ -72,12 +72,10 @@
|
||||
"
|
||||
:label="item.value"
|
||||
v-if="
|
||||
(JudgyInfo.ArbitrationRule === 1 &&
|
||||
(item.value < 4 ||
|
||||
(item.value > 3 &&
|
||||
(QuestionList[index].Type === 'number' ||
|
||||
QuestionList[index].Type === 'calculation')))) ||
|
||||
(JudgyInfo.ArbitrationRule === 2 && item.value < 4)
|
||||
item.value < 4 ||
|
||||
(item.value > 3 &&
|
||||
(QuestionList[index].Type === 'number' ||
|
||||
QuestionList[index].Type === 'calculation'))
|
||||
"
|
||||
>
|
||||
{{ item.label }}
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<!-- 导出标识 -->
|
||||
<el-form-item
|
||||
<!-- <el-form-item
|
||||
:label="$t('trials:readingUnit:qsList:title:ExportIdentification')" prop="ExportIdentification"
|
||||
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
|
||||
>
|
||||
@@ -251,9 +251,12 @@
|
||||
>{{ item.label }}
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
<!-- 导出结果 -->
|
||||
<el-form-item :label="$t('trials:readingUnit:qsList:title:ExportResult')" v-if="form.ExportIdentification" prop="ExportResult">
|
||||
<el-form-item
|
||||
:label="$t('trials:readingUnit:qsList:title:ExportResult')"
|
||||
v-if="form.Type === 'radio' || form.Type === 'select' || form.Type === 'input' || form.Type === 'textarea' || form.Type === 'number' || form.Type === 'class' || form.Type === 'calculation'"
|
||||
>
|
||||
<el-select v-model="form.ExportResult" multiple>
|
||||
<el-option
|
||||
v-for="item in $d.ExportResult"
|
||||
@@ -1064,7 +1067,7 @@ export default {
|
||||
ClassifyAlgorithms: null,
|
||||
LimitShow: 0,
|
||||
HighlightAnswerList: [],
|
||||
ExportIdentification: 0,
|
||||
// ExportIdentification: 0,
|
||||
ExportResult: [],
|
||||
ClassifyType: null,
|
||||
ClassifyEditType: null,
|
||||
@@ -1093,12 +1096,12 @@ export default {
|
||||
}],
|
||||
GroupName: [{required: true, message: this.$t('common:ruleMessage:specify'), trigger: ['blur', 'change']},
|
||||
{max: 50, message: `${this.$t('common:ruleMessage:maxLength')} 50`}],
|
||||
ExportIdentification: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
|
||||
],
|
||||
ExportResult: [
|
||||
{ required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
|
||||
]
|
||||
// ExportIdentification: [
|
||||
// { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
|
||||
// ],
|
||||
// ExportResult: [
|
||||
// { required: true, message: this.$t('common:ruleMessage:select'), trigger: 'blur' },
|
||||
// ]
|
||||
},
|
||||
loading: false,
|
||||
dicList: [],
|
||||
@@ -1543,7 +1546,7 @@ export default {
|
||||
form.ClassifyQuestionId = null
|
||||
form.ClassifyAlgorithms = null
|
||||
form.HighlightAnswerList = []
|
||||
form.ExportIdentification = 0
|
||||
// form.ExportIdentification = 0
|
||||
form.ExportResult = []
|
||||
form.ClassifyType = null
|
||||
form.ClassifyShowType = null
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user