zengyicheng 1 year ago
parent
commit
1e174f26aa
2 changed files with 56 additions and 16 deletions
  1. BIN
      src/assets/icon/new/addInput.png
  2. 56 16
      src/components/pages/evaluation.vue

BIN
src/assets/icon/new/addInput.png


+ 56 - 16
src/components/pages/evaluation.vue

@@ -111,7 +111,7 @@
       </div>
     </div>
     <el-dialog
-      title="添加目标管理"
+      title="添加目标"
       :visible.sync="dialogVisible"
       :append-to-body="true"
       width="100%"
@@ -152,7 +152,10 @@
                 v-for="(item, index) in eJson"
                 :key="index"
               >
-                <div v-if="evaObject.isFInput != '0-' + index">
+                <div
+                  v-if="evaObject.isFInput != '0-' + index"
+                  style="width: 100%"
+                >
                   <span
                     :class="{ active: item.id == fid }"
                     v-if="item.name.length < 8"
@@ -197,9 +200,14 @@
               </div>
               <div class="e_add_input">
                 <el-input v-model="evaObject.fName" />
-                <el-button @click="addInputName(1)" type="primary"
+                <img
+                  src="../../assets/icon/new/addInput.png"
+                   @click="addInputName(1)"
+                  alt
+                />
+                <!-- <el-button @click="addInputName(1)" type="primary"
                   >确 定</el-button
-                >
+                > -->
               </div>
             </div>
             <div class="e_add_list_detail" v-if="fid">
@@ -226,7 +234,10 @@
                 v-for="(item, index) in fid && eJson[fid].child"
                 :key="index"
               >
-                <div v-if="evaObject.isSInput != '1-' + index">
+                <div
+                  v-if="evaObject.isSInput != '1-' + index"
+                  style="width: 100%"
+                >
                   <span
                     :class="{ active: item.id == sid }"
                     v-if="item.name.length < 8"
@@ -270,9 +281,14 @@
               </div>
               <div class="e_add_input" v-if="fid != ''">
                 <el-input v-model="evaObject.sName" />
-                <el-button @click="addInputName(2)" type="primary"
+                <img
+                  src="../../assets/icon/new/addInput.png"
+                   @click="addInputName(2)"
+                  alt
+                />
+                <!-- <el-button @click="addInputName(2)" type="primary"
                   >确 定</el-button
-                >
+                > -->
               </div>
             </div>
             <div class="e_add_list_detail" v-if="sid">
@@ -301,7 +317,10 @@
                 eJson[fid].child[sid].child"
                 :key="index"
               >
-                <div v-if="evaObject.isTInput != '2-' + index">
+                <div
+                  v-if="evaObject.isTInput != '2-' + index"
+                  style="width: 100%"
+                >
                   <span
                     :class="{ active: item.id == tid }"
                     v-if="item.name.length < 8"
@@ -345,9 +364,14 @@
               </div>
               <div class="e_add_input" v-if="sid != ''">
                 <el-input v-model="evaObject.tName" />
-                <el-button @click="addInputName(3)" type="primary"
+                <img
+                  src="../../assets/icon/new/addInput.png"
+                   @click="addInputName(3)"
+                  alt
+                />
+                <!-- <el-button @click="addInputName(3)" type="primary"
                   >确 定</el-button
-                >
+                > -->
               </div>
             </div>
             <div class="e_add_list_detail" v-if="tid">
@@ -730,7 +754,9 @@ export default {
     },
     deleteF(id) {
       if (JSON.stringify(this.eJson[id].child) != "{}") {
-        this.$message.error("请把所有子集删完才可以删除");
+        this.$message.error(
+          "删除该目标将会同步删除该目标下所有内容,请先删除该目标底下子集!"
+        );
         return;
       }
       this.$confirm("是否删除该子级?", "提示", {
@@ -751,7 +777,9 @@ export default {
     },
     deleteS(id) {
       if (JSON.stringify(this.eJson[this.fid].child[id].child) != "{}") {
-        this.$message.error("请把所有子集删完才可以删除");
+        this.$message.error(
+          "删除该目标将会同步删除该目标下所有内容,请先删除该目标底下子集!"
+        );
         return;
       }
       this.$confirm("是否删除该子级?", "提示", {
@@ -888,7 +916,7 @@ export default {
         .get(this.$store.state.api + "selectCourseEva", params)
         .then((res) => {
           if (res.data[0].length == 0) {
-            this.$confirm("确定删除吗?", "提示", {
+            this.$confirm("是否删除此目标?", "提示", {
               confirmButtonText: "确定",
               cancelButtonText: "取消",
               type: "warning",
@@ -1175,11 +1203,17 @@ export default {
   padding: 10px;
 }
 .e_add_input > .el-input {
-  width: 200px;
+  width: 300px;
 }
 .e_add_input > .el-button {
   margin-left: 10px;
 }
+.e_add_input>img{
+  width: 25px;
+  height: 25px;
+  margin: 0 5px;
+  cursor: pointer;
+}
 .e_add_list_child {
   width: 100%;
   display: flex;
@@ -1191,10 +1225,16 @@ export default {
   text-align: center;
 }
 .e_add_list_child span {
+  cursor: pointer;
+  word-break: break-word;
+  min-width: 100%;
+  display: -webkit-box;
   overflow: hidden;
-  white-space: nowrap;
+  white-space: normal !important;
   text-overflow: ellipsis;
-  cursor: pointer;
+  word-wrap: break-word;
+  -webkit-line-clamp: 3;
+  -webkit-box-orient: vertical;
 }
 .e_add_list_child img {
   position: absolute;