Quellcode durchsuchen

一次性打印模板表达式

FinalYu vor 10 Monaten
Ursprung
Commit
92abb1a6f4
1 geänderte Dateien mit 21 neuen und 12 gelöschten Zeilen
  1. 21 12
      nasc-ui/src/views/matter/item/index.vue

+ 21 - 12
nasc-ui/src/views/matter/item/index.vue

@@ -75,9 +75,9 @@
               <el-button size="mini" type="text" icon="el-icon-set-up" @click="handleDeploy(scope.row)"
                 v-if="scope.row.prefixQuestion == 'Y'">问题配置</el-button>
               <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
-                v-hasPermi="['system:user:edit']">修改</el-button>
+                v-hasPermi="['matter:item:edit']">修改</el-button>
               <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
-                v-hasPermi="['system:user:remove']">删除</el-button>
+                v-hasPermi="['matter:item:remove']">删除</el-button>
             </template>
           </el-table-column>
         </el-table>
@@ -165,9 +165,17 @@
         </el-row>
         <el-row>
           <el-col :span="24">
-            <el-form-item label="打印一次性告知单模板">
-              <editor v-model="formData.printContent" :min-height="152" />
-            </el-form-item>
+            <label class="el-form-item__label" style="width: 80px; line-height: 16px;">一次性告知单模板</label>
+            <editor v-model="formData.printContent" :min-height="152" style="margin-left: 80px;" />
+          </el-col>
+          <el-col>
+            <div style="color: #8f8f8f; font-size: 12px; margin-left: 80px; margin-top: 8px;">表达式:
+              <span>① {$year}:当前年;&nbsp;&nbsp;&nbsp;&nbsp;</span>
+              <span>② {$month}:当前月;&nbsp;&nbsp;&nbsp;&nbsp;</span>
+              <span>③ {$day}:当前日;&nbsp;&nbsp;&nbsp;&nbsp;</span>
+              <span>④ {$matter}:事项名称;&nbsp;&nbsp;&nbsp;&nbsp;</span>
+              <span>⑤ {$material}:材料清单;&nbsp;&nbsp;&nbsp;&nbsp;</span>
+            </div>
           </el-col>
         </el-row>
       </el-form>
@@ -176,13 +184,13 @@
         <el-button @click="cancel">取 消</el-button>
       </div>
     </el-dialog>
-    <!-- 添加或修改问题对话框 -->
 
+    <!-- 添加或修改问题对话框 -->
     <el-dialog :title="title" :visible.sync="addProblem" :close-on-click-modal="false" width="60%" append-to-body>
       <el-row :gutter="10" class="mb8">
         <el-col :span="1.5">
           <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addItem"
-            v-hasPermi="['matter:item:add']">新增</el-button>
+            v-hasPermi="['matter:question:add']">新增</el-button>
         </el-col>
         <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columnsp"></right-toolbar>
       </el-row>
@@ -196,9 +204,9 @@
         <el-table-column label="操作" align="center" width="160" class-name="small-padding fixed-width">
           <template slot-scope="scope" v-if="scope.row.userId !== 1">
             <el-button size="mini" type="text" icon="el-icon-edit" @click="problemUpdate(scope.row)"
-              v-hasPermi="['system:user:edit']">修改</el-button>
+              v-hasPermi="['matter:question:edit']">修改</el-button>
             <el-button size="mini" type="text" icon="el-icon-delete" @click="problemDelete(scope.row)"
-              v-hasPermi="['system:user:remove']">删除</el-button>
+              v-hasPermi="['matter:question:remove']">删除</el-button>
           </template>
         </el-table-column>
       </el-table>
@@ -208,6 +216,7 @@
         <el-button @click="canceladd">取 消</el-button>
       </div>
     </el-dialog>
+
     <!-- 添加或修改问题选项对话框 -->
     <el-dialog :title="title" :visible.sync="problemopen" :close-on-click-modal="false" width="60%" append-to-body>
       <el-form ref="prblemformref" :model="prblemform" :rules="rulesproblem" label-width="80px">
@@ -223,7 +232,7 @@
           <el-col :span="24">
             <el-form-item label="排序号" :prop="'sort'" :rules="{required: true, message: '排序号不能为空', trigger: 'blur'}">
               <el-input v-model="prblemform.sort" placeholder="请输入排序号(数字越大越靠前)" maxlength="5"
-                onkeyup="value=value.replace(/[^0-9]/g,'')" /></el-input>
+                onkeyup="value=value.replace(/[^0-9]/g,'')" />
             </el-form-item>
           </el-col>
         </el-row>
@@ -242,7 +251,7 @@
                 <el-form-item label="排序号" :prop="'optionlist['+index+'].number'"
                   :rules="{required: true, message: '排序号不能为空', trigger: 'blur'}">
                   <el-input v-model="domain.number" placeholder="请输入排序号(数字越大越靠前)" maxlength="5"
-                    onkeyup="value=value.replace(/[^0-9]/g,'')" /></el-input>
+                    onkeyup="value=value.replace(/[^0-9]/g,'')" />
                 </el-form-item>
               </el-col>
             </el-row>
@@ -865,4 +874,4 @@
     height: 80%;
     overflow-y: scroll;
   }
-</style>
+</style>