Commit e6a74240 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 377388a2 e1195843
...@@ -21,7 +21,9 @@ ...@@ -21,7 +21,9 @@
初始化区域数据 初始化区域数据
</a> </a>
<a-tooltip class="header-item" title="返回门户" placement="bottom"> <a-tooltip class="header-item" title="返回门户" placement="bottom">
<a :href="portalUrl + path"> <a-icon type="home" /> 返回门户 </a> <a :href="portalUrl + path ? path : ''">
<a-icon type="home" /> 返回门户
</a>
</a-tooltip> </a-tooltip>
</a-space> </a-space>
</div> </div>
......
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
<div class="data-update"> <div class="data-update">
<!-- 头部 --> <!-- 头部 -->
<div class="header flex aic jcb mb20 pdr6"> <div class="header flex aic jcb mb20 pdr6">
<a-space>
<a-button type="primary" @click="handleAdd">新增</a-button> <a-button type="primary" @click="handleAdd">新增</a-button>
<a-button type="danger" @click="handleDelAll">批量删除</a-button>
</a-space>
<div class="search-box"> <div class="search-box">
<a-input-group compact> <a-input-group compact>
<a-select style="min-width: 100px" v-model="fieldCode"> <a-select style="min-width: 100px" v-model="fieldCode">
...@@ -54,6 +57,10 @@ ...@@ -54,6 +57,10 @@
onShowSizeChange: showSizeChange, onShowSizeChange: showSizeChange,
}" }"
:data-source="tableData" :data-source="tableData"
:row-selection="{
selectedRowKeys: selectedRowKeys,
onChange: onSelectChange,
}"
:rowKey="(record) => record.id" :rowKey="(record) => record.id"
> >
<!-- 序号 --> <!-- 序号 -->
...@@ -147,6 +154,7 @@ export default { ...@@ -147,6 +154,7 @@ export default {
previewVisible: false, previewVisible: false,
previewData: {}, // 预览信息 previewData: {}, // 预览信息
appTemplate: [], // 字段模板列表 appTemplate: [], // 字段模板列表
selectedRowKeys: [],
}; };
}, },
computed: { computed: {
...@@ -248,6 +256,7 @@ export default { ...@@ -248,6 +256,7 @@ export default {
// 搜索 // 搜索
onSearch() { onSearch() {
this.current = 1; this.current = 1;
this.selectedRowKeys = [];
this.getDatasetList(); this.getDatasetList();
}, },
// 翻页 // 翻页
...@@ -267,6 +276,19 @@ export default { ...@@ -267,6 +276,19 @@ export default {
this.$refs.AddData.onEdit(row); this.$refs.AddData.onEdit(row);
this.AddVisible = true; this.AddVisible = true;
}, },
// 选择
onSelectChange(keys) {
this.selectedRowKeys = keys;
},
// 批量删除
handleDelAll() {
if (!this.selectedRowKeys.length) {
this.$message.warn("请先勾选数据");
return;
}
let ids = this.selectedRowKeys.join(",");
this.handleDel(ids);
},
// 删除 // 删除
handleDel(id) { handleDel(id) {
let _this = this; let _this = this;
...@@ -284,6 +306,7 @@ export default { ...@@ -284,6 +306,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.selectedRowKeys = [];
_this.getDatasetList(); _this.getDatasetList();
} }
}, },
......
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
<div class="field-config"> <div class="field-config">
<!-- 头部 --> <!-- 头部 -->
<div class="header flex aic jcb mb20 pdr6"> <div class="header flex aic jcb mb20 pdr6">
<a-space>
<a-button type="primary" @click="handleAdd">新增字段</a-button> <a-button type="primary" @click="handleAdd">新增字段</a-button>
<a-button type="danger" @click="handleDelAll">批量删除</a-button>
</a-space>
<a-input-search <a-input-search
style="width: 300px" style="width: 300px"
placeholder="请输入字段名称搜索" placeholder="请输入字段名称搜索"
...@@ -31,6 +34,10 @@ ...@@ -31,6 +34,10 @@
onShowSizeChange: showSizeChange, onShowSizeChange: showSizeChange,
}" }"
:data-source="tableData" :data-source="tableData"
:row-selection="{
selectedRowKeys: selectedRowKeys,
onChange: onSelectChange,
}"
:rowKey="(record) => record.id" :rowKey="(record) => record.id"
> >
<!-- 序号 --> <!-- 序号 -->
...@@ -131,6 +138,7 @@ export default { ...@@ -131,6 +138,7 @@ export default {
tableData: [], tableData: [],
fieldVisible: false, fieldVisible: false,
title: "", title: "",
selectedRowKeys: [],
}; };
}, },
created() { created() {
...@@ -168,6 +176,7 @@ export default { ...@@ -168,6 +176,7 @@ export default {
// 搜索 // 搜索
onSearch() { onSearch() {
this.current = 1; this.current = 1;
this.selectedRowKeys = [];
this.getTempleteList(); this.getTempleteList();
}, },
// 翻页 // 翻页
...@@ -187,6 +196,19 @@ export default { ...@@ -187,6 +196,19 @@ export default {
this.$refs.AddField.onEdit(row); this.$refs.AddField.onEdit(row);
this.fieldVisible = true; this.fieldVisible = true;
}, },
// 选择
onSelectChange(keys) {
this.selectedRowKeys = keys;
},
// 批量删除
handleDelAll() {
if (!this.selectedRowKeys.length) {
this.$message.warn("请先勾选数据");
return;
}
let ids = this.selectedRowKeys.join(",");
this.handleDel(ids);
},
// 删除 // 删除
handleDel(id) { handleDel(id) {
let _this = this; let _this = this;
...@@ -204,6 +226,7 @@ export default { ...@@ -204,6 +226,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.selectedRowKeys = [];
_this.getTempleteList(); _this.getTempleteList();
} }
}, },
......
...@@ -14,10 +14,11 @@ ...@@ -14,10 +14,11 @@
:label-col="labelCol" :label-col="labelCol"
:wrapper-col="wrapperCol" :wrapper-col="wrapperCol"
> >
<template v-for="(v, i) in form.appInfoFieldList">
<a-form-model-item <a-form-model-item
v-for="(v, i) in form.appInfoFieldList"
:key="v.fieldCode"
:label="v.fieldName" :label="v.fieldName"
:key="v.fieldCode"
v-if="changeShow(v)"
:class="{ :class="{
content: v.fieldType == 'text', content: v.fieldType == 'text',
'upload-item': v.fieldType == 'upload', 'upload-item': v.fieldType == 'upload',
...@@ -122,7 +123,10 @@ ...@@ -122,7 +123,10 @@
/> />
<!-- 富文本 --> <!-- 富文本 -->
<div v-else-if="v.fieldType == 'text'" class="content-box"> <div v-else-if="v.fieldType == 'text'" class="content-box">
<YQuillEditor v-model="v.fieldValue" height="auto"></YQuillEditor> <YQuillEditor
v-model="v.fieldValue"
height="auto"
></YQuillEditor>
</div> </div>
<!-- 文件上传 --> <!-- 文件上传 -->
<a-upload <a-upload
...@@ -141,11 +145,34 @@ ...@@ -141,11 +145,34 @@
</a-button> </a-button>
</a-upload> </a-upload>
<!-- 表格 --> <!-- 表格 -->
<div v-else-if="v.fieldType == 'table'">
<div class="search-box">
<a-space>
<a-select style="width: 120px" v-model="searchName">
<a-select-option value=""> 全部 </a-select-option>
<a-select-option
v-for="(v, i) in fieldTypeValue"
:key="i"
:value="v.dataIndex"
>
{{ v.title }}
</a-select-option>
</a-select>
<a-input-search
style="width: 300px"
placeholder="请输入关键字搜索"
enter-button="搜索"
v-model="searchVal"
allowClear
@search="onSearch"
/>
</a-space>
</div>
<a-table <a-table
bordered bordered
v-else-if="v.fieldType == 'table'"
size="small" size="small"
:scroll="{ y: 550 }" :scroll="{ y: 550 }"
:loading="tableLoading"
:pagination="{ :pagination="{
showTotal: (total) => `共 ${total} 条`, showTotal: (total) => `共 ${total} 条`,
current: current, current: current,
...@@ -177,7 +204,9 @@ ...@@ -177,7 +204,9 @@
</span> </span>
</template> </template>
</a-table> </a-table>
</div>
</a-form-model-item> </a-form-model-item>
</template>
</a-form-model> </a-form-model>
</div> </div>
<!-- 底部按钮 --> <!-- 底部按钮 -->
...@@ -227,6 +256,7 @@ export default { ...@@ -227,6 +256,7 @@ export default {
data() { data() {
return { return {
loading: false, loading: false,
tableLoading: false,
siteId: local.getLocal("siteId"), siteId: local.getLocal("siteId"),
api: process.env.VUE_APP_API_BASE_URL, api: process.env.VUE_APP_API_BASE_URL,
pageSizeOptions: ["10", "30", "50", "100", "200"], pageSizeOptions: ["10", "30", "50", "100", "200"],
...@@ -251,6 +281,9 @@ export default { ...@@ -251,6 +281,9 @@ export default {
columns: [], columns: [],
serviceApi: "", serviceApi: "",
serviceApiParams: {}, serviceApiParams: {},
fieldTypeValue: [],
searchName: "",
searchVal: "",
}; };
}, },
computed: { computed: {
...@@ -267,6 +300,8 @@ export default { ...@@ -267,6 +300,8 @@ export default {
// 关闭 // 关闭
onClose() { onClose() {
this.$refs.form.resetFields(); this.$refs.form.resetFields();
this.selectedRowKeys = [];
this.selectedRow = [];
this.Visible = false; this.Visible = false;
}, },
// 提交 // 提交
...@@ -286,6 +321,9 @@ export default { ...@@ -286,6 +321,9 @@ export default {
item.fieldValue = v[this.serviceApiParams[key]]; item.fieldValue = v[this.serviceApiParams[key]];
} }
}); });
if (item.fieldType == "table") {
item.fieldValue = "";
}
return item; return item;
}) })
), ),
...@@ -315,7 +353,7 @@ export default { ...@@ -315,7 +353,7 @@ export default {
if (v.id) { if (v.id) {
delete v.id; delete v.id;
} }
v.fieldValue = ""; v.fieldValue = undefined;
if (v.fieldType == "upload") { if (v.fieldType == "upload") {
v.fileList = []; v.fileList = [];
} }
...@@ -330,14 +368,14 @@ export default { ...@@ -330,14 +368,14 @@ export default {
customRender: "num", customRender: "num",
}, },
}; };
let fieldTypeValue = JSON.parse(v.fieldTypeValue); this.fieldTypeValue = JSON.parse(v.fieldTypeValue);
fieldTypeValue = Object.keys(fieldTypeValue).map((key) => { this.fieldTypeValue = Object.keys(this.fieldTypeValue).map((key) => {
return { return {
title: fieldTypeValue[key], title: this.fieldTypeValue[key],
dataIndex: key, dataIndex: key,
}; };
}); });
this.columns = [index, ...fieldTypeValue]; this.columns = [index, ...this.fieldTypeValue];
this.serviceApi = v.serviceApi; this.serviceApi = v.serviceApi;
this.serviceApiParams = JSON.parse(v.serviceApiParams); this.serviceApiParams = JSON.parse(v.serviceApiParams);
this.getData(); this.getData();
...@@ -447,12 +485,19 @@ export default { ...@@ -447,12 +485,19 @@ export default {
}, },
// 获取数据函数 // 获取数据函数
async getData(data) { async getData(data) {
let obj = {};
if (this.searchName) {
obj[this.searchName] = `%${this.searchVal}%`;
}
this.tableLoading = true;
let res = await request(this.api + this.serviceApi, "post", { let res = await request(this.api + this.serviceApi, "post", {
size: this.size, size: this.size,
page: this.current, page: this.current,
siteId: this.siteId, siteId: this.siteId,
...obj,
...data, ...data,
}); });
this.tableLoading = false;
if (res.data.code == 1) { if (res.data.code == 1) {
let { data, total } = res.data.data; let { data, total } = res.data.data;
this.tableList = data; this.tableList = data;
...@@ -465,6 +510,21 @@ export default { ...@@ -465,6 +510,21 @@ export default {
this.size = pageSize; this.size = pageSize;
this.getData(); this.getData();
}, },
// 搜索表格
onSearch() {
this.current = 1;
this.getData();
},
changeShow(row) {
let bol = Object.keys(this.serviceApiParams).some((key) => {
return row.fieldCode == key;
});
if (this.selectedRow.length && bol) {
return false;
} else {
return true;
}
},
}, },
}; };
</script> </script>
...@@ -496,6 +556,10 @@ export default { ...@@ -496,6 +556,10 @@ export default {
.upload-item { .upload-item {
display: block !important; display: block !important;
} }
.search-box {
margin-bottom: 10px;
text-align: right;
}
// .ant-input, // .ant-input,
// .ant-select, // .ant-select,
// .ant-calendar-picker { // .ant-calendar-picker {
......
<template> <template>
<div> <div>
<a-modal :width="750" v-model="Visible" title="新增数据字段"> <a-modal
:width="750"
v-model="Visible"
title="新增数据字段"
@cancel="handleCancel"
>
<a-form-model <a-form-model
:model="form" :model="form"
ref="form" ref="form"
...@@ -153,7 +158,7 @@ ...@@ -153,7 +158,7 @@
</template> </template>
<script> <script>
import { saveTemplete } from "@/services/market"; import { saveTemplete, getTempleteList } from "@/services/market";
import { changeCodeNumber } from "@/utils/validate"; import { changeCodeNumber } from "@/utils/validate";
const fieldTypeItem = [ const fieldTypeItem = [
{ {
...@@ -265,6 +270,7 @@ export default { ...@@ -265,6 +270,7 @@ export default {
serviceApiParams: "", // 动态数据参数配置 serviceApiParams: "", // 动态数据参数配置
remark: "", // remark: "", //
}, },
templeteList: [], // 字段列表
rules: { rules: {
fieldCode: [ fieldCode: [
{ required: true, validator: changeCodeNumber, trigger: "blur" }, { required: true, validator: changeCodeNumber, trigger: "blur" },
...@@ -306,9 +312,26 @@ export default { ...@@ -306,9 +312,26 @@ export default {
}, },
}, },
methods: { methods: {
// 获取数据模板
async getTempleteList() {
let res = await getTempleteList({
page: 1,
size: -1,
appId: this.$route.query.id,
});
if (res.data.code === 1) {
let { data } = res.data.data;
this.templeteList = data;
}
},
handleOk() { handleOk() {
this.$refs.form.validate(async (valid) => { this.$refs.form.validate(async (valid) => {
if (valid) { if (valid) {
let bol = this.templeteList.some((v) => v.fieldType == "table");
if (bol && !this.form.id) {
this.$message.warn("只能存在一个表格");
return;
}
let fieldTypeObj = {}; let fieldTypeObj = {};
let apiParamsObj = {}; let apiParamsObj = {};
this.fieldType.forEach((v) => { this.fieldType.forEach((v) => {
...@@ -356,6 +379,7 @@ export default { ...@@ -356,6 +379,7 @@ export default {
Object.assign(this.form, this.$options.data().form); Object.assign(this.form, this.$options.data().form);
this.form.appId = this.$route.query.id; this.form.appId = this.$route.query.id;
this.form.id && this.$delete(this.form, "id"); this.form.id && this.$delete(this.form, "id");
this.getTempleteList();
}, },
// 编辑 // 编辑
onEdit(data) { onEdit(data) {
...@@ -392,6 +416,7 @@ export default { ...@@ -392,6 +416,7 @@ export default {
]; ];
} }
this.form = { ...data }; this.form = { ...data };
this.getTempleteList();
}, },
// 添加数据配置行数 // 添加数据配置行数
insertion(index, type) { insertion(index, type) {
......
...@@ -62,7 +62,7 @@ Vue.prototype.$bus = new Vue(); ...@@ -62,7 +62,7 @@ Vue.prototype.$bus = new Vue();
import "swiper/css/swiper.min.css"; import "swiper/css/swiper.min.css";
Vue.config.productionTip = false; Vue.config.productionTip = false;
// 图片预 // 图片预
import Viewer from "v-viewer"; import Viewer from "v-viewer";
import "viewerjs/dist/viewer.css"; import "viewerjs/dist/viewer.css";
Vue.use(Viewer); Vue.use(Viewer);
......
...@@ -154,7 +154,7 @@ export default { ...@@ -154,7 +154,7 @@ export default {
overflow: hidden; overflow: hidden;
} }
.actuary { .actuary {
background: url("~@/assets/images/dataActuary/bg.png") center no-repeat; background: url("~@/assets/images/dataActuary/bg2.png") center no-repeat;
background-size: cover; background-size: cover;
.act_cont { .act_cont {
......
...@@ -217,7 +217,7 @@ export default { ...@@ -217,7 +217,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.data-manage { .data-manage {
padding: 72px 60px 0px 60px; padding: 72px 60px 0px 60px;
background: url("@/assets/images/dataManage/bg.png"); background: url("@/assets/images/dataManage/bg_2.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
.main { .main {
height: 714px; height: 714px;
......
...@@ -5,26 +5,74 @@ ...@@ -5,26 +5,74 @@
:destroyOnClose="true" :destroyOnClose="true"
:visible="visibleEditPwd" :visible="visibleEditPwd"
@cancel="handleClose" @cancel="handleClose"
width="480px" width="600px"
> >
<a-form-model <a-form-model
:model="form" :model="form"
:rules="rules" :rules="rules"
ref="formData" ref="formData"
:label-col="{ span: 5 }" :label-col="{ span: 4 }"
:wrapper-col="{ span: 19 }" :wrapper-col="{ span: 20 }"
> >
<a-form-model-item label="原密码" prop="oldPwd"> <a-form-model-item label="原密码" prop="oldPwd">
<a-input-password v-model="form.oldPwd" placeholder="请输入原密码" /> <a-input
:type="oldPwd"
v-model="form.oldPwd"
placeholder="请输入原密码"
>
<template slot="suffix">
<i
v-if="oldPwd == 'password'"
class="iconfont icon-hidden cursor-pointer"
@click="oldPwd = 'text'"
></i>
<i
v-else
class="iconfont icon-show cursor-pointer"
@click="oldPwd = 'password'"
></i>
</template>
</a-input>
</a-form-model-item> </a-form-model-item>
<a-form-model-item label="新密码" prop="newPwd"> <a-form-model-item label="新密码" prop="newPwd">
<a-input-password v-model="form.newPwd" placeholder="请输入新密码" /> <a-input
:type="newPwd"
v-model="form.newPwd"
placeholder="请输入新密码"
>
<template slot="suffix">
<i
v-if="newPwd == 'password'"
class="iconfont icon-hidden cursor-pointer"
@click="newPwd = 'text'"
></i>
<i
v-else
class="iconfont icon-show cursor-pointer"
@click="newPwd = 'password'"
></i>
</template>
</a-input>
</a-form-model-item> </a-form-model-item>
<a-form-model-item label="确认新密码" prop="newPwdAgain"> <a-form-model-item label="确认新密码" prop="newPwdAgain">
<a-input-password <a-input
:type="newPwdAgain"
v-model="form.newPwdAgain" v-model="form.newPwdAgain"
placeholder="请再次输入新密码" placeholder="请再次输入新密码"
/> >
<template slot="suffix">
<i
v-if="newPwdAgain == 'password'"
class="iconfont icon-hidden cursor-pointer"
@click="newPwdAgain = 'text'"
></i>
<i
v-else
class="iconfont icon-show cursor-pointer"
@click="newPwdAgain = 'password'"
></i>
</template>
</a-input>
</a-form-model-item> </a-form-model-item>
</a-form-model> </a-form-model>
...@@ -41,7 +89,7 @@ ...@@ -41,7 +89,7 @@
import { changePassWord } from "@/utils/js/validate"; import { changePassWord } from "@/utils/js/validate";
import { changePassword, LogoutInterface } from "@/api/user"; import { changePassword, LogoutInterface } from "@/api/user";
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
// import { encrypt } from "@/utils"; import { encrypt } from "@/utils";
import storage from "@/utils/js/Storage"; import storage from "@/utils/js/Storage";
export default { export default {
props: { props: {
...@@ -61,6 +109,9 @@ export default { ...@@ -61,6 +109,9 @@ export default {
} }
}; };
return { return {
oldPwd: "password",
newPwd: "password",
newPwdAgain: "password",
form: { form: {
loginName: "", loginName: "",
oldPwd: "", oldPwd: "",
...@@ -99,16 +150,16 @@ export default { ...@@ -99,16 +150,16 @@ export default {
let _this = this; let _this = this;
this.$refs.formData.validate(async (valid) => { this.$refs.formData.validate(async (valid) => {
if (valid) { if (valid) {
// let obj = {
// loginName: encrypt(this.form.loginName),
// oldPwd: encrypt(this.form.oldPwd),
// newPwd: encrypt(this.form.newPwd),
// };
let obj = { let obj = {
loginName: this.form.loginName, loginName: encrypt(this.form.loginName),
oldPwd: this.form.oldPwd, oldPwd: encrypt(this.form.oldPwd),
newPwd: this.form.newPwd, newPwd: encrypt(this.form.newPwd),
}; };
// let obj = {
// loginName: this.form.loginName,
// oldPwd: this.form.oldPwd,
// newPwd: this.form.newPwd,
// };
let res = await changePassword(obj); let res = await changePassword(obj);
let { code } = res; let { code } = res;
if (code === 1) { if (code === 1) {
...@@ -128,6 +179,9 @@ export default { ...@@ -128,6 +179,9 @@ export default {
}); });
}, },
handleClose() { handleClose() {
this.oldPwd = "password";
this.newPwd = "password";
this.newPwdAgain = "password";
this.$refs.formData.resetFields(); this.$refs.formData.resetFields();
this.Visible = false; this.Visible = false;
}, },
......
...@@ -168,6 +168,8 @@ export default { ...@@ -168,6 +168,8 @@ export default {
setTimeout(() => { setTimeout(() => {
this.$router.push("/home"); this.$router.push("/home");
}, 20); }, 20);
} else {
this.createCode();
} }
this.loading = false; this.loading = false;
} }
...@@ -307,6 +309,7 @@ export default { ...@@ -307,6 +309,7 @@ export default {
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
cursor: pointer;
} }
} }
.login-btn { .login-btn {
......
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.station { .station {
background: url("@/assets/images/siteArrange/bg.png") no-repeat; background: url("@/assets/images/siteArrange/bg_2.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
overflow: hidden; overflow: hidden;
.del-box { .del-box {
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<script> <script>
import { changeAccount, changePassWord } from "@/utils/js/validate"; import { changeAccount, changePassWord } from "@/utils/js/validate";
import { editPassword } from "@/api/user"; import { editPassword } from "@/api/user";
// import { encrypt } from "@/utils"; import { encrypt } from "@/utils";
export default { export default {
props: { props: {
visibleEditPwd: { visibleEditPwd: {
...@@ -101,14 +101,14 @@ export default { ...@@ -101,14 +101,14 @@ export default {
handleOk() { handleOk() {
this.$refs.formData.validate(async (valid) => { this.$refs.formData.validate(async (valid) => {
if (valid) { if (valid) {
// let obj = {
// loginName: encrypt(this.form.loginName),
// newPwd: encrypt(this.form.newPwd),
// };
let obj = { let obj = {
loginName: this.form.loginName, loginName: encrypt(this.form.loginName),
newPwd: this.form.newPwd, newPwd: encrypt(this.form.newPwd),
}; };
// let obj = {
// loginName: this.form.loginName,
// newPwd: this.form.newPwd,
// };
let res = await editPassword(obj); let res = await editPassword(obj);
if (res.code === 1) { if (res.code === 1) {
this.$message.success("密码修改成功"); this.$message.success("密码修改成功");
......
...@@ -69,7 +69,7 @@ import { getListByParentId } from "@/api/area.js"; ...@@ -69,7 +69,7 @@ import { getListByParentId } from "@/api/area.js";
import { userSave } from "@/api/userManagement.js"; import { userSave } from "@/api/userManagement.js";
import { TreeSelect } from "ant-design-vue"; import { TreeSelect } from "ant-design-vue";
const SHOW_PARENT = TreeSelect.SHOW_PARENT; //SHOW_ALL, SHOW_PARENT, SHOW_CHILD const SHOW_PARENT = TreeSelect.SHOW_PARENT; //SHOW_ALL, SHOW_PARENT, SHOW_CHILD
// import { encrypt } from "@/utils"; import { encrypt } from "@/utils";
export default { export default {
data() { data() {
return { return {
...@@ -181,7 +181,7 @@ export default { ...@@ -181,7 +181,7 @@ export default {
...this.form, ...this.form,
areaNames: JSON.stringify(this.form.areaNames), areaNames: JSON.stringify(this.form.areaNames),
areaCodes: this.form.areaNames.map((v) => v.areaCode).join(","), areaCodes: this.form.areaNames.map((v) => v.areaCode).join(","),
// loginName: encrypt(this.form.loginName), loginName: encrypt(this.form.loginName),
}); });
let { code, msg } = res; let { code, msg } = res;
if (code === 1) { if (code === 1) {
......
...@@ -93,7 +93,7 @@ import { changeAccount, changePassWord } from "@/utils/js/validate"; ...@@ -93,7 +93,7 @@ import { changeAccount, changePassWord } from "@/utils/js/validate";
import { getListByParentId } from "@/api/area.js"; import { getListByParentId } from "@/api/area.js";
import { userSave } from "@/api/userManagement.js"; import { userSave } from "@/api/userManagement.js";
import { TreeSelect } from "ant-design-vue"; import { TreeSelect } from "ant-design-vue";
// import { encrypt } from "@/utils"; import { encrypt } from "@/utils";
const SHOW_PARENT = TreeSelect.SHOW_PARENT; //SHOW_ALL, SHOW_PARENT, SHOW_CHILD const SHOW_PARENT = TreeSelect.SHOW_PARENT; //SHOW_ALL, SHOW_PARENT, SHOW_CHILD
export default { export default {
data() { data() {
...@@ -192,8 +192,8 @@ export default { ...@@ -192,8 +192,8 @@ export default {
...this.form, ...this.form,
areaCodes: this.form.areaCodes.join(","), areaCodes: this.form.areaCodes.join(","),
areaNames: JSON.stringify(this.changeSelect), areaNames: JSON.stringify(this.changeSelect),
// loginName: encrypt(this.form.loginName), loginName: encrypt(this.form.loginName),
// loginPwd: encrypt(this.form.loginPwd), loginPwd: encrypt(this.form.loginPwd),
}); });
let { code, msg } = res; let { code, msg } = res;
if (code === 1) { if (code === 1) {
......
...@@ -267,7 +267,7 @@ export default { ...@@ -267,7 +267,7 @@ export default {
.platform { .platform {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: url("~@/assets/images/siteArrange/bg-pintai.jpg") no-repeat center / background: url("@/assets/images/platformSet/bg-pintai.jpg") no-repeat center /
100% 100%; 100% 100%;
.container-bg { .container-bg {
padding-top: @headerH; padding-top: @headerH;
......
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
.playground { .playground {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: url("~@/assets/images/siteArrange/bg-pintai.jpg") center no-repeat; background: url("@/assets/images/platformSet/bg-pintai.jpg") no-repeat center;
background-size: cover; background-size: cover;
padding-top: @headerH; padding-top: @headerH;
......
...@@ -3265,7 +3265,7 @@ export default { ...@@ -3265,7 +3265,7 @@ export default {
.modal { .modal {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: url("~@/assets/images/siteArrange/bg-pintai.jpg") center no-repeat; background: url("@/assets/images/platformSet/bg-pintai.jpg") no-repeat center;
background-size: cover; background-size: cover;
padding-top: @headerH; padding-top: @headerH;
......
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