scale-table.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  1. <style lang="less" scoped>
  2. .scaleTable {
  3. min-height: 100px;
  4. margin-top: -10px;
  5. .table_box {
  6. padding: 0 35px;
  7. }
  8. .btn_box {
  9. width: 100%;
  10. height: 100%;
  11. display: flex;
  12. align-items: center;
  13. justify-content: space-around;
  14. .btn_div {
  15. flex: 1;
  16. display: flex;
  17. align-items: center;
  18. justify-content: center;
  19. }
  20. img {
  21. width: 16px;
  22. height: 16px;
  23. cursor: pointer;
  24. }
  25. }
  26. .table_select_btn {
  27. display: flex;
  28. flex-direction: column;
  29. justify-content: center;
  30. align-items: center;
  31. /deep/ .el-button--text {
  32. padding: 3px 0;
  33. margin: 0;
  34. }
  35. }
  36. /deep/.el-input--mini .el-input__inner {
  37. width: 100%;
  38. }
  39. /deep/.el-table th {
  40. padding: 0;
  41. }
  42. }
  43. /deep/.el-table th,
  44. .el-table tr {
  45. height: 50px;
  46. background: #e3eaf4;
  47. }
  48. /deep/.el-table th {
  49. padding: 0;
  50. }
  51. .custom_table_header {
  52. vertical-align: middle;
  53. &::before {
  54. content: "*";
  55. color: red;
  56. font-size: 12px;
  57. margin-right: 4px;
  58. }
  59. }
  60. /deep/.el-form-item--mini.el-form-item,
  61. .el-form-item--small.el-form-item {
  62. padding: 18px 0;
  63. position: static;
  64. }
  65. /deep/ .el-textarea__inner {
  66. overflow-y: hidden;
  67. }
  68. .showScroll {
  69. /deep/ .el-textarea__inner {
  70. overflow-y: auto;
  71. }
  72. }
  73. .cell_center_box {
  74. /deep/ .el-input__inner {
  75. // width: 40px;
  76. text-align: center;
  77. }
  78. }
  79. /deep/.el-select--mini {
  80. width: 100%;
  81. }
  82. /deep/ .el-input--mini {
  83. font-size: 14px;
  84. }
  85. /deep/ .el-form-item.is-success .el-input__inner,
  86. .el-form-item.is-success .el-textarea__inner {
  87. border-color: #c9c9c9 !important;
  88. }
  89. /deep/ .el-form-item.is-success .el-textarea__inner {
  90. border-color: #c9c9c9 !important;
  91. }
  92. /deep/ .el-form-item.is-success .el-textarea__inner {
  93. border-color: #c9c9c9 !important;
  94. }
  95. </style>
  96. <template>
  97. <div class="scaleTable" :id="`scaleTableRef[${tableIndex}]`">
  98. <div class="table_box">
  99. <el-table
  100. v-if="tableShow"
  101. :data="tableData"
  102. header-row-class-name="header_row_class_name"
  103. border
  104. style="width: 100%; margin: 20px 0"
  105. :span-method="objectSpanMethod"
  106. :ref="`scaleTableRef[${tableIndex}]`"
  107. >
  108. <el-table-column prop="issueId" label="组" width="90px">
  109. <template slot-scope="scope">
  110. <div class="btn_box">
  111. <div class="btn_div">
  112. <img
  113. @click="
  114. $emit('CHANGE_TABLE_ROW', {
  115. type: 4,
  116. tableIndex,
  117. rowIndex: scope.$index,
  118. groupId: scope.row.groupId
  119. })
  120. "
  121. src="@/images/icon-copy.png"
  122. alt=""
  123. title="复制"
  124. />
  125. </div>
  126. <div class="btn_div">
  127. <img
  128. @click="
  129. $emit('CHANGE_TABLE_ROW', {
  130. type: 1,
  131. tableIndex,
  132. rowIndex: scope.$index,
  133. groupId: scope.row.groupId
  134. })
  135. "
  136. src="@/images/add-new-rule-sub.png"
  137. alt=""
  138. title="添加"
  139. />
  140. </div>
  141. <div
  142. class="btn_div"
  143. v-if="imposeRestrictionsRemoveOnGroup(scope.row.groupId)"
  144. >
  145. <img
  146. @click="
  147. $emit('CHANGE_TABLE_ROW', {
  148. type: -1,
  149. tableIndex,
  150. groupId: scope.row.groupId
  151. })
  152. "
  153. src="@/images/add-new-rule-del.png"
  154. alt=""
  155. title="删除"
  156. />
  157. </div>
  158. </div>
  159. </template>
  160. </el-table-column>
  161. <el-table-column prop="groupId" label="问题" width="90px">
  162. <template slot-scope="scope">
  163. <div class="btn_box">
  164. <div class="btn_div">
  165. <img
  166. @click="
  167. $emit('CHANGE_TABLE_ROW', {
  168. type: 5,
  169. tableIndex,
  170. rowIndex: scope.$index,
  171. groupId: scope.row.groupId,
  172. issueId: scope.row.issueId
  173. })
  174. "
  175. src="@/images/icon-copy.png"
  176. alt=""
  177. title="复制"
  178. />
  179. </div>
  180. <div class="btn_div">
  181. <img
  182. @click="
  183. $emit('CHANGE_TABLE_ROW', {
  184. type: 2,
  185. tableIndex,
  186. rowIndex: scope.$index,
  187. groupId: scope.row.groupId,
  188. issueId: scope.row.issueId
  189. })
  190. "
  191. src="@/images/add-new-rule-sub.png"
  192. alt=""
  193. title="添加"
  194. />
  195. </div>
  196. <div
  197. class="btn_div"
  198. v-if="
  199. imposeRestrictionsRemoveOnIssue({
  200. groupId: scope.row.groupId,
  201. issueId: scope.row.issueId
  202. })
  203. "
  204. >
  205. <img
  206. @click="
  207. $emit('CHANGE_TABLE_ROW', {
  208. type: -2,
  209. tableIndex,
  210. issueId: scope.row.issueId
  211. })
  212. "
  213. src="@/images/add-new-rule-del.png"
  214. alt=""
  215. title="删除"
  216. />
  217. </div>
  218. </div>
  219. </template>
  220. </el-table-column>
  221. <el-table-column prop="two_selectType" label="选择" width="70px">
  222. <template slot-scope="scope">
  223. <div class="table_select_btn">
  224. <el-button
  225. @click="handleSelectTypeBtn(scope.$index, 21)"
  226. :style="scope.row.two_selectType != 21 ? { color: '#999' } : ''"
  227. type="text"
  228. >单选</el-button
  229. >
  230. <el-button
  231. :style="scope.row.two_selectType != 22 ? { color: '#999' } : ''"
  232. @click="handleSelectTypeBtn(scope.$index, 22)"
  233. type="text"
  234. >多选</el-button
  235. >
  236. </div>
  237. </template>
  238. </el-table-column>
  239. <el-table-column prop="two_content">
  240. <template slot="header">
  241. <div class="custom_table_header">问题内容</div>
  242. </template>
  243. <template slot-scope="scope">
  244. <el-form-item
  245. :prop="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].two_content`"
  246. :rules="rules.issueContent"
  247. >
  248. <el-input
  249. :ref="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].two_content`"
  250. :id="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].two_content`"
  251. type="textarea"
  252. rows="1"
  253. :autosize="true"
  254. resize="none"
  255. v-model="scope.row.two_content"
  256. clearable
  257. maxlength="300"
  258. placeholder="请输入"
  259. @input="
  260. changeDataFun($event, tableIndex, scope.$index, 'two_content')
  261. "
  262. ></el-input>
  263. </el-form-item>
  264. </template>
  265. </el-table-column>
  266. <el-table-column
  267. prop="two_factor"
  268. width="60px"
  269. v-if="tableResultType === 1"
  270. >
  271. <template slot="header">
  272. <div class="custom_table_header">系数</div>
  273. </template>
  274. <template slot-scope="scope">
  275. <div class="cell_center_box">
  276. <el-form-item
  277. :prop="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].two_factor`"
  278. :rules="rules.issueFactor"
  279. :show-message="false"
  280. >
  281. <el-input
  282. :id="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].two_factor`"
  283. type="text"
  284. maxlength="7"
  285. v-model="scope.row.two_factor"
  286. placeholder="请输入"
  287. title=""
  288. @input="
  289. changeDataFun(
  290. $event,
  291. tableIndex,
  292. scope.$index,
  293. 'two_factor'
  294. );
  295. scope.row.two_factor = numInputChange(scope.row.two_factor);
  296. "
  297. ></el-input>
  298. </el-form-item>
  299. </div>
  300. </template>
  301. </el-table-column>
  302. <el-table-column
  303. prop="two_constant"
  304. width="60px"
  305. v-if="tableResultType === 1"
  306. >
  307. <template slot="header">
  308. <div class="custom_table_header">常数</div>
  309. </template>
  310. <template slot-scope="scope">
  311. <div class="cell_center_box">
  312. <el-form-item
  313. :prop="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].two_constant`"
  314. :rules="rules.issueConstant"
  315. :show-message="false"
  316. >
  317. <el-input
  318. type="text"
  319. maxlength="7"
  320. :id="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].two_constant`"
  321. v-model="scope.row.two_constant"
  322. placeholder="请输入"
  323. style="text-align: center"
  324. @input="
  325. changeDataFun(
  326. $event,
  327. tableIndex,
  328. scope.$index,
  329. 'two_constant'
  330. );
  331. scope.row.two_constant = numInputChange(
  332. scope.row.two_constant
  333. );
  334. "
  335. ></el-input>
  336. </el-form-item>
  337. </div>
  338. </template>
  339. </el-table-column>
  340. <el-table-column prop="issueId" label="选项个数" width="80px">
  341. <template slot-scope="scope">
  342. <div>
  343. {{ optionLength(scope.row.issueId) }}
  344. </div>
  345. </template>
  346. </el-table-column>
  347. <el-table-column prop="orderNo" label="选项" width="70px">
  348. <template slot-scope="scope">
  349. <div class="btn_box">
  350. <div class="btn_div">
  351. <img
  352. @click="
  353. $emit('CHANGE_TABLE_ROW', {
  354. type: 3,
  355. tableIndex,
  356. rowIndex: scope.$index,
  357. groupId: scope.row.groupId,
  358. issueId: scope.row.issueId
  359. })
  360. "
  361. src="@/images/add-new-rule-sub.png"
  362. alt=""
  363. title="添加"
  364. />
  365. </div>
  366. <div
  367. class="btn_div"
  368. v-if="imposeRestrictionsRemoveOnOption(scope.row.issueId)"
  369. >
  370. <img
  371. @click="
  372. $emit('CHANGE_TABLE_ROW', {
  373. type: -3,
  374. tableIndex,
  375. rowIndex: scope.$index
  376. })
  377. "
  378. src="@/images/add-new-rule-del.png"
  379. alt=""
  380. title="删除"
  381. />
  382. </div>
  383. </div>
  384. </template>
  385. </el-table-column>
  386. <el-table-column
  387. prop="content"
  388. :width="tableResultType === 1 ? '200px' : ''"
  389. >
  390. <template slot="header">
  391. <div class="custom_table_header">选项内容</div>
  392. </template>
  393. <template slot-scope="scope">
  394. <el-form-item
  395. :prop="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].content`"
  396. :rules="rules.content"
  397. >
  398. <el-input
  399. :id="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].content`"
  400. type="textarea"
  401. rows="1"
  402. :autosize="true"
  403. resize="none"
  404. v-model="scope.row.content"
  405. clearable
  406. maxlength="300"
  407. placeholder="请输入"
  408. ></el-input>
  409. </el-form-item>
  410. </template>
  411. </el-table-column>
  412. <el-table-column
  413. prop="content"
  414. label="编码"
  415. :width="tableResultType === 2 ? '200px' : '100px'"
  416. v-if="tableResultType === 1"
  417. >
  418. <template slot-scope="scope">
  419. <el-form-item
  420. ><el-select
  421. clearable
  422. remote
  423. filterable
  424. :remote-method="searchRuleCode"
  425. @focus="ruleCodeFocus(scope.$index)"
  426. v-model.trim="scope.row.ruleCode"
  427. >
  428. <el-option
  429. v-for="item in scope.row.ruleCodeList"
  430. :key="item.code"
  431. :value="item.code"
  432. >
  433. <span>{{ item.name }}</span>
  434. <span>({{ item.code }})</span>
  435. </el-option>
  436. </el-select>
  437. </el-form-item>
  438. </template>
  439. </el-table-column>
  440. <el-table-column
  441. prop="content"
  442. width="90px"
  443. v-if="tableResultType === 1"
  444. >
  445. <template slot="header">
  446. <div class="custom_table_header">分值</div>
  447. </template>
  448. <template slot-scope="scope">
  449. <el-form-item
  450. :prop="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].score`"
  451. :rules="rules.score"
  452. >
  453. <el-input
  454. :id="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].score`"
  455. type="text"
  456. maxlength="7"
  457. @input="scope.row.score = numInputChange(scope.row.score)"
  458. v-model="scope.row.score"
  459. clearable
  460. placeholder="请输入"
  461. ></el-input>
  462. </el-form-item>
  463. </template>
  464. </el-table-column>
  465. <el-table-column
  466. prop="result"
  467. width="200px"
  468. v-if="tableResultType === 2"
  469. >
  470. <template slot="header">
  471. <div class="custom_table_header">结果</div>
  472. </template>
  473. <template slot-scope="scope">
  474. <el-form-item
  475. :prop="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].result`"
  476. :rules="rules.result"
  477. >
  478. <el-input
  479. :id="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].result`"
  480. type="textarea"
  481. rows="1"
  482. :autosize="true"
  483. resize="none"
  484. v-model="scope.row.result"
  485. clearable
  486. maxlength="10"
  487. placeholder="请输入"
  488. ></el-input>
  489. </el-form-item>
  490. </template>
  491. </el-table-column>
  492. <el-table-column
  493. prop="pushInfo"
  494. label="建议"
  495. v-if="tableResultType === 2"
  496. >
  497. <template slot-scope="scope">
  498. <el-form-item
  499. :prop="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].pushInfo`"
  500. :rules="rules.pushInfo"
  501. class="showScroll"
  502. >
  503. <el-input
  504. :id="`klScaleParent[${tableIndex}].klScaleSaveGroup[${scope.$index}].pushInfo`"
  505. type="textarea"
  506. rows="2"
  507. resize="none"
  508. v-model="scope.row.pushInfo"
  509. clearable
  510. maxlength="500"
  511. placeholder="请输入"
  512. ></el-input>
  513. </el-form-item>
  514. </template>
  515. </el-table-column>
  516. </el-table>
  517. </div>
  518. </div>
  519. </template>
  520. <script>
  521. import rules from "./rules";
  522. import api from "@api/knowledgeTree.js";
  523. import { numInputChange } from "./util";
  524. export default {
  525. name: "scaleTable",
  526. data() {
  527. return {
  528. tableShow: true,
  529. rules: rules,
  530. ruleCodeIndex: null
  531. };
  532. },
  533. methods: {
  534. numInputChange,
  535. changeDataFun(val, tableIndex, rowIndex, name) {
  536. this.$emit("CHANGE_ISSUE_CONTENT", {
  537. value: val,
  538. tableIndex,
  539. rowIndex,
  540. name
  541. });
  542. },
  543. resizeTable() {
  544. setTimeout(() => {
  545. this.tableData.forEach((item, index) => {
  546. this.$refs[
  547. `klScaleParent[${this.tableIndex}].klScaleSaveGroup[${index}].content`
  548. ] &&
  549. this.$refs[
  550. `klScaleParent[${this.tableIndex}].klScaleSaveGroup[${index}].content`
  551. ].resizeTextarea();
  552. this.$refs[
  553. `klScaleParent[${this.tableIndex}].klScaleSaveGroup[${index}].two_content`
  554. ] &&
  555. this.$refs[
  556. `klScaleParent[${this.tableIndex}].klScaleSaveGroup[${index}].two_content`
  557. ].resizeTextarea();
  558. this.$refs[
  559. `klScaleParent[${this.tableIndex}].klScaleSaveGroup[${index}].result`
  560. ] &&
  561. this.$refs[
  562. `klScaleParent[${this.tableIndex}].klScaleSaveGroup[${index}].result`
  563. ].resizeTextarea();
  564. this.$refs[
  565. `klScaleParent[${this.tableIndex}].klScaleSaveGroup[${index}].pushInfo`
  566. ] &&
  567. this.$refs[
  568. `klScaleParent[${this.tableIndex}].klScaleSaveGroup[${index}].pushInfo`
  569. ].resizeTextarea();
  570. });
  571. }, 100);
  572. },
  573. ruleCodeFocus(index) {
  574. this.ruleCodeIndex = index;
  575. },
  576. searchRuleCode(val) {
  577. api
  578. .searchRuleCode({ name: val === "" ? null : val, type: 1 })
  579. .then((res) => {
  580. if (res.data.code == "0") {
  581. this.$emit(
  582. "CHANGE_FORM_DATA",
  583. this.tableIndex,
  584. this.ruleCodeIndex,
  585. "ruleCodeList",
  586. res.data.data
  587. );
  588. }
  589. });
  590. },
  591. addGroup() {},
  592. // 单选、多选
  593. handleSelectTypeBtn(index, type) {
  594. this.$emit(
  595. "CHANGE_FORM_DATA",
  596. this.tableIndex,
  597. index,
  598. "two_selectType",
  599. type
  600. );
  601. this.changeDataFun(type, this.tableIndex, index, "two_selectType");
  602. },
  603. // 计算表格选项内容的值
  604. optionLength(val) {
  605. if (val || val === 0) {
  606. const accordWithThis = this.tableData.filter(
  607. (item) => item.issueId === val
  608. );
  609. return accordWithThis.length ? accordWithThis.length : 0;
  610. }
  611. },
  612. // 表格合并单元格逻辑
  613. getSpanArr(data) {
  614. this.spanArr = [];
  615. this.spanArr1 = [];
  616. for (var i = 0; i < data.length; i++) {
  617. if (i === 0) {
  618. // 如果是第一条记录(即索引是0的时候),向数组中加入1
  619. /** *
  620. * 例子:
  621. * name:1
  622. * name:1
  623. * name:2
  624. * name:2
  625. * 最终结果:spanArr = [2,0,2,0]
  626. */
  627. this.spanArr.push(1);
  628. this.pos = 0;
  629. this.spanArr1.push(1);
  630. this.pos1 = 0;
  631. } else {
  632. if (data[i].groupId === data[i - 1].groupId) {
  633. // 如果remark相等就累加,并且push 0
  634. this.spanArr[this.pos] += 1;
  635. this.spanArr.push(0);
  636. } else {
  637. // 不相等push 1,并且pos 要换成当前下标
  638. this.spanArr.push(1);
  639. this.pos = i;
  640. }
  641. if (data[i].issueId === data[i - 1].issueId) {
  642. // 如果remark相等就累加,并且push 0
  643. this.spanArr1[this.pos1] += 1;
  644. this.spanArr1.push(0);
  645. } else {
  646. // 不相等push 1,并且pos 要换成当前下标
  647. this.spanArr1.push(1);
  648. this.pos1 = i;
  649. }
  650. }
  651. }
  652. },
  653. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  654. if (columnIndex == 0) {
  655. const _row = this.spanArr[rowIndex];
  656. const _col = _row > 0 ? 1 : 0;
  657. return {
  658. rowspan: _row,
  659. colspan: _col
  660. };
  661. } else if (
  662. column.label == "问题" ||
  663. column.label == "选择" ||
  664. column.label == "问题内容" ||
  665. column.label == "系数" ||
  666. column.label == "常数" ||
  667. column.label == "选项个数"
  668. ) {
  669. const _row = this.spanArr1[rowIndex];
  670. const _col = _row > 0 ? 1 : 0;
  671. return {
  672. rowspan: _row,
  673. colspan: _col
  674. };
  675. }
  676. },
  677. // 删除组限制:剩余一组时隐藏删除按钮
  678. imposeRestrictionsRemoveOnGroup(groupId) {
  679. // 查找有没有其他组存在 如果为0的话则不存在
  680. const otherGroupLength = this.tableData.filter(
  681. (item) => item.groupId !== groupId
  682. ).length;
  683. return otherGroupLength;
  684. },
  685. // 删除问题限制:该组剩余一个问题时隐藏删除按钮
  686. imposeRestrictionsRemoveOnIssue(val) {
  687. const { groupId, issueId } = val;
  688. // 获取该组所有的issus
  689. const thisGroups = this.tableData.filter(
  690. (item) => item.groupId === groupId
  691. );
  692. // 查找该组有没有其他问题 otherIssueLength为0表示只有当前一个问题存在 所以隐藏删除按钮
  693. const otherIssueLength = thisGroups.filter(
  694. (item) => item.issueId !== issueId
  695. ).length;
  696. if (otherIssueLength) {
  697. return true;
  698. }
  699. return false;
  700. },
  701. // 删除选项限制:该问题剩余一个选项时隐藏删除按钮
  702. imposeRestrictionsRemoveOnOption(issueId) {
  703. // 查找同组的问题,如果只有一个问题则隐藏删除按钮
  704. const thisOptionByissueIdLenth = this.tableData.filter(
  705. (item) => item.issueId === issueId
  706. ).length;
  707. if (thisOptionByissueIdLenth > 1) {
  708. return true;
  709. }
  710. return false;
  711. }
  712. },
  713. created() {
  714. this.getSpanArr(this.tableData);
  715. },
  716. watch: {
  717. tableData: {
  718. handler() {
  719. this.getSpanArr(this.tableData);
  720. },
  721. deep: true
  722. },
  723. tableResultType() {
  724. this.tableShow = false;
  725. setTimeout(() => {
  726. this.tableShow = true;
  727. });
  728. }
  729. },
  730. props: {
  731. tableData: {
  732. default: []
  733. },
  734. tableIndex: {
  735. required: true
  736. },
  737. tableResultType: {
  738. required: true,
  739. default: 2
  740. }
  741. }
  742. };
  743. </script>