|
@@ -340,6 +340,17 @@ const getCalcValue = (num) => {
|
|
|
return Math.ceil(num);
|
|
|
}
|
|
|
};
|
|
|
+// :style="showSty(scope, '_count')"
|
|
|
+// :style="showSty(scope, '_time')"
|
|
|
+
|
|
|
+const showSty = (scope, type) => {
|
|
|
+ let str = "";
|
|
|
+ let num =
|
|
|
+ (Math.ceil(scope.row[`${item.code}${type}`]) /
|
|
|
+ Math.ceil(scope.column.realWidth)) *
|
|
|
+ 100;
|
|
|
+ return (str = "width:" + num + "px");
|
|
|
+};
|
|
|
|
|
|
const changeType = async (value) => {
|
|
|
state.typeVal = value;
|