Commit 7b10c512 authored by “yiyousong”'s avatar “yiyousong”

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

parents 4a167a50 9c4e527a
...@@ -255,32 +255,23 @@ export default { ...@@ -255,32 +255,23 @@ export default {
// 获取数据列表 // 获取数据列表
async getDatasetList() { async getDatasetList() {
this.loading = true; this.loading = true;
let orConditionList = [ let obj = {};
{ let orConditionList = [];
fieldCode: this.fieldCode, let form = {
fieldValue: `%${this.searchVal}%`,
},
...this.sortSearch,
];
let res = await getDatasetList({
page: this.current, page: this.current,
size: this.size, size: this.size,
appId: this.appId, appId: this.appId,
orConditionList, };
// fieldCode: this.fieldCode, if (this.fieldCode) {
// fieldValue: `%${this.searchVal}%`, obj.fieldCode = this.fieldCode;
// orConditionList: [ obj.fieldValue = `%${this.searchVal}%`;
// { orConditionList.push(obj);
// fieldCode: this.fieldCode, }
// fieldValue: `%${this.searchVal}%`, orConditionList = [...orConditionList, ...this.sortSearch];
// }, if (orConditionList.length) {
// { form.orConditionList = orConditionList;
// fieldCode: "top", }
// fieldValue: `%%`, let res = await getDatasetList(form);
// },
// ],
});
this.loading = false; this.loading = false;
if (res.data.code === 1) { if (res.data.code === 1) {
let { data, total } = res.data.data; let { data, total } = res.data.data;
......
...@@ -14,11 +14,6 @@ ...@@ -14,11 +14,6 @@
v-model="searchForm.name" v-model="searchForm.name"
allowClear allowClear
/> />
<a-input
placeholder="请输入二级组织搜索"
v-model="searchForm.secondOrganize"
allowClear
/>
<a-button type="primary" @click="onSearch">搜索</a-button> <a-button type="primary" @click="onSearch">搜索</a-button>
<a-button @click="resetSearch">重置</a-button> <a-button @click="resetSearch">重置</a-button>
</a-space> </a-space>
...@@ -185,7 +180,6 @@ export default { ...@@ -185,7 +180,6 @@ export default {
searchValue: "", // 搜索 searchValue: "", // 搜索
searchForm: { searchForm: {
name: "", name: "",
secondOrganize: "",
}, },
tableData: [], tableData: [],
selectedRowKeys: [], selectedRowKeys: [],
...@@ -205,7 +199,6 @@ export default { ...@@ -205,7 +199,6 @@ export default {
page: this.current, page: this.current,
size: this.size, size: this.size,
name: `%${this.searchForm.name}%`, name: `%${this.searchForm.name}%`,
secondOrganize: `%${this.searchForm.secondOrganize}%`,
}); });
this.loading = false; this.loading = false;
if (res.data.code == 1) { if (res.data.code == 1) {
......
...@@ -16,8 +16,8 @@ Vue.use(Antd); ...@@ -16,8 +16,8 @@ Vue.use(Antd);
import GlobalComponents from "./utils/js/globalComponents"; import GlobalComponents from "./utils/js/globalComponents";
Vue.use(GlobalComponents); Vue.use(GlobalComponents);
import common from "./utils/commin"; // import common from "./utils/commin";
Vue.use(common); // Vue.use(common);
// 公共样式 // 公共样式
import "@/assets/css/normalize.css"; import "@/assets/css/normalize.css";
......
...@@ -11,6 +11,7 @@ import storage from "@/utils/js/Storage"; ...@@ -11,6 +11,7 @@ import storage from "@/utils/js/Storage";
// 请求超时时间 // 请求超时时间
axios.defaults.timeout = 60 * 1000; axios.defaults.timeout = 60 * 1000;
axios.defaults.withCredentials = true;
// 设置统一服务器地址 // 设置统一服务器地址
// axios.defaults.baseURL = process.env.VUE_APP_API_BASE_URL; // axios.defaults.baseURL = process.env.VUE_APP_API_BASE_URL;
......
// import moment from 'moment';
import moment from 'moment'; // import 'moment/locale/zh-cn'; // 获取中国标准时间,避免出现utc时间
import 'moment/locale/zh-cn'; // 获取中国标准时间,避免出现utc时间 // moment.locale('zh-cn')
moment.locale('zh-cn')
// import * as echarts from 'echarts'
import * as echarts from 'echarts' // import ExportJsonExcel from "js-export-excel";
// import Storage from './js/Storage.js';
import ExportJsonExcel from "js-export-excel";
// import '@/utils/css/animate.min.css'
import Storage from './js/Storage.js'; // import 'font-awesome/css/font-awesome.css'
// import './css/index.less' //css 公共库
import '@/utils/css/animate.min.css'
import 'font-awesome/css/font-awesome.css' // function setLoading(props) {
import './css/index.less' //css 公共库 // if (typeof props === 'boolean') props = {
// spinning: props
// }
function setLoading(props) { // if (Object.prototype.toString.call(props) !== '[object Object]') props = {}
if (typeof props === 'boolean') props = { // this.$app.loadingProps = {
spinning: props // tip: '加载中...',
} // ...props
if (Object.prototype.toString.call(props) !== '[object Object]') props = {} // }
this.$app.loadingProps = { // }
tip: '加载中...',
...props // const common = {
} // install: function (Vue) {
} // Vue.prototype.$echarts = echarts;
// Vue.prototype.$moment = moment;
const common = { // Vue.prototype.$Storage = Storage;
install: function (Vue) { // Vue.prototype.$setLoading = setLoading;
Vue.prototype.$echarts = echarts; // Vue.prototype.$ExportJsonExcel = ExportJsonExcel;
Vue.prototype.$moment = moment;
Vue.prototype.$Storage = Storage; // }
Vue.prototype.$setLoading = setLoading; // }
Vue.prototype.$ExportJsonExcel = ExportJsonExcel;
// export default common
}
}
export default common
\ No newline at end of file
export default {
getItem: function (sKey) {
return (
decodeURIComponent(
document.cookie.replace(
new RegExp(
"(?:(?:^|.*;)\\s*" +
encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") +
"\\s*\\=\\s*([^;]*).*$)|^.*$"
),
"$1"
)
) || null
);
},
setItem: function (sKey, sValue, vEnd, sPath, sDomain, bSecure) {
if (!sKey || /^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)) {
return false;
}
var sExpires = "";
if (vEnd) {
switch (vEnd.constructor) {
case Number:
sExpires =
vEnd === Infinity
? "; expires=Fri, 31 Dec 9999 23:59:59 GMT"
: "; max-age=" + vEnd;
break;
case String:
sExpires = "; expires=" + vEnd;
break;
case Date:
sExpires = "; expires=" + vEnd.toUTCString();
break;
}
}
document.cookie =
encodeURIComponent(sKey) +
"=" +
encodeURIComponent(sValue) +
sExpires +
(sDomain ? "; domain=" + sDomain : "") +
(sPath ? "; path=" + sPath : "") +
(bSecure ? "; secure" : "");
return true;
},
removeItem: function (sKey, sPath, sDomain) {
if (!sKey || !this.hasItem(sKey)) {
return false;
}
document.cookie =
encodeURIComponent(sKey) +
"=; expires=Thu, 01 Jan 1970 00:00:00 GMT" +
(sDomain ? "; domain=" + sDomain : "") +
(sPath ? "; path=" + sPath : "");
return true;
},
hasItem: function (sKey) {
return new RegExp(
"(?:^|;\\s*)" +
encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") +
"\\s*\\="
).test(document.cookie);
},
keys: /* optional method: you can safely remove it! */ function () {
var aKeys = document.cookie
.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g, "")
.split(/\s*(?:\=[^;]*)?;\s*/);
for (var nIdx = 0; nIdx < aKeys.length; nIdx++) {
aKeys[nIdx] = decodeURIComponent(aKeys[nIdx]);
}
return aKeys;
},
};
// 导出表格数据 // 导出表格数据
const ExportJsonExcel = require("js-export-excel"); // const ExportJsonExcel = require("js-export-excel");
import { message } from "ant-design-vue";
import Vue from "vue";
/** /**
* 导出excel * 导出excel
* @param {导出的表头名信息} tHeader * @param {导出的表头名信息} tHeader
...@@ -8,18 +10,25 @@ const ExportJsonExcel = require("js-export-excel"); ...@@ -8,18 +10,25 @@ const ExportJsonExcel = require("js-export-excel");
* @param {导出文件名称} fileName * @param {导出文件名称} fileName
*/ */
export const export2Excel = (tHeader, filterVal, list, fileName) => { export const export2Excel = (tHeader, filterVal, list, fileName) => {
let option = { message.warning({
fileName, content: "功能维护中",
datas: [ maxCount: 1,
{ duration: 2,
sheetData: list, });
sheetName: "sheet", Vue.prototype.$app.progressFile.show = false;
sheetFilter: filterVal, Vue.prototype.$app.progressFile.percent = 1;
sheetHeader: tHeader, // let option = {
// columnWidths: columnWidths, // 列宽 // fileName,
}, // datas: [
], // {
}; // sheetData: list,
let toExcel = new ExportJsonExcel(option); // sheetName: "sheet",
toExcel.saveExcel(); //保存 // sheetFilter: filterVal,
// sheetHeader: tHeader,
// // columnWidths: columnWidths, // 列宽
// },
// ],
// };
// let toExcel = new ExportJsonExcel(option);
// toExcel.saveExcel(); //保存
}; };
...@@ -199,6 +199,7 @@ export default { ...@@ -199,6 +199,7 @@ export default {
.header { .header {
height: @headerHeight; height: @headerHeight;
padding: 0px 60px; padding: 0px 60px;
font-size: 16px;
color: #fff; color: #fff;
position: absolute; position: absolute;
top: 0px; top: 0px;
......
...@@ -394,8 +394,7 @@ export default { ...@@ -394,8 +394,7 @@ export default {
// 加时间戳印记用于刷新gif // 加时间戳印记用于刷新gif
let mark = new Date().getTime(); let mark = new Date().getTime();
this.form.mark = mark; this.form.mark = mark;
this.imgCode = this.imgCode = this.api + "/zwfw/securitycode/createCode" + `?t=${mark}`;
this.api + "/zwfw/securitycode/createCode" + `?mark=${mark}`;
}, },
handleSubmit() { handleSubmit() {
this.$refs.form.validate(async (valid) => { this.$refs.form.validate(async (valid) => {
......
...@@ -332,6 +332,7 @@ export default { ...@@ -332,6 +332,7 @@ export default {
background: url("@/assets/images/siteArrange/bg_4.jpg") no-repeat; background: url("@/assets/images/siteArrange/bg_4.jpg") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
overflow: hidden; overflow: hidden;
font-size: 16px;
.del-box { .del-box {
width: 100%; width: 100%;
...@@ -457,12 +458,6 @@ export default { ...@@ -457,12 +458,6 @@ export default {
// } // }
} }
&:nth-child(1) { &:nth-child(1) {
.type-list {
border-style: solid;
border-right-width: 2px;
border-image: linear-gradient(180deg, #0000 0%, #fff 30%, #0000 90%) 1;
// border-image-slice: 2;
}
.item-logo { .item-logo {
background: linear-gradient(180deg, #c7e1f6 0%, #ffffff 85%); background: linear-gradient(180deg, #c7e1f6 0%, #ffffff 85%);
} }
...@@ -470,6 +465,8 @@ export default { ...@@ -470,6 +465,8 @@ export default {
&:nth-child(2) { &:nth-child(2) {
.type-list { .type-list {
border-style: solid; border-style: solid;
border-width: 0px;
border-left-width: 2px;
border-right-width: 2px; border-right-width: 2px;
border-image: linear-gradient(180deg, #0000 0%, #fff 30%, #0000 90%) 1; border-image: linear-gradient(180deg, #0000 0%, #fff 30%, #0000 90%) 1;
// border-image-slice: 2; // border-image-slice: 2;
......
...@@ -9,12 +9,13 @@ module.exports = defineConfig({ ...@@ -9,12 +9,13 @@ module.exports = defineConfig({
}, },
devServer: { devServer: {
proxy: { proxy: {
"/api": { "/zwfw": {
target: process.env.VUE_APP_API_BASE_URL, target: process.env.VUE_APP_API_BASE_URL,
changeOrigin: true, changeOrigin: true,
pathRewrite: { // pathRewrite: {
"^/api": "", // "^/api": "",
}, // },
cookieDomainRewrite: "localhost",
}, },
"/file": { "/file": {
target: process.env.VUE_APP_API_BASE_URL, target: process.env.VUE_APP_API_BASE_URL,
......
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