Commit 3dd71352 by liangzhen

提交

1 parent 64e6048f
// import request from '@/utils/request'
// let mainURL="192.168.8.248:18101"
import { get, post, download } from '@/utils/http'
// 获取流程列表
export function evalBatchInfo(params) {
return post(`/api/postEvalBatchInfo/`, params)
}
//专家库
export function expertInfo(params) {
return post(`/api/expertInfo/`, params)
}
//查询关联专家
export function expert(params) {
return post(`/api/expertInfo/expert`, params)
}
//专家删除
export function delEvalBatchInfo(params) {
return post(`/api/postEvalBatchInfo/del`, params)
}
//辅助下发
export function sendEvalBatchInfo(params) {
return post(`/api/postEvalBatchInfo/xf`, params)
}
//编辑
export function updEvalBatchInfo(params) {
return post(`/api/postEvalBatchInfo/upd`, params)
}
//新增
export function adEvalBatchInfo(params) {
return post(`/api/postEvalBatchInfo/ad`, params)
}
//撤回
export function chEvalBatchInfo(params) {
return post(`/api/postEvalBatchInfo/ch`, params)
}
//评估批次确认发布分页查询
export function projectInfo(params) {
return post(`/api/projectInfo/`, params)
}
...@@ -21,7 +21,7 @@ export const routes = [ ...@@ -21,7 +21,7 @@ export const routes = [
path: '/', path: '/',
name: 'main', name: 'main',
component: () => import('@/views/layout/index.vue'), component: () => import('@/views/layout/index.vue'),
redirect:'/mainLayout', redirect:'/mainLayout/auxiliarySelection',
children:[ children:[
{ {
......
<template> <template>
<div class="archiEvoluteLine"> <div class="archiEvoluteLine">
<!-- <HeaderInfo :title="title"></HeaderInfo> --> <!-- <HeaderInfo :title="title"></HeaderInfo> -->
<seachList searchtype="FZXD"></seachList> <seachList
<tableList class="tableList" tbtyps="FZXD"></tableList> searchtype="FZXD"
@listenToChildEvent="showMsgFromChild"
@delateEval="delateEval"
:selection="selection"
></seachList>
<tableList
class="tableList"
tbtyps="FZXD"
:tableData="tableData"
:total="total"
@currentPage="currentPageP"
@pageSize="pageSizeP"
@sendselection="sendselection"
></tableList>
</div> </div>
</template> </template>
<script> <script>
import seachList from './components/seachList.vue' import seachList from "./components/seachList.vue";
import tableList from './components/tableList.vue' import tableList from "./components/tableList.vue";
import { evalBatchInfo ,delEvalBatchInfo} from "@/api/index";
export default { export default {
name: 'auxiliarySelection', name: "auxiliarySelection",
components: { components: {
seachList, seachList,
tableList tableList,
}, },
data() { data() {
return{ return {
title:'评估项目辅助选定' title: "评估项目辅助选定",
} tableData: [],
total: 0,
current: "1",
pageSize: "10",
selection:'',
};
}, },
mounted(){ mounted() {
this.evalBatchInfo();
}, },
methods: { methods: {
pageSizeP(data) {
this.current = data;
this.evalBatchInfo();
},
currentPageP(data) {
this.current = data;
this.evalBatchInfo();
},
async evalBatchInfo(data) {
let params = {
current: this.current,
pageSize: this.pageSize,
};
if (data) {
Object.assign(params, data);
}
//重置查询参数
if (data == "reset") {
params = {
current: '1',
pageSize: '10',
};
}
console.log(params, "params");
let res = await evalBatchInfo(params);
console.log(res.data.records,'222222222222222')
this.tableData = res.data.records;
if (res.data.total) {
this.total = res.data.total * 1;
} }
}
console.log(this.tableData, this.total, "33333");
},
showMsgFromChild(data) {
console.log("船只", data);
// this.chilidParams = data;
this.evalBatchInfo(data);
},
async delateEval(){
console.log('删除',this.selection)
if(this.selection.length>0){
let res = await delEvalBatchInfo(this.selection[0]);
this.evalBatchInfo("reset")
}
},
sendselection(val){
this.selection=val
}
},
};
</script> </script>
<style scoped> <style scoped>
.archiEvoluteLine{ .archiEvoluteLine {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-start; justify-content: flex-start;
align-items:flex-start; align-items: flex-start;
} }
.tableList{ .tableList {
width: 100%; width: 100%;
} }
</style> </style>
\ No newline at end of file
<template> <template>
<div class="mian"> <div class="main">
<el-table <el-table
@selection-change="handleSelectionChange"
ref="multipleTable" ref="multipleTable"
:data="tableData" :data="tableData"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
header-cell-class-name="custom-th-background" header-cell-class-name="custom-th-background"
class="eltable"
:row-class-name="tableRowClassName">
border
> >
<el-table-column label="序号" width="55"> <el-table-column label="序号" width="55" type="index">
<template slot-scope="scope">{{ scope.row.id }}</template>
</el-table-column> </el-table-column>
<el-table-column type="selection"> </el-table-column> <el-table-column type="selection"> </el-table-column>
<el-table-column label="批次年度" width="auto"> <el-table-column label="批次年度" width="auto" prop="batchYear">
<template slot-scope="scope">{{ scope.row.date }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="name" label="后评估批次名称" width="auto"> <el-table-column prop="batchName" label="后评估批次名称" width="auto">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="address" prop="planReviewDate"
label="计划评审日期" label="计划评审日期"
width="auto" width="auto"
> >
</el-table-column> </el-table-column>
<el-table-column prop="name1" label="后评估专家组长" width="auto"> <el-table-column prop="expertName" label="后评估专家" width="auto">
</el-table-column> </el-table-column>
<el-table-column prop="name2" label="后评状态" width="auto"> <el-table-column prop="postEvalState" label="批次下发状态" width="auto">
<!-- <el-table-column prop="expertLeader" label="后评估专家组长" width="auto">
</el-table-column> </el-table-column>
<el-table-column prop="name3" label="评审专家名单" width="auto"> <el-table-column prop="status" label="后评状态" width="auto">
</el-table-column> </el-table-column>
<el-table-column prop="name3" label="创建人" width="auto"> <el-table-column prop="expertName" label="评审专家名单" width="auto"> -->
</el-table-column> </el-table-column>
<el-table-column prop="name3" label="创建时间" width="auto"> <el-table-column prop="creator" label="创建人" width="auto">
</el-table-column>
<el-table-column prop="createTime" label="创建时间" width="auto">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-sizes="[5, 10, 20, 50]"
:page-size="100"
layout="total, sizes, prev, pager, next, jumper"
:total="tableData.length"
class="elpagination">
</el-pagination>
</div> </div>
</template> </template>
<script> <script>
import { number } from 'echarts';
export default { export default {
data() { data() {
return { return {
tableData: [ currentPage:1,
{ pageSize:"5",
id: 1, }
date: "2016-05-03",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
}, },
{ props: {
id: 1, tableData: {
date: "2016-05-02", type: Array,
name: "王小虎", default:[],
address: "上海市普陀区金沙江路 1518 弄",
}, },
{ total:{
id: 1, type:Number,
date: "2016-05-04", default: "",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
}, },
{ tbtyps:{
date: "2016-05-01", type: String,
name: "王小虎", default: "",
address: "上海市普陀区金沙江路 1518 弄", }
}, },
{ methods: {
date: "2016-05-08", handleSelectionChange(selection) {
name: "王小虎", if (Array.isArray(selection) && selection.length > 1) {
address: "上海市普陀区金沙江路 1518 弄", this.$refs.multipleTable.toggleRowSelection(selection[0],false);
this.$refs.multipleTable.toggleRowSelection(selection[1],true);
}
console.log( this.$refs.multipleTable.selection,'this.$refs.multipleTable.selection')
this.$emit('sendselection',this.$refs.multipleTable.selection)
}, },
{ handleSizeChange(val) {
date: "2016-05-06", console.log(`每页 ${val} 条`);
name: "王小虎", this.$emit('pageSize',this.pageSize)
address: "上海市普陀区金沙江路 1518 弄",
}, },
{ handleCurrentChange(val) {
date: "2016-05-07", console.log(`当前页: ${val}`);
name: "王小虎", this.currentPage=val
address: "上海市普陀区金沙江路 1518 弄", this.$emit('currentPage',this.currentPage)
}, },
], tableRowClassName({row, rowIndex}) {
}; // console.log(rowIndex % 2,'333')
if (rowIndex % 2 == 1) {
return 'warning-row';
}
return ''
}
}, },
}; };
</script> </script>
...@@ -89,6 +109,14 @@ export default { ...@@ -89,6 +109,14 @@ export default {
.main { .main {
font-size: 14px; font-size: 14px;
width: 100%; width: 100%;
height:70%;
.eltable{
height: 94%;
}
.elpagination{
text-align: right;
margin-right: 100px;
}
} }
/deep/ .cell { /deep/ .cell {
...@@ -116,4 +144,8 @@ export default { ...@@ -116,4 +144,8 @@ export default {
opacity: 0.7; opacity: 0.7;
border-color: #333; border-color: #333;
} }
/deep/ .el-table .warning-row {
background: #f0ffff;
color: #2785E6;
}
</style> </style>
\ No newline at end of file
...@@ -12,24 +12,13 @@ module.exports = defineConfig({ ...@@ -12,24 +12,13 @@ module.exports = defineConfig({
devServer: { devServer: {
hot: true, hot: true,
proxy: { proxy: {
'/eadc-shared-ability': { '/api':{
target: `http://${ip}:80/`, // 共享能力 target: `http://192.168.8.248:18101`, // pin
changeOrigin: true, changeOrigin: true,
// secure: false, pathRewrite:{
// pathRewrite: { '^/api/eadc-shared-ability': '/eadc-shared-ability' }, "^/api":""
},
'/eadc-architecture': {
target: `http://${ip}:80/`, // 架构元模型
changeOrigin: true,
// secure: false,
// pathRewrite: { '^/api/network': '' },
},
'/eadc-knowledge-pool': {
target: `http://${ip}:80/`, // 架构知识库
changeOrigin: true,
// secure: false,
// pathRewrite: { '^/api': '' },
}, },
}
}, },
}, },
chainWebpack: (config) => { chainWebpack: (config) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!