|
@@ -11,7 +11,7 @@ export function usePageUpdateInfo() {
|
|
|
|
|
|
});
|
|
|
let form = reactive({
|
|
|
- kind: "", //分类
|
|
|
+ kind: "creater", //分类
|
|
|
|
|
|
});
|
|
|
const dataList = ref([]);
|
|
@@ -154,6 +154,40 @@ export function usePageUpdateInfo() {
|
|
|
addVisible.value = true;
|
|
|
};
|
|
|
|
|
|
+ //同步文件
|
|
|
+ function handleUpdateTemplate() {
|
|
|
+ if (form.kind == "") {
|
|
|
+ ElMessageBox.alert("请筛选分类", "提示", {
|
|
|
+ confirmButtonText: "关闭",
|
|
|
+ type: "warning"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ ElMessageBox.confirm(
|
|
|
+ `是否同步页面模板文件? `,
|
|
|
+ "提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "同步",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }
|
|
|
+ ).then(async () => {
|
|
|
+ const { status, msg }: any = await http.Request({ method: UrlList.kxsConfigServer.pageUpdateInfoupdateTemplate.method, url: UrlList.kxsConfigServer.pageUpdateInfoupdateTemplate.url, params: { kind: form.kind } });
|
|
|
+ if (status === 1) {
|
|
|
+ ElMessage({
|
|
|
+ message: "同步成功",
|
|
|
+ type: "success"
|
|
|
+ });
|
|
|
+ onSearch(ruleFormRef.value);
|
|
|
+ } else {
|
|
|
+ ElMessageBox.alert(msg, "提示", {
|
|
|
+ confirmButtonText: "关闭",
|
|
|
+ type: "warning"
|
|
|
+ });
|
|
|
+ };
|
|
|
+ })
|
|
|
+ };
|
|
|
+
|
|
|
// 修改
|
|
|
const editUpdateVisible = ref(false);
|
|
|
const editUpdateFormData = ref({});
|
|
@@ -210,6 +244,7 @@ export function usePageUpdateInfo() {
|
|
|
editUpdateFormData,
|
|
|
handleDelete,
|
|
|
handleUpVersion,
|
|
|
+ handleUpdateTemplate,
|
|
|
editUpVersionVisible,
|
|
|
editUpVersionFormData,
|
|
|
|