Browse Source

优化音频网易云地址

dev
liuzewei 3 years ago
parent
commit
13527e561d
2 changed files with 41 additions and 9 deletions
  1. 47
      src/views/sce/sceInfo/index.vue
  2. 3
      vue.config.js

47
src/views/sce/sceInfo/index.vue

@ -467,7 +467,7 @@
</el-table-column>
<el-table-column align="center" property="url" label="资源URL">
<template slot-scope="scope">
<el-input v-model="ruleForm.radioImg[scope.$index].url" />
<el-input v-model="ruleForm.radioImg[scope.$index].neteaseUrl" />
</template>
</el-table-column>
<el-table-column
@ -1377,7 +1377,8 @@ export default {
mediaType: n.mediaType,
sourceType: n.sourceType,
title: n.title,
url: n.url,
// url: n.url,
url: n.neteaseUrl,
processNames: n.processNames,
processId: n.processId.split(",")
};
@ -1571,10 +1572,11 @@ export default {
this.dialog.Visible = false;
this.queryList();
} else {
this.$message({
message: res.msg,
type: "error"
});
// console.log('');
// this.$message({
// message: res.msg,
// type: "error"
// });
}
} else if (this.type == "edit") {
var res = await updateJbInfo(this.ruleForm);
@ -1583,8 +1585,9 @@ export default {
this.dialog.Visible = false;
this.queryList();
} else {
console.log('编辑提交失败');
this.$message({
message: res.msg,
// message: res.msg,
type: "error"
});
}
@ -1888,8 +1891,28 @@ export default {
DelImg(index) {
this.ruleForm.radioImg.splice(index, 1);
},
//
DelMusic(index) {
this.ruleForm.radioMusic.splice(index, 1);
// this.ruleForm.radioMusic.splice(index, 1);
this.$confirm("您确定要删除吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.ruleForm.radioMusic.splice(index, 1);
this.tongbuliuchen();
this.$message({
type: "success",
message: "删除成功!"
});
})
.catch(() => {
this.$message({
type: "error",
message: "已取消删除"
});
});
},
DelVideo(index) {
this.ruleForm.radioVideo.splice(index, 1);
@ -1949,7 +1972,15 @@ export default {
this.$refs.img.data = this.ruleForm.radioImg;
}
},
//
handleAddMusic() {
let list = this.ruleForm.radioMusic
if(list.length!=0){
if(list[list.length-1].title==''||list[list.length-1].url==''||list[list.length-1].processId==''){
this.$message.warning('一次只能添加一条')
return false;
}
}
this.ruleForm.radioMusic.push({
title: "",
url: "",

3
vue.config.js

@ -37,7 +37,8 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
// target: `http://127.0.0.1:8501/`,
target: `http://47.104.146.186:8501/`,
// target: `http://47.104.146.186:8501/`,
target: `http://192.168.3.23:8501/`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''

Loading…
Cancel
Save