Lugano 2014全局更新类型,配置时数据被清空
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
341a707c80
commit
7238b12424
|
|
@ -8,13 +8,8 @@
|
|||
{{ $fd('YesOrNo', IsMustGlobalReading) }}
|
||||
</el-form-item>
|
||||
<!-- 配置 -->
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="position: absolute;right: 10px;top: 15px"
|
||||
v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)"
|
||||
@click="handleAdd(1)"
|
||||
>
|
||||
<el-button size="mini" type="primary" style="position: absolute;right: 10px;top: 15px"
|
||||
v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)" @click="handleAdd(1)">
|
||||
{{ $t('dictionary:template:globalConfig:config') }}
|
||||
</el-button>
|
||||
</el-form>
|
||||
|
|
@ -22,54 +17,29 @@
|
|||
<!-- 名称 -->
|
||||
<el-divider content-position="left">{{ $t('dictionary:template:globalConfig:name') }}</el-divider>
|
||||
<!-- 配置 -->
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="position: absolute;right: 10px;top: 15px"
|
||||
v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)"
|
||||
@click="handleAdd(2)"
|
||||
>
|
||||
<el-button size="mini" type="primary" style="position: absolute;right: 10px;top: 15px"
|
||||
v-if="Object.keys(data).length > 0 && !(data.IsCompleteConfig || data.IsBeUsed)" @click="handleAdd(2)">
|
||||
{{ $t('dictionary:template:globalConfig:config') }}
|
||||
</el-button>
|
||||
<!-- 评估更新类型 -->
|
||||
<el-form-item :label="$t('dictionary:template:globalConfig:updateType')" style="width: 100%">
|
||||
</el-form-item>
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
style="width: 100%"
|
||||
:data="list"
|
||||
stripe
|
||||
>
|
||||
<el-table v-loading="loading" style="width: 100%" :data="list" stripe>
|
||||
<!-- 序号 -->
|
||||
<el-table-column
|
||||
prop=""
|
||||
:label="$t('dictionary:template:globalConfig:order')"
|
||||
width="80"
|
||||
>
|
||||
<el-table-column prop="" :label="$t('dictionary:template:globalConfig:order')" width="80">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.$index + 1 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 中文值 -->
|
||||
<el-table-column
|
||||
prop="ValueCN"
|
||||
:label="$t('dictionary:template:globalConfig:valueCN')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column prop="ValueCN" :label="$t('dictionary:template:globalConfig:valueCN')" show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
<!-- 英文值 -->
|
||||
<el-table-column
|
||||
prop="Value"
|
||||
:label="$t('dictionary:template:globalConfig:value')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column prop="Value" :label="$t('dictionary:template:globalConfig:value')" show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
<!-- 是否基线评估 -->
|
||||
<el-table-column
|
||||
prop="IsBaseLineUse"
|
||||
:label="$t('dictionary:template:globalConfig:isBaseLineUse')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column prop="IsBaseLineUse" :label="$t('dictionary:template:globalConfig:isBaseLineUse')"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<!-- <el-switch-->
|
||||
<!-- @change="(v) => {BaseLineUseChange(v, scope.row)}"-->
|
||||
|
|
@ -81,90 +51,62 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<!-- 是否随访评估 -->
|
||||
<el-table-column
|
||||
prop="IsFollowVisitUse"
|
||||
:label="$t('dictionary:template:globalConfig:isFollowVisitUse')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column prop="IsFollowVisitUse" :label="$t('dictionary:template:globalConfig:isFollowVisitUse')"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<!-- <el-switch-->
|
||||
<!-- @change="(v) => {FollowVisitUseChange(v, scope.row)}"-->
|
||||
<!-- v-model="scope.row.IsFollowVisitUse"-->
|
||||
<!-- >-->
|
||||
<!-- </el-switch>-->
|
||||
<el-tag v-if="scope.row.IsFollowVisitUse" type="primary">{{ $fd('YesOrNo', scope.row.IsFollowVisitUse) }}</el-tag>
|
||||
<el-tag v-if="scope.row.IsFollowVisitUse" type="primary">{{ $fd('YesOrNo', scope.row.IsFollowVisitUse)
|
||||
}}</el-tag>
|
||||
<el-tag v-else type="danger">{{ $fd('YesOrNo', scope.row.IsFollowVisitUse) }}</el-tag>
|
||||
<!-- <span>{{$fd('YesOrNo', scope.row.IsFollowVisitUse)}}</span>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-form>
|
||||
<base-model
|
||||
:config="config"
|
||||
>
|
||||
<base-model :config="config">
|
||||
<template slot="dialog-body">
|
||||
<el-form size="small" :inline="true" label-width="130px">
|
||||
<!-- 是否必须全局阅片 -->
|
||||
<el-form-item :label="$t('dictionary:template:globalConfig:isMustGlobalReading')" v-if="config.configType === 1">
|
||||
<el-form-item :label="$t('dictionary:template:globalConfig:isMustGlobalReading')"
|
||||
v-if="config.configType === 1">
|
||||
<el-radio-group v-model="form.IsMustGlobalReading">
|
||||
<el-radio v-for="item of $d.YesOrNo" :key="'form.IsMustGlobalReading' + item.value" :label="item.value">{{ item.label }}</el-radio>
|
||||
<el-radio v-for="item of $d.YesOrNo" :key="'form.IsMustGlobalReading' + item.value" :label="item.value">{{
|
||||
item.label }}</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<!-- 评估更新类型 -->
|
||||
<el-form-item v-if="config.configType === 2" :label="$t('dictionary:template:globalConfig:updateType')" style="width: 100%">
|
||||
<!-- 评估更新类型 @selection-change="handleSelectionChange"-->
|
||||
<el-form-item v-if="config.configType === 2" :label="$t('dictionary:template:globalConfig:updateType')"
|
||||
style="width: 100%">
|
||||
</el-form-item>
|
||||
<el-table
|
||||
v-if="config.configType === 2"
|
||||
v-loading="loading"
|
||||
ref="multipleTable"
|
||||
:data="GlobalAssessType"
|
||||
stripe
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55">
|
||||
</el-table-column>
|
||||
<el-table v-if="config.configType === 2" v-loading="loading" ref="multipleTable" :data="GlobalAssessType"
|
||||
stripe>
|
||||
<!-- <el-table-column type="selection" width="55">
|
||||
</el-table-column> -->
|
||||
<!-- 中文值 -->
|
||||
<el-table-column
|
||||
prop="ValueCN"
|
||||
:label="$t('dictionary:template:globalConfig:valueCN')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column prop="ValueCN" :label="$t('dictionary:template:globalConfig:valueCN')"
|
||||
show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
<!-- 英文值 -->
|
||||
<el-table-column
|
||||
prop="Value"
|
||||
:label="$t('dictionary:template:globalConfig:value')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column prop="Value" :label="$t('dictionary:template:globalConfig:value')" show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
<!-- 是否基线评估 -->
|
||||
<el-table-column
|
||||
prop="IsBaseLineUse"
|
||||
:label="$t('dictionary:template:globalConfig:isBaseLineUse')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column prop="IsBaseLineUse" :label="$t('dictionary:template:globalConfig:isBaseLineUse')"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<el-switch
|
||||
v-model="scope.row.IsBaseLineUse"
|
||||
@change="() => $forceUpdate()"
|
||||
>
|
||||
<el-switch v-model="scope.row.IsBaseLineUse" @change="() => $forceUpdate()">
|
||||
</el-switch>
|
||||
<span>{{ $fd('YesOrNo', scope.row.IsBaseLineUse) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 是否随访评估 -->
|
||||
<el-table-column
|
||||
prop="IsFollowVisitUse"
|
||||
:label="$t('dictionary:template:globalConfig:isFollowVisitUse')"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<el-table-column prop="IsFollowVisitUse" :label="$t('dictionary:template:globalConfig:isFollowVisitUse')"
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<el-switch
|
||||
v-model="scope.row.IsFollowVisitUse"
|
||||
@change="() => $forceUpdate()"
|
||||
>
|
||||
<el-switch v-model="scope.row.IsFollowVisitUse" @change="() => $forceUpdate()">
|
||||
</el-switch>
|
||||
<span>{{ $fd('YesOrNo', scope.row.IsFollowVisitUse) }}</span>
|
||||
</template>
|
||||
|
|
@ -226,7 +168,7 @@ export default {
|
|||
mounted() {
|
||||
this.getList()
|
||||
this.getSystemGlobalInfo()
|
||||
this.getCriterionDictionary()
|
||||
// this.getCriterionDictionary()
|
||||
},
|
||||
methods: {
|
||||
getCriterionDictionary() {
|
||||
|
|
@ -241,7 +183,7 @@ export default {
|
|||
getSystemGlobalInfo({
|
||||
SystemCriterionId: this.criterionId
|
||||
}).then(res => {
|
||||
|
||||
this.GlobalAssessType = res.Result.DictionaryList
|
||||
})
|
||||
},
|
||||
FollowVisitUseChange(v, row) {
|
||||
|
|
@ -273,6 +215,7 @@ export default {
|
|||
}
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
console.log(this.selectedList, 'this.selectedList')
|
||||
this.selectedList = val
|
||||
},
|
||||
getList() {
|
||||
|
|
@ -295,18 +238,6 @@ export default {
|
|||
} else {
|
||||
this.config.title = this.$t('dictionary:template:globalConfig:updateType')
|
||||
this.config.visible = true
|
||||
this.$nextTick(() => {
|
||||
var a = this.$d.GlobalAssessType.filter(v => {
|
||||
return !!this.list.find(v1 => {
|
||||
if (v.id === v1.DictionaryId) {
|
||||
v.IsBaseLineUse = v1.IsBaseLineUse
|
||||
v.IsFollowVisitUse = v1.IsFollowVisitUse
|
||||
}
|
||||
return v1.DictionaryId === v.id
|
||||
})
|
||||
})
|
||||
this.toggleSelection(a)
|
||||
})
|
||||
}
|
||||
},
|
||||
handleSave() {
|
||||
|
|
@ -319,11 +250,11 @@ export default {
|
|||
var params = {
|
||||
SystemCriterionId: this.criterionId,
|
||||
IsMustGlobalReading: this.form.IsMustGlobalReading,
|
||||
DictionaryList: this.config.configType === 1 ? this.list : this.selectedList.map(v => {
|
||||
DictionaryList: this.config.configType === 1 ? this.list : this.GlobalAssessType.map(v => {
|
||||
return {
|
||||
DictionaryId: v.id,
|
||||
IsBaseLineUse: v.IsBaseLineUse,
|
||||
IsFollowVisitUse: v.IsFollowVisitUse,
|
||||
DictionaryId: v.DictionaryId,
|
||||
IsBaseLineUse: v.IsBaseLineUse ? v.IsBaseLineUse : false,
|
||||
IsFollowVisitUse: v.IsFollowVisitUse ? v.IsFollowVisitUse : false,
|
||||
}
|
||||
}),
|
||||
}
|
||||
|
|
@ -342,5 +273,3 @@ export default {
|
|||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue