Browse Source

修改字典字段

dev
liuzewei 3 years ago
parent
commit
83dd43bbec
8 changed files with 27 additions and 69 deletions
  1. 1
      src/components/ThemePicker/index.vue
  2. 11
      src/views/dmUser/index.vue
  3. 35
      src/views/sce/sceInfo/index.vue
  4. 17
      src/views/sce/tips/index.vue
  5. 1
      src/views/system/dept/index.vue
  6. 1
      src/views/system/menu/index.vue
  7. 16
      src/views/user/dmUser/index.vue
  8. 14
      src/views/user/wjUser/index.vue

1
src/components/ThemePicker/index.vue

@ -35,7 +35,6 @@ export default {
if (typeof val !== 'string') return if (typeof val !== 'string') return
const themeCluster = this.getThemeCluster(val.replace('#', '')) const themeCluster = this.getThemeCluster(val.replace('#', ''))
const originalCluster = this.getThemeCluster(oldVal.replace('#', '')) const originalCluster = this.getThemeCluster(oldVal.replace('#', ''))
console.log(themeCluster, originalCluster)
const $message = this.$message({ const $message = this.$message({
message: ' Compiling the theme', message: ' Compiling the theme',

11
src/views/dmUser/index.vue

@ -211,9 +211,7 @@ export default {
}, },
created() { created() {
this.getDicts("jbs_user_level").then(res => { this.getDicts("jbs_user_level").then(res => {
console.log(res, 412312);
this.level = res.data;
console.log(this.level, "字典");
this.level = res.data;
}); });
}, },
mounted() { mounted() {
@ -231,7 +229,7 @@ export default {
this.total = res.total; this.total = res.total;
} }
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
// //
@ -246,8 +244,6 @@ export default {
this.queryParams.query.params.beginTime = undefined; this.queryParams.query.params.beginTime = undefined;
this.queryParams.query.params.endTime = undefined; this.queryParams.query.params.endTime = undefined;
} }
console.log(this.time);
console.log(this.queryParams);
this.queryUserInfo() this.queryUserInfo()
}, },
// //
@ -311,7 +307,6 @@ export default {
} }
} }
if(this.type == "code"){ if(this.type == "code"){
console.log(this.form.code,312321)
if(this.form.code == undefined || this.form.code == ''){ if(this.form.code == undefined || this.form.code == ''){
this.$message({ this.$message({
message: '请输入用户编号', message: '请输入用户编号',
@ -337,7 +332,7 @@ export default {
this.queryUserInfo(); this.queryUserInfo();
} }
} catch (err) { } catch (err) {
console.log(err);
} }
} }
} }

35
src/views/sce/sceInfo/index.vue

@ -930,7 +930,6 @@ export default {
} }
}, },
changCode() { changCode() {
console.log(this.ruleForm.processesList, "输入的值");
if (this.ruleForm.processesList.length > 1) { if (this.ruleForm.processesList.length > 1) {
for (var i = 0; i < this.ruleForm.processesList.length; i++) { for (var i = 0; i < this.ruleForm.processesList.length; i++) {
let s = i + 1; let s = i + 1;
@ -938,7 +937,6 @@ export default {
s < this.ruleForm.processesList.length || s < this.ruleForm.processesList.length ||
s == this.ruleForm.processesList.length s == this.ruleForm.processesList.length
) { ) {
console.log(i, s);
if ( if (
this.ruleForm.processesList[i].code == this.ruleForm.processesList[i].code ==
this.ruleForm.processesList[s].code this.ruleForm.processesList[s].code
@ -960,12 +958,11 @@ export default {
this.loading = true; this.loading = true;
try { try {
let res = await queryJbInfo(this.queryParams); let res = await queryJbInfo(this.queryParams);
console.log(res);
this.tableData = res.data.rows; this.tableData = res.data.rows;
this.total = res.data.total; this.total = res.data.total;
this.loading = false; this.loading = false;
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
// //
@ -996,10 +993,9 @@ export default {
async queryFindList() { async queryFindList() {
try { try {
let res = await queryFindList({}); let res = await queryFindList({});
// console.log(res.data, "");
this.lcData = res.data; this.lcData = res.data;
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
// //
@ -1026,7 +1022,6 @@ export default {
this.radioVideo = 1; this.radioVideo = 1;
this.radioImg = 1; this.radioImg = 1;
let res = await queryJbDetail(id); let res = await queryJbDetail(id);
console.log(res, "详情");
this.ruleForm = res.data; this.ruleForm = res.data;
if (this.ruleForm.imgUrl != null) { if (this.ruleForm.imgUrl != null) {
this.dataImg = this.ruleForm.imgUrl.split(","); this.dataImg = this.ruleForm.imgUrl.split(",");
@ -1051,10 +1046,8 @@ export default {
img.push(res.data.resourcesList[i]); img.push(res.data.resourcesList[i]);
} }
} }
console.log(this.radioImg);
if (this.radioImg == 1) { if (this.radioImg == 1) {
this.imgData = img; this.imgData = img;
console.log(this.imgData);
} else if (this.radioImg == 2) { } else if (this.radioImg == 2) {
this.ruleForm.radioImg = img.map(n => { this.ruleForm.radioImg = img.map(n => {
return { return {
@ -1171,9 +1164,8 @@ export default {
// this.radioVideo = 2; // this.radioVideo = 2;
// } // }
// }); // });
console.log(this.ruleForm, "处理后详情");
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
// //
@ -1277,7 +1269,6 @@ export default {
processId: processId processId: processId
}; };
}); });
console.log(this.ruleForm, "参数");
try { try {
this.$refs["ruleForm"].validate(async valid => { this.$refs["ruleForm"].validate(async valid => {
if (valid) { if (valid) {
@ -1294,7 +1285,6 @@ export default {
}); });
} }
} else if (this.type == "edit") { } else if (this.type == "edit") {
console.log(this.ruleForm, "参数");
var res = await updateJbInfo(this.ruleForm); var res = await updateJbInfo(this.ruleForm);
if (res.code == 200) { if (res.code == 200) {
this.$message.success("编辑成功"); this.$message.success("编辑成功");
@ -1310,7 +1300,7 @@ export default {
} }
}); });
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
subEsc() { subEsc() {
@ -1384,14 +1374,14 @@ export default {
}); });
} }
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
handleAvatar(res, file, fileList) { handleAvatar(res, file, fileList) {
console.log(res, file, "整个");
// console.log(res, file, "");
}, },
handleAvatarSuccess(res, file) { handleAvatarSuccess(res, file) {
console.log(res, file, "成功了吗");
// console.log(res, file, "");
}, },
// //
async uploadImg(file, fileList) { async uploadImg(file, fileList) {
@ -1403,9 +1393,8 @@ export default {
let res = await uploadFile(formData); let res = await uploadFile(formData);
// this.ruleForm.cover = res.data.wjUrl; // this.ruleForm.cover = res.data.wjUrl;
this.$set(this.ruleForm, "cover", res.data.wjUrl); this.$set(this.ruleForm, "cover", res.data.wjUrl);
console.log(this.ruleForm.cover);
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
changeImgs({file}) { changeImgs({file}) {
@ -1417,7 +1406,6 @@ export default {
}); });
}, },
beforeAvatarUpload(file) { beforeAvatarUpload(file) {
console.log(file, 41231);
const isJPG = file.type; const isJPG = file.type;
const isLt2M = file.size / 1024 / 1024 < 2; const isLt2M = file.size / 1024 / 1024 < 2;
if (!isLt2M) { if (!isLt2M) {
@ -1440,7 +1428,6 @@ export default {
}, },
// //
dialogimg(e) { dialogimg(e) {
console.log(e);
this.dialogVisible = true; this.dialogVisible = true;
this.dialogImageUrl = this.ruleForm.imgUrls[e]; this.dialogImageUrl = this.ruleForm.imgUrls[e];
}, },
@ -1455,7 +1442,6 @@ export default {
this.ruleForm.radioVideo.splice(index, 1); this.ruleForm.radioVideo.splice(index, 1);
}, },
handleRemove(file) { handleRemove(file) {
console.log(file);
// delFile({ wjUrl: item.url }).then(res => { // delFile({ wjUrl: item.url }).then(res => {
// if (res.code == 200) { // if (res.code == 200) {
// this.$message.success(""); // this.$message.success("");
@ -1511,7 +1497,6 @@ export default {
} }
}, },
handleAddMusic() { handleAddMusic() {
console.log(this.$refs.music.data, 1231);
this.ruleForm.radioMusic.push({ this.ruleForm.radioMusic.push({
title: "", title: "",
url: "", url: "",
@ -1591,7 +1576,6 @@ export default {
}, },
// //
deldialogimg(item, index, type) { deldialogimg(item, index, type) {
console.log(index, type);
if (type == "img") { if (type == "img") {
this.imgData.splice(index, 1); this.imgData.splice(index, 1);
} }
@ -1601,7 +1585,6 @@ export default {
if (type == "video") { if (type == "video") {
this.videoData.splice(index, 1); this.videoData.splice(index, 1);
} }
console.log(item);
delFile({ wjUrl: item.url }).then(res => { delFile({ wjUrl: item.url }).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.$message.success("删除成功"); this.$message.success("删除成功");
@ -1610,7 +1593,6 @@ export default {
}, },
// //
setLc(item, i, type) { setLc(item, i, type) {
console.log(item, i, this.imgData);
if (this.ruleForm.processesList.length == 0) { if (this.ruleForm.processesList.length == 0) {
this.$message({ this.$message({
message: "请新建流程", message: "请新建流程",
@ -1646,7 +1628,6 @@ export default {
this.imgData[this.imgIndex].processId = this.processId; this.imgData[this.imgIndex].processId = this.processId;
this.imgData[this.imgIndex].mediaType = 1; this.imgData[this.imgIndex].mediaType = 1;
this.imgData[this.imgIndex].sourceType = this.radioImg; this.imgData[this.imgIndex].sourceType = this.radioImg;
console.log(this.imgData, "处理后img数据");
} }
if (this.typeUrl == "music") { if (this.typeUrl == "music") {
this.musicType = false; this.musicType = false;

17
src/views/sce/tips/index.vue

@ -234,20 +234,18 @@ export default {
async queryJbInfos() { async queryJbInfos() {
try { try {
let res = await queryJbInfos({}); let res = await queryJbInfos({});
// console.log(res.data, "");
this.jbData = res.data; this.jbData = res.data;
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
// //
async queryFindList() { async queryFindList() {
try { try {
let res = await queryFindList(this.data); let res = await queryFindList(this.data);
// console.log(res.data, "");
this.lcData = res.data; this.lcData = res.data;
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
queryLc(val) { queryLc(val) {
@ -259,7 +257,6 @@ export default {
this.$router.push({ name: "Tips/index" }); this.$router.push({ name: "Tips/index" });
}, },
chageLc(val) { chageLc(val) {
console.log(val);
this.data = { this.data = {
scenarioId: val scenarioId: val
}; };
@ -268,12 +265,10 @@ export default {
this.queryFindList(); this.queryFindList();
}, },
foucsLc() { foucsLc() {
console.log(11110);
}, },
//Tips //Tips
async queryTipsList() { async queryTipsList() {
this.loading = true; this.loading = true;
console.log(this.$route.query.type, 41231231);
if (this.$route.query.type == "sceinfo") { if (this.$route.query.type == "sceinfo") {
this.queryParams.query.scenarioId = this.$route.query.scenarioId; this.queryParams.query.scenarioId = this.$route.query.scenarioId;
} }
@ -283,7 +278,7 @@ export default {
this.total = res.data.total; this.total = res.data.total;
this.loading = false; this.loading = false;
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
// //
@ -350,17 +345,15 @@ export default {
} }
}); });
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
// //
async queryTipsDetail(id) { async queryTipsDetail(id) {
try { try {
let res = await queryTipsDetail(id); let res = await queryTipsDetail(id);
// console.log(res, "");
this.form = res.data; this.form = res.data;
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
// //
@ -410,7 +403,7 @@ export default {
}); });
} }
} catch (err) { } catch (err) {
console.log(err);
} }
} }
} }

1
src/views/system/dept/index.vue

@ -214,7 +214,6 @@ export default {
}, },
/** 转换部门数据结构 */ /** 转换部门数据结构 */
normalizer(node) { normalizer(node) {
console.log(node,'normalizer');
if (node.children && !node.children.length) { if (node.children && !node.children.length) {
delete node.children; delete node.children;
} }

1
src/views/system/menu/index.vue

@ -273,7 +273,6 @@ export default {
this.loading = true; this.loading = true;
listMenu(this.queryParams).then(response => { listMenu(this.queryParams).then(response => {
this.menuList = this.handleTree(response.data, "menuId"); this.menuList = this.handleTree(response.data, "menuId");
console.log(this.menuList)
this.loading = false; this.loading = false;
}); });
}, },

16
src/views/user/dmUser/index.vue

@ -211,10 +211,8 @@ export default {
}; };
}, },
created() { created() {
this.getDicts("jbs_user_level").then(res => {
console.log(res, 412312);
this.level = res.data;
console.log(this.level, "字典");
this.getDicts("jbs_dm_user_level").then(res => {
this.level = res.data;
}); });
}, },
mounted() { mounted() {
@ -232,7 +230,7 @@ export default {
this.total = res.total; this.total = res.total;
} }
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
// //
@ -247,8 +245,6 @@ export default {
this.queryParams.query.params.beginTime = undefined; this.queryParams.query.params.beginTime = undefined;
this.queryParams.query.params.endTime = undefined; this.queryParams.query.params.endTime = undefined;
} }
console.log(this.time);
console.log(this.queryParams);
this.queryUserInfo() this.queryUserInfo()
}, },
// //
@ -260,7 +256,8 @@ export default {
query: { query: {
nickName: undefined, nickName: undefined,
code: undefined, code: undefined,
phonenumber: undefined
phonenumber: undefined,
userType: '02',
}, },
params: { params: {
beginTime: undefined, beginTime: undefined,
@ -312,7 +309,6 @@ export default {
} }
} }
if(this.type == "code"){ if(this.type == "code"){
console.log(this.form.code,312321)
if(this.form.code == undefined || this.form.code == ''){ if(this.form.code == undefined || this.form.code == ''){
this.$message({ this.$message({
message: '请输入用户编号', message: '请输入用户编号',
@ -338,7 +334,7 @@ export default {
this.queryUserInfo(); this.queryUserInfo();
} }
} catch (err) { } catch (err) {
console.log(err);
} }
} }
} }

14
src/views/user/wjUser/index.vue

@ -211,10 +211,8 @@ export default {
}; };
}, },
created() { created() {
this.getDicts("jbs_user_level").then(res => {
console.log(res, 412312);
this.getDicts("jbs_wj_user_level").then(res => {
this.level = res.data; this.level = res.data;
console.log(this.level, "字典");
}); });
}, },
mounted() { mounted() {
@ -232,7 +230,7 @@ export default {
this.total = res.total; this.total = res.total;
} }
} catch (err) { } catch (err) {
console.log(err);
} }
}, },
// //
@ -247,8 +245,6 @@ export default {
this.queryParams.query.params.beginTime = undefined; this.queryParams.query.params.beginTime = undefined;
this.queryParams.query.params.endTime = undefined; this.queryParams.query.params.endTime = undefined;
} }
console.log(this.time);
console.log(this.queryParams);
this.queryUserInfo() this.queryUserInfo()
}, },
// //
@ -260,7 +256,8 @@ export default {
query: { query: {
nickName: undefined, nickName: undefined,
code: undefined, code: undefined,
phonenumber: undefined
phonenumber: undefined,
userType: '01',
}, },
params: { params: {
beginTime: undefined, beginTime: undefined,
@ -312,7 +309,6 @@ export default {
} }
} }
if(this.type == "code"){ if(this.type == "code"){
console.log(this.form.code,312321)
if(this.form.code == undefined || this.form.code == ''){ if(this.form.code == undefined || this.form.code == ''){
this.$message({ this.$message({
message: '请输入用户编号', message: '请输入用户编号',
@ -338,7 +334,7 @@ export default {
this.queryUserInfo(); this.queryUserInfo();
} }
} catch (err) { } catch (err) {
console.log(err);
} }
} }
} }

Loading…
Cancel
Save