|
@@ -84,8 +84,8 @@ export default defineComponent({
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
- async toSearch({ skip = 0, limit = 10, ...condition } = {}) {
|
|
|
- await this.query({ skip, limit, ...condition, project: _.get(this.project, 'id') });
|
|
|
+ async toSearch({ ...condition } = {}) {
|
|
|
+ await this.query({ ...condition, project: _.get(this.project, 'id') });
|
|
|
},
|
|
|
async toEdit(id) {
|
|
|
if (!id) {
|
|
@@ -178,7 +178,6 @@ export default defineComponent({
|
|
|
}
|
|
|
for (const column of columns) {
|
|
|
const { title } = column;
|
|
|
- console.log(title, reg.test(title));
|
|
|
if (reg.test(title)) {
|
|
|
result.message = `字段中不能包含非 '_' 以外的特殊符号.${title}验证失败`;
|
|
|
result.result = false;
|
|
@@ -191,7 +190,7 @@ export default defineComponent({
|
|
|
watch: {
|
|
|
project: {
|
|
|
handler(val, oval) {
|
|
|
- if (_.get(val, 'id')) this.toSearch({ skip: 0, limit: 10 });
|
|
|
+ if (_.get(val, 'id')) this.toSearch();
|
|
|
},
|
|
|
deep: true,
|
|
|
},
|