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

This commit is contained in:
wangzhijiang
2023-03-23 20:47:32 +08:00
8 changed files with 63 additions and 35 deletions
@@ -819,7 +819,7 @@
customRender: 'titleName' customRender: 'titleName'
} }
if (res.db_field_name == 'nioNumber') { if (res.db_field_name == 'nioNumber') {
this.columns[index].width = 100 this.columns[index].width = 120
} }
if (res.click1) { if (res.click1) {
this.columns[index].scopedSlots = { this.columns[index].scopedSlots = {
@@ -610,7 +610,7 @@
customRender: 'titleName' customRender: 'titleName'
} }
if (res.db_field_name == 'nioNumber') { if (res.db_field_name == 'nioNumber') {
this.columns[index].width = 100 this.columns[index].width = 120
} }
if (res.click) { if (res.click) {
// 工程接口人列表修改 // 工程接口人列表修改
@@ -122,13 +122,26 @@
<div class="title-text-add"> <div class="title-text-add">
<span class="title-text-text" :title="$t('Vehicledynamictype')">{{$t('Vehicledynamictype')}}</span> <span class="title-text-text" :title="$t('Vehicledynamictype')">{{$t('Vehicledynamictype')}}</span>
</div> </div>
<a-form-model-item class="itemModel"> <a-form-model-item class="itemModel" style='width: 38%'>
<j-dict-select-tag class="box-input" <j-dict-select-tag class="box-input"
:disabled="disabled" :disabled="disabled"
@change="projectNameChange"
:placeholder="$t('PleaseSelect')" :placeholder="$t('PleaseSelect')"
:type="'select'" :type="'select'"
:triggerChange="false"/> :triggerChange="false"/>
</a-form-model-item> </a-form-model-item>
<a-form-model-item class="itemModel" style='width: 40%;margin-left: 20px'>
<a-select class="box-input" :placeholder="$t('PleaseSelect')"
v-model="formInline.projectNameId">
<a-select-option v-for="(item, key) in projectNameList"
:key="key"
:value="item.id">
<span style="display: inline-block;width: 100%" :title=" item.projectName ">
{{ item.projectName}}
</span>
</a-select-option>
</a-select>
</a-form-model-item>
</div> </div>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
@@ -178,6 +191,8 @@
return { return {
confirmLoading: false, confirmLoading: false,
disabled: false, disabled: false,
formInline:{},
projectNameList:[],
} }
}, },
mounted() { mounted() {
@@ -143,6 +143,7 @@
<projectStatus @TaskListChange="TaskListChange" <projectStatus @TaskListChange="TaskListChange"
v-else-if="textTitle === $t('projectStatus')"/> v-else-if="textTitle === $t('projectStatus')"/>
<certificationList ref="certificationListRef" <certificationList ref="certificationListRef"
:isDisplayNum="isDisplayNum"
@getRoleSwitch="getRoleSwitch" @getRoleSwitch="getRoleSwitch"
v-else-if="textTitle === $t('certificationList')"/> v-else-if="textTitle === $t('certificationList')"/>
</div> </div>
@@ -206,7 +207,7 @@
'12': '系统管理员', '12': '系统管理员',
'13': 'Viewer', '13': 'Viewer',
'14': '品牌管理员', '14': '品牌管理员',
'20': '接口人', '20': '工程接口人',
'21': '责任人', '21': '责任人',
'30': '工程接口人', '30': '工程接口人',
'31': '责任人', '31': '责任人',
@@ -11,7 +11,8 @@
style="height: 100%;overflow: auto;padding-bottom: 53px;"> style="height: 100%;overflow: auto;padding-bottom: 53px;">
<div style="margin-bottom: 60px"> <div style="margin-bottom: 60px">
<div class="table-operator"> <div class="table-operator">
<div class="operator-text" v-if="isDisplayNum == 2" @click="addData"> <div class="operator-text" v-if="isDisplayNum == 2 && roleSwitchingCode == 2"
@click="addData">
<a-icon type="plus"/> <a-icon type="plus"/>
{{$t('add')}} {{$t('add')}}
</div> </div>
@@ -76,7 +77,7 @@
certificationDirectoryAdd, certificationDirectoryAdd,
viewFileModel viewFileModel
}, },
props: ['isDisplayNum'], props: ['isDisplayNum','roleSwitchingCode'],
mixins:[ResizeHeader, ResizeColumnProvide], mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
@@ -158,7 +159,8 @@
computed: { computed: {
columns() { columns() {
let columnResult = JSON.parse(JSON.stringify(this.columnsAll)) let columnResult = JSON.parse(JSON.stringify(this.columnsAll))
if (this.isDisplayNum != 2) { if (this.roleSwitchingCode == 2 && this.isDisplayNum == 2){
}else{
for (var i = 0; i < columnResult.length; i++) { for (var i = 0; i < columnResult.length; i++) {
if (columnResult[i].title === this.$t('operation')) { if (columnResult[i].title === this.$t('operation')) {
columnResult.splice(i, 1) columnResult.splice(i, 1)
@@ -15,10 +15,10 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :md="12" :sm="8"> <a-col :md="12" :sm="8">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text" :title="$t('VirtualListName')"> <div class="title-text" :title="$t('CertificationListName')">
<span>{{$t('VirtualListName')}}</span> <span>{{$t('CertificationListName')}}</span>
</div> </div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('VirtualListName')" <j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('CertificationListName')"
v-model="queryParam.name"></j-input> v-model="queryParam.name"></j-input>
</div> </div>
</a-col> </a-col>
@@ -87,7 +87,7 @@
selectedRowKeys: [], selectedRowKeys: [],
columns: [ columns: [
{ {
title: this.$t('VirtualListName'), title: this.$t('CertificationListName'),
dataIndex: 'name', dataIndex: 'name',
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
@@ -155,11 +155,17 @@
let query = { let query = {
pageNo: this.pageNo, pageNo: this.pageNo,
pageSize: this.pageSize, pageSize: this.pageSize,
...this.queryParam ...this.queryParam,
state:'1',
} }
this.loading = true this.loading = true
getAction('/authDummy/authDummyInventoryBaseEO/page', query).then((res) => { getAction('/authDummy/authDummyInventoryBaseEO/page', query).then((res) => {
if (res.success) { if (res.success) {
if (res.result.current > 1 && res.result.records.length == 0) {
this.pageNo = 1
this.replacePage()
return
}
this.dataList = res.result.records || [] this.dataList = res.result.records || []
this.total = res.result.total this.total = res.result.total
this.loading = false this.loading = false
@@ -32,9 +32,9 @@
</a-col> </a-col>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons"> <span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-col :md="12" :sm="24"> <a-col :md="12" :sm="24">
<globalAdvancedQuery ref="globalAdvancedQueryRef" <!-- <globalAdvancedQuery ref="globalAdvancedQueryRef"-->
@handleSuperQuery="handleSuperQuery" <!-- @handleSuperQuery="handleSuperQuery"-->
:fieldList="fieldList"/> <!-- :fieldList="fieldList"/>-->
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button> <a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button> <a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
</a-col> </a-col>
@@ -180,8 +180,8 @@ export default {
this.pageNo = 1 this.pageNo = 1
this.queryParam = {} this.queryParam = {}
this.replacePage() this.replacePage()
this.$refs.globalAdvancedQueryRef.resetLine() // this.$refs.globalAdvancedQueryRef.resetLine()
this.$refs.globalAdvancedQueryRef.emitCallback() // this.$refs.globalAdvancedQueryRef.emitCallback()
}, },
onChange(page, pageSize) { onChange(page, pageSize) {
this.pageNo = page this.pageNo = page
@@ -192,19 +192,19 @@ export default {
this.pageSize = pageSize this.pageSize = pageSize
this.replacePage() this.replacePage()
}, },
handleSuperQuery(params, matchType) { // handleSuperQuery(params, matchType) {
let sqp = {} // let sqp = {}
if (!params || (params && params.length == 0)) { // if (!params || (params && params.length == 0)) {
sqp['superQueryParams'] = '' // sqp['superQueryParams'] = ''
this.$refs.globalAdvancedQueryRef.superQueryFlag = false // this.$refs.globalAdvancedQueryRef.superQueryFlag = false
} else { // } else {
this.$refs.globalAdvancedQueryRef.superQueryFlag = true // this.$refs.globalAdvancedQueryRef.superQueryFlag = true
sqp['superQueryParams'] = encodeURI(JSON.stringify(params)) // sqp['superQueryParams'] = encodeURI(JSON.stringify(params))
sqp['superQueryMatchType'] = matchType // sqp['superQueryMatchType'] = matchType
} // }
this.queryParamQuery = sqp // this.queryParamQuery = sqp
this.replacePage() // this.replacePage()
}, // },
replacePage() { replacePage() {
let query = { let query = {
// pageNo: this.pageNo, // pageNo: this.pageNo,
@@ -96,7 +96,8 @@
</div> </div>
<!-- 认证目录--> <!-- 认证目录-->
<div @click="certificationClick" v-if="roleSwitchingCode == 0 || roleSwitchingCode == 2" class="operator-text"> <div @click="certificationClick" v-if="roleSwitchingCode == 0 || roleSwitchingCode == 1 ||
roleSwitchingCode == 2" class="operator-text">
<a-icon type="profile"/> <a-icon type="profile"/>
{{ $t('CertificationDirectory') }} {{ $t('CertificationDirectory') }}
</div> </div>
@@ -377,7 +378,8 @@
</div> </div>
</div> </div>
<transferList :url="url" @transferListForm="transferListForm" ref="transferListRef"/> <transferList :url="url" @transferListForm="transferListForm" ref="transferListRef"/>
<certificationDirectory :isDisplayNum="isDisplayNum" :url="url" ref="certificationDirectoryRef"/> <certificationDirectory :isDisplayNum="isDisplayNum" :roleSwitchingCode="roleSwitchingCode"
:url="url" ref="certificationDirectoryRef"/>
<batSetting :url="url" ref="batSettingRef" :roleSwitchingCode="roleSwitchingCode" @batSettingForm="batSettingForm"/> <batSetting :url="url" ref="batSettingRef" :roleSwitchingCode="roleSwitchingCode" @batSettingForm="batSettingForm"/>
<addModel ref="addModelRef" @addModelForm="addModelForm"/> <addModel ref="addModelRef" @addModelForm="addModelForm"/>
<modifyHistory ref="modifyHistoryRef"/> <modifyHistory ref="modifyHistoryRef"/>
@@ -477,6 +479,7 @@
export default { export default {
name: 'index', name: 'index',
props:['isDisplayNum'],
components: { components: {
globalAdvancedQuery, globalAdvancedQuery,
ImportFile, ImportFile,
@@ -601,14 +604,16 @@
align: 'left', align: 'left',
dataIndex: 'category', dataIndex: 'category',
width: 180, width: 180,
ellipsis: true ellipsis: true,
fixed: 'left',
}, },
{ {
title: this.$t('inspectionItems'), title: this.$t('inspectionItems'),
align: 'left', align: 'left',
dataIndex: 'inspectionItem', dataIndex: 'inspectionItem',
width: 180, width: 180,
ellipsis: true ellipsis: true,
fixed: 'left',
}, },
{ {
title: this.$t('configurationItem'), title: this.$t('configurationItem'),
@@ -723,7 +728,6 @@
], ],
selectedRowKeys: [], selectedRowKeys: [],
selectedRowKeysList: [], selectedRowKeysList: [],
isDisplayNum: 2,
long: '', long: '',
toDoIds: [], toDoIds: [],
toDoNotConditions: [], toDoNotConditions: [],