144 lines
2.9 KiB
Vue
144 lines
2.9 KiB
Vue
<template>
|
|
<div>
|
|
<cont title="常量指标" :getData="getDataFun" :getSearch="getSearchForm"></cont>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import cont from '@/components/common/cont.vue'
|
|
import {
|
|
getfieldList,
|
|
addfieldList,
|
|
getfieldListTree,
|
|
updatafieldList,
|
|
getfieldsave,
|
|
getfieldInfo,
|
|
updatafield,
|
|
fieldusing,
|
|
fielddownTemplate,
|
|
fieldupdata
|
|
} from '@/api/index.js'
|
|
|
|
export default {
|
|
name:'SQLManage',
|
|
components: {
|
|
cont
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
getDataFun: {
|
|
type:5,
|
|
row: [
|
|
{
|
|
label: '序号',
|
|
row: 'id'
|
|
}, {
|
|
label: '字段名称',
|
|
row: 'fieldEn'
|
|
}, {
|
|
label: '字段中文名',
|
|
row: 'fieldCn'
|
|
}, {
|
|
label: '字段类型',
|
|
row: 'valueType',
|
|
type: 'type'
|
|
}, {
|
|
label: '状态',
|
|
row: 'status',
|
|
type: 'State'
|
|
}, {
|
|
label: '创建人',
|
|
row: 'nickName'
|
|
},{
|
|
label: '创建时间',
|
|
row: 'created',
|
|
type: 'Time'
|
|
}
|
|
],
|
|
redact:"dataManageRedact",
|
|
async getTree(e){
|
|
return await getfieldListTree(e).then(res => {
|
|
return res
|
|
})
|
|
},
|
|
async getlist(e) {
|
|
e.fType = 5
|
|
return await getfieldList(e).then(res => {
|
|
return res
|
|
})
|
|
},
|
|
async addlist(e) {
|
|
return await addfieldList(e).then(res => {
|
|
return res
|
|
})
|
|
},
|
|
async updatalist(e) {
|
|
return await updatafieldList(e).then(res => {
|
|
return res
|
|
})
|
|
},
|
|
async setsave(e) {
|
|
return await getfieldsave(e).then(res => {
|
|
return res
|
|
})
|
|
},
|
|
async getInfo(e){
|
|
return await getfieldInfo(e).then(res=>{
|
|
return res
|
|
})
|
|
},
|
|
async updatafield(e){
|
|
return await updatafield(e).then(res=>{
|
|
return res
|
|
})
|
|
},
|
|
async fieldusing(e){
|
|
return await fieldusing(e).then(res=>{
|
|
return res
|
|
})
|
|
},
|
|
async down(e){
|
|
return await fielddownTemplate(e).then(res=>{
|
|
return res
|
|
})
|
|
},
|
|
async fieldsubmit(e){
|
|
return await fieldupdata(e).then(res=>{
|
|
return res
|
|
})
|
|
}
|
|
},
|
|
getSearchForm: [
|
|
{
|
|
name:"字段名称",
|
|
key:"userName",
|
|
type:"1",
|
|
},
|
|
{
|
|
name:"字段中文名",
|
|
key:"userName1",
|
|
type:"1",
|
|
},
|
|
{
|
|
name:"创建时间",
|
|
key:"userName1",
|
|
type:"1",
|
|
},
|
|
{
|
|
name:"状态",
|
|
key:"userName1",
|
|
type:"1",
|
|
}
|
|
],
|
|
};
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
.button-container {
|
|
text-align: right; /* 使按钮右对齐 */
|
|
}
|
|
</style>
|