szh_zidingyibiaoti
张同海 2 years ago
parent b8cc2225ed
commit babb1d12e1

@ -11,7 +11,7 @@
<a-form :form="form" class="CsForm"> <a-form :form="form" class="CsForm">
<a-row type="flex" justify="end"> <a-row type="flex" justify="end">
<a-col :span="1"> <a-col :span="1">
<a-button type="primary" @click="handleSubmit"> <a-button type="primary" @click="handleSubmit" :loading="SaveLoading">
保存 保存
</a-button> </a-button>
</a-col> </a-col>
@ -312,7 +312,8 @@ export default {
TypeData: [], TypeData: [],
propStringData: [], propStringData: [],
saleUserList: [], saleUserList: [],
bookingServiceItem: [] bookingServiceItem: [],
SaveLoading: false
} }
}, },
watch: { watch: {
@ -462,6 +463,7 @@ export default {
this.confirmLoading = true this.confirmLoading = true
validateFields((errors, values) => { validateFields((errors, values) => {
if (!errors) { if (!errors) {
this.SaveLoading = true
for (const key in values) { for (const key in values) {
if (typeof values[key] === 'object' && !(values[key] === null)) { if (typeof values[key] === 'object' && !(values[key] === null)) {
values[key] = JSON.stringify(values[key]) values[key] = JSON.stringify(values[key])
@ -489,6 +491,7 @@ export default {
let Arr = ['sale', 'op', 'doc', 'custservice'] let Arr = ['sale', 'op', 'doc', 'custservice']
GetSysUserPage() GetSysUserPage()
.then(res => { .then(res => {
this.SaveLoading = false
if (res.success) { if (res.success) {
let saleUserList = res.data let saleUserList = res.data
Arr.forEach(item => { Arr.forEach(item => {
@ -522,6 +525,7 @@ export default {
} }
}) })
.catch(err => { .catch(err => {
this.SaveLoading = false
console.log(err) console.log(err)
}) })
} else { } else {

@ -18,7 +18,16 @@
</a-col> </a-col>
<a-col :md="4" :sm="24"> <a-col :md="4" :sm="24">
<span class="table-page-search-submitButtons"> <span class="table-page-search-submitButtons">
<a-button type="primary" @click="FnGetData"></a-button> <a-button
type="primary"
@click="
() => {
queryParam.pageNo = 1
FnGetData()
}
"
>查询</a-button
>
<a-button style="margin-left: 8px" @click="init"></a-button> <a-button style="margin-left: 8px" @click="init"></a-button>
<a v-if="ColumnsQueryL > 3" @click="toggleAdvanced" style="margin-left: 8px"> <a v-if="ColumnsQueryL > 3" @click="toggleAdvanced" style="margin-left: 8px">
{{ advanced ? '收起' : '展开' }} {{ advanced ? '收起' : '展开' }}

@ -133,33 +133,36 @@ export default {
} }
}, },
mounted() { mounted() {
DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => { this.FnDJYTenantParamGet()
this.TypeData = res.data
let data = []
res.data.forEach(item => {
if (data.length) {
let type2 = false
data.forEach((item2, index2) => {
if (item.type == item2[0].type) {
item2.push(item)
type2 = true
}
})
if (!type2) {
data[data.length] = [item]
}
} else {
data[0] = [item]
}
})
this.WTypeData = data
})
this.YWData = this.$options.filters['dictData']('tenant_param_group') this.YWData = this.$options.filters['dictData']('tenant_param_group')
SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => { SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => {
this.TenantData = res.data.rows this.TenantData = res.data.rows
}) })
}, },
methods: { methods: {
FnDJYTenantParamGet() {
DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => {
this.TypeData = res.data
let data = []
res.data.forEach(item => {
if (data.length) {
let type2 = false
data.forEach((item2, index2) => {
if (item.type == item2[0].type) {
item2.push(item)
type2 = true
}
})
if (!type2) {
data[data.length] = [item]
}
} else {
data[0] = [item]
}
})
this.WTypeData = data
})
},
FnTypeD(data) { FnTypeD(data) {
let Rdata = '' let Rdata = ''
this.YWData.forEach(item => { this.YWData.forEach(item => {
@ -191,6 +194,7 @@ export default {
// //
add(record) { add(record) {
this.visible = true this.visible = true
this.FnDJYTenantParamGet()
this.typeData = [ this.typeData = [
{ {
code: 10, code: 10,

@ -133,33 +133,35 @@ export default {
} }
}, },
mounted() { mounted() {
DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => {
this.TypeData = res.data
let data = []
res.data.forEach(item => {
if (data.length) {
let type2 = false
data.forEach((item2, index2) => {
if (item.type == item2[0].type) {
item2.push(item)
type2 = true
}
})
if (!type2) {
data[data.length] = [item]
}
} else {
data[0] = [item]
}
})
this.WTypeData = data
})
this.YWData = this.$options.filters['dictData']('tenant_param_group') this.YWData = this.$options.filters['dictData']('tenant_param_group')
SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => { SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => {
this.TenantData = res.data.rows this.TenantData = res.data.rows
}) })
}, },
methods: { methods: {
FnDJYTenantParamGet() {
DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => {
this.TypeData = res.data
let data = []
res.data.forEach(item => {
if (data.length) {
let type2 = false
data.forEach((item2, index2) => {
if (item.type == item2[0].type) {
item2.push(item)
type2 = true
}
})
if (!type2) {
data[data.length] = [item]
}
} else {
data[0] = [item]
}
})
this.WTypeData = data
})
},
FnTypeD(data) { FnTypeD(data) {
let Rdata = '' let Rdata = ''
this.YWData.forEach(item => { this.YWData.forEach(item => {
@ -189,6 +191,7 @@ export default {
}, },
// //
edit(record) { edit(record) {
this.FnDJYTenantParamGet()
console.log(record) console.log(record)
this.FnChangeTypeCode(record.paraCode) this.FnChangeTypeCode(record.paraCode)
this.data = record this.data = record

@ -122,7 +122,8 @@
} }
" "
> >
<vxe-button type="text">删除</vxe-button> <a-icon type="delete" :style="{ color: '#13c2c2' }" />
<!-- <vxe-button type="text">删除</vxe-button> -->
</a-popconfirm> </a-popconfirm>
</template> </template>
</vxe-column> </vxe-column>

Loading…
Cancel
Save