Commit eb14d451 authored by 张俊's avatar 张俊

服务详情页

parent 0278c8e3
......@@ -17,7 +17,7 @@ import ace from "ace-builds";
import "ace-builds/webpack-resolver"; // 在 webpack 环境中使用必须要导入
import "ace-builds/src-noconflict/mode-json"; // 默认设置的语言模式
export default {
props: ["url"],
props: ["url","datas"],
data() {
return {
aceEditor: null,
......@@ -39,6 +39,9 @@ export default {
if (this.url) {
this.getValue();
}
if (this.datas) {
this.aceEditor.setValue(this.datas);
}
},
watch: {},
methods: {
......
......@@ -10,7 +10,7 @@
<span class="right underline" v-if="data.yydetail" @click="subevent(2)" title="申请下线至开发者应用">申请下线</span>
<span class="right undersell" v-if="data.yydetail" @click="subevent(3)">申请下架</span>
<span class="right undersell undermy" v-if="data.bsdetail" @click="subevent(4)">申请密钥</span>
<span class="info_fix" v-if="data.fixed">我要修改</span>
<span class="info_fix" v-if="data.fixed" @click="goto_page(data.fixedurl)">我要修改</span>
</p>
<div class="info_detail">
<p>
......@@ -63,6 +63,9 @@ export default {
}else if(val == 4){
this.$emit('applymy',1)
}
},
goto_page(url){
this.$router.push(url)
}
},
};
......
......@@ -55,7 +55,7 @@ export default {
default: ""
},
id: {
type: String,
type: [String,Number],
default: ""
},
name: {
......
......@@ -32,7 +32,6 @@ export default {
}
},
item: {
type: String,
default: ""
},
header: {
......@@ -40,7 +39,7 @@ export default {
default: ""
},
id: {
type: String,
type: [String,Number],
default: ""
},
name: {
......@@ -61,7 +60,8 @@ export default {
this.selectValue = this.item;
if (this.selectValue == null || !this.selectValue || this.selectValue == "") {
if (this.selectArr && this.selectArr.length != 0) {
this.selectValue = this.selectArr[0].value;
this.selectValue = ""
// this.selectValue = this.selectArr[0].value;//去掉默认值
} else {
this.selectValue = "";
}
......
......@@ -653,6 +653,7 @@ export default {
arr.forEach(item => {
newRow[item.prop] = ""
})
newRow.flag = true //新增标记
newRow.id =
parseInt(Math.random() * 100000, 10) +
"" +
......
This diff is collapsed.
function getRole(){
return new Promise((resolve,reject)=>{
if(true){
resolve(2)
resolve(1)
}else{
reject('error')
}
})
}
//时间戳转时间格式
var formatDateTime_date = function (date) {
debugger
var y = date.getFullYear();
var M = date.getMonth() + 1;
M = M < 10 ? ('0' + M) : M;
var d = date.getDate();
d = d < 10 ? ('0' + d) : d;
var h = date.getHours();
h = h < 10 ? ('0' + h) : h;
var m = date.getMinutes();
m = m < 10 ? ('0' + m) : m;
var s = date.getSeconds();
s = s < 10 ? ('0' + s) : s;
return y + '-' + M + '-' + d+' '+h + ':' + m + ':' + s;
};
export{
getRole
getRole,
formatDateTime_date
}
\ No newline at end of file
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