Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing Details

uat_us
caiyiling 2025-01-13 15:50:18 +08:00
commit 65a9dd3cf1
4 changed files with 83 additions and 14 deletions

View File

@ -23,12 +23,38 @@
> >
i18n i18n
</div> </div>
<el-drawer title="国际化" :visible.sync="drawer" direction="rtl" size="80%"> <el-drawer
<div style="width: 320px"> :title="$t('il8n:title')"
<el-form label-width="100px" @submit.native.prevent size="small"> :visible.sync="drawer"
<el-form-item label="关键字"> 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-input v-model="key" @input="keyChange" />
</el-form-item> </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> </el-form>
</div> </div>
<el-table <el-table
@ -39,7 +65,7 @@
> >
<el-table-column <el-table-column
prop="Code" prop="Code"
label="标签" :label="$t('il8n:table:label')"
width="300" width="300"
show-overflow-tooltip show-overflow-tooltip
> >
@ -53,7 +79,7 @@
<!-- {{scope.row.Description}}--> <!-- {{scope.row.Description}}-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column prop="Value" label="英文"> <el-table-column prop="Value" :label="$t('il8n:table:en')">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
v-model="scope.row.Value" v-model="scope.row.Value"
@ -66,7 +92,7 @@
></el-input> ></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="ValueCN" label="中文"> <el-table-column prop="ValueCN" :label="$t('il8n:table:cn')">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
v-model="scope.row.ValueCN" v-model="scope.row.ValueCN"
@ -79,6 +105,27 @@
></el-input> ></el-input>
</template> </template>
</el-table-column> </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> </el-table>
<div style="text-align: right; padding-top: 10px; padding-right: 10px"> <div style="text-align: right; padding-top: 10px; padding-right: 10px">
<el-button size="mini" @click="drawer = false">取消 </el-button> <el-button size="mini" @click="drawer = false">取消 </el-button>
@ -111,6 +158,7 @@ export default {
key: null, key: null,
arr: [], arr: [],
il8nExternal: false, il8nExternal: false,
State: null,
} }
}, },
mounted() { mounted() {
@ -147,6 +195,11 @@ export default {
// }, // },
// }, // },
methods: { methods: {
handleStateChange() {
this.tableData.forEach((item) => {
item.State = this.State
})
},
changeValue(target, attr, e) { changeValue(target, attr, e) {
this.$set(target, attr, e) this.$set(target, attr, e)
}, },
@ -212,10 +265,11 @@ export default {
Module: item.Module, Module: item.Module,
Value: item.Value, Value: item.Value,
ValueCN: item.ValueCN, ValueCN: item.ValueCN,
State: item.State,
} }
}) })
this.tableData = Object.assign([], tableData) this.tableData = Object.assign([], tableData)
console.log(tableData) this.arr = Object.assign([], tableData)
return false return false
} else { } else {
tableData = this.$tl.map((v) => { tableData = this.$tl.map((v) => {

View File

@ -159,7 +159,6 @@
style="width: 100%" style="width: 100%"
v-model="form.Hospital" v-model="form.Hospital"
:fetch-suggestions="querySearch" :fetch-suggestions="querySearch"
@select="handleSelect"
placeholder="" placeholder=""
></el-autocomplete> ></el-autocomplete>
</el-form-item> </el-form-item>

View File

@ -757,11 +757,12 @@ export default {
if (this.reviewerId) { if (this.reviewerId) {
this.form.Id = this.reviewerId this.form.Id = this.reviewerId
} }
// console.log(this.form)
let data = Object.assign({}, this.form) let data = Object.assign({}, this.form)
if (!this.hospitalList.find((item) => item.Id === data.HospitalId)) { // if (!this.hospitalList.find((item) => item.Id === data.HospitalId)) {
data.HospitalName = data.HospitalId // data.HospitalName = data.HospitalId
data.HospitalId = null // data.HospitalId = null
} // }
this.loading = true this.loading = true
let res = await addOrUpdateDoctorBasicInfoAndEmployment(data) let res = await addOrUpdateDoctorBasicInfoAndEmployment(data)
this.loading = false this.loading = false

View File

@ -27,11 +27,26 @@
<!-- 选择自定义slot --> <!-- 选择自定义slot -->
<template slot="tip-slot" slot-scope="{ scope }"> <template slot="tip-slot" slot-scope="{ scope }">
<i <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" class="el-icon-warning"
style="color: #f56c6c" style="color: #f56c6c"
:title="$t('system:userlist:tip:overTime')" :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>
<template slot="genderSlot" slot-scope="{ scope }"> <template slot="genderSlot" slot-scope="{ scope }">
{{ scope.row.Sex ? 'Male' : 'Female' }} {{ scope.row.Sex ? 'Male' : 'Female' }}