Commit 1896fa01 by chenqiang

模型管理

parent 3a261a8e
......@@ -157,7 +157,8 @@ export default {
getCount() {
let self = this
let param = {
name: self.form.name
name: self.form.name,
stat :"2"
}
axios.post('mxgl/template/selectTbStTemplateCount', param, {
headers: {
......
......@@ -52,14 +52,18 @@
width="180">
</el-table-column>
<el-table-column
prop="path"
label="路径">
prop="type"
label="模板类型">
</el-table-column>
<el-table-column
prop="djsj"
label="创建时间">
</el-table-column>
<el-table-column
prop="pjsj"
label="评价时间">
</el-table-column>
<el-table-column
label="是否发布">
<template slot-scope="scope">
<span v-if="scope.row.stat == '1'"></span>
......@@ -208,16 +212,16 @@ export default {
getCount() {
let self = this
let param = {
name: self.form.name
name: self.form.name,
stat :"1"
}
axios.post('http://77.1.24.51:9100/template/selectTbStTemplateCount', param, {
header: {
'Content-Type': 'application/json'
axios.post('/mxgl/template/selectTbStTemplateCount', param, {
headers: {
'content-Type': 'application/json'
}
}).then(res => {
debugger
if (res.data.status == 200) {
self.total = res.data.data
if (res.status == 200) {
self.total = res.data
}
})
},
......@@ -231,16 +235,17 @@ export default {
let param = {
name: self.form.name,
page: self.page,
limit: self.limit
limit: self.limit,
stat: "1"
}
axios.post('http://77.1.24.51:9100/template/selectTbStTemplateList', param, {
header: {
'Content-Type': 'application/json'
axios.post('/mxgl/template/selectTbStTemplateList', param, {
headers: {
'content-Type': 'application/json'
}
}).then(res => {
if (res.data.status == 200) {
if (res.status == 200) {
self.tableLoading = false
self.tableData = res.data.data
self.tableData = res.data
}
})
self.getCount()
......
......@@ -25,10 +25,19 @@
<div class="form_box" >
<div>
<div>输入</div>
<el-table :data="srTableData">
<el-table-cloumn>
</el-table-cloumn>
<el-table :data="srTableData" width="262px">
<el-table-column
prop="paraName"
label="名称">
</el-table-column>
<el-table-column
prop="paraNaMs"
label="字段">
</el-table-column>
<el-table-column
prop="paraType"
label="类型">
</el-table-column>
</el-table>
</div>
<div>
......@@ -37,7 +46,20 @@
</div>
<div>
<div>输出</div>
<el-table :data="scTableData"></el-table>
<el-table :data="scTableData" width="262px">
<el-table-column
prop="paraName"
label="名称">
</el-table-column>
<el-table-column
prop="paraNaMs"
label="字段">
</el-table-column>
<el-table-column
prop="paraType"
label="类型">
</el-table-column>
</el-table>
</div>
</div>
<div class="form_box">
......@@ -69,7 +91,21 @@ export default {
form: {
value1: '',
value2: ''
}
},
srTableData:[
{
paraName: '',
paraType: '',
paraNaMs: ''
}
],
scTableData:[
{
paraName: '',
paraType: '',
paraNaMs: ''
}
],
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment