qdt-admin-layout 1.1.26 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -179,20 +179,25 @@ export default {
|
|
|
179
179
|
*/
|
|
180
180
|
closeSelectedTag(view = this.selectedTag) {
|
|
181
181
|
if (["访销订单", "车销单", "销售出库单"].includes(view.meta.title))
|
|
182
|
-
this.$confirm(
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
182
|
+
this.$confirm(
|
|
183
|
+
`是否关闭${view.meta.title},没有保存的单据将会丢失?`,
|
|
184
|
+
"提示",
|
|
185
|
+
{
|
|
186
|
+
confirmButtonText: "确定",
|
|
187
|
+
cancelButtonText: "取消",
|
|
188
|
+
type: "warning",
|
|
189
|
+
}
|
|
190
|
+
)
|
|
187
191
|
.then(() => {
|
|
188
192
|
if (tagsViewGetters.visitedViews.length <= 1 || isAffix(view))
|
|
189
193
|
return;
|
|
190
194
|
tagsViewMutations.delTagAndCache(view);
|
|
191
195
|
this.activeKey === view.key && this.gotoLastTag();
|
|
192
196
|
})
|
|
193
|
-
.catch(() => {
|
|
194
|
-
|
|
195
|
-
|
|
197
|
+
.catch(() => {});
|
|
198
|
+
else if (view.meta.title == "销售工作台") {
|
|
199
|
+
sessionStorage.removeItem("nodeId");
|
|
200
|
+
} else {
|
|
196
201
|
if (tagsViewGetters.visitedViews.length <= 1 || isAffix(view)) return;
|
|
197
202
|
tagsViewMutations.delTagAndCache(view);
|
|
198
203
|
this.activeKey === view.key && this.gotoLastTag();
|