diff --git a/src/components/QueryListPage/QueryForm.vue b/src/components/QueryListPage/QueryForm.vue
index 47cd039d8..1d87f4363 100644
--- a/src/components/QueryListPage/QueryForm.vue
+++ b/src/components/QueryListPage/QueryForm.vue
@@ -94,7 +94,7 @@
:ref="name"
v-model="formModel[name]"
:multiple="field.config.multiple"
- clearable
+ :clearable="!field.config.noClear"
:placeholder="field.placeholder || $t('global.choose')"
filterable
@change="selectChange(field, formModel)"
@@ -293,6 +293,7 @@ export default {
// 获取默认查询参数
initQueryModel() {
this.formModel = localStore.get(this.$route.path) || this.formModel;
+ this.buildForm();
if (typeof this.queryForm.initLoadCallback === 'function') {
this.queryForm.initLoadCallback(this.formModel);
}
@@ -304,7 +305,6 @@ export default {
this.exportFlag = this.queryForm.canExport;
this.resetShow = this.queryForm.reset;
this.buildQueryField();
- this.buildForm();
},
// 构建查询表单对象、显示的查询对象
buildForm() {
@@ -342,13 +342,12 @@ export default {
if (this.queryForm.queryObject.show === false) {
continue;
} else if (this.queryForm.queryObject.visible === false) {
- model[item] = this.queryForm.queryObject[item].value;
+ model[item] = this.formModel[item] || this.queryForm.queryObject[item].value;
} else {
queryObject[item] = this.queryForm.queryObject[item];
- model[item] = this.queryForm.queryObject[item].value || getDefaultValueByField(this.queryForm.queryObject[item]);
+ model[item] = this.formModel[item] || this.queryForm.queryObject[item].value || getDefaultValueByField(this.queryForm.queryObject[item]);
}
}
-
this.queryObject = queryObject;
this.formModel = model;
},
diff --git a/src/router/index_Common.js b/src/router/index_Common.js
index 1e499b4a1..70c10b451 100644
--- a/src/router/index_Common.js
+++ b/src/router/index_Common.js
@@ -117,9 +117,6 @@ const PermissionCreate = () => import('@/views/orderauthor/permission/create/ind
const UserRules = () => import('@/views/orderauthor/rules/index');
const UserRulesDetail = () => import('@/views/orderauthor/rules/detail');
-const LessonApproval = () => import('@/views/approval/lesson/index');
-const ScriptApproval = () => import('@/views/approval/script/index');
-const RunPlanApproval = () => import('@/views/approval/runPlan/index');
const DeviceManage = () => import('@/views/system/deviceManage/index');
const MapSort = () => import('@/views/publish/publishMap/mapSort');
const StudentManage = () => import('@/views/studentManage');
@@ -140,6 +137,7 @@ const JsxtApply = () => import('@/views/jsxt/apply/index');
// const theoryManage = () => import('@/views/jsxt/competition/theory/index');
const RefereeList = () => import('@/views/jsxt/refereeList/index');
const RefereeDisplay = () => import('@/views/jsxt/refereeList/display');
+const Approval = () => import('@/views/approval/index');
import { GenerateRouteProjectList } from '@/scripts/ProjectConfig';
// import { getSessionStorage } from '@/utils/auth';
@@ -793,6 +791,13 @@ export const asyncRouter = [
meta: {
i18n: 'router.configLine'
}
+ },
+ {// 发布申请
+ path: 'approval',
+ component: Approval,
+ meta: {
+ i18n: 'router.releaseApplication'
+ }
}
// {
// path: 'deviceManage',
@@ -803,37 +808,6 @@ export const asyncRouter = [
// }
]
},
- { // 发布申请
- path: '/apply',
- component: Layout,
- meta: {
- i18n: 'router.releaseApplication',
- roles: [admin]
- },
- children: [
- {
- path: 'lesson',
- component: LessonApproval,
- meta: {
- i18n: 'router.courseApplication'
- }
- },
- {
- path: 'script',
- component: ScriptApproval,
- meta: {
- i18n: 'router.scriptReleaseApplication'
- }
- },
- {
- path: 'runGraph',
- component: RunPlanApproval,
- meta: {
- i18n: 'router.runGraphReleaseApplication'
- }
- }
- ]
- },
{ // 新个人地图
path: '/design',
component: Layout,
diff --git a/src/router/index_HEB.js b/src/router/index_HEB.js
index e7757f2f3..4d9385951 100644
--- a/src/router/index_HEB.js
+++ b/src/router/index_HEB.js
@@ -103,11 +103,9 @@ const PermissionCreate = () => import('@/views/orderauthor/permission/create/ind
const UserRules = () => import('@/views/orderauthor/rules/index');
const UserRulesDetail = () => import('@/views/orderauthor/rules/detail');
-const LessonApproval = () => import('@/views/approval/lesson/index');
-const ScriptApproval = () => import('@/views/approval/script/index');
-const RunPlanApproval = () => import('@/views/approval/runPlan/index');
const DeviceManage = () => import('@/views/system/deviceManage/index');
const MapSort = () => import('@/views/publish/publishMap/mapSort');
+const Approval = () => import('@/views/approval/index');
// import { loginInfo } from '@/scripts/ProjectConfig';
// import { getSessionStorage } from '@/utils/auth';
@@ -716,36 +714,12 @@ export const asyncRouter = [
meta: {
i18n: 'router.deviceManage'
}
- }
- ]
- },
- { // 发布申请
- path: '/apply',
- component: Layout,
- meta: {
- i18n: 'router.releaseApplication',
- roles: [admin]
- },
- children: [
- {
- path: 'lesson',
- component: LessonApproval,
- meta: {
- i18n: 'router.courseApplication'
- }
},
- {
- path: 'script',
- component: ScriptApproval,
+ {// 发布申请
+ path: 'approval',
+ component: Approval,
meta: {
- i18n: 'router.scriptReleaseApplication'
- }
- },
- {
- path: 'runGraph',
- component: RunPlanApproval,
- meta: {
- i18n: 'router.runGraphReleaseApplication'
+ i18n: 'router.releaseApplication'
}
}
]
diff --git a/src/views/approval/lesson/detail.vue b/src/views/approval/detail.vue
similarity index 100%
rename from src/views/approval/lesson/detail.vue
rename to src/views/approval/detail.vue
diff --git a/src/views/approval/index.vue b/src/views/approval/index.vue
new file mode 100644
index 000000000..5b13f0459
--- /dev/null
+++ b/src/views/approval/index.vue
@@ -0,0 +1,527 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/approval/lesson/index.vue b/src/views/approval/lesson/index.vue
deleted file mode 100644
index c4a9d334a..000000000
--- a/src/views/approval/lesson/index.vue
+++ /dev/null
@@ -1,193 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/approval/runPlan/index.vue b/src/views/approval/runPlan/index.vue
deleted file mode 100644
index ca7964db5..000000000
--- a/src/views/approval/runPlan/index.vue
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/src/views/approval/runPlan/operate.vue b/src/views/approval/runPlan/operate.vue
deleted file mode 100644
index 6f92f43e9..000000000
--- a/src/views/approval/runPlan/operate.vue
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/approval/script/index.vue b/src/views/approval/script/index.vue
deleted file mode 100644
index 412305d2b..000000000
--- a/src/views/approval/script/index.vue
+++ /dev/null
@@ -1,171 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/src/views/approval/script/operate.vue b/src/views/approval/script/operate.vue
deleted file mode 100644
index ec4398641..000000000
--- a/src/views/approval/script/operate.vue
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/demonstration/detail/index.vue b/src/views/demonstration/detail/index.vue
index 4ccd52923..899142ad9 100644
--- a/src/views/demonstration/detail/index.vue
+++ b/src/views/demonstration/detail/index.vue
@@ -308,7 +308,7 @@ export default {
jump() {
this.disabled = true;
setTimeout(() => {
- const data = { mapId: this.courseModel.mapId, prdType: this.currentPrdType };
+ const data = { mapId: this.courseModel.mapId, prdType: this.currentPrdType };
if (!this.drawWay) {
simulationNotify(data).then(resp => {
const query = { lineCode: this.courseModel.lineCode, group: resp.data, prdType: this.courseModel.prdType, mapId: this.courseModel.mapId, goodsId: this.goodsId, try: this.tryUser, project: this.project };
@@ -320,8 +320,8 @@ export default {
});
} else {
createSimulationNew(data).then(resp => {
- const query = { lineCode: this.courseModel.lineCode, group: resp.data, prdType: this.courseModel.prdType, mapId: this.courseModel.mapId, goodsId: this.goodsId, try: this.tryUser, project: this.project };
- this.$store.dispatch('training/setPrdType', this.currentPrdType); // 改变prdType
+ const query = { lineCode: this.courseModel.lineCode, group: resp.data, prdType: this.courseModel.prdType, mapId: this.courseModel.mapId, goodsId: this.goodsId, try: this.tryUser, project: this.project };
+ this.$store.dispatch('training/setPrdType', this.currentPrdType); // 改变prdType
this.$router.push({ path: `${UrlConfig.displayNew}/demon`, query: query });
launchFullscreen();
}).catch(error => {
diff --git a/src/views/lesson/home.vue b/src/views/lesson/home.vue
index afe8874f2..38ba9f500 100644
--- a/src/views/lesson/home.vue
+++ b/src/views/lesson/home.vue
@@ -23,7 +23,7 @@ import { UrlConfig } from '@/scripts/ConstDic';
import PublishCreate from './lessoncategory/edit/create';
import PublishLesson from './lessoncategory/edit/lesson/publish';
import { delLesson } from '@/api/jmap/lessondraft';
-import LessonDetail from '@/views/approval/lesson/detail';
+import LessonDetail from '@/views/approval/detail';
import ConstConfig from '@/scripts/ConstConfig';
export default {
diff --git a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue
index d28c54b51..f95eb1366 100644
--- a/src/views/newMap/jointTrainingNew/chatView/chatBox.vue
+++ b/src/views/newMap/jointTrainingNew/chatView/chatBox.vue
@@ -552,9 +552,7 @@ export default {
this.privateMessageList = [];
this.quitLoading = false;
this.$nextTick(() => {
- if (this.$refs.tree) {
- this.$refs.tree.filter(this.queryMember);
- }
+ this.$refs.tree && this.$refs.tree.filter(this.queryMember);
});
}).catch(() => {
this.$message.error('退出会话失败!');
@@ -687,9 +685,7 @@ export default {
this.conversitionMemberList = this.privateMemberList;
this.messageList = [...this.privateMessageList];
this.$nextTick(() => {
- if (this.$refs.tree) {
- this.$refs.tree.filter(this.queryMember);
- }
+ this.$refs.tree && this.$refs.tree.filter(this.queryMember);
});
},
clearAllData() {