|
|
@@ -73,15 +73,17 @@ export const listMixin = {
|
|
|
this.loading = true
|
|
|
if (this.isDict) {
|
|
|
this.loading = true
|
|
|
- getDicAction(this.url.list, this.model.dictType).then((res) => {
|
|
|
- if (res.code === 200) {
|
|
|
- this.dataSource = res.rows || res.data
|
|
|
- } else {
|
|
|
- this.$message.warning(res.msg)
|
|
|
- }
|
|
|
- }).finally(() => {
|
|
|
- this.loading = false
|
|
|
- })
|
|
|
+ if (this.model.dictType) {
|
|
|
+ getDicAction(this.url.list, this.model.dictType).then((res) => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.dataSource = res.rows || res.data
|
|
|
+ } else {
|
|
|
+ this.$message.warning(res.msg)
|
|
|
+ }
|
|
|
+ }).finally(() => {
|
|
|
+ this.loading = false
|
|
|
+ })
|
|
|
+ }
|
|
|
} else {
|
|
|
getAction(this.url.list, params).then((res) => {
|
|
|
if (res.code === 200) {
|