当前位置:网站首页>Show the mathematical formula in El table

Show the mathematical formula in El table

2022-07-07 13:28:00 Bud, I'll fly first

 Insert picture description here

      <el-table-column prop="sup_score" label=' Test scores ' align="center">
        <template slot-scope="scope">
          <div v-html="scope.row.sup_score"></div>
        </template>
      </el-table-column>
<el-table :data="tableData2323" height="500" :header-cell-style="{ color: '#333333' }" row-key="id" fit highlight-current-row style="margin-top: 10px;">
      <el-table-column prop='no' label=" Number " width="70" align="center"></el-table-column>
      <el-table-column prop='name' label=' name ' align="center"></el-table-column>
      <el-table-column prop="score" label=' Usual score ' align="center">
        <template slot-scope="scope">
          <div v-html="scope.row.score"></div>
        </template>
      </el-table-column>
      <el-table-column prop="sup_score" label=' Test scores ' align="center">
        <template slot-scope="scope">
          <div v-html="scope.row.sup_score"></div>
        </template>
      </el-table-column>
    </el-table>
tableData2323: [
        {
    
          "no": "",
          "score": "87.22",
          "sup_score": "87.22",
          "name": " Total score "
        },
        {
    
          "no": "1",
          "score": "97.03",
          "sup_score": "97.03",
          "name": " Physics "
        },
        {
    
          "no": "2",
          "score": "97.03",
          "sup_score": "97.03",
          "name": " chemical "
        },
        {
    
          "no": "3",
          "score": "20.00",
          "sup_score": "20.00",
          "name": " biological "
        },
        {
    
          "no": "4",
          "score": "70.00",
          "sup_score": "70.00",
          "name": " mathematics "
        },
        {
    
          "no": "",
          "score": "<div style=\"display: flex;align-items: center;justify-content: center;\">(1. Physics ×30%...+3. biological ×40%)+<div style=\"margin-left: 1px;\"><div >∑(4. mathematics )</div><div style=\"border-bottom: 1px solid #000000;margin-top: -1px;\" ></div><div>1</div></div>×(1-70%)</div>",
          "sup_score": "<div style=\"display: flex;align-items: center;justify-content: center;\">(1. Physics ×30%...+3. biological ×40%)+<div style=\"margin-left: 1px;\"><div >∑(4. mathematics )</div><div style=\"border-bottom: 1px solid #000000;margin-top: -1px;\" ></div><div>1</div></div>×(1-70%)</div>",
          "name": " Total score calculation formula "
        }
],
原网站

版权声明
本文为[Bud, I'll fly first]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071106553494.html