合并分支 'dev_2nd_period_test' 到 'master'
Dev 2nd period test 查看合并请求 laws-nio/laws-weilai!243
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
<a-list-item :key="index" v-for="(record, index) in announcement1" v-if="index <= 4">
|
||||
<div style="margin-left: 5%;width: 80%;">
|
||||
<p style="overflow: hidden; text-overflow: ellipsis;white-space: nowrap;color:#00B3BE">
|
||||
<a :title="language == 'zh-cn'?record.msgContentCn:record.msgContent"
|
||||
<a :title="language == 'zh-cn'&& record.msgContentCn?record.msgContentCn:record.msgContent"
|
||||
@click="showAnnouncement(record)">
|
||||
{{ language == 'zh-cn'?record.msgContentCn:record.msgContent }}
|
||||
{{ language == 'zh-cn'&& record.msgContentCn?record.msgContentCn:record.msgContent }}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<a-tab-pane :key="$t('problemKnowledgeBase')" :tab="$t('problemKnowledgeBase')">
|
||||
<problemKnowledgeBaseList v-if="tabModel == $t('problemKnowledgeBase')" ref="problemKnowledgeBaseListRef"/>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="Country Card" tab="Country Card">
|
||||
<a-tab-pane v-if="isTrue" key="Country Card" tab="Country Card">
|
||||
<countryCardList v-if="tabModel == 'Country Card'" ref="countryCardListRef"/>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
@@ -13,6 +13,7 @@
|
||||
<script>
|
||||
import problemKnowledgeBaseList from './components/problemKnowledgeBaseList'
|
||||
import countryCardList from './components/countryCardList'
|
||||
import { USER_AUTH, SYS_BUTTON_AUTH } from '@/store/mutation-types'
|
||||
|
||||
export default {
|
||||
name: 'index',
|
||||
@@ -22,10 +23,18 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
tabModel: this.$t('problemKnowledgeBase')
|
||||
tabModel: this.$t('problemKnowledgeBase'),
|
||||
isTrue:false,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
let userAuthList = JSON.parse(sessionStorage.getItem(USER_AUTH) || '[]')
|
||||
this.isTrue = false
|
||||
userAuthList.map(res => {
|
||||
if (res.action == 'countryCard:list') {
|
||||
this.isTrue = true
|
||||
}
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
callback(key) {
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
<div class="myNews-box-content-box" v-for="(item,index) in dataSource" :key="index" @click="magClick(item)">
|
||||
<img src="../../../assets/wdxx.png" alt="">
|
||||
<div class="content-box">
|
||||
<div class="top" :title="language == 'zh-cn'?item.msgContentCn:item.msgContent">
|
||||
{{language == 'zh-cn'?item.msgContentCn:item.msgContent}}
|
||||
<div class="top" :title="language == 'zh-cn' && item.msgContentCn?item.msgContentCn:item.msgContent">
|
||||
{{language == 'zh-cn' && item.msgContentCn?item.msgContentCn:item.msgContent}}
|
||||
</div>
|
||||
<div class="botton">
|
||||
{{item.sendTime}}
|
||||
|
||||
@@ -38,6 +38,9 @@
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||
:columns="columns"
|
||||
>
|
||||
<span slot="serial_number" slot-scope="text,result">
|
||||
<a @click="standClick(result)" :title="text">{{text}}</a>
|
||||
</span>
|
||||
<span slot="vehicleInProductionDate" slot-scope="text,result">
|
||||
<span v-if="result.xin1_che1_xing2_shi2_shi1_ri4_qi1 == 'yellow'">
|
||||
{{text}}
|
||||
@@ -164,7 +167,7 @@
|
||||
dataIndex: 'title',
|
||||
ellipsis: true,
|
||||
width: 170,
|
||||
scopedSlots: { customRender: 'titleName' }
|
||||
scopedSlots: { customRender: 'serial_number' }
|
||||
},
|
||||
{
|
||||
title: this.$t('status'),
|
||||
@@ -244,6 +247,15 @@
|
||||
eventBUs.$off('searchQuery')
|
||||
},
|
||||
methods: {
|
||||
standClick(val){
|
||||
let newUrl = this.$router.resolve({
|
||||
path: '/docManage/library/detail',
|
||||
query: {
|
||||
id: val.id
|
||||
}
|
||||
})
|
||||
window.open(newUrl.href, '_blank')
|
||||
},
|
||||
callback(tab) {
|
||||
this.selectedRowKeys = []
|
||||
this.activeTab = tab
|
||||
|
||||
@@ -73,8 +73,8 @@
|
||||
<span slot="msgTitile" slot-scope="text,scope">
|
||||
<!-- @click="msgContentClick(scope)"-->
|
||||
<a :style="{'color':scope.readFlag == 0 ? 'red':'#00A0E9'}"
|
||||
:title="language == 'zh-cn' ? scope.msgContentCn : scope.msgContent">
|
||||
{{language == 'zh-cn' ? scope.msgContentCn : scope.msgContent}}
|
||||
:title="language == 'zh-cn' && scope.msgContentCn? scope.msgContentCn : scope.msgContent">
|
||||
{{language == 'zh-cn' && scope.msgContentCn? scope.msgContentCn : scope.msgContent}}
|
||||
</a>
|
||||
</span>
|
||||
<span slot="msgCategory" slot-scope="text,scope">
|
||||
@@ -84,7 +84,7 @@
|
||||
</span>
|
||||
</span>
|
||||
<p slot="expandedRowRender" slot-scope="record" style="margin: 0;padding-left: 58px;">
|
||||
<span v-html="language == 'zh-cn' ? record.msgContentInfoCn : record.msgContentInfo">
|
||||
<span v-html="language == 'zh-cn' && record.msgContentInfoCn? record.msgContentInfoCn : record.msgContentInfo">
|
||||
</span>
|
||||
</p>
|
||||
</a-table>
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
{
|
||||
title: this.$t('relatedVersion'),
|
||||
align: 'center',
|
||||
dataIndex: 'projectVersion',
|
||||
dataIndex: 'version',
|
||||
ellipsis: true,
|
||||
width: 170,
|
||||
scopedSlots: { customRender: 'projectVersion' }
|
||||
|
||||
Reference in New Issue
Block a user