BUG 30988
This commit is contained in:
@@ -12,7 +12,8 @@
|
|||||||
<el-input size="small" :maxlength="30" placeholder="请输入大屏项目名称" v-model="form.name"></el-input>
|
<el-input size="small" :maxlength="30" placeholder="请输入大屏项目名称" v-model="form.name"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="描述" style="width: 100%;" prop="description">
|
<el-form-item label="描述" style="width: 100%;" prop="description">
|
||||||
<el-input size="small" :maxlength="200" :rows="5" type="textarea" style="width: 100%;" placeholder="请输入描述" v-model="form.description"></el-input>
|
<el-input size="small" :maxlength="200" :rows="5" type="textarea" style="width: 100%;" placeholder="请输入描述"
|
||||||
|
v-model="form.description"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="是否开启" style="width: 100%;" prop="status">
|
<el-form-item label="是否开启" style="width: 100%;" prop="status">
|
||||||
<el-switch
|
<el-switch
|
||||||
@@ -152,7 +153,7 @@
|
|||||||
methods: {
|
methods: {
|
||||||
getInfo() {
|
getInfo() {
|
||||||
let {id} = this.$route.query
|
let {id} = this.$route.query
|
||||||
this.instance.post(`${this.urlPrefix}/appdiylargescreen/queryLargeScreenProjectDetailById?id=${id}`).then(res => {
|
id && this.instance.post(`${this.urlPrefix}/appdiylargescreen/queryLargeScreenProjectDetailById?id=${id}`).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.form = {
|
this.form = {
|
||||||
...res.data
|
...res.data
|
||||||
@@ -180,7 +181,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
onStatusChange(id) {
|
onStatusChange(id) {
|
||||||
this.instance.post(`${this.urlPrefix}/appdiylargescreen/enableLargeScreen?id=${id}`).then(res => {
|
id && this.instance.post(`${this.urlPrefix}/appdiylargescreen/enableLargeScreen?id=${id}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
this.$message.success('操作成功')
|
this.$message.success('操作成功')
|
||||||
|
|||||||
Reference in New Issue
Block a user