Commit 77536f56 authored by 张俊's avatar 张俊

应用基本信息修改

parent 993127cb
...@@ -22,13 +22,11 @@ ...@@ -22,13 +22,11 @@
</div> </div>
</div> </div>
<div class="type_box_select"> <div class="type_box_select">
<mavon-editor v-model="list_arr" :boxShadow="false" :toolbarsFlag="false" :subfield="false" defaultOpen="preview" :editable="false" v-if="now_service == 0"/>
<info-list <info-list
v-if=" now_service !== 0" :list_arr="now_service == 0?list_arr:servicead_arr
:list_arr="servicead_arr
" "
> >
<div class="appcode" v-html="appcode" slot="app_code"></div> <mavon-editor v-model="appcode" slot="app_code" :boxShadow="false" :toolbarsFlag="false" :subfield="false" defaultOpen="preview" :editable="false"/>
<process-card :data="approval_arr3" slot="approval"></process-card> <process-card :data="approval_arr3" slot="approval"></process-card>
</info-list> </info-list>
</div> </div>
...@@ -208,35 +206,26 @@ export default { ...@@ -208,35 +206,26 @@ export default {
aqdetail: true, aqdetail: true,
}, },
now_service: 0, now_service: 0,
list_arr: '', list_arr:[
// [ {
// { title: "应用简介:",
// title: "应用简介:", info: "",
// info: "", },
// }, {
// { title: "功能简介:",
// title: "功能简介:", info: "",
// info: "", },
// }, {
// { title: "应用场景:",
// title: "应用场景:", info: "",
// info: "", },
// }, {
// { title: "应用参数:",
// title: "应用参数:", info: "",
// info: "", type: "solt",
// type: "solt", solt_name: "app_code",
// solt_name: "app_code", }
// }, ],
// {
// title: "联系人:",
// info: "",
// },
// {
// title: "联系电话:",
// info: "",
// },
// ],
servicead_arr: [ servicead_arr: [
{ {
title: "申请信息", title: "申请信息",
...@@ -274,17 +263,29 @@ export default { ...@@ -274,17 +263,29 @@ export default {
created() { created() {
this.getServiceInfo(); this.getServiceInfo();
this.getreadme(); this.getreadme();
this.get_app_code();
this.getServiceBaseInfo(); this.getServiceBaseInfo();
this.getServiceapplyInfo(); this.getServiceapplyInfo();
}, },
mounted() {}, mounted() {},
methods: { methods: {
get_app_code(){
this.$http
.get("/apaas/hubApi/market/values/"+this.$route.params.id)
.then((response) => {
let data = response.data.data;
this.appcode = data
})
.catch(function(response) {});
},
getreadme(){ getreadme(){
this.$http this.$http
.get("/apaas/hubApi/market/readme/"+this.$route.params.app_id) .get("/apaas/hubApi/market/app/detail/"+this.$route.params.id)
.then((response) => { .then((response) => {
let data = response.data.data; let data = response.data.data;
this.list_arr = data this.$set(this.list_arr[0], "info", data.yyjj);
this.$set(this.list_arr[1], "info", data.gnjj);
this.$set(this.list_arr[2], "info", data.cjsl);
}) })
.catch(function(response) {}); .catch(function(response) {});
}, },
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
>{{item}}</div> >{{item}}</div>
</div> </div>
<div class="type_box_select"> <div class="type_box_select">
<mavon-editor v-model="list_arr" :boxShadow="false" :toolbarsFlag="false" :subfield="false" defaultOpen="preview" :editable="false" v-if="now_service == 0"/> <!-- <mavon-editor v-model="list_arr" :boxShadow="false" :toolbarsFlag="false" :subfield="false" defaultOpen="preview" :editable="false" v-if="now_service == 0"/> -->
<info-list v-if="now_service!==0" :list_arr="servicead_arr[now_user]"> <info-list :list_arr="now_service==0?list_arr:servicead_arr[now_user]">
<process-card type="approval" :data="approval_arr" slot="sp_card"></process-card> <process-card type="approval" :data="approval_arr" slot="sp_card"></process-card>
<div class="info_contain1" slot="sp_result"> <div class="info_contain1" slot="sp_result">
<el-form ref="form" :rules="rules" :model="form" label-width="0px"> <el-form ref="form" :rules="rules" :model="form" label-width="0px">
...@@ -218,7 +218,34 @@ export default { ...@@ -218,7 +218,34 @@ export default {
}, },
], ],
], ],
list_arr: "", list_arr: [
{
title: "申请单位:",
info: ""
},
{
title: "申请人:",
info: ""
},
{
title: "申请人联系电话:",
info: ""
},
{
title: "场景描述:",
info: ""
},
{
title: "申请文件:",
info: "",
url:"",
type: "down"
},
{
title: "申请时间:",
info: ""
}
]
}; };
}, },
watch: {}, watch: {},
...@@ -306,10 +333,17 @@ export default { ...@@ -306,10 +333,17 @@ export default {
}, },
getapplyinfo(){ getapplyinfo(){
this.$http this.$http
.get("/apaas/hubApi/market/readme/"+this.$route.params.app_id) .get("/apaas/hubApi/market/applyDetailInfo/"+this.$route.params.id)
.then((response) => { .then((response) => {
let data = response.data.data; let data = response.data.data;
this.list_arr = data this.$set(this.list_arr[0], "info", data.department_name);
this.$set(this.list_arr[1], "info", data.contact_person);
this.$set(this.list_arr[2], "info", data.contact_number);
this.$set(this.list_arr[3], "info", data.scene);
this.$set(this.list_arr[4], "info", data.apply_file.split('/')[0]);
this.$set(this.list_arr[4], "url", data.apply_file);
this.$set(this.list_arr[5], "info", data.apply_time.replace('Z',' ').replace('T',' '));
}) })
.catch(function(response) {}); .catch(function(response) {});
}, },
......
...@@ -474,7 +474,11 @@ export default { ...@@ -474,7 +474,11 @@ export default {
info: "", info: "",
type: "solt", type: "solt",
solt_name: "markdown" solt_name: "markdown"
} },
{
title: "使用说明:",
info: ""
},
], ],
markdown: "", markdown: "",
fwfw_arr: [ fwfw_arr: [
...@@ -829,6 +833,7 @@ export default { ...@@ -829,6 +833,7 @@ export default {
this.introductionArr[0].info = data.yyjj; this.introductionArr[0].info = data.yyjj;
this.introductionArr[1].info = data.gnjj; this.introductionArr[1].info = data.gnjj;
this.introductionArr[2].info = data.cjsl; this.introductionArr[2].info = data.cjsl;
this.introductionArr[4].info = data.sysm;
}); });
this.$api.workbench this.$api.workbench
.getAppParams({ .getAppParams({
......
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