Merge remote-tracking branch 'origin/dev_third_stage' into dev_third_stage

This commit is contained in:
wangzhijiang
2022-07-12 17:46:11 +08:00
4 changed files with 58 additions and 8 deletions
@@ -48,7 +48,9 @@
<if test="paramsCollectManifestEO.paramsManifestId !=null and paramsCollectManifestEO.paramsManifestId !=''">
AND params_manifest_id = #{paramsCollectManifestEO.paramsManifestId}
</if>
<if test="paramsCollectManifestEO.state !=null and paramsCollectManifestEO.state !=''">
AND state = #{paramsCollectManifestEO.state}
</if>
</if>
</where>
</sql>
@@ -294,8 +294,15 @@
onClickSee(val) {
let _this = this
this.areaVisibleView = true
let url = ''
if (this.$route.query.it === undefined) {
url = `/jero-boot/params/config/getById?id=${val.db_field_name}`
} else {
// 历史版本
url = `/jero-boot/params/collectManifestHistory/getConfigById?id=${val.db_field_name}`
}
axios({
url: `/jero-boot/params/config/getById?id=${val.db_field_name}`,
url: url,
method: 'get',
transformRequest: [function(data) {
let ret = ''
@@ -312,8 +319,9 @@
.then((res) => {
console.log(res)
if (res.data.success) {
this.configDetail = res.data.result
this.configDetail = res.data.result || {}
} else {
this.configDetail = {}
_this.$message.warning(res.data.result)
}
})
@@ -6,14 +6,42 @@
:data-source="dataList"
:pagination="false"
:loading="loading">
<span slot="evaluationMethod" slot-scope="text,result">
<a-tree-select
tree-node-filter-prop="title"
v-model="result.evaluationMethods"
:maxTagCount="1"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
class="box-input"
style="width: 80%;"
:tree-data="gatherResultList"
tree-checkable
:placeholder="$t('PleaseSelect')+$t('evaluationMethod')"
/>
</span>
<span slot="Assessor" slot-scope="text,result">
<PersonnelSelection class="box-input"
:personneQuery="result"
:query="{db_field_name:'evaluatorIds',db_field_txt:$t('Assessor')}"
:isInput="true"
@change="PersonnelSelectionChange"
v-model="result.evaluatorIdsName"/>
</span>
<span slot="operation" slot-scope="text,result">
<a @click="deleteData(result)">{{$t('delete')}}</a>
</span>
</a-table>
</div>
</template>
<script>
import PersonnelSelection from '@/components/PersonnelSelection/index'
export default {
name: 'TermInformation',
components:{
PersonnelSelection
},
props:['gatherResultList'],
data() {
return {
columns: [
@@ -55,16 +83,28 @@
scopedSlots: { customRender: 'operation' }
}
],
dataList: [],
dataList: [{}],
loading: false
}
},
mounted() {
},
methods: {}
methods: {
deleteData() {
},
PersonnelSelectionChange(value, id) {
this.formInline[value] = id
this.formInline = { ...this.formInline }
},
}
}
</script>
<style scoped>
.box-input {
display: inline-block;
width: 70%;
height: 38px;
}
</style>
@@ -155,7 +155,7 @@
</a-col>
</a-row>
</a-form-model>
<TermInformation v-if="isTrue"/>
<TermInformation :gatherResultList="gatherResultList" v-if="isTrue"/>
<footerProcess
@submit="submit"
:isSubmit="true"