Commit dd6c1d63 by cwq0219

表情修改

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