parent
03c01da9d6
commit
56da388794
@ -0,0 +1,34 @@
|
||||
import request from '@/utils/request'
|
||||
import * as url from 'url'
|
||||
|
||||
export function index(params) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/api/admin/target_type/index",
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function show(params) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/api/admin/target_type/show",
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function save(data) {
|
||||
return request({
|
||||
method: "post",
|
||||
url: "/api/admin/target_type/save",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function destroy(params) {
|
||||
return request({
|
||||
method: "get",
|
||||
url: "/api/admin/target_type/destroy",
|
||||
params
|
||||
})
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
import request from "@/utils/request"
|
||||
export function getOutDetail({ tbname,out_contract_id }) {
|
||||
return request({
|
||||
method: 'get',
|
||||
url: '/index.php',
|
||||
requestBase: '/old',
|
||||
params: {
|
||||
s: "/Api/flowDetail",
|
||||
tbname,
|
||||
out_contract_id
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -0,0 +1,84 @@
|
||||
<template>
|
||||
<div style="padding: 0 20px;">
|
||||
<lx-header icon="md-apps" style="margin-bottom: 10px; border: 0px; margin-top: 15px" text="绩效指标类型">
|
||||
<div slot="content"></div>
|
||||
<slot>
|
||||
<div class="selects">
|
||||
|
||||
<div>
|
||||
<span style="padding: 0 6px;word-break: keep-all;">
|
||||
关键字
|
||||
</span>
|
||||
<Input v-model="select.keyword" placeholder="请输入关键字" style="width: 180px"></Input>
|
||||
</div>
|
||||
|
||||
<Button style="margin-left: 10px" type="primary"
|
||||
@click="">重置
|
||||
</Button>
|
||||
<Button style="margin-left: 10px" type="primary" @click="select.page = 1,getList()">查询</Button>
|
||||
<Button style="margin-left: 10px" type="primary" @click="$refs['addTypes'].show()">新增</Button>
|
||||
</div>
|
||||
</slot>
|
||||
</lx-header>
|
||||
|
||||
<xy-table :list="list" :table-item="table" >
|
||||
</xy-table>
|
||||
|
||||
<div style="display: flex;justify-content: flex-end;">
|
||||
<Page :total="total" @on-change="" show-elevator show-sizer @on-page-size-change="" />
|
||||
</div>
|
||||
|
||||
<addTypes ref="addTypes" @refresh="getList"></addTypes>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { index } from "@/api/achievements/types"
|
||||
|
||||
import addTypes from '@/views/achievements/components/addTypes.vue'
|
||||
export default {
|
||||
components:{
|
||||
addTypes
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
select:{
|
||||
keyword: "",
|
||||
page: 1,
|
||||
page_size: 10
|
||||
},
|
||||
total: 0,
|
||||
table: [
|
||||
{
|
||||
label: "一级指标名称"
|
||||
},
|
||||
{
|
||||
label: "二级指标名称"
|
||||
},
|
||||
{
|
||||
label: "三级指标名称"
|
||||
}
|
||||
],
|
||||
list: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async getList() {
|
||||
const res = await index(this.select)
|
||||
this.list = res.data
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
created() {
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.selects{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,77 @@
|
||||
<template>
|
||||
<div style="padding: 0 20px;">
|
||||
<lx-header icon="md-apps" style="margin-bottom: 10px; border: 0px; margin-top: 15px" text="绩效指标">
|
||||
<div slot="content"></div>
|
||||
<slot>
|
||||
<div class="selects">
|
||||
|
||||
<div>
|
||||
<span style="padding: 0 6px;word-break: keep-all;">
|
||||
关键字
|
||||
</span>
|
||||
<Input v-model="select.keyword" placeholder="请输入关键字" style="width: 180px"></Input>
|
||||
</div>
|
||||
|
||||
<Button style="margin-left: 10px" type="primary"
|
||||
@click="">重置
|
||||
</Button>
|
||||
<Button style="margin-left: 10px" type="primary" @click="">查询</Button>
|
||||
</div>
|
||||
</slot>
|
||||
</lx-header>
|
||||
|
||||
<xy-table :list="list" :table-item="table" >
|
||||
</xy-table>
|
||||
|
||||
<div style="display: flex;justify-content: flex-end;">
|
||||
<Page :total="total" @on-change="" show-elevator show-sizer @on-page-size-change="" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
select:{
|
||||
keyword: ""
|
||||
},
|
||||
total: 0,
|
||||
table: [
|
||||
{
|
||||
label: "一级指标名称"
|
||||
},
|
||||
{
|
||||
label: "二级指标名称"
|
||||
},
|
||||
{
|
||||
label: "三级指标名称"
|
||||
},
|
||||
{
|
||||
label: "计算符号"
|
||||
},
|
||||
{
|
||||
label: "半年(程)指标值"
|
||||
},
|
||||
{
|
||||
label: "全年(程)指标值"
|
||||
},
|
||||
{
|
||||
label: "单位"
|
||||
}
|
||||
],
|
||||
list: []
|
||||
}
|
||||
},
|
||||
methods: {},
|
||||
computed: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.selects{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
</style>
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue