|
@@ -4,29 +4,29 @@
|
|
|
<el-col :span="12">
|
|
|
<el-card style="maring:10px">
|
|
|
<div slot="header" class="clearfix">
|
|
|
- <span style="float: left">今日任务</span>
|
|
|
- <el-link type="primary" style="float: right" @click="goMove('taskList')">更多</el-link>
|
|
|
+ <span style="float: left">{{ this.$t("home.todayTask") }}</span>
|
|
|
+ <el-link type="primary" style="float: right" @click="goMove('taskList')">{{ this.$t("action.more") }}</el-link>
|
|
|
</div>
|
|
|
<div style="clear:both;font-size: 14px;height: 300px;">
|
|
|
- <el-scrollbar wrapClass="scrollbar-wrapper" style="min-height: 250px">
|
|
|
+ <el-scrollbar wrap-class="scrollbar-wrapper" style="min-height: 250px">
|
|
|
<vue-seamless-scroll :data="todayList" :class-option="defaultOption" class="seamless-warp">
|
|
|
<el-card v-for="(item, index) in todayList" :key="index">
|
|
|
<div>
|
|
|
- <span>计划执行时间:{{forDate(item.task_plan_time)}}</span>
|
|
|
+ <span>计划执行时间:{{ forDate(item.task_plan_time) }}</span>
|
|
|
</div>
|
|
|
<div style="margin-top: 5px;" @click="showArticleContext(item.task_content)">
|
|
|
- <span style="margin-left: 20px; line-height:1.2"><a>{{item.task_content}}</a></span>
|
|
|
+ <span style="margin-left: 20px; line-height:1.2"><a>{{ item.task_content }}</a></span>
|
|
|
</div>
|
|
|
<div style="margin: 5px">
|
|
|
<div style="float: left">
|
|
|
<span v-if="item.file_name">
|
|
|
- <el-link :href="item.file_path" icon="el-icon-folder" type="success" target="_blank" :download="item.file_name">{{item.file_name}}</el-link>
|
|
|
+ <el-link :href="item.file_path" icon="el-icon-folder" type="success" target="_blank" :download="item.file_name">{{ item.file_name }}</el-link>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div style="float: right">
|
|
|
<p>
|
|
|
- <span style="font-weight:bold">创建时间:</span>{{forDate(item.create_time)}}
|
|
|
- <span style="font-weight:bold;margin-left: 10px;">创建人:</span>{{item.create_name}}
|
|
|
+ <span style="font-weight:bold">创建时间:</span>{{ forDate(item.create_time) }}
|
|
|
+ <span style="font-weight:bold;margin-left: 10px;">创建人:</span>{{ item.create_name }}
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -40,26 +40,26 @@
|
|
|
<el-col :span="12">
|
|
|
<el-card>
|
|
|
<div slot="header" class="clearfix">
|
|
|
- <span style="float: left">最近便签</span>
|
|
|
- <el-link type="primary" style="float: right" @click="goMove('remarkList')">更多</el-link>
|
|
|
+ <span style="float: left">{{ this.$t("home.recentNote") }}</span>
|
|
|
+ <el-link type="primary" style="float: right" @click="goMove('remarkList')">{{ this.$t("action.more") }}</el-link>
|
|
|
</div>
|
|
|
<div style="clear:both;font-size: 14px;height: 300px;">
|
|
|
- <el-scrollbar wrapClass="scrollbar-wrapper" style="min-height: 250px">
|
|
|
+ <el-scrollbar wrap-class="scrollbar-wrapper" style="min-height: 250px">
|
|
|
<vue-seamless-scroll :data="noteList" :class-option="defaultOption" class="seamless-warp">
|
|
|
<el-card v-for="(item, index) in noteList" :key="index">
|
|
|
<div style="margin-top: 5px;" @click="showArticleContext(item.content)">
|
|
|
- <span style="margin-left: 20px; line-height:1.2"><a>{{item.content}}</a></span>
|
|
|
+ <span style="margin-left: 20px; line-height:1.2"><a>{{ item.content }}</a></span>
|
|
|
</div>
|
|
|
<div style="margin: 5px">
|
|
|
<div style="float: left">
|
|
|
<span v-if="item.file_name">
|
|
|
- <el-link :href="item.file_path" icon="el-icon-folder" type="success" target="_blank" :download="item.file_name">{{item.file_name}}</el-link>
|
|
|
+ <el-link :href="item.file_path" icon="el-icon-folder" type="success" target="_blank" :download="item.file_name">{{ item.file_name }}</el-link>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div style="float: right">
|
|
|
<p>
|
|
|
- <span style="font-weight:bold">创建时间:</span>{{forDate(item.create_time)}}
|
|
|
- <span style="font-weight:bold;margin-left: 10px;">创建人:</span>{{item.create_name}}
|
|
|
+ <span style="font-weight:bold">创建时间:</span>{{ forDate(item.create_time) }}
|
|
|
+ <span style="font-weight:bold;margin-left: 10px;">创建人:</span>{{ item.create_name }}
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -75,16 +75,16 @@
|
|
|
<el-col :span="16">
|
|
|
<el-card style="maring:10px">
|
|
|
<div slot="header" class="clearfix">
|
|
|
- <span style="float: left">最近交互</span>
|
|
|
- <el-link type="primary" style="float: right" @click="goMove('CallingList')">更多</el-link>
|
|
|
+ <span style="float: left">{{ this.$t("home.recentInteract") }}</span>
|
|
|
+ <el-link type="primary" style="float: right" @click="goMove('CallingList')">{{ this.$t("action.more") }}</el-link>
|
|
|
</div>
|
|
|
<div style="height: 300px">
|
|
|
<el-table :data="callingHistoryList" height="300px">
|
|
|
- <el-table-column prop="fromMemberName" label="发起方" min-width="140" align="center" :formatter="formatterFromName" />
|
|
|
- <el-table-column prop="toMemberName" label="接收方" min-width="140" align="center" :formatter="formatterToName" />
|
|
|
- <el-table-column prop="action_type" label="交互类型" width="100" align="center" :formatter="formatterType" />
|
|
|
- <el-table-column prop="action_end" label="交互结果" width="100" align="center" :formatter="formatterResult" />
|
|
|
- <el-table-column prop="create_date" label="交互时间" width="170" align="center" :formatter="formatterCreateTime" />
|
|
|
+ <el-table-column prop="fromMemberName" label="发起方" min-width="140" align="center" :formatter="formatterFromName" />
|
|
|
+ <el-table-column prop="toMemberName" label="接收方" min-width="140" align="center" :formatter="formatterToName" />
|
|
|
+ <el-table-column prop="action_type" label="交互类型" width="100" align="center" :formatter="formatterType" />
|
|
|
+ <el-table-column prop="action_end" label="交互结果" width="100" align="center" :formatter="formatterResult" />
|
|
|
+ <el-table-column prop="create_date" label="交互时间" width="170" align="center" :formatter="formatterCreateTime" />
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</el-card>
|
|
@@ -93,26 +93,26 @@
|
|
|
<el-col :span="8">
|
|
|
<el-card>
|
|
|
<div slot="header" class="clearfix">
|
|
|
- <span style="float: left">最近用户备注</span>
|
|
|
- <el-link type="primary" style="float: right" @click="goMove('customerList')">更多</el-link>
|
|
|
+ <span style="float: left">{{ this.$t("home.recentRemarks") }}</span>
|
|
|
+ <el-link type="primary" style="float: right" @click="goMove('customerList')">{{ this.$t("action.more") }}</el-link>
|
|
|
</div>
|
|
|
<div style="clear:both;font-size: 14px;height: 300px;">
|
|
|
- <el-scrollbar wrapClass="scrollbar-wrapper" style="min-height: 250px">
|
|
|
+ <el-scrollbar wrap-class="scrollbar-wrapper" style="min-height: 250px">
|
|
|
<vue-seamless-scroll :data="remarkList" :class-option="defaultOption" class="seamless-warp">
|
|
|
<el-card v-for="(item, index) in remarkList" :key="index">
|
|
|
<div style="margin-top: 5px;" @click="showArticleContext(item.content)">
|
|
|
- <span style="margin-left: 20px; line-height:1.2"><a>{{item.content}}</a></span>
|
|
|
+ <span style="margin-left: 20px; line-height:1.2"><a>{{ item.content }}</a></span>
|
|
|
</div>
|
|
|
<div style="margin: 5px">
|
|
|
<div style="float: left">
|
|
|
<span v-if="item.file_name">
|
|
|
- <el-link :href="item.file_path" icon="el-icon-folder" type="success" target="_blank" :download="item.file_name">{{item.file_name}}</el-link>
|
|
|
+ <el-link :href="item.file_path" icon="el-icon-folder" type="success" target="_blank" :download="item.file_name">{{ item.file_name }}</el-link>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div style="float: right">
|
|
|
<p>
|
|
|
- <span style="font-weight:bold">创建时间:</span>{{forDate(item.create_time)}}
|
|
|
- <span style="font-weight:bold;margin-left: 10px;">创建人:</span>{{item.create_name}}
|
|
|
+ <span style="font-weight:bold">创建时间:</span>{{ forDate(item.create_time) }}
|
|
|
+ <span style="font-weight:bold;margin-left: 10px;">创建人:</span>{{ item.create_name }}
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -124,16 +124,16 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-dialog title="详情" :visible.sync="isShowArticle" width="50%" align="center">
|
|
|
- <p style="text-align: left;" v-html="currentContent.replace(/\n/g, '<br>')" class="current-content"></p>
|
|
|
+ <p style="text-align: left;" class="current-content" v-html="currentContent.replace(/\n/g, '<br>')" />
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import * as API_task from '@/api/ncs_task'
|
|
|
- import * as API_Remark from '@/api/ncs_remark'
|
|
|
- import {unixToDate} from '@/utils/Foundation'
|
|
|
- import * as API_CallingList from '@/api/ncs_interaction'
|
|
|
+import * as API_task from '@/api/ncs_task'
|
|
|
+import * as API_Remark from '@/api/ncs_remark'
|
|
|
+import { unixToDate } from '@/utils/Foundation'
|
|
|
+import * as API_CallingList from '@/api/ncs_interaction'
|
|
|
|
|
|
export default {
|
|
|
name: 'Index',
|
|
@@ -144,7 +144,7 @@ export default {
|
|
|
page_no: 1,
|
|
|
page_size: 100,
|
|
|
sort: 'create_time',
|
|
|
- dir: 'desc',
|
|
|
+ dir: 'desc'
|
|
|
},
|
|
|
noteList: [],
|
|
|
callingHistoryList: [],
|
|
@@ -189,12 +189,12 @@ export default {
|
|
|
getTodayList() {
|
|
|
const param = this.MixinClone(this.params)
|
|
|
param.fixedCondition = ' part_id = ' + this.$store.getters.partId
|
|
|
- let _this = this
|
|
|
+ const _this = this
|
|
|
_this.todayList = []
|
|
|
API_task.getList(param).then(response => {
|
|
|
const today = (new Date().setHours(0, 0, 0, 0)) / 1000
|
|
|
const todayend = (today * 1000 + 86400000) / 1000
|
|
|
- response.data.forEach((item, index) =>{
|
|
|
+ response.data.forEach((item, index) => {
|
|
|
if (item.task_plan_time >= today && item.task_plan_time < todayend) {
|
|
|
_this.todayList.push(item)
|
|
|
}
|
|
@@ -204,7 +204,7 @@ export default {
|
|
|
getNoteList() {
|
|
|
const param = this.MixinClone(this.params)
|
|
|
param.fixedCondition = ' type = 2 and part_id=' + this.$store.getters.partId
|
|
|
- let _this = this
|
|
|
+ const _this = this
|
|
|
API_Remark.getRemarks(param).then(response => {
|
|
|
_this.noteList = response.data
|
|
|
})
|
|
@@ -212,7 +212,7 @@ export default {
|
|
|
getRemarkList() {
|
|
|
const param = this.MixinClone(this.params)
|
|
|
param.fixedCondition = ' type = 1 and part_id=' + this.$store.getters.partId
|
|
|
- let _this = this
|
|
|
+ const _this = this
|
|
|
API_Remark.getRemarks(param).then(response => {
|
|
|
_this.remarkList = response.data
|
|
|
})
|
|
@@ -222,7 +222,7 @@ export default {
|
|
|
param.page_size = 10
|
|
|
param.fixedCondition = ' part_id=' + this.$store.getters.partId
|
|
|
param.sort = 'id'
|
|
|
- let _this = this
|
|
|
+ const _this = this
|
|
|
API_CallingList.getList(param).then(response => {
|
|
|
_this.callingHistoryList = response.data
|
|
|
})
|
|
@@ -235,7 +235,7 @@ export default {
|
|
|
this.isShowArticle = true
|
|
|
},
|
|
|
goMove(path) {
|
|
|
- this.$router.push({name: path})
|
|
|
+ this.$router.push({ name: path })
|
|
|
},
|
|
|
formatterFromName(row, column, cellValue) {
|
|
|
if (!row.outerior_action && row.relative_id === null) {
|
|
@@ -296,7 +296,7 @@ export default {
|
|
|
},
|
|
|
formatterCreateTime(row, column, cellValue) {
|
|
|
return unixToDate(cellValue)
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|