diff --git a/src/api/system/client.js b/src/api/system/client.js
index 06df75bbfffa0828d9d66fd505f1343faed6b233..bb095b4d54fdcd6593e375dc811b38cb1330bede 100644
--- a/src/api/system/client.js
+++ b/src/api/system/client.js
@@ -81,4 +81,4 @@ export function existsByCodeNotId (code, id) {
method: 'GET',
params: { code, id }
})
-}
\ No newline at end of file
+}
diff --git a/src/api/system/loginType.js b/src/api/system/loginType.js
index 9bfefa0b9b6228996f3208d0888b1a97ff696bce..686c7fecea6d0230f5e48c2d5fec1993a8005fcd 100644
--- a/src/api/system/loginType.js
+++ b/src/api/system/loginType.js
@@ -57,7 +57,7 @@ export function findAll () {
}
/**
- * 根据code获取终端信息
+ * 根据code获取登录方式
*/
export function findByCode (code) {
return axios({
diff --git a/src/api/third/weChatMenu.js b/src/api/third/weChatMenu.js
index 05517751e85164af5d2acfa1c4f78beabcf59773..1a4de2af4dcc9542ad3c6fd658e85eed417e6f3b 100644
--- a/src/api/third/weChatMenu.js
+++ b/src/api/third/weChatMenu.js
@@ -86,7 +86,7 @@ export function publish (id) {
}
/**
- * 发布菜单
+ * 导入微信配置的菜单
*/
export function importMenu () {
return axios({
diff --git a/src/components/Bootx/RoleSelectModal/BRoleSelectModal.vue b/src/components/Bootx/RoleSelectModal/BRoleSelectModal.vue
index 65d5b60b78e5f0b45a9e7c05810ae55b42666f15..77f091a9a406833a21a66c1dd46dc053d1a8e809 100644
--- a/src/components/Bootx/RoleSelectModal/BRoleSelectModal.vue
+++ b/src/components/Bootx/RoleSelectModal/BRoleSelectModal.vue
@@ -10,26 +10,13 @@
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
- queryParam = {}">重置
-
-
-
-
+ queryParam = {}"
+ />
import { TableMixin } from '@/mixins/TableMixin'
import { page } from '@/api/system/role'
+import { STRING } from '@/components/Bootx/SuperQuery/superQueryCode'
export default {
name: 'RoleSelectModel',
@@ -104,7 +92,11 @@ export default {
queryParam: {
code: '',
name: ''
- }
+ },
+ fields: [
+ { field: 'name', type: STRING, name: '名称', placeholder: '请输入角色名称' },
+ { field: 'code', type: STRING, name: '编号', placeholder: '请输入角色编号' }
+ ]
}
},
methods: {
diff --git a/src/components/Bootx/SuperQuery/BQuery.vue b/src/components/Bootx/SuperQuery/BQuery.vue
index ca3cb7c8d37cece193cd245a9338f55c22fafdea..f1de2591a772932f19777d31c0a74877ee35144c 100644
--- a/src/components/Bootx/SuperQuery/BQuery.vue
+++ b/src/components/Bootx/SuperQuery/BQuery.vue
@@ -8,6 +8,7 @@
v-for="(field, i) in fields"
:field="field"
:md="defaultItemMd"
+ @query="query"
v-model="queryParam"
/>
diff --git a/src/components/Bootx/SuperQuery/QueryItem.vue b/src/components/Bootx/SuperQuery/QueryItem.vue
index b477412a8cc87844c544307ab73f7ec5da352876..51253adbfe87b1ad65b1a721b85c9302bfab2106 100644
--- a/src/components/Bootx/SuperQuery/QueryItem.vue
+++ b/src/components/Bootx/SuperQuery/QueryItem.vue
@@ -4,12 +4,14 @@
-
+
@@ -89,6 +96,9 @@ export default {
}
},
methods: {
+ query () {
+ this.$emit('query')
+ }
}
}
diff --git a/src/components/Bootx/UserSelectModal/BUserSelectModal.vue b/src/components/Bootx/UserSelectModal/BUserSelectModal.vue
index 67d9497d89397173a95f27ce3e0322b7cd739a50..90a3f62e04b962b82d795467d1543a7248d3bdb5 100644
--- a/src/components/Bootx/UserSelectModal/BUserSelectModal.vue
+++ b/src/components/Bootx/UserSelectModal/BUserSelectModal.vue
@@ -10,26 +10,13 @@
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
- queryParam = {}">重置
-
-
-
-
+ queryParam = {}"
+ />
import { page } from '@/api/system/user'
import { TableMixin } from '@/mixins/TableMixin'
+import { STRING } from '@/components/Bootx/SuperQuery/superQueryCode'
export default {
name: 'BUserSelectModal',
@@ -104,7 +92,11 @@ export default {
queryParam: {
name: '',
username: ''
- }
+ },
+ fields: [
+ { field: 'name', type: STRING, name: '账号', placeholder: '输入用户名称' },
+ { field: 'username', type: STRING, name: '账号', placeholder: '输入用户账号' }
+ ]
}
},
methods: {
diff --git a/src/components/KFormDesign/packages/UploadImg/uploadImg.vue b/src/components/KFormDesign/packages/UploadImg/uploadImg.vue
index b17b3e92484e5d07fa13f1075d5e8555a593c711..69bd1c59123da050ab4c54b028d65c67ccdaabdf 100644
--- a/src/components/KFormDesign/packages/UploadImg/uploadImg.vue
+++ b/src/components/KFormDesign/packages/UploadImg/uploadImg.vue
@@ -57,22 +57,22 @@
* description 上传图片组件
*/
export default {
- name: "KUploadImg",
+ name: 'KUploadImg',
// eslint-disable-next-line vue/require-prop-types
- props: ["record", "value", "config", "parentDisabled"],
- data() {
+ props: ['record', 'value', 'config', 'parentDisabled'],
+ data () {
return {
fileList: [],
previewVisible: false,
- previewImageUrl: ""
- };
+ previewImageUrl: ''
+ }
},
watch: {
value: {
// value 需要深度监听及默认先执行handler函数
- handler(val) {
+ handler (val) {
if (val) {
- this.setFileList();
+ this.setFileList()
}
},
immediate: true,
@@ -80,89 +80,89 @@ export default {
}
},
computed: {
- optionsData() {
+ optionsData () {
try {
- return JSON.parse(this.record.options.data);
+ return JSON.parse(this.record.options.data)
} catch (err) {
- console.error(err);
- return {};
+ console.error(err)
+ return {}
}
}
},
methods: {
- setFileList() {
+ setFileList () {
// 当传入value改变时,fileList也要改变
// 如果传入的值为字符串,则转成json
- if (typeof this.value === "string") {
- this.fileList = JSON.parse(this.value);
+ if (typeof this.value === 'string') {
+ this.fileList = JSON.parse(this.value)
// 将转好的json覆盖组件默认值的字符串
- this.handleSelectChange();
+ this.handleSelectChange()
} else {
- this.fileList = this.value;
+ this.fileList = this.value
}
},
- handleSelectChange() {
+ handleSelectChange () {
setTimeout(() => {
const arr = this.fileList.map(item => {
- if (typeof item.response !== "undefined") {
- const res = item.response;
+ if (typeof item.response !== 'undefined') {
+ const res = item.response
return {
- type: "img",
+ type: 'img',
name: item.name,
status: item.status,
uid: item.uid,
- url: res.data.url || ""
- };
+ url: res.data.url || ''
+ }
} else {
return {
- type: "img",
+ type: 'img',
name: item.name,
status: item.status,
uid: item.uid,
- url: item.url || ""
- };
+ url: item.url || ''
+ }
}
- });
+ })
- this.$emit("change", arr);
- this.$emit("input", arr);
- }, 10);
+ this.$emit('change', arr)
+ this.$emit('input', arr)
+ }, 10)
},
- handlePreview(file) {
+ handlePreview (file) {
// 预览图片
- this.previewImageUrl = file.url || file.thumbUrl;
- this.previewVisible = true;
+ this.previewImageUrl = file.url || file.thumbUrl
+ this.previewVisible = true
},
- handleCancel() {
+ handleCancel () {
// 取消操作
- this.previewVisible = false;
+ this.previewVisible = false
},
- remove() {
- this.handleSelectChange();
+ remove () {
+ this.handleSelectChange()
},
- beforeUpload(e, files) {
+ beforeUpload (e, files) {
if (files.length + this.fileList.length > this.record.options.limit) {
- this.$message.warning(`最大上传数量为${this.record.options.limit}`);
- files.splice(this.record.options.limit - this.fileList.length);
+ this.$message.warning(`最大上传数量为${this.record.options.limit}`)
+ files.splice(this.record.options.limit - this.fileList.length)
}
},
- handleChange(info) {
+ handleChange (info) {
// 上传数据改变时
- this.fileList = info.fileList;
- if (info.file.status === "done") {
- const res = info.file.response;
+ this.fileList = info.fileList
+ if (info.file.status === 'done') {
+ const res = info.file.response
if (res.code === 0) {
- this.handleSelectChange();
+ this.handleSelectChange()
} else {
- this.fileList.pop();
- this.$message.error(`图片上传失败`);
+ this.fileList.pop()
+ this.$message.error(`图片上传失败`)
}
- } else if (info.file.status === "error") {
- this.$message.error(`图片上传失败`);
+ } else if (info.file.status === 'error') {
+ this.$message.error(`图片上传失败`)
}
}
}
-};
+}