Commit eb14d451 authored by 张俊's avatar 张俊

服务详情页

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