Commit 528ab007 authored by 陶进's avatar 陶进

提交一下

parent 745a1a49
......@@ -3,6 +3,8 @@ const fs = require('fs')
const http = require('http')
const loadUrl = require('./build_config/url').loadUrl
console.log(loadUrl)
var appPath = app.getAppPath()
var getRemoteModule = async function (name, url) {
......
var init = require('../../lib/init.js')
var value = init(__filename, __dirname)
//以上代码引入vue、css等,初始化
module.exports = {
name: value.name,
data: function () {
return {
testYear: '',
testQuarter: '',
testMergeType: '',
requiredCondition: []
}
},
props:['params','allParams'],
template: value.template,
computed: {
},
mounted() {
this.getRequiredCondition()
},
methods: {
getRequiredCondition () { //1证券代码 2合并类型 4报告期
var arr = []
this.allParams.forEach(item => {
if (this.params & item.Id) {
arr.push(item)
}
})
this.requiredCondition = arr
},
isContains (id) {
console.log('执行')
var isRequired = false
this.requiredCondition.forEach(item => {
if(item.Id == id){
isRequired = true
}
})
return isRequired
}
}
}
\ No newline at end of file
<template>
<div>
<div class="detail-index" v-show="isContains(4)">
<div class="title">报告期:</div>
<div class="detail">
<el-date-picker
style="width: 120px"
size="mini"
v-model="testYear"
type="year"
value-format="yyyy"
placeholder="选择年度"
></el-date-picker>
<el-select
placeholder="选择季度"
style="width: 120px; margin-left: 12px"
size="mini"
v-model="testQuarter"
>
<el-option value="03-31">03-31</el-option>
<el-option value="06-30">06-30</el-option>
<el-option value="09-30">09-30</el-option>
<el-option value="12-31">12-31</el-option>
</el-select>
</div>
</div>
<div class="detail-index" v-show="isContains(2)">
<div class="title">合并类型:</div>
<div class="detail">
<el-select style="width: 120px" size="mini" v-model="testMergeType" placeholder="选择合并类型">
<el-option value="合并本期">合并本期</el-option>
<el-option value="合并上期">合并上期</el-option>
<el-option value="母公司本期">母公司本期</el-option>
<el-option value="母公司上期">母公司上期</el-option>
</el-select>
</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">
<link rel="stylesheet" href="./indexManage.css">
</head>
<body>
<div id="app" class="production-line-container" v-cloak>
<router-view></router-view>
</div>
</body>
<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="../../lib/vue/vue.js"></script>
<script src="../../lib/element/index.js"></script>
<script type="text/javascript" src='../../lib/xlsx/xlsx.full.min.js'></script>
<script src="../../lib/vue-router/vue-router.js"></script>
<script src="../../lib/plTable/index.js"></script>
<script src="../../lib/echarts/echarts.min.js"></script> -->
<script>
const { app } = require('electron').remote
const path = app.getAppPath()
const { routes } = require(path + '/src/views/main_views/indexManage/routers/router.js')
const router = new VueRouter({ routes })
const http = require(path + '/src/assist/axios.js')
var info = JSON.parse(localStorage.getItem('userInfo'))
const { splitPane } = require('vue-splitpane')
Vue.component('split-pane', splitPane)
new Vue({
router,
el: '#app',
data: function() {
return {
hasPadding: true
}
},
mounted () {
},
methods: {
}
})
</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>'
}
}
module.exports = (filename, dirname)=>{
const fs = require('fs')
const os = require('os')
const platform = os.platform()
const filePath = filename.replace('.js','.vue')
const dirName = dirname.replace('.js','.vue')
var name
if(platform == 'darwin'){
name = dirName.split('/').pop()
}else{
name = dirName.split('\\').pop()
}
var data = fs.readFileSync(filePath);
var str = data.toString()
str.substring(0, str.lastIndexOf('</template>'))
str = str.replace('<template>','')
var head = document.getElementsByTagName('head')[0];
var link = document.createElement('link');
var href = filename.replace('.js','.css')
link.href = href;
link.rel = 'stylesheet';
link.type = 'text/css';
head.appendChild(link);
return {
name: name,
template: str
}
}
\ No newline at end of file
//条件上的键盘
var keybordData = [
[
{
key: '插入指标',
isActive: false,
isText: true,
isLong: true,
isFunction: false,
tip: '插入指标',
type: 1,
},
{
key: '插入日期',
isActive: false,
isText: true,
isLong: true,
isFunction: false,
tip: '插入日期',
type: 2
},
{
key: '插入数字',
isActive: false,
isText: true,
isLong: true,
isFunction: false,
tip: '插入数字',
type: 3
},
{
key: 'Kdp( )',
isActive: false,
isText: true,
isLong: false,
isFunction: true,
tip: '保留小数位函数',
type: 5,
funcId: 0,
describe: '保留小数位',
case: 'Kdp(归属于母公司所有者的净利润[T:0][Q:0][合并本期], 2)',
params: [[0,4],[1]], //0指标 1数字 2字符 3时间 4公式
isLimited: true
},
{
key: 'Abs( )',
isActive: false,
isText: true,
isLong: false,
isFunction: true,
tip: '绝对值函数',
type: 5,
funcId: 1,
describe: '求指标或计算片段的绝对值',
case: 'Abs(归属于母公司所有者的净利润[T:0][Q:0][合并本期])',
params: [[0,4]], //0指标 1数字 2字符 3时间 4公式
isLimited: true
},
// {
// key: 'Tf( )',
// isActive: false,
// isText: true,
// isLong: false,
// isFunction: true,
// tip: '时间格式化函数',
// type: 5,
// funcId: 2,
// describe: '对时间进行格式化操作',
// case: 'Abs(上市日期, yyyy-MM-dd)',
// params: [[3],[2]], //0指标 1数字 2字符 3时间 4公式
// isLimited: true
// },
{
key: 'Ave( )',
isActive: false,
isText: true,
isLong: false,
isFunction: true,
tip: '平均值函数',
type: 5,
funcId: 3,
describe: '计算一组数据的平均值',
case: 'Ave(营业总收入[T:-1][Q:0][合并本期], 营业总收入[T:-2][Q:0][合并本期])',
params: [[0,1,4]], //0指标 1数字 2字符 3时间 4公式
isLimited: false
},
{
key: 'Mer( )',
isActive: false,
isText: true,
isLong: false,
isFunction: true,
tip: '当该指标为年报时,用下一年合并上期数据',
type: 5,
funcId: 8,
describe: '计算下一年年报合并上期',
case: 'Mer(营业总收入[T:-1][Q:0][合并本期])',
params: [[0]], //0指标 1数字 2字符 3时间 4公式
isLimited: true
}
],[
{
key: '+',
isActive: false,
isText: true,
isLong: false,
isFunction: false,
tip: '计算符号:加号',
type: 4
},
{
key: '-',
isActive: false,
isText: true,
isLong: false,
isFunction: false,
tip: '计算符号:减号',
type: 4
},
{
key: '*',
isActive: false,
isText: true,
isLong: false,
isFunction: false,
tip: '计算符号:乘号',
type: 4
},
{
key: '/',
isActive: false,
isText: true,
isLong: false,
isFunction: false,
tip: '计算符号:除号',
type: 4
},
{
key: '(',
isActive: false,
isText: true,
isLong: false,
isFunction: false,
tip: '计算符号:左括号',
type: 4
},
{
key: ')',
isActive: false,
isText: true,
isLong: false,
isFunction: false,
tip: '计算符号:右括号',
type: 4
},
{
key: 'Sum( )',
isActive: false,
isText: true,
isLong: false,
isFunction: true,
tip: '求和函数',
type: 5,
funcId: 4,
describe: '计算一组数据的总和',
case: 'Sum(营业总收入[T:-1][Q:0][合并本期], 营业总收入[T:-2][Q:0][合并本期])',
params: [[0,1,4]], //0指标 1数字 2字符 3时间 4公式
isLimited: false
},
{
key: 'Max( )',
isActive: false,
isText: true,
isLong: false,
isFunction: true,
tip: '最大值函数',
type: 5,
funcId: 5,
describe: '计算一组数据的最大值',
case: 'Max(营业总收入[T:-1][Q:0][合并本期], 营业总收入[T:-2][Q:0][合并本期])',
params: [[0,1,4]], //0指标 1数字 2字符 3时间 4公式
isLimited: false
},
{
key: 'Min( )',
isActive: false,
isText: true,
isLong: false,
isFunction: true,
tip: '最小值函数',
type: 5,
funcId: 6,
describe: '计算一组数据的最小值',
case: 'Min(营业总收入[T:-1][Q:0][合并本期], 营业总收入[T:-2][Q:0][合并本期])',
params: [[0,1,4]], //0指标 1数字 2字符 3时间 4公式
isLimited: false
},
{
key: 'Fac( )',
isActive: false,
isText: true,
isLong: false,
isFunction: true,
tip: '阶乘函数',
type: 5,
funcId: 7,
describe: '计算一组数据的阶乘',
case: 'Fac(营业总收入[T:-1][Q:0][合并本期])',
params: [[0,1,4]], //0指标 1数字 2字符 3时间 4公式
isLimited: true
}
]
]
//条件上的键盘
var functionKeybord = [
[
{
key: '插入指标',
isActive: false,
isText: true,
isLong: true,
isFunction: false,
tip: '插入指标',
type: 1,
},
{
key: '插入日期',
isActive: false,
isText: true,
isLong: true,
isFunction: false,
tip: '插入日期',
type: 2
},
{
key: '插入数字',
isActive: false,
isText: true,
isLong: true,
isFunction: false,
tip: '插入数字',
type: 3
}
],[
{
key: '+',
isActive: false,
isText: true,
isLong: false,
isFunction: false,
tip: '计算符号:加号',
type: 4
},
{
key: '-',
isActive: false,
isText: true,
isLong: false,
isFunction: false,
tip: '计算符号:减号',
type: 4
},
{
key: '*',
isActive: false,
isText: true,
isLong: false,
isFunction: false,
tip: '计算符号:乘号',
type: 4
},
{
key: '/',
isActive: false,
isText: true,
isLong: false,
isFunction: false,
tip: '计算符号:除号',
type: 4
},
{
key: '(',
isActive: false,
isText: true,
isLong: false,
isFunction: false,
tip: '计算符号:左括号',
type: 4
},
{
key: ')',
isActive: false,
isText: true,
isLong: false,
isFunction: false,
tip: '计算符号:右括号',
type: 4
}
]
]
module.exports = {
keybordData, functionKeybord
}
var mergeData = ['合并本期','合并上期','母公司本期','母公司上期']
module.exports = {
mergeData
}
This diff is collapsed.
const http = require('../../../lib/axios/axios.js')
const { dialog } = require('electron').remote
const officegen = require('officegen')
const path = require('path');
const fs = require('fs')
const filePath = path.resolve(__dirname, './categoryAudit.vue')
let newTemplate = ''
var data = fs.readFileSync(filePath);
var str = data.toString()
var newStr = str.substring(0, str.lastIndexOf('</template>'))
newTemplate = newStr.replace('<template>','')
var keyBord = require('../../lib/keyBord')
var tools = require('../../lib/tools.js')
const condition = require('../../components/condition/index.js')
module.exports = {
categoryAudit: {
data: function () {
return {
tableData: [],
tableType: 2,
searchedName: '',
pageTotal: 0,
pageCurrent: 1,
psize: 15,
tableLoading: true,
activeIndex: {},
activeIndexCondition: {},
subActiveIndex: {},
subActiveIndexCondition: {},
showIndexDetail: false,
defaultTypeList: [],
companyNameObj: {},
initIndexObj: {},
keyboardObj: {},
passCategoryVisible: false,
choosedPassCategory: [],
publicCategoryOptions: [],
publicProps: {
value: 'Code',
label: 'Name',
children: 'Children',
checkStrictly: true
},
passLoading: false,
testRunVisible: false,
rangeCompany: '',
searchCompanyLoading: false,
runningCompanyList: [],
selectedRangeCompany: [],
zjhIndustryData: [],
swIndustryData: [],
marketData:[],
positionData: [],
industryObj: {},
testYear: '',
testQuarter: '',
testMergeType: '合并本期',
activeRangeTab: '3',
showEditIndexDetail: false,
showChangeDetail: false,
initIndex: 1,
currentAccount: 0,
sortType: null,
treeProps: {
children: 'children',
label: 'name'
},
defaultExpandedKeys: [],
myTreeData: [],
isDotEdit: false,
isDotSort: false,
IntervalId: 0,
indexPermission: false
}
},
components: {condition},
template: newTemplate,
mounted () {
this.checkPermission(48, 'indexPermission')
this.currentAccount = store.get('accountId')
this.getIndexData()
this.getBadge(1, 'isDotEdit')
this.getBadge(2, 'isDotSort')
this.IntervalId = setInterval(() => {
this.getBadge(1, 'isDotEdit')
this.getBadge(2, 'isDotSort')
}, 30000);
},
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()
}
})
})
},
confirmPassReview (type) {
return new Promise((resolve, reject) => {
http.netPost('Data/CustomIndex/ViewIndexSort', {
"status": type == 'pass'?1:2, //1通过2拒绝
"id": this.activeIndex.Id,
"AccountId": store.get('accountId')
})
.then((res) => {
if (res.data.Status == 1) {
this.pagClick(1)
this.$message({
message: '操作成功',
type: 'success'
})
resolve()
}
})
})
},
getIndexData () {
this.tableLoading = true
return new Promise((resolve, reject) => {
http.netPost('Data/CustomIndex/GetPendingViewIndexSort', {
"Current": (this.pageCurrent - 1) * this.psize,
"Psize": this.psize,
"AccountId": store.get('accountId')
})
.then((res) => {
if (res.data.Status == 1) {
this.tableData = res.data.Data.Result
this.pageTotal = 1
}
this.tableLoading = false
})
})
},
pagClick (page) {
this.pageCurrent = page
this.getIndexData()
},
openChangeDetail (data) {
this.showChangeDetail = true
this.activeIndex = data
// this.myTreeData = this.setTreeData(this.indexIntoCategroy(this.activeIndex.SortContent.Object), 'myId', 'parentId')
// this.myTreeData.forEach(item => {
// this.defaultExpandedKeys.push(item.myId)
// })
},
getBadge (type, key) {
return new Promise((resolve, reject) => {
http.netPost('Data/CustomIndex/GetTodoCustomIndexCount', {
"countOption": type,
"AccountId": store.get('accountId')
})
.then((res) => {
if (res.data.Status == 1) {
if(res.data.Data > 0){
this[key] = true
}else{
this[key] = false
}
resolve(res)
}
this.loadingDetail = false
})
})
}
}
}
}
\ No newline at end of file
<template>
<div class="editor-inner">
<div class="analyzer-header shadow" style="margin-bottom: 0">
<div class="analyzer-header-title">
<div class="analyzer-header-title-name">指标管理</div>
<div class="analyzer-header-tab" style="flex: auto">
<router-link tag="div" active-class="activeLink" exact to="/">我的指标</router-link>
<router-link tag="div" active-class="activeLink" exact to="/publicIndex">公共指标</router-link>
<el-badge :is-dot="isDotEdit && indexPermission" class="item">
<router-link tag="div" active-class="activeLink" exact to="/indexAudit">指标审核</router-link>
</el-badge>
<el-badge :is-dot="isDotSort && indexPermission" class="item">
<router-link tag="div" active-class="activeLink" exact to="/categoryAudit">公共分类修改审核</router-link>
</el-badge>
<router-link tag="div" style="flex: auto; text-align: right" active-class="activeLink" exact to="/indexRecord">
<span class="el-icon-date"> 指标修改日志</span>
</router-link>
</div>
</div>
</div>
<div class="analyzer-content shadow" style="padding-top: 20px">
<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 prop="index" label="序号" width="60" type="index"></el-table-column>
<el-table-column prop="resarcher" label="提交人">
<template slot-scope="scope">
<span v-if="(tableType == 4 || tableType == 8) && scope.row.status.Creator">{{scope.row.status.Creator.NickName}}</span>
<span v-if="tableType == 2">{{scope.row.Creator.NickName}}</span>
</template>
</el-table-column>
<el-table-column prop="LastUpdate" label="提交时间"></el-table-column>
<el-table-column prop="formula" width="120" label="详情">
<template slot-scope="scope">
<el-link size="mini" @click="openChangeDetail(scope.row)">查看详情</el-link>
</template>
</el-table-column>
<el-table-column width="280" label="操作">
<template slot-scope="scope">
<el-link type="success" size="mini" @click="activeIndex = scope.row; confirmPassReview('pass')"
v-show="scope.row.CreatorId !== currentAccount">审核通过</el-link>
<el-popconfirm
confirmButtonText='确认'
@onConfirm="activeIndex = scope.row; confirmPassReview('nopass')"
cancelButtonText='取消'
icon="el-icon-info"
iconColor="red"
title="确认驳回该提交?">
<el-link size="mini" type="danger" v-show="scope.row.CreatorId !== currentAccount" slot="reference">审核驳回</el-link>
</el-popconfirm>
<el-popconfirm
confirmButtonText='确认'
@onConfirm="activeIndex = scope.row; confirmPassReview('nopass')"
cancelButtonText='取消'
icon="el-icon-info"
iconColor="red"
title="确认撤销该提交?">
<el-link size="mini" type="danger" v-show="scope.row.CreatorId == currentAccount" slot="reference">撤销提交</el-link>
</el-popconfirm>
</template>
</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>
<el-dialog title="修改详情" :visible.sync="showChangeDetail" width="800px">
<div class="change-detail-right">
<div>{{activeIndex.Remark}}</div>
</div>
</el-dialog>
</div>
</template>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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