Commit dd6c1d63 by cwq0219

表情修改

1 parent 8cebde03
...@@ -99,7 +99,6 @@ export default { ...@@ -99,7 +99,6 @@ export default {
tableLoading: false, tableLoading: false,
updateLoading: false, updateLoading: false,
idPassvalue: null, idPassvalue: null,
tableValue: null,
/* loadingParams-end */ /* loadingParams-end */
tableData: { tableData: {
border: true, border: true,
...@@ -232,10 +231,10 @@ export default { ...@@ -232,10 +231,10 @@ export default {
this.updateVisible = !this.updateVisible this.updateVisible = !this.updateVisible
this.idPassvalue.$emit('expressionId', objId) this.idPassvalue.$emit('expressionId', objId)
}, },
updateDialogClose() { updateDialogClose(isCancel) {
console.log('关闭') // console.log('关闭')
this.updateVisible = !this.updateVisible this.updateVisible = !this.updateVisible
this.loadingGetList() !isCancel && this.loadingGetList()
}, },
deleteExp(objId) { deleteExp(objId) {
if (objId) { if (objId) {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<gl-col :span="(manufactureOnly||!in_row)?24:12"> <gl-col :span="(manufactureOnly||!in_row)?24:12">
<gl-form-item label='品牌厂商:'> <gl-form-item label='品牌厂商:'>
<gl-select <gl-select
v-model="model.manufacturerId" v-model="model.manufacturerName"
filterable filterable
placeholder="请选择品牌厂商" placeholder="请选择品牌厂商"
name="manufacturerId" name="manufacturerId"
...@@ -132,20 +132,20 @@ ...@@ -132,20 +132,20 @@
import { manufacturers, merchants, grayscaleuser } from '@/api' import { manufacturers, merchants, grayscaleuser } from '@/api'
import { NoticeMixin } from '@/mixins' import { NoticeMixin } from '@/mixins'
const manufacturer_list_back_up = [ const manufacturer_list_back_up = [
{ // {
manufacturer: null, // manufacturer: null,
manufacturerName: '请选择品牌厂商', // manufacturerName: '',
merchantId: 0, // merchantId: 0,
merchantName: '' // merchantName: ''
} // }
] ]
const merchant_list_back_up = [ const merchant_list_back_up = [
{ // {
merchantId: null, // merchantId: null,
merchantName: '请选择渠道商', // merchantName: '',
merchantStatus: 0, // merchantStatus: 0,
merchantType: 401 // merchantType: 401
} // }
] ]
export default { export default {
name: 'Manufacturers', name: 'Manufacturers',
...@@ -183,6 +183,11 @@ export default { ...@@ -183,6 +183,11 @@ export default {
// } // }
// }) // })
// }), // }),
__eventBus.$on('defalut_setting', __value => {
console.log('setting default value')
// console.log(__value)
this.__setDefault(__value)
})
__eventBus.$on('clear_error', () => { __eventBus.$on('clear_error', () => {
this.$validator.errors.clear() this.$validator.errors.clear()
}) })
...@@ -220,10 +225,10 @@ export default { ...@@ -220,10 +225,10 @@ export default {
this.$emit('update:value', __back__data__) this.$emit('update:value', __back__data__)
} }
}, },
'model.manufacturerId': { 'model.manufacturerName': {
handler(__value) { handler(__value) {
this.result.manufacturers = this.manufacturer_list.filter( this.result.manufacturers = this.manufacturer_list.filter(
obj => this.model.manufacturerId === obj.manufacturer obj => this.model.manufacturerName === obj.manufacturer
)[0] )[0]
const __back__data__ = this.$deep_clone(this.result) const __back__data__ = this.$deep_clone(this.result)
this.$emit('update:value', __back__data__) this.$emit('update:value', __back__data__)
...@@ -250,6 +255,7 @@ export default { ...@@ -250,6 +255,7 @@ export default {
{ label: '指定用户(灰度)', value: 'LIST' } { label: '指定用户(灰度)', value: 'LIST' }
], ],
model: { model: {
manufacturerName: '',
merchantId: '', merchantId: '',
manufacturerId: '', manufacturerId: '',
file_list: [] // 文件列表 file_list: [] // 文件列表
...@@ -310,6 +316,7 @@ export default { ...@@ -310,6 +316,7 @@ export default {
}, },
__reset() { __reset() {
// 初始化 // 初始化
this.model.manufacturerName = null
this.model.manufacturerId = null this.model.manufacturerId = null
this.model.merchantId = null this.model.merchantId = null
this.result = { this.result = {
...@@ -323,6 +330,7 @@ export default { ...@@ -323,6 +330,7 @@ export default {
__setDefault(__default) { __setDefault(__default) {
this.model.merchantId = __default.merchantId this.model.merchantId = __default.merchantId
this.model.manufacturerId = __default.manufacturerId this.model.manufacturerId = __default.manufacturerId
this.model.manufacturerName = __default.manufacturerName
this.result.influenceScope = __default.influenceScope this.result.influenceScope = __default.influenceScope
this.model.file_list = __default.file_list this.model.file_list = __default.file_list
this.result.grayscaleUserList = __default.grayscaleuser this.result.grayscaleUserList = __default.grayscaleuser
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!