Commit a8139a60 authored by 陶进's avatar 陶进

提交一下

parent 2813d7d8
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
......@@ -9,6 +10,7 @@
<link rel="stylesheet" href="./indexManage.css">
</head>
<body>
<div id="app" class="production-line-container" v-cloak>
<router-view></router-view>
......@@ -55,9 +57,6 @@
var publicIndex = await getPublicIndex()
var categoryAudit = await getCategoryAudit()
var indexRecord = await getIndexRecord()
// var component = await getMain()
// var component = await getMain()
// var component = await getMain()
var routes = [
{ path: '/', component: myIndex },
......@@ -66,7 +65,6 @@
{ path: '/categoryAudit', component: categoryAudit },
{ path: '/indexRecord', component: indexRecord }
]
console.log(routes)
var router = new VueRouter({ routes })
new Vue({
......@@ -87,5 +85,6 @@
}
init()
</script>
</script>
</html>
\ No newline at end of file
//有关于条件的一些方法
function getFormatValue (value) {
var unit = '', num = 1
if(value < 10000){
unit = '', num = 1
}else if(10000 <= value && value < 100000000){
unit = '', num = 10000
}else if(100000000 <= value && value < 1000000000000){
unit = '亿', num = 100000000
}else if(value >= 1000000000000){
unit = '万亿', num = 1000000000000
}
return (value/num).toFixed(0) + unit
}
function getInputLength (text) {
var width = 0, span
if(!document.getElementById('invented')){
span = document.createElement('span')
span.id = 'invented'
span.innerHTML = text
document.body.appendChild(span)
}else{
span = document.getElementById('invented')
span.innerHTML = text
}
width = span.offsetWidth
return width + 4
}
exports.getFullIndexName = (index) => {
var indexName = index.name, merge = '', company = '', year = '', quarter = ''
if(index.needMergeType){
merge = '[' + index.mergeType + ']'
}
if(index.needReportData){
if(index.yearType == 1){
year = '[T:' + index.t + ']'
}else{
year = '[T:' + index.inputYear + ']'
}
if(index.quarterType == 1){
quarter = '[Q:' + index.q + ']'
}else{
quarter = '[Q:' + index.inputQuarter + ']'
}
}
if(index.needCompany && index.isAppointCompany){
company = '[' + index.selectedCompany + ']'
}
return indexName + year + quarter + merge + company
}
exports.getIndexType = (obj) => {
var newObj = {
needMergeType: false,
needReportData: false,
needCompany: false
}
if(obj.TypeContent){
obj.TypeContent.Parameters.forEach(item => {
if(item.Encode == 'F91997V'){
newObj.needMergeType = true
}
if(item.Encode == 'F91996D'){
newObj.needReportData = true
}
if(item.Encode == 'F90001V'){
newObj.needCompany = true
}
})
}
return newObj
}
exports.setSaveCondition = (condition)=>{ //格式化保存的条件,原名 getSaveCalCondition
var operands = []
var div = document.createElement('div')
div.innerHTML = condition.params.dom
var inputs = div.getElementsByTagName('input')
//后台的定义 0指标1符号2数字3时间4方法
//前台的定义 1指标2时间3数字4字符5方法
Array.from(inputs).forEach(item => {
var obj = {}, id = item.id
switch (parseInt(item.getAttribute('type'))) {
case 1: //指标
var param = condition.params.indexParams[id]
var dateYear = '1900'
var dateQuater = '06-30'
var evalArray = []
if (param.yearType == 1) {
evalArray.push({
"EvalOption": 1,
"Value": param.t
})
} else if (param.yearType == 2) {
dateYear = param.inputYear
}
if (param.quarterType == 1) {
evalArray.push({
"EvalOption": 2,
"Value": param.q
})
} else if (param.quarterType == 2) {
dateQuater = param.inputQuarter
}
var where = [
{
"State": 1,
"Encode": "F91996D",
"Value": dateYear + '-' + dateQuater,
"Eval": evalArray
},
{
"State": 1,
"Value": param.mergeType,
"Encode": "F91997V",
"Eval": []
}
]
if(param.isAppointCompany){
where.push({
"State": 1,
"Value": param.selectedCompany.split('-')[1],
"Encode": "F90001V",
"Eval": []
})
}
obj = {
"List": [param.code],
"Where": where,
"OperandType": 0,
}
break;
case 2: //时间
obj = {
"Value": item.value,
"OperandType": 3
}
break;
case 3: //数字
obj = {
"Value": item.value.replace(/\[.*?\]/g,''),
"OperandType": 2
}
break;
case 4: //字符
obj = {
"Value": item.value,
"OperandType": 1
}
break;
default:
break;
}
operands.push(obj)
})
return operands
}
exports.getSaveCondition = (
id, conditionContents, conditionSignature, paramsList, initIndexObj,companyNameObj, getEval, initIndex, that
)=>{ //格式化获取的条件原名 setCalCondition, 启动参数中 setEditCondition, 公司名称 searchCompanyName, 所有指标 getIndexCateGory(initIndexObj)
if(conditionSignature && that.conditionIndex < parseInt(conditionSignature)){
that.conditionIndex = parseInt(conditionSignature)
}
if(that){
that.$set(paramsList, id, {
id: id == 'start'?'start':(conditionSignature?conditionSignature:null),
params: {
indexParams: {},
dateParams: {},
numParams: {},
symbolParams: {},
dom: '',
showDom: ''
}
})
}
var param = paramsList[id].params
conditionContents.forEach(item => {
initIndex++
var id = new Date().getTime() + initIndex
var obj = {}
var inputDom = ''
var showDom = ''
var paramsType = ''
switch (item.OperandType) {
case 0: //指标
var index = initIndexObj[item.List[0]]
var condition = this.getIndexType(index)
var evalObj = getEval(item.Where[0])
obj = {
code: item.List[0],
id: id,
inputQuarter: evalObj.selsetQuarter,
inputYear: evalObj.selectYear,
q: evalObj.qQuarter,
t: evalObj.tYear,
quarterType: evalObj.reportQuarterType,
yearType: evalObj.reportYearType,
mergeType: item.Where[1].Value,
type: 1,
isAppointCompany: item.Where[2]?true:false,
selectedCompany: item.Where[2]?(companyNameObj[item.Where[2].Value] + '-' + item.Where[2].Value):'',
mark: index.Mark,
name: index.Name,
needMergeType: condition.needMergeType,
needReportData: condition.needReportData,
needCompany: condition.needCompany,
typeContent: index.TypeContent
}
var text = this.getFullIndexName(obj)
var width = getInputLength(text) + 'px'
inputDom = '<input readonly class="cal-index" type="1" id="'+ id +'" style="width:'+ width +'" value="'+ text +'" />'
showDom = '<span type="1">' + text + '</span>'
paramsType = 'indexParams'
break;
case 1: //符号
obj = {
id: id,
key: item.Value,
type: 4,
value: item.Value
}
var width = getInputLength(item.Value) + 'px'
var moreClass = ''
switch (item.Value) {
case '(': case ')':
moreClass = 'brackets'
break;
default:
break;
}
inputDom = '<input readonly class="cal-index ' + moreClass + '" type="4" id="'+ id +'" style="width:'+ width +'" value="'+ item.Value +'" />'
showDom = '<span type="4">' + item.Value + '</span>'
paramsType = 'symbolParams'
break;
case 2: //数字
obj = {
id: id,
type: 3,
value: item.Value
}
var text = item.Value + "[" + getFormatValue(item.Value) + "]"
var width = getInputLength(text) + 'px'
inputDom = '<input readonly class="cal-index" type="3" id="'+ id +'" style="width:'+ width +'" value="'+ text +'" />'
showDom = '<span type="3">' + text + '</span>'
paramsType = 'numParams'
break;
case 3: //时间
obj = {
id: id,
type: 2,
value: item.Value
}
var text = item.Value
var width = getInputLength(text) + 'px'
inputDom = '<input readonly class="cal-index" type="2" id="'+ id +'" style="width:'+ width +'" value="'+ text +'" />'
showDom = '<span type="2">' + text + '</span>'
paramsType = 'dateParams'
break;
case 4: //方法,暂不做处理
break;
default:
break;
}
// param[paramsType] = {}
param[paramsType][id] = obj
param.dom+=inputDom
param.showDom+=showDom
})
if(!param.showDom){
param.showDom = '<span>暂未设置条件</span>'
}
}
var mergeData = ['合并本期','合并上期','母公司本期','母公司上期']
module.exports = {
mergeData
}
......@@ -125,7 +125,7 @@
detail: '',
id: 'smartWords',
name: '智能词管理',
path: './smartWords/index.html',
path: '../../main_views/smartWords/smartWords.html',
useful: 1
}
]
......
exports.getFullIndexName = () => {
}
This diff is collapsed.
This diff is collapsed.
#app{
width: 100%;
height: 100%;
display: block;
}
.header-router{
background: #fff;
width: 100%;
box-sizing: border-box;
padding: 16px 20px;
display: flex;
align-items: center;
border-bottom: 1px solid #eaeaea;
}
.parent-name{
font-size: 16px;
font-weight: bold;
margin-right: 32px;
}
.router-list{
flex: auto;
}
.router-list span{
padding: 0 12px;
font-size: 14px;
cursor: pointer;
}
.router-list span:hover{
color: #d0021b;
}
.router-list span+span{
border-left: 1px solid #eaeaea;
}
span.active-link{
color: #d0021b;
}
.header-search{
background: #fff;
padding: 12px 0;
box-sizing: border-box;
padding: 0 20px;
height: 62px;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
align-items: start;
}
.header-search-inner{
display: inline-block;
width: 560px;
}
.container{
height: 100%;
display: flex;
flex-direction: column;
}
.container .header{
min-height: 117px;
background: #fff;
}
.header-container{
height: 117px;
overflow: hidden;
}
.main-body{
height: calc(100% - 139px);
margin-top: 12px;
background: #fff;
padding: 16px;
box-sizing: border-box;
display: flex;
flex: auto;
}
.header-search-box{
width: 50%;
margin: 0 auto;
background: #f1f1f1;
line-height: 36px;
padding: 0 12px;
box-sizing: border-box;
}
.header-search-box .icon{
font-size: 14px;
}
.header-search-box input{
border: 0;
outline: 0;
background: #f1f1f1;
line-height: 36px;
font-size: 14px;
width: calc(100% - 20px);
box-sizing: border-box;
}
.header-search-box input:focus{
outline: 0;
}
.words-list{
min-width: 320px;
border-right: 1px solid #eaeaea;
padding-right: 12px;
box-sizing: border-box;
}
.words-detail{
padding-left: 20px;
flex: auto;
}
.body-title{
font-size: 14px;
font-weight: bold;
min-height: 20px;
padding-bottom: 12px;
position: relative;
}
.words-list, .words-detail{
display: flex;
flex-direction: column;
}
.words-list-inner{
flex: auto;
overflow: scroll;
}
.words-detail-inner{
flex: auto;
overflow: scroll;
/* padding: 12px 0; */
margin-top: 24px;
padding-bottom: 20px;
}
.body-title.border{
border-bottom: 1px solid #eaeaea;
}
.body-title.no-margin{
margin-bottom: 0;
}
.form-item{
display: flex;
}
.form-item.center{
align-items: center;
}
.form-item+.form-item{
margin-top: 20px;
}
.form-item .title{
min-width: 104px;
color: #999;
text-align: left;
margin-right: 12px;
font-size: 13px;
}
.form-item .detail{
flex: auto;
}
.action-list span{
padding: 0 10px;
cursor: pointer;
}
.action-list span:hover{
color: #d0021b;
}
.action-list span+span{
border-left: 1px solid #eaeaea;
}
.condition-list{
border: 1px solid #eaeaea;
border-radius: 4px;
padding: 8px 12px;
width: 636px;
position: relative;
}
.condition-list+.condition-list{
margin-top: 20px;
}
.action-list{
/* border-bottom: 1px solid #eaeaea; */
padding: 12px 0;
background: #f9f9f9;
margin-top: 12px;
border-radius: 4px;
}
.my-slider{
display: inline-block;
flex: auto;
margin-left: 12px;
}
.condition-detail-list{
display: flex;
align-items: center;
}
.my-slider .el-slider__runway{
margin: 12px 0;
}
.my-slider .el-slider__button{
width: 12px;
height: 12px;
}
.condition-detail{
margin-top: 12px;
border-top: 1px solid #eaeaea;
padding-top: 12px;
}
.form-item .detail img{
width: 636px;
height: auto;
border-radius: 4px;
}
.chart-condition{
padding: 8px 0;
}
.words-list-search{
margin-bottom: 12px;
}
.hover-icon{
cursor: pointer;
}
.hover-icon:hover{
color: #d0021b;
}
.hover-icon.red{
color: #d0021b;
}
.slide-fade-enter-active {
transition: all .3s ease;
}
.slide-fade-leave-active {
transition: all .1s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}
.slide-fade-enter, .slide-fade-leave-to
/* .slide-fade-leave-active for below version 2.1.8 */ {
transform: translateX(50px);
opacity: 0;
}
.close-btn{
position: absolute;
background: #fff;
right: -10px;
top: -10px;
font-size: 20px;
}
.complex-condition .cal-index-detail{
min-width: 220px;
max-width: 220px;
height: 442px;
}
.condition-action{
/* background: rgb(245, 247, 250); */
padding: 6px 12px;
border-radius: 4px;
}
.simple-condition-box{
border: 1px solid #eaeaea;
padding: 0 12px;
}
.complex-condition-showDom{
padding: 12px;
border: 1px solid #eaeaea;
box-sizing: border-box;
background: rgb(245, 247, 250);
}
.back-btn{
position: absolute;
top: -6px;
right: 0;
}
.inline-block{
display: inline-block;
}
.condition-detail-list .inline-block+.inline-block{
margin-left: 20px;
}
.gray{
color: #999;
}
.run-dialog .title{
text-align: right;
}
.run-dialog{
display: flex;
}
.flex-dialog-left{
min-width: 200px;
padding-right:12px;
border-right: 1px solid #eaeaea;
overflow: scroll;
}
.flex-dialog-right{
flex: auto;
padding-left:12px;
}
.selected-words{
font-size: 13px;
color: #333;
font-weight: bold;
}
.calculater-keybord{
width: 400px;
}
.empty-status{
min-height: 400px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.empty-status img{
width: 130px;
height: auto;
margin-bottom: 10px;
}
.empty-status .empty-tip{
font-size: 14px;
color: #999;
}
.detail-condition{
font-size: 12px;
}
.detail-condition+.detail-condition{
margin-top: 12px;
}
.detail-condition .title{
color: #999;
}
.side-modal{
position: fixed;
width: 400px;
background: #fff;
height: 100%;
right: 0px;
top: 0;
z-index: 100;
box-shadow: -8px 0 8px rgba(0, 0, 0, 0.1);
padding: 20px 12px;
box-sizing: border-box;
}
.slide-fade-enter-active {
transition: all .3s ease;
}
.slide-fade-leave-active {
transition: all .1s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}
.slide-fade-enter, .slide-fade-leave-to
/* .slide-fade-leave-active for below version 2.1.8 */ {
transform: translateX(50px);
opacity: 0;
}
.side-close{
font-size: 20px;
color: #999;
position: absolute;
right: 10px;
top: 10px;
cursor: pointer;
}
.side-close:hover{
color: #D0021B;
}
.side-modal-column{
display: flex;
align-items: baseline;
}
.side-modal-column .title{
min-width: 80px;
text-align: right;
color: #999;
margin-right: 10px;
}
.side-modal-column .detail{
flex: auto;
}
.side-modal h3{
margin-bottom: 20px;
}
.side-modal-column+.side-modal-column{
margin-top: 20px;
}
.detail-line-list+.detail-line-list{
margin-top: 8px;
}
.side-modal-operation{
position: absolute;
width: 100%;
bottom: 0px;
left: 0;
padding: 8px 12px;
box-sizing: border-box;
border-top: 1px solid #eaeaea;
}
.side-modal-inner{
overflow: scroll;
overflow-x: hidden;
height: calc(100% - 66px);
padding-bottom: 12px;
box-sizing: border-box;
}
.side-tree-box{
border: 1px solid #eaeaea;
padding: 12px;
height: 500px;
max-height: 500px;
overflow: scroll;
overflow-x: hidden;
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
#app{
width: 100%;
height: 100%;
display: block;
}
.header-router{
background: #fff;
width: 100%;
box-sizing: border-box;
padding: 16px 20px;
display: flex;
align-items: center;
border-bottom: 1px solid #eaeaea;
}
.parent-name{
font-size: 16px;
font-weight: bold;
margin-right: 32px;
}
.router-list{
flex: auto;
}
.router-list span{
padding: 0 12px;
font-size: 14px;
cursor: pointer;
}
.router-list span:hover{
color: #d0021b;
}
.router-list span+span{
border-left: 1px solid #eaeaea;
}
span.active-link{
color: #d0021b;
}
.header-search{
background: #fff;
padding: 12px 0;
box-sizing: border-box;
padding: 0 20px;
height: 62px;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
align-items: start;
}
.header-search-inner{
display: inline-block;
width: 560px;
}
.container{
height: 100%;
display: flex;
flex-direction: column;
}
.container .header{
min-height: 117px;
background: #fff;
}
.header-container{
height: 117px;
overflow: hidden;
}
.main-body{
height: calc(100% - 139px);
margin-top: 12px;
background: #fff;
padding: 16px;
box-sizing: border-box;
display: flex;
flex: auto;
}
.header-search-box{
width: 50%;
margin: 0 auto;
background: #f1f1f1;
line-height: 36px;
padding: 0 12px;
box-sizing: border-box;
}
.header-search-box .icon{
font-size: 14px;
}
.header-search-box input{
border: 0;
outline: 0;
background: #f1f1f1;
line-height: 36px;
font-size: 14px;
width: calc(100% - 20px);
box-sizing: border-box;
}
.header-search-box input:focus{
outline: 0;
}
.words-list{
min-width: 320px;
border-right: 1px solid #eaeaea;
padding-right: 12px;
box-sizing: border-box;
}
.words-detail{
padding-left: 20px;
flex: auto;
}
.body-title{
font-size: 14px;
font-weight: bold;
min-height: 20px;
padding-bottom: 12px;
position: relative;
}
.words-list, .words-detail{
display: flex;
flex-direction: column;
}
.words-list-inner{
flex: auto;
overflow: scroll;
}
.words-detail-inner{
flex: auto;
overflow: scroll;
/* padding: 12px 0; */
margin-top: 24px;
padding-bottom: 20px;
}
.body-title.border{
border-bottom: 1px solid #eaeaea;
}
.body-title.no-margin{
margin-bottom: 0;
}
.form-item{
display: flex;
}
.form-item.center{
align-items: center;
}
.form-item+.form-item{
margin-top: 20px;
}
.form-item .title{
min-width: 104px;
color: #999;
text-align: left;
margin-right: 12px;
font-size: 13px;
}
.form-item .detail{
flex: auto;
}
.action-list span{
padding: 0 10px;
cursor: pointer;
}
.action-list span:hover{
color: #d0021b;
}
.action-list span+span{
border-left: 1px solid #eaeaea;
}
.condition-list{
border: 1px solid #eaeaea;
border-radius: 4px;
padding: 8px 12px;
width: 636px;
position: relative;
}
.condition-list+.condition-list{
margin-top: 20px;
}
.action-list{
/* border-bottom: 1px solid #eaeaea; */
padding: 12px 0;
background: #f9f9f9;
margin-top: 12px;
border-radius: 4px;
}
.my-slider{
display: inline-block;
flex: auto;
margin-left: 12px;
}
.condition-detail-list{
display: flex;
align-items: center;
}
.my-slider .el-slider__runway{
margin: 12px 0;
}
.my-slider .el-slider__button{
width: 12px;
height: 12px;
}
.condition-detail{
margin-top: 12px;
border-top: 1px solid #eaeaea;
padding-top: 12px;
}
.form-item .detail img{
width: 636px;
height: auto;
border-radius: 4px;
}
.chart-condition{
padding: 8px 0;
}
.words-list-search{
margin-bottom: 12px;
}
.hover-icon{
cursor: pointer;
}
.hover-icon:hover{
color: #d0021b;
}
.hover-icon.red{
color: #d0021b;
}
.slide-fade-enter-active {
transition: all .3s ease;
}
.slide-fade-leave-active {
transition: all .1s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}
.slide-fade-enter, .slide-fade-leave-to
/* .slide-fade-leave-active for below version 2.1.8 */ {
transform: translateX(50px);
opacity: 0;
}
.close-btn{
position: absolute;
background: #fff;
right: -10px;
top: -10px;
font-size: 20px;
}
.complex-condition .cal-index-detail{
min-width: 220px;
max-width: 220px;
height: 442px;
}
.condition-action{
/* background: rgb(245, 247, 250); */
padding: 6px 12px;
border-radius: 4px;
}
.simple-condition-box{
border: 1px solid #eaeaea;
padding: 0 12px;
}
.complex-condition-showDom{
padding: 12px;
border: 1px solid #eaeaea;
box-sizing: border-box;
background: rgb(245, 247, 250);
}
.back-btn{
position: absolute;
top: -6px;
right: 0;
}
.inline-block{
display: inline-block;
}
.condition-detail-list .inline-block+.inline-block{
margin-left: 20px;
}
.gray{
color: #999;
}
.run-dialog .title{
text-align: right;
}
.run-dialog{
display: flex;
}
.flex-dialog-left{
min-width: 200px;
padding-right:12px;
border-right: 1px solid #eaeaea;
overflow: scroll;
}
.flex-dialog-right{
flex: auto;
padding-left:12px;
}
.selected-words{
font-size: 13px;
color: #333;
font-weight: bold;
}
.calculater-keybord{
width: 400px;
}
.empty-status{
min-height: 400px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.empty-status img{
width: 130px;
height: auto;
margin-bottom: 10px;
}
.empty-status .empty-tip{
font-size: 14px;
color: #999;
}
.detail-condition{
font-size: 12px;
}
.detail-condition+.detail-condition{
margin-top: 12px;
}
.detail-condition .title{
color: #999;
}
.table-condition{
margin-bottom: 20px;
}
.el-link{
font-size: 12px;
}
.el-link.el-link--default{
color: #d0021b;
}
.calculater-words-box{
border: 1px solid #eaeaea;
padding: 12px;
}
.detail.active{
background: #ffe7ea;
padding: 6px 12px;
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
var init = require('../../lib/init.js')
var value = init(__filename, __dirname)
module.exports[value.name] = {
data: function () {
return {
tableData: [],
pageTotal: 0,
pageCurrent: 1,
psize: 15,
tableLoading: true,
searchName: '',
recordType: 1,
isWordsDot: false,
IntervalId: 0,
wordsPermission: false
}
},
components: {},
template: value.template,
mounted () {
this.checkPermission(53, 'wordsPermission')
this.getSortBadge()
this.IntervalId = setInterval(() => {
this.getSortBadge()
}, 30000)
this.currentAccount = store.get('accountId')
this.getIndexData()
},
beforeDestroy(){
clearInterval(this.IntervalId)
},
methods: {
checkPermission (id, key) {
return new Promise((resolve, reject) => {
http.netPost('Account/Account/CheckPermission', {
"id": id,
"AccountId": store.get('accountId')
})
.then((res) => {
if (res.data.Status == 1) {
if(res.data.Data == 1){
this[key] = true
}
resolve()
}
})
})
},
getSortBadge () {
return new Promise((resolve) => {
http.netPost('Data/SmartWord/GetTodoSmartWordCount', {
"AccountId": store.get('accountId')
})
.then((res) => {
if (res.data.Status == 1) {
if(res.data.Data > 0){
this.isWordsDot = true
}else{
this.isWordsDot = false
}
resolve(res)
}
})
})
},
getIndexData () {
this.tableLoading = true
return new Promise((resolve, reject) => {
http.netPost('Data/SmartWord/GetSmartWordStatusChanges', {
"logOptions": this.recordType,
"Current": (this.pageCurrent - 1) * this.psize,
"Psize": this.psize,
"name": this.searchName,
"AccountId": store.get('accountId')
})
.then((res) => {
if (res.data.Status == 1) {
this.tableData = res.data.Data.Records
this.pageTotal = res.data.Data.Total
}
this.tableLoading = false
})
})
},
pagClick (page) {
this.pageCurrent = page
this.getIndexData()
},
changeType () {
this.searchName = ''
this.pagClick(1)
}
}
}
<template>
<div class="container">
<div class="header shadow">
<div class="header-router">
<div class="parent-name">智能词管理</div>
<div class="router-list" style="display: flex">
<router-link tag="span" active-class="active-link" exact to="/">我的智能词</router-link>
<router-link tag="span" active-class="active-link" exact to="/publicWords">公共智能词</router-link>
<el-badge :is-dot="isWordsDot && wordsPermission" class="item">
<router-link tag="span" active-class="active-link" exact to="/wordsAudit">智能词审核</router-link>
</el-badge >
<router-link tag="span" style="flex: auto; text-align: right;border-left: 0" active-class="active-link" exact to="/wordsRecord">
<span class="el-icon-date"> 指标修改日志</span>
</router-link>
</div>
</div>
<div class="header-search">
<div style="margin-top: 12px; padding-bottom: 12px">
<span style="color: #999">日志类型:</span>
<el-radio-group v-model="recordType" @change="changeType">
<el-radio :label="1">智能词修改</el-radio>
<!-- <el-radio :label="2">排序调整</el-radio> -->
</el-radio-group>
<span style="color: #999; margin-left: 20px">名称搜索:</span>
<el-input style="width: 240px" @keyup.enter.native="pagClick(1)" clearable v-model="searchName" size="mini" placeholder="请输入姓名查询相关日志"></el-input>
<el-button size="mini" style="margin-left: 12px" @click="pagClick(1)" type="primary">搜索</el-button>
</div>
</div>
</div>
<div class="main-body" style="display: block; margin-top:0; padding-top: 0">
<div class="table-box">
<div>
<el-table
size="mini"
v-loading="tableLoading"
:data="tableData"
:header-cell-style="{background:'#f5f7fa',color:'#666'}"
border>
<el-table-column label="序号" width="60" type="index"></el-table-column>
<el-table-column prop="CreateDate" width="160" label="创建时间"></el-table-column>
<el-table-column prop="StatusChangeMsg" label="详情"></el-table-column>
<el-table-column prop="Remark" label="操作备注"></el-table-column>
</el-table>
<div class="pagination-container">
<el-pagination
layout="prev, pager, next"
:current-page="pageCurrent"
@current-change="pagClick"
:page-size="psize"
:total="pageTotal"
></el-pagination>
</div>
</div>
</div>
</div>
</div>
</template>
\ No newline at end of file
This diff is collapsed.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../../../static/plTable/index.css">
<link rel="stylesheet" href="../../../static/element/theme/index.css">
<link rel="stylesheet" href="../../../static/global/global.css">
<body>
<div id="app" v-cloak>
<router-view></router-view>
</div>
</body>
<script>
const { app } = require('electron').remote
const { ipcRenderer } = require('electron')
window.global.urls = require(app.getAppPath() + '/build_config/url')
</script>
<script src="../../../static/vue/vue.min.js"></script>
<script src="../../../static/element/index.js"></script>
<script src="../../../static/vue-router/vue-router.js"></script>
<script src='../../../static/xlsx/xlsx.full.min.js'></script>
<script src="../../../static/plTable/index.js"></script>
<script src="../../../assist/loadVue.js"></script>
<script src="./routers/customWords/index.js"></script>
<script src="../../../assist/axios.js"></script>
<script src="./smartWords.js"></script>
<script>
var http = newHttp()
const mytools = new tools()
var info = JSON.parse(localStorage.getItem('userInfo'))
const { splitPane } = require('vue-splitpane')
Vue.component('split-pane', splitPane)
async function init() {
var customWords = await getCustomWords()
// var indexAudit = await getIndexAudit()
// var publicIndex = await getPublicIndex()
// var categoryAudit = await getCategoryAudit()
// var indexRecord = await getIndexRecord()
var routes = [
{ path: '/', component: customWords },
// { path: '/indexAudit', component: indexAudit },
// { path: '/publicIndex', component: publicIndex },
// { path: '/categoryAudit', component: categoryAudit },
// { path: '/indexRecord', component: indexRecord }
]
var router = new VueRouter({ routes })
new Vue({
router,
el: '#app',
data: function () {
return {
}
},
mounted() {
},
methods: {
}
})
}
init()
</script>
</html>
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment