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 = [
path: '/',
name: 'main',
component: () => import('@/views/layout/index.vue'),
redirect:'/mainLayout',
redirect:'/mainLayout/auxiliarySelection',
children:[
{
......
<template>
<div class="archiEvoluteLine">
<!-- <HeaderInfo :title="title"></HeaderInfo> -->
<seachList searchtype="FZXD"></seachList>
<tableList class="tableList" tbtyps="FZXD"></tableList>
<seachList
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>
</template>
<script>
import seachList from './components/seachList.vue'
import tableList from './components/tableList.vue'
<script>
import seachList from "./components/seachList.vue";
import tableList from "./components/tableList.vue";
import { evalBatchInfo ,delEvalBatchInfo} from "@/api/index";
export default {
name: 'auxiliarySelection',
name: "auxiliarySelection",
components: {
seachList,
tableList
tableList,
},
data() {
return{
title:'评估项目辅助选定'
}
return {
title: "评估项目辅助选定",
tableData: [],
total: 0,
current: "1",
pageSize: "10",
selection:'',
};
},
mounted(){
mounted() {
this.evalBatchInfo();
},
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>
<style scoped>
.archiEvoluteLine{
<style scoped>
.archiEvoluteLine {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items:flex-start;
}
.tableList{
align-items: flex-start;
}
.tableList {
width: 100%;
}
}
</style>
\ No newline at end of file
<template>
<div class="mian">
<div class="main">
<el-table
@selection-change="handleSelectionChange"
ref="multipleTable"
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
header-cell-class-name="custom-th-background"
class="eltable"
:row-class-name="tableRowClassName">
border
>
<el-table-column label="序号" width="55">
<template slot-scope="scope">{{ scope.row.id }}</template>
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<el-table-column type="selection"> </el-table-column>
<el-table-column label="批次年度" width="auto">
<template slot-scope="scope">{{ scope.row.date }}</template>
<el-table-column label="批次年度" width="auto" prop="batchYear">
</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
prop="address"
prop="planReviewDate"
label="计划评审日期"
width="auto"
>
</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 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 prop="name3" label="评审专家名单" width="auto">
<el-table-column prop="status" label="后评状态" width="auto">
</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 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>
<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>
</template>
<script>
import { number } from 'echarts';
export default {
data() {
return {
tableData: [
{
id: 1,
date: "2016-05-03",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
currentPage:1,
pageSize:"5",
}
},
{
id: 1,
date: "2016-05-02",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
props: {
tableData: {
type: Array,
default:[],
},
{
id: 1,
date: "2016-05-04",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
total:{
type:Number,
default: "",
},
{
date: "2016-05-01",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
tbtyps:{
type: String,
default: "",
}
},
{
date: "2016-05-08",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
methods: {
handleSelectionChange(selection) {
if (Array.isArray(selection) && selection.length > 1) {
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)
},
{
date: "2016-05-06",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.$emit('pageSize',this.pageSize)
},
{
date: "2016-05-07",
name: "王小虎",
address: "上海市普陀区金沙江路 1518 弄",
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.currentPage=val
this.$emit('currentPage',this.currentPage)
},
],
};
tableRowClassName({row, rowIndex}) {
// console.log(rowIndex % 2,'333')
if (rowIndex % 2 == 1) {
return 'warning-row';
}
return ''
}
},
};
</script>
......@@ -89,6 +109,14 @@ export default {
.main {
font-size: 14px;
width: 100%;
height:70%;
.eltable{
height: 94%;
}
.elpagination{
text-align: right;
margin-right: 100px;
}
}
/deep/ .cell {
......@@ -116,4 +144,8 @@ export default {
opacity: 0.7;
border-color: #333;
}
/deep/ .el-table .warning-row {
background: #f0ffff;
color: #2785E6;
}
</style>
\ No newline at end of file
......@@ -12,24 +12,13 @@ module.exports = defineConfig({
devServer: {
hot: true,
proxy: {
'/eadc-shared-ability': {
target: `http://${ip}:80/`, // 共享能力
'/api':{
target: `http://192.168.8.248:18101`, // pin
changeOrigin: true,
// secure: false,
// pathRewrite: { '^/api/eadc-shared-ability': '/eadc-shared-ability' },
},
'/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': '' },
pathRewrite:{
"^/api":""
},
}
},
},
chainWebpack: (config) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!