Browse Source

列字段格式化

lph 1 year ago
parent
commit
a5a8b9bd56
1 changed files with 3 additions and 10 deletions
  1. 3 10
      ruoyi-ui/src/views/tablelist/commonTable/listInfo.vue

+ 3 - 10
ruoyi-ui/src/views/tablelist/commonTable/listInfo.vue

@@ -366,12 +366,7 @@ export default {
           // 得到查询条件
           this.queryFromWhere = res.data.resultMap.where;
           //  得到当前列表信息
-          let test = JSON.parse(
-            this.templateInfo.template.dtColumnName.replace(/=/g, ":")
-          );
-          console.log(test);
-          // test = JSON.parse(this.templateInfo.template.dtColumnName);
-          // console.log(JSON.parse(test), typeof test);
+          let test = JSON.parse(this.templateInfo.template.dtColumnName);
           this.columns = this.columnsHandler(test);
         })
         .finally((fes) => {
@@ -474,7 +469,7 @@ export default {
         Object.assign(this.defaultValue, row);
         this.jsonData = JSON.parse(data.dfVueTemplate);
         this.open = true;
-        this.title = "修改信息123";
+        this.title = "修改信息";
         this.form.password = this.initPassword;
         this.$nextTick(() => {
           this.$refs.addFromRef.setData(row);
@@ -680,6 +675,4 @@ export default {
 };
 </script>
 
-<style scoped lang="scss">
-
-</style>
+<style scoped lang="scss"></style>