Compare commits
2 Commits
cfe9594a91
...
b0af6ab3fd
Author | SHA1 | Date |
---|---|---|
liujun | b0af6ab3fd | |
liujun | ece4a3fe20 |
|
@ -199,6 +199,8 @@ export default {
|
||||||
{ BUS_TEXT_LIBRARY_ID: this.e.BUS_TEXT_LIBRARY_ID }
|
{ BUS_TEXT_LIBRARY_ID: this.e.BUS_TEXT_LIBRARY_ID }
|
||||||
).then((data) => {
|
).then((data) => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
if (!data.data.labels || data.data.labels.length === 0) data.data.labels = ['']
|
||||||
|
data.data.TYPE_INFO = data.data.TYPE
|
||||||
this.form = data.data
|
this.form = data.data
|
||||||
this.form.FILE = []
|
this.form.FILE = []
|
||||||
this.form.types = []
|
this.form.types = []
|
||||||
|
@ -208,10 +210,7 @@ export default {
|
||||||
if (!this.form.TYPES || this.form.TYPES.length === 0) this.form.TYPES = ['']
|
if (!this.form.TYPES || this.form.TYPES.length === 0) this.form.TYPES = ['']
|
||||||
if (!this.form.SPECIFICATION_TYPES || this.form.SPECIFICATION_TYPES.length === 0) this.form.SPECIFICATION_TYPES = ['']
|
if (!this.form.SPECIFICATION_TYPES || this.form.SPECIFICATION_TYPES.length === 0) this.form.SPECIFICATION_TYPES = ['']
|
||||||
if (!this.form.CATEGORY_LIST || this.form.CATEGORY_LIST.length === 0) this.form.CATEGORY_LIST = ['']
|
if (!this.form.CATEGORY_LIST || this.form.CATEGORY_LIST.length === 0) this.form.CATEGORY_LIST = ['']
|
||||||
if (!this.form.labels || this.form.labels.length === 0) this.form.labels = ['']
|
|
||||||
this.remoteControl.keyOne = !(this.form.CATEGORY_LIST[0].CATEGORY_ID === '8051d985a2bc406a83ea9360b64182b2')
|
this.remoteControl.keyOne = !(this.form.CATEGORY_LIST[0].CATEGORY_ID === '8051d985a2bc406a83ea9360b64182b2')
|
||||||
this.form.TYPE_INFO = this.form.TYPE
|
|
||||||
this.$set(this.form, 'TYPE_INFO', this.form.TYPE)
|
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
this.$message.error(e)
|
this.$message.error(e)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
Loading…
Reference in New Issue