|
@@ -1,246 +1,254 @@
|
|
|
-<template>
|
|
|
- <div class="container" style="min-height: 100%; padding-bottom: 100px;">
|
|
|
-
|
|
|
- <el-tabs v-model="activeName" @tab-click="handleClick" stretch>
|
|
|
- <el-tab-pane label="首页" name="first" >首页</el-tab-pane>
|
|
|
- <el-tab-pane label="业务" name="second">业务</el-tab-pane>
|
|
|
- <el-tab-pane label="合作方" name="third">合作方</el-tab-pane>
|
|
|
- <el-tab-pane label="字段列表" name="fourth">字段列表</el-tab-pane>
|
|
|
- <el-tab-pane label="模型列表" name="fifth">模型列表</el-tab-pane>
|
|
|
- <el-tab-pane label="管理" name="sixth">管理</el-tab-pane>
|
|
|
-
|
|
|
- </el-tabs>
|
|
|
- <van-sidebar v-model="activeKey">
|
|
|
- <van-sidebar-item title="标签名称"></van-sidebar-item>
|
|
|
- <van-sidebar-item title="标签名称"></van-sidebar-item>
|
|
|
- <van-sidebar-item title="标签名称"></van-sidebar-item>
|
|
|
-
|
|
|
- </van-sidebar>
|
|
|
-
|
|
|
- <el-container>
|
|
|
- <el-aside width="250px">
|
|
|
-
|
|
|
- <button @click="gotolink1" v-bind:class="{ button: selected1, buttonselected: selected2 }">待办任务</button>
|
|
|
- <button @click="gotolink2" v-bind:class="{ button: selected3, buttonselected: selected4 }">合作方</button>
|
|
|
- <button @click="gotolink3" v-bind:class="{ button: selected5, buttonselected: selected6 }">合作产品</button>
|
|
|
-
|
|
|
- </el-aside>
|
|
|
- <div class="line" />
|
|
|
-
|
|
|
- <el-main>
|
|
|
- <div class = "filter-container">
|
|
|
- <el-input v-model="input" placeholder="合作方名称/合作方编号" style="width: 30%" size="small" clearable/>
|
|
|
- <el-button type="primary" icon="el-icon-search" size="small" style="margin-left: 10px">查询</el-button>
|
|
|
- <el-button type="primary" round @click="onButtonClick" size="small" style="margin-left: 350px"
|
|
|
- >新增</el-button
|
|
|
- >
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
- <el-table :data="cooperatorData" style="width: 100%;">
|
|
|
- <el-table-column align="center" label="合作方编号" width="130">
|
|
|
- <template v-slot="{row}">
|
|
|
- <span>{{ row.cooperatorNum}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column align="center" label="合作方名称" width="130">
|
|
|
- <template v-slot="{row}">
|
|
|
- <span>{{ row.cooperatorName}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column align="center" label="字段数量" width="130">
|
|
|
- <template v-slot="{row}">
|
|
|
- <span>{{ row.fieldCount}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column align="center" label="模型数量" width="130">
|
|
|
- <template v-slot="{row}">
|
|
|
- <span>{{ row.modelCount}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column align="center" label="创建时间" width="130">
|
|
|
- <template v-slot="{row}">
|
|
|
- <span>{{ row.createTime}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column align="center" width="130">
|
|
|
- <template v-slot="{row}">
|
|
|
- <el-button type="primary" round @click="onButtonClick(row.cooperatorName, row.cooperatorNum, row.fieldCount, row.modelCount, row.createTime)" size="small" >查看</el-button>
|
|
|
- </template>
|
|
|
-
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- </el-table>
|
|
|
-
|
|
|
-
|
|
|
- </el-main>
|
|
|
- </el-container>
|
|
|
- </div>
|
|
|
-</template>
|
|
|
-
|
|
|
-<script>
|
|
|
-
|
|
|
-import {
|
|
|
- getList,
|
|
|
- userInfo, partnerList, roleDel
|
|
|
-} from '@/api/index.js'
|
|
|
-import store from "@/store";
|
|
|
-import request from '@/utils/request.js'
|
|
|
-import { fieldInfo, modelInfo } from '../../api';
|
|
|
-import {
|
|
|
- cooperatorList
|
|
|
-} from '@/api/index.js'
|
|
|
-export default {
|
|
|
-
|
|
|
- name: "partnerInfo",
|
|
|
- props: [],
|
|
|
- components: {},
|
|
|
- data() {
|
|
|
- return {
|
|
|
- activeKey: 0,
|
|
|
- activeName: "second",
|
|
|
- currentPage: 1,
|
|
|
- cooperatorData : [],
|
|
|
- selected1: true,
|
|
|
- selected2: false,
|
|
|
- selected3: false,
|
|
|
- selected4: true,
|
|
|
- selected5: true,
|
|
|
- selected6: false,
|
|
|
- input:'',
|
|
|
- }
|
|
|
- },
|
|
|
- watch: {},
|
|
|
- computed: {},
|
|
|
- beforeCreate() {},
|
|
|
- created() {},
|
|
|
- beforeMount() {},
|
|
|
- mounted()
|
|
|
- {
|
|
|
- cooperatorList().then(
|
|
|
- res=>
|
|
|
- {
|
|
|
- this.cooperatorData=res.data.cooperator_List;
|
|
|
- // console.log(this.fieldData)
|
|
|
- }
|
|
|
- )
|
|
|
- },
|
|
|
- beforeUpdate() {},
|
|
|
- updated() {},
|
|
|
- destroyed() {},
|
|
|
- methods: {
|
|
|
- request() {},
|
|
|
- handleClick() {},
|
|
|
- handleCurrentChange() {},
|
|
|
- handleSizeChange() {},
|
|
|
- gotolink1()
|
|
|
- {
|
|
|
- this.$router.replace('/partnerInfo');
|
|
|
- this.selected1 = false;
|
|
|
- this.selected2 = true;
|
|
|
- this.selected3 = true;
|
|
|
- this.selected4 = false;
|
|
|
- this.selected5 = true;
|
|
|
- this.selected6 = false;
|
|
|
- },
|
|
|
- gotolink2()
|
|
|
- {
|
|
|
- //指定跳转地址
|
|
|
- this.$router.replace('/partnerInfo');
|
|
|
- this.selected1 = true;
|
|
|
- this.selected2 = false;
|
|
|
- this.selected3 = false;
|
|
|
- this.selected4 = true;
|
|
|
- this.selected5 = true;
|
|
|
- this.selected6 = false;
|
|
|
- },
|
|
|
- gotolink3()
|
|
|
- {
|
|
|
- //指定跳转地址
|
|
|
- this.$router.replace('/partnerInfo');
|
|
|
- this.selected1 = true;
|
|
|
- this.selected2 = false;
|
|
|
- this.selected3 = true;
|
|
|
- this.selected4 = false;
|
|
|
- this.selected5 = false;
|
|
|
- this.selected6 = true;
|
|
|
- },
|
|
|
- tables:function () { //在你的数据表格中定义tabels
|
|
|
- const input = this.input
|
|
|
- if (input) {
|
|
|
- // console.log("input输入的搜索内容:" + this.input)
|
|
|
- return this.cooperatorData.filter(data => {
|
|
|
- console.log("object:" + Object.keys(data))
|
|
|
- return Object.keys(data).some(key => {
|
|
|
- return String(data[key]).indexOf(input) > -1
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
- return this.cooperatorData
|
|
|
- },
|
|
|
- onButtonClick (cooperatorName, cooperatorNum, fieldCount, modelCount, createTime){
|
|
|
- this.$router.push({
|
|
|
- path: '/partnerDetailed',
|
|
|
- query: {
|
|
|
- cooperatorName: cooperatorName,
|
|
|
- cooperatorNum : cooperatorNum,
|
|
|
- fieldCount : fieldCount,
|
|
|
- modelCount : modelCount,
|
|
|
- createTime : createTime
|
|
|
- }// 要传递的参数
|
|
|
- })
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- },
|
|
|
- fillter: {},
|
|
|
-}
|
|
|
-</script>
|
|
|
-
|
|
|
-<style scoped>
|
|
|
-/* 竖线 */
|
|
|
-.line{
|
|
|
- float: left;
|
|
|
- width: 0.1em;
|
|
|
- height: 19.5em;
|
|
|
- margin-right: 1em;
|
|
|
- margin-left: 0em;
|
|
|
- background:#000000;
|
|
|
-}
|
|
|
-
|
|
|
-.button {
|
|
|
- background-color: white;
|
|
|
- border: none;
|
|
|
- color: black;
|
|
|
- padding: 15px 32px;
|
|
|
- text-align: center;
|
|
|
- text-decoration: none;
|
|
|
- display: inline-block;
|
|
|
- font-size: 16px;
|
|
|
- width:180px;
|
|
|
- height:50px;
|
|
|
- font-weight: normal
|
|
|
-}
|
|
|
-
|
|
|
-.buttonselected {
|
|
|
- background-color: white;
|
|
|
- border: none;
|
|
|
- color: black;
|
|
|
- padding: 15px 32px;
|
|
|
- text-align: center;
|
|
|
- text-decoration: none;
|
|
|
- display: inline-block;
|
|
|
- font-size: 18px;
|
|
|
- width:180px;
|
|
|
- height:50px;
|
|
|
- font-weight: 900
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-.container { }
|
|
|
-</style>
|
|
|
+<template>
|
|
|
+ <div class="container" style="min-height: 100%; padding-bottom: 100px;">
|
|
|
+
|
|
|
+ <el-tabs v-model="activeName" @tab-click="handleClick" stretch>
|
|
|
+ <el-tab-pane label="首页" name="first" >首页</el-tab-pane>
|
|
|
+ <el-tab-pane label="业务" name="second">业务</el-tab-pane>
|
|
|
+ <el-tab-pane label="合作方" name="third">合作方</el-tab-pane>
|
|
|
+ <el-tab-pane label="字段列表" name="fourth">字段列表</el-tab-pane>
|
|
|
+ <el-tab-pane label="模型列表" name="fifth">模型列表</el-tab-pane>
|
|
|
+ <el-tab-pane label="管理" name="sixth">管理</el-tab-pane>
|
|
|
+
|
|
|
+ </el-tabs>
|
|
|
+ <van-sidebar v-model="activeKey">
|
|
|
+ <van-sidebar-item title="标签名称"></van-sidebar-item>
|
|
|
+ <van-sidebar-item title="标签名称"></van-sidebar-item>
|
|
|
+ <van-sidebar-item title="标签名称"></van-sidebar-item>
|
|
|
+
|
|
|
+ </van-sidebar>
|
|
|
+
|
|
|
+ <el-container>
|
|
|
+ <el-aside width="250px">
|
|
|
+
|
|
|
+ <button @click="gotolink1" v-bind:class="{ button: selected1, buttonselected: selected2 }">待办任务</button>
|
|
|
+ <button @click="gotolink2" v-bind:class="{ button: selected3, buttonselected: selected4 }">合作方</button>
|
|
|
+ <button @click="gotolink3" v-bind:class="{ button: selected5, buttonselected: selected6 }">合作产品</button>
|
|
|
+
|
|
|
+ </el-aside>
|
|
|
+ <div class="line" />
|
|
|
+
|
|
|
+ <el-main>
|
|
|
+ <div class = "filter-container">
|
|
|
+ <el-input v-model="input" placeholder="合作方名称/合作方编号" style="width: 30%" size="small" clearable/>
|
|
|
+ <el-button type="primary" icon="el-icon-search" size="small" style="margin-left: 10px">查询</el-button>
|
|
|
+ <el-button type="primary" round @click="onButtonClickAdd" size="small" style="margin-left: 350px"
|
|
|
+ >新增</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <el-table :data="cooperatorData" style="width: 100%;">
|
|
|
+ <el-table-column align="center" label="合作方编号" width="130">
|
|
|
+ <template v-slot="{row}">
|
|
|
+ <span>{{ row.Id}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column align="center" label="合作方名称" width="130">
|
|
|
+ <template v-slot="{row}">
|
|
|
+ <span>{{ row.cooperatorName}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column align="center" label="字段数量" width="130">
|
|
|
+ <template v-slot="{row}">
|
|
|
+ <span>{{ row.fieldCount}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column align="center" label="模型数量" width="130">
|
|
|
+ <template v-slot="{row}">
|
|
|
+ <span>{{ row.modelCount}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column align="center" label="创建时间" width="130">
|
|
|
+ <template v-slot="{row}">
|
|
|
+ <span>{{ row.createTime}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column align="center" width="130">
|
|
|
+ <template v-slot="{row}">
|
|
|
+ <el-button type="primary" round @click="onButtonClick(row.id, row.cooperatorName, row.cooperatorNum, row.fieldCount, row.modelCount, row.createTime)" size="small" >查看</el-button>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+
|
|
|
+ </el-main>
|
|
|
+ </el-container>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+
|
|
|
+import {
|
|
|
+ getList,
|
|
|
+ userInfo, partnerList, roleDel
|
|
|
+} from '@/api/index.js'
|
|
|
+import store from "@/store";
|
|
|
+import request from '@/utils/request.js'
|
|
|
+import { fieldInfo, modelInfo } from '../../api';
|
|
|
+import {
|
|
|
+ cooperatorList
|
|
|
+} from '@/api/index.js'
|
|
|
+export default {
|
|
|
+
|
|
|
+ name: "cooperatorInfo",
|
|
|
+ props: [],
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ activeKey: 0,
|
|
|
+ activeName: "second",
|
|
|
+ currentPage: 1,
|
|
|
+ cooperatorData : [],
|
|
|
+ selected1: true,
|
|
|
+ selected2: false,
|
|
|
+ selected3: false,
|
|
|
+ selected4: true,
|
|
|
+ selected5: true,
|
|
|
+ selected6: false,
|
|
|
+ input:'',
|
|
|
+ }
|
|
|
+ },
|
|
|
+ watch: {},
|
|
|
+ computed: {},
|
|
|
+ beforeCreate() {},
|
|
|
+ created() {},
|
|
|
+ beforeMount() {},
|
|
|
+ mounted()
|
|
|
+ {
|
|
|
+ cooperatorList().then(
|
|
|
+ res=>
|
|
|
+ {
|
|
|
+ this.cooperatorData=res.data.cooperator_List;
|
|
|
+ console.log(this.cooperatorData)
|
|
|
+ }
|
|
|
+ )
|
|
|
+ },
|
|
|
+ beforeUpdate() {},
|
|
|
+ updated() {},
|
|
|
+ destroyed() {},
|
|
|
+ methods: {
|
|
|
+ request() {},
|
|
|
+ handleClick() {},
|
|
|
+ handleCurrentChange() {},
|
|
|
+ handleSizeChange() {},
|
|
|
+ gotolink1()
|
|
|
+ {
|
|
|
+ this.$router.replace('/cooperatorInfo');
|
|
|
+ this.selected1 = false;
|
|
|
+ this.selected2 = true;
|
|
|
+ this.selected3 = true;
|
|
|
+ this.selected4 = false;
|
|
|
+ this.selected5 = true;
|
|
|
+ this.selected6 = false;
|
|
|
+ },
|
|
|
+ gotolink2()
|
|
|
+ {
|
|
|
+ //指定跳转地址
|
|
|
+ this.$router.replace('/cooperatorInfo');
|
|
|
+ this.selected1 = true;
|
|
|
+ this.selected2 = false;
|
|
|
+ this.selected3 = false;
|
|
|
+ this.selected4 = true;
|
|
|
+ this.selected5 = true;
|
|
|
+ this.selected6 = false;
|
|
|
+ },
|
|
|
+ gotolink3()
|
|
|
+ {
|
|
|
+ //指定跳转地址
|
|
|
+ this.$router.replace('/cooperatorInfo');
|
|
|
+ this.selected1 = true;
|
|
|
+ this.selected2 = false;
|
|
|
+ this.selected3 = true;
|
|
|
+ this.selected4 = false;
|
|
|
+ this.selected5 = false;
|
|
|
+ this.selected6 = true;
|
|
|
+ },
|
|
|
+ tables:function () { //在你的数据表格中定义tabels
|
|
|
+ const input = this.input
|
|
|
+ if (input) {
|
|
|
+ // console.log("input输入的搜索内容:" + this.input)
|
|
|
+ return this.cooperatorData.filter(data => {
|
|
|
+ console.log("object:" + Object.keys(data))
|
|
|
+ return Object.keys(data).some(key => {
|
|
|
+ return String(data[key]).indexOf(input) > -1
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ return this.cooperatorData
|
|
|
+ },
|
|
|
+ onButtonClick (cooperatorId, cooperatorName, cooperatorNum, fieldCount, modelCount, createTime){
|
|
|
+ this.$router.push({
|
|
|
+ path: '/cooperatorDetailed',
|
|
|
+ query: {
|
|
|
+ cooperatorId : cooperatorId,
|
|
|
+ cooperatorName: cooperatorName,
|
|
|
+ cooperatorNum : cooperatorNum,
|
|
|
+ fieldCount : fieldCount,
|
|
|
+ modelCount : modelCount,
|
|
|
+ createTime : createTime
|
|
|
+ }// 要传递的参数
|
|
|
+ })
|
|
|
+ },
|
|
|
+ onButtonClickAdd (){
|
|
|
+ this.$router.push({
|
|
|
+ path: '/cooperatorAdd',
|
|
|
+ query: {
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+ fillter: {},
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+/* 竖线 */
|
|
|
+.line{
|
|
|
+ float: left;
|
|
|
+ width: 0.1em;
|
|
|
+ height: 19.5em;
|
|
|
+ margin-right: 1em;
|
|
|
+ margin-left: 0em;
|
|
|
+ background:#000000;
|
|
|
+}
|
|
|
+
|
|
|
+.button {
|
|
|
+ background-color: white;
|
|
|
+ border: none;
|
|
|
+ color: black;
|
|
|
+ padding: 15px 32px;
|
|
|
+ text-align: center;
|
|
|
+ text-decoration: none;
|
|
|
+ display: inline-block;
|
|
|
+ font-size: 16px;
|
|
|
+ width:180px;
|
|
|
+ height:50px;
|
|
|
+ font-weight: normal
|
|
|
+}
|
|
|
+
|
|
|
+.buttonselected {
|
|
|
+ background-color: white;
|
|
|
+ border: none;
|
|
|
+ color: black;
|
|
|
+ padding: 15px 32px;
|
|
|
+ text-align: center;
|
|
|
+ text-decoration: none;
|
|
|
+ display: inline-block;
|
|
|
+ font-size: 18px;
|
|
|
+ width:180px;
|
|
|
+ height:50px;
|
|
|
+ font-weight: 900
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+.container { }
|
|
|
+</style>
|