合并分支 'master' 到 'dev_third_stage'

Master

查看合并请求 laws-nio/laws-weilai!148
This commit is contained in:
李雪涛
2022-08-16 11:10:32 +08:00
4 changed files with 17 additions and 18 deletions
@@ -680,8 +680,9 @@
uploadFileChangeDown uploadFileChangeDown
}, },
mounted() { mounted() {
console.log(this.detailDate)
this.detailDate.list.forEach((item) => { this.detailDate.list.forEach((item) => {
if (item.type === 'pull_more') { if (item.type === 'pull_more' && !item.dataValue) {
item.dataValue = [] item.dataValue = []
} }
// this.detailDatetransformation.push(item) // this.detailDatetransformation.push(item)
@@ -737,11 +738,11 @@
}, },
watch: { watch: {
detailDate(newold, oldold) { detailDate(newold, oldold) {
console.log(newold, oldold, 'll') // console.log(newold, oldold, 'll')
}, },
formInline: { formInline: {
handler(newOld, oldval) { handler(newOld, oldval) {
console.log(newOld, oldval, 'll') // console.log(newOld, oldval, 'll')
}, },
deep: true deep: true
} }
@@ -220,10 +220,10 @@
type: Object, type: Object,
default: true default: true
}, },
queryParamQuery: { // queryParamQuery: {
type: Object, // type: Object,
default: true // default: true
}, // },
currentPersonRole: { currentPersonRole: {
type: String, type: String,
default: true default: true
@@ -649,7 +649,6 @@
} }
}) })
this.columns = [...this.columns] this.columns = [...this.columns]
console.log(this.columns)
} }
}) })
}, },
@@ -726,9 +725,6 @@
this.selectedRowKeys = [] this.selectedRowKeys = []
}, },
getTableList(currentPersonRole) { getTableList(currentPersonRole) {
console.log(currentPersonRole)
console.log(this.queryParamQuery)
// todo
let paramsManifestid let paramsManifestid
let url let url
if (this.$route.query.it === undefined) { if (this.$route.query.it === undefined) {
@@ -752,7 +748,6 @@
this.loading = true this.loading = true
getAction(url, params).then((res) => { getAction(url, params).then((res) => {
if (res.success) { if (res.success) {
// todo
// console.log(res.result,'res.result') // console.log(res.result,'res.result')
// let tt = [] // let tt = []
// this.dataSource = [] // this.dataSource = []
@@ -771,13 +766,14 @@
// }) // })
let tt = [] let tt = []
if (this.currentPersonRole !== 'dre') { if (this.currentPersonRole !== 'dre') {
console.log(res.result.records,'res.result.records')
res.result.records.forEach((Obj) => { res.result.records.forEach((Obj) => {
Object.keys(Obj).forEach((item) => { Object.keys(Obj).forEach((item) => {
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) { if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
Obj[item].list.forEach((itemLi) => { Obj[item].list.forEach((itemLi) => {
itemLi.isLock = 1 itemLi.isLock = 1
if (itemLi.type === 'pull_more') { if (itemLi.type === 'pull_more') {
itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',') itemLi.dataValue = !itemLi.dataValue ? [] : itemLi.dataValue.split(',')
} }
}) })
} }
@@ -790,7 +786,7 @@
if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) { if (Obj[item] instanceof Object && Obj[item].controlType !== undefined) {
Obj[item].list.forEach((itemLi) => { Obj[item].list.forEach((itemLi) => {
if (itemLi.type === 'pull_more') { if (itemLi.type === 'pull_more') {
itemLi.dataValue = itemLi.dataValue === null ? [] : itemLi.dataValue.split(',') itemLi.dataValue = !itemLi.dataValue ? [] : itemLi.dataValue.split(',')
} }
}) })
} }
@@ -798,7 +794,7 @@
tt.push(Obj) tt.push(Obj)
}) })
} }
this.dataSource = tt this.dataSource = JSON.parse(JSON.stringify(tt))
this.total = res.result.total this.total = res.result.total
this.selectedRowKeys = [] this.selectedRowKeys = []
this.selectedRowrowValue = [] this.selectedRowrowValue = []
@@ -62,7 +62,7 @@ import { mapGetters } from 'vuex'
} }
}, },
created() { created() {
console.log(this.detailDate, 'detailDate') // console.log(this.detailDate, 'detailDate')
// this.detailDate.list.forEach((item) => { // this.detailDate.list.forEach((item) => {
// if (item.type == 'file' && item.isLock == '1') { // if (item.type == 'file' && item.isLock == '1') {
// this.disabled = true // this.disabled = true
@@ -168,7 +168,8 @@
{{$t('Adjustareasofresponsibility')}} {{$t('Adjustareasofresponsibility')}}
</div> </div>
</template> </template>
<div class="operator-text" style="position: relative " @click='morepop' v-if='currentPersonRole == "homo" || currentPersonRole == "sdt"'> <!-- @click='morepop'-->
<div class="operator-text" style="position: relative " v-if='currentPersonRole == "homo" || currentPersonRole == "sdt"'>
<span style="position: absolute;left: -13px;top: -4px">...</span>{{ $t('more') }} <span style="position: absolute;left: -13px;top: -4px">...</span>{{ $t('more') }}
</div> </div>
</a-popconfirm> </a-popconfirm>
@@ -226,8 +227,9 @@
</div> </div>
<div style="width: 100%"> <div style="width: 100%">
<!-- 表格-10控件--> <!-- 表格-10控件-->
<!-- :queryParamQuery='queryParamQuery'-->
<table-collection ref="CollectionTabel" :url='url' :paramsManifest='paramsManifest' @rowValue='rowValue' <table-collection ref="CollectionTabel" :url='url' :paramsManifest='paramsManifest' @rowValue='rowValue'
:formInline='formInline' :queryParamQuery='queryParamQuery' :currentPersonRole='currentPersonRole' :formInline='formInline' :currentPersonRole='currentPersonRole'
@getDataSource="getDataSource" @getDataSource="getDataSource"
@handlePreservation="handlePreservation" @handlePreservation="handlePreservation"
@value='value' @value='value'