Commit 1137a0f3 authored by “yiyousong”'s avatar “yiyousong”

Merge branch 'xuanhan' of http://gitlab.scsmile.cn/zxf/smart_gov_platform into xuanhan

parents 3c6c0957 3a6c0ba8
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</template> </template>
<!-- 类型 --> <!-- 类型 -->
<template slot="appType" slot-scope="{ record }"> <template slot="appType" slot-scope="{ record }">
{{ record.appType === 1 ? "应用程序" : "URL" }} {{ appType[record.appType] }}
</template> </template>
<!-- 上下架 --> <!-- 上下架 -->
<template slot="shelves" slot-scope="{ record }"> <template slot="shelves" slot-scope="{ record }">
...@@ -145,6 +145,13 @@ import { ...@@ -145,6 +145,13 @@ import {
} from "@/services/market"; } from "@/services/market";
import local from "@/utils/local"; import local from "@/utils/local";
import { mapMutations, mapGetters } from "vuex"; import { mapMutations, mapGetters } from "vuex";
let appType = {
1: "应用程序",
2: "URL",
3: "微信小程序",
4: "天府通办",
5: "Router",
};
const columns = [ const columns = [
{ {
title: "序号", title: "序号",
...@@ -206,6 +213,7 @@ export default { ...@@ -206,6 +213,7 @@ export default {
return { return {
api: process.env.VUE_APP_API_BASE_URL + "/", api: process.env.VUE_APP_API_BASE_URL + "/",
columns, columns,
appType,
siteId: local.getLocal("siteId"), siteId: local.getLocal("siteId"),
tableData: [], // 表格数据 tableData: [], // 表格数据
loading: false, loading: false,
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</template> </template>
<!-- 类型 --> <!-- 类型 -->
<template slot="appType" slot-scope="{ record }"> <template slot="appType" slot-scope="{ record }">
{{ record.appType === 1 ? "应用程序" : "URL" }} {{ appType[record.appType] }}
</template> </template>
<!-- 上下架 --> <!-- 上下架 -->
<template slot="shelves" slot-scope="{ record }"> <template slot="shelves" slot-scope="{ record }">
...@@ -145,6 +145,13 @@ import { ...@@ -145,6 +145,13 @@ import {
import local from "@/utils/local"; import local from "@/utils/local";
import { mapMutations, mapGetters } from "vuex"; import { mapMutations, mapGetters } from "vuex";
import YTable from "@/components/YTable.vue"; import YTable from "@/components/YTable.vue";
let appType = {
1: "应用程序",
2: "URL",
3: "微信小程序",
4: "天府通办",
5: "Router",
};
const columns = [ const columns = [
{ {
title: "序号", title: "序号",
...@@ -206,6 +213,7 @@ export default { ...@@ -206,6 +213,7 @@ export default {
return { return {
api: process.env.VUE_APP_API_BASE_URL + "/", api: process.env.VUE_APP_API_BASE_URL + "/",
columns, columns,
appType,
siteId: local.getLocal("siteId"), siteId: local.getLocal("siteId"),
tableData: [], // 表格数据 tableData: [], // 表格数据
loading: false, loading: false,
......
...@@ -74,6 +74,7 @@ ...@@ -74,6 +74,7 @@
<a-radio :value="2"> URL </a-radio> <a-radio :value="2"> URL </a-radio>
<a-radio :value="3" v-if="form.type != 1"> 微信小程序 </a-radio> <a-radio :value="3" v-if="form.type != 1"> 微信小程序 </a-radio>
<a-radio :value="4" v-if="form.type != 2"> 天府通办 </a-radio> <a-radio :value="4" v-if="form.type != 2"> 天府通办 </a-radio>
<a-radio :value="5"> Router </a-radio>
</a-radio-group> </a-radio-group>
</a-form-model-item> </a-form-model-item>
<a-form-model-item <a-form-model-item
...@@ -301,6 +302,7 @@ export default { ...@@ -301,6 +302,7 @@ export default {
// 改变类型 // 改变类型
changeAppType(e) { changeAppType(e) {
let val = e.target.value; let val = e.target.value;
this.$refs.form.clearValidate(["url", "filePath"]);
if (val == 1) { if (val == 1) {
this.form.url = ""; this.form.url = "";
} else { } else {
......
...@@ -264,10 +264,12 @@ export default { ...@@ -264,10 +264,12 @@ export default {
}, },
filterModel(modelId) { filterModel(modelId) {
let modelName = "--";
let curModel = this.modelData.find((item) => item.id === modelId); let curModel = this.modelData.find((item) => item.id === modelId);
if (curModel) { if (curModel) {
return curModel.modelName; modelName = curModel.modelName;
} }
return modelName;
}, },
}, },
}; };
......
...@@ -246,7 +246,7 @@ export default { ...@@ -246,7 +246,7 @@ export default {
siteMatterData: [], // 站点事项列表 siteMatterData: [], // 站点事项列表
matterKeys: [], matterKeys: [],
matterRows: [], matterRows: [],
allDel: "", // 批量删除id allDel: [], // 批量删除id
windowInfo: {}, windowInfo: {},
formData: { formData: {
isShow: 1, isShow: 1,
...@@ -335,6 +335,7 @@ export default { ...@@ -335,6 +335,7 @@ export default {
// 窗口事项搜索 // 窗口事项搜索
onSearch() { onSearch() {
this.winMatterTable.page = 1; this.winMatterTable.page = 1;
this.allDel = [];
this.getWindowmatterData(); this.getWindowmatterData();
}, },
// 保存站点事项加入窗口 // 保存站点事项加入窗口
...@@ -372,7 +373,7 @@ export default { ...@@ -372,7 +373,7 @@ export default {
}, },
// 全选窗口事项列表 // 全选窗口事项列表
onSelectChange(keys) { onSelectChange(keys) {
this.allDel = keys.join(","); this.allDel = keys;
}, },
// 站点事项选择 // 站点事项选择
handleChange(keys, rows) { handleChange(keys, rows) {
...@@ -410,7 +411,7 @@ export default { ...@@ -410,7 +411,7 @@ export default {
let { code, msg } = res.data; let { code, msg } = res.data;
if (code === 1) { if (code === 1) {
_this.$message.success(msg); _this.$message.success(msg);
this.allDel = ""; _this.allDel = [];
_this.getWindowmatterData(); _this.getWindowmatterData();
} }
}, },
...@@ -421,8 +422,9 @@ export default { ...@@ -421,8 +422,9 @@ export default {
}, },
// 批量删除窗口事项 // 批量删除窗口事项
handleDelAll() { handleDelAll() {
if (this.allDel) { if (this.allDel.length) {
this.handleDel(this.allDel); let ids = this.allDel.join(",");
this.handleDel(ids);
} else { } else {
this.$message.warning("请先勾选数据"); this.$message.warning("请先勾选数据");
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment