|
|
@@ -36,7 +36,7 @@
|
|
|
<div class="inp-list-line">
|
|
|
<div class="line-label">名称</div>
|
|
|
<div class="line-input">
|
|
|
- <input type="text" v-model="replaceForm.name" :adjust-position="false" class="inp-input" placeholder="请填写" />
|
|
|
+ <input type="text" v-model="replaceForm.name" :adjust-position="false" @focus="replaceForm.name=''" class="inp-input" placeholder="请填写" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="inp-list-line">
|
|
|
@@ -46,9 +46,15 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="inp-list-line">
|
|
|
- <div class="line-label">打印显示</div>
|
|
|
+ <div class="line-label">打印</div>
|
|
|
<div class="line-input">
|
|
|
- <switch style="transform:scale(0.7,0.7)" :checked="replaceForm.print == 0 ? false : true" @change="printChange" /> {{replaceForm.print==0 ? '否' : '是'}}
|
|
|
+ <switch style="transform:scale(0.7,0.7)" :checked="replaceForm.print == 0 ? false : true" @change="printChange" /> {{replaceForm.print==0 ? '不要' : '需要'}}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="inp-list-line">
|
|
|
+ <div class="line-label">状态</div>
|
|
|
+ <div class="line-input">
|
|
|
+ <switch style="transform:scale(0.7,0.7)" :checked="replaceForm.hide == 0 ? false : true" @change="hideChange" /> {{replaceForm.hide==0 ? '显示' : '隐藏'}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -81,7 +87,8 @@ export default {
|
|
|
name: '',
|
|
|
id:0,
|
|
|
inTurn: 100,
|
|
|
- print:1
|
|
|
+ print:1,
|
|
|
+ hide:0
|
|
|
},
|
|
|
delModal: false,
|
|
|
operateShow: false,
|
|
|
@@ -103,7 +110,8 @@ export default {
|
|
|
name: this.operateData.name,
|
|
|
id: this.operateData.id,
|
|
|
inTurn: this.operateData.inTurn,
|
|
|
- print:this.operateData.print
|
|
|
+ print:this.operateData.print,
|
|
|
+ hide:this.operateData.hide
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -135,6 +143,9 @@ export default {
|
|
|
onLoad() {
|
|
|
},
|
|
|
methods: {
|
|
|
+ hideChange(e){
|
|
|
+ this.replaceForm.hide = e.target.value ? 1 : 0
|
|
|
+ },
|
|
|
printChange(e){
|
|
|
this.replaceForm.print = e.target.value ? 1 : 0
|
|
|
},
|
|
|
@@ -156,7 +167,8 @@ export default {
|
|
|
id:item.id,
|
|
|
name: item.name,
|
|
|
inTurn: item.inTurn,
|
|
|
- print:item.print
|
|
|
+ print:item.print,
|
|
|
+ hide:item.hide
|
|
|
}
|
|
|
},
|
|
|
operateList(index){
|
|
|
@@ -167,7 +179,8 @@ export default {
|
|
|
id:this.operateData.id,
|
|
|
name: this.operateData.name,
|
|
|
inTurn: this.operateData.inTurn,
|
|
|
- print:this.operateData.print
|
|
|
+ print:this.operateData.print,
|
|
|
+ hide:this.operateData.hide
|
|
|
}
|
|
|
}else if(index === 1) {
|
|
|
this.delModal = true
|
|
|
@@ -188,9 +201,7 @@ export default {
|
|
|
}
|
|
|
let host = this.replaceForm.id == 0 ? addCpClass : updateCpClass;
|
|
|
let form = JSON.parse(JSON.stringify(this.replaceForm))
|
|
|
- host({
|
|
|
- ...form
|
|
|
- }).then(res => {
|
|
|
+ host({...form}).then(res => {
|
|
|
this.$msg('操作成功')
|
|
|
this.modalCancel()
|
|
|
this.operateCancle()
|
|
|
@@ -209,7 +220,8 @@ export default {
|
|
|
this.replaceForm = {
|
|
|
name: '',
|
|
|
inTurn: 0,
|
|
|
- id:0
|
|
|
+ id:0,
|
|
|
+ hide:0
|
|
|
}
|
|
|
},
|
|
|
replaceModalClick(e) {
|